aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/wx
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/wx')
-rw-r--r--lib/wx/AUTHORS10
-rw-r--r--lib/wx/Makefile77
-rw-r--r--lib/wx/Notes60
-rw-r--r--lib/wx/README77
-rw-r--r--lib/wx/TODO30
-rw-r--r--lib/wx/api_gen/Makefile74
-rw-r--r--lib/wx/api_gen/README26
-rw-r--r--lib/wx/api_gen/gen_util.erl246
-rw-r--r--lib/wx/api_gen/gl_doxygen.conf228
-rw-r--r--lib/wx/api_gen/gl_gen.erl687
-rw-r--r--lib/wx/api_gen/gl_gen.hrl41
-rw-r--r--lib/wx/api_gen/gl_gen_c.erl596
-rw-r--r--lib/wx/api_gen/gl_gen_erl.erl603
-rw-r--r--lib/wx/api_gen/gl_xml/.gitignore0
-rw-r--r--lib/wx/api_gen/glapi.conf333
-rw-r--r--lib/wx/api_gen/wx_doxygen.conf299
-rw-r--r--lib/wx/api_gen/wx_extra/bugs.h36
-rw-r--r--lib/wx/api_gen/wx_extra/wxEvtHandler.c_src66
-rw-r--r--lib/wx/api_gen/wx_extra/wxEvtHandler.erl183
-rw-r--r--lib/wx/api_gen/wx_extra/wxListCtrl.c_src24
-rw-r--r--lib/wx/api_gen/wx_extra/wxListCtrl.erl39
-rw-r--r--lib/wx/api_gen/wx_extra/wxPrintout.c_src30
-rw-r--r--lib/wx/api_gen/wx_extra/wxPrintout.erl102
-rw-r--r--lib/wx/api_gen/wx_extra/wxXmlResource.c_src3
-rw-r--r--lib/wx/api_gen/wx_extra/wxXmlResource.erl43
-rw-r--r--lib/wx/api_gen/wx_extra/wxe_evth.h25
-rw-r--r--lib/wx/api_gen/wx_gen.erl1443
-rw-r--r--lib/wx/api_gen/wx_gen.hrl88
-rw-r--r--lib/wx/api_gen/wx_gen_cpp.erl1220
-rw-r--r--lib/wx/api_gen/wx_gen_erl.erl1272
-rw-r--r--lib/wx/api_gen/wx_xml/.gitignore0
-rw-r--r--lib/wx/api_gen/wxapi.conf1777
-rwxr-xr-xlib/wx/autoconf/config.guess1498
-rwxr-xr-xlib/wx/autoconf/config.sub1489
-rwxr-xr-xlib/wx/autoconf/install-sh258
-rw-r--r--lib/wx/c_src/Makefile.in177
-rw-r--r--lib/wx/c_src/gen/gl_fdefs.h1302
-rw-r--r--lib/wx/c_src/gen/gl_finit.h638
-rw-r--r--lib/wx/c_src/gen/gl_funcs.cpp5406
-rw-r--r--lib/wx/c_src/gen/glu_finit.h54
-rw-r--r--lib/wx/c_src/gen/wxe_derived_dest.h742
-rw-r--r--lib/wx/c_src/gen/wxe_events.cpp828
-rw-r--r--lib/wx/c_src/gen/wxe_funcs.cpp31099
-rw-r--r--lib/wx/c_src/gen/wxe_init.cpp136
-rw-r--r--lib/wx/c_src/gen/wxe_macros.h3318
-rw-r--r--lib/wx/c_src/wxePrintout.cpp210
-rw-r--r--lib/wx/c_src/wxe_driver.c221
-rw-r--r--lib/wx/c_src/wxe_driver.h91
-rw-r--r--lib/wx/c_src/wxe_events.h68
-rw-r--r--lib/wx/c_src/wxe_gl.cpp321
-rw-r--r--lib/wx/c_src/wxe_gl.h135
-rw-r--r--lib/wx/c_src/wxe_impl.cpp863
-rw-r--r--lib/wx/c_src/wxe_impl.h256
-rw-r--r--lib/wx/c_src/wxe_ps_init.c58
-rw-r--r--lib/wx/c_src/wxe_return.cpp348
-rw-r--r--lib/wx/c_src/wxe_return.h140
-rw-r--r--lib/wx/c_src/wxe_win32.rc4
-rw-r--r--lib/wx/config.mk.in35
-rwxr-xr-xlib/wx/configure.in592
-rw-r--r--lib/wx/doc/html/.gitignore0
-rw-r--r--lib/wx/doc/man3/.gitignore0
-rw-r--r--lib/wx/doc/overview.edoc235
-rw-r--r--lib/wx/doc/pdf/.gitignore0
-rw-r--r--lib/wx/doc/src/Makefile175
-rw-r--r--lib/wx/doc/src/book.xml48
-rw-r--r--lib/wx/doc/src/fascicules.xml15
-rw-r--r--lib/wx/doc/src/make.dep13
-rw-r--r--lib/wx/doc/src/notes.xml176
-rw-r--r--lib/wx/doc/src/part.xml38
-rw-r--r--lib/wx/doc/src/part_notes.xml37
-rw-r--r--lib/wx/doc/src/ref_man.src.xml36
-rw-r--r--lib/wx/ebin/.gitignore0
-rw-r--r--lib/wx/examples/Makefile45
-rwxr-xr-xlib/wx/examples/demo/Makefile96
-rw-r--r--lib/wx/examples/demo/demo.erl363
-rw-r--r--lib/wx/examples/demo/demo_html_tagger.erl534
-rw-r--r--lib/wx/examples/demo/erlang.pngbin0 -> 16065 bytes
-rw-r--r--lib/wx/examples/demo/ex_aui.erl189
-rw-r--r--lib/wx/examples/demo/ex_button.erl230
-rw-r--r--lib/wx/examples/demo/ex_canvas.erl177
-rw-r--r--lib/wx/examples/demo/ex_canvas_paint.erl248
-rw-r--r--lib/wx/examples/demo/ex_choices.erl159
-rw-r--r--lib/wx/examples/demo/ex_cursor.erl180
-rw-r--r--lib/wx/examples/demo/ex_dialogs.erl171
-rw-r--r--lib/wx/examples/demo/ex_frame_utils.erl193
-rw-r--r--lib/wx/examples/demo/ex_gauge.erl208
-rw-r--r--lib/wx/examples/demo/ex_gl.erl409
-rw-r--r--lib/wx/examples/demo/ex_graphicsContext.erl146
-rw-r--r--lib/wx/examples/demo/ex_grid.erl142
-rw-r--r--lib/wx/examples/demo/ex_htmlWindow.erl93
-rw-r--r--lib/wx/examples/demo/ex_htmlWindow.html59
-rw-r--r--lib/wx/examples/demo/ex_listCtrl.erl148
-rw-r--r--lib/wx/examples/demo/ex_notebook.erl147
-rw-r--r--lib/wx/examples/demo/ex_pickers.erl136
-rw-r--r--lib/wx/examples/demo/ex_popupMenu.erl150
-rw-r--r--lib/wx/examples/demo/ex_radioBox.erl163
-rw-r--r--lib/wx/examples/demo/ex_sashWindow.erl128
-rw-r--r--lib/wx/examples/demo/ex_sizers.erl436
-rw-r--r--lib/wx/examples/demo/ex_slider.erl113
-rw-r--r--lib/wx/examples/demo/ex_splitterWindow.erl102
-rw-r--r--lib/wx/examples/demo/ex_static.erl117
-rw-r--r--lib/wx/examples/demo/ex_textCtrl.erl104
-rw-r--r--lib/wx/examples/demo/ex_treeCtrl.erl121
-rw-r--r--lib/wx/examples/demo/image.jpgbin0 -> 2333 bytes
-rw-r--r--lib/wx/examples/simple/Makefile65
-rw-r--r--lib/wx/examples/simple/copy.xpm44
-rwxr-xr-xlib/wx/examples/simple/hello.erl69
-rw-r--r--lib/wx/examples/simple/hello2.erl81
-rwxr-xr-xlib/wx/examples/simple/menu.erl607
-rwxr-xr-xlib/wx/examples/simple/minimal.erl109
-rwxr-xr-xlib/wx/examples/simple/sample.xpm44
-rwxr-xr-xlib/wx/examples/sudoku/Makefile66
-rwxr-xr-xlib/wx/examples/sudoku/sudoku.erl53
-rwxr-xr-xlib/wx/examples/sudoku/sudoku.hrl44
-rwxr-xr-xlib/wx/examples/sudoku/sudoku_board.erl358
-rwxr-xr-xlib/wx/examples/sudoku/sudoku_game.erl503
-rwxr-xr-xlib/wx/examples/sudoku/sudoku_gui.erl391
-rwxr-xr-xlib/wx/examples/xrc/Makefile76
-rw-r--r--lib/wx/examples/xrc/rc/appicon.icobin0 -> 1078 bytes
-rw-r--r--lib/wx/examples/xrc/rc/appicon.xpm52
-rw-r--r--lib/wx/examples/xrc/rc/artprov.xpm23
-rw-r--r--lib/wx/examples/xrc/rc/artprov.xrc67
-rw-r--r--lib/wx/examples/xrc/rc/basicdlg.xpm24
-rw-r--r--lib/wx/examples/xrc/rc/basicdlg.xrc44
-rw-r--r--lib/wx/examples/xrc/rc/controls.xpm25
-rw-r--r--lib/wx/examples/xrc/rc/controls.xrc1243
-rw-r--r--lib/wx/examples/xrc/rc/custclas.xpm26
-rw-r--r--lib/wx/examples/xrc/rc/custclas.xrc42
-rw-r--r--lib/wx/examples/xrc/rc/derivdlg.xpm25
-rw-r--r--lib/wx/examples/xrc/rc/derivdlg.xrc78
-rw-r--r--lib/wx/examples/xrc/rc/fileopen.gifbin0 -> 949 bytes
-rw-r--r--lib/wx/examples/xrc/rc/filesave.gifbin0 -> 927 bytes
-rw-r--r--lib/wx/examples/xrc/rc/frame.xrc27
-rw-r--r--lib/wx/examples/xrc/rc/fuzzy.gifbin0 -> 116 bytes
-rw-r--r--lib/wx/examples/xrc/rc/menu.xrc84
-rw-r--r--lib/wx/examples/xrc/rc/platform.xpm28
-rw-r--r--lib/wx/examples/xrc/rc/platform.xrc145
-rw-r--r--lib/wx/examples/xrc/rc/quotes.gifbin0 -> 82 bytes
-rw-r--r--lib/wx/examples/xrc/rc/resource.xrc154
-rw-r--r--lib/wx/examples/xrc/rc/stop.xpm164
-rw-r--r--lib/wx/examples/xrc/rc/throbber.gifbin0 -> 2704 bytes
-rw-r--r--lib/wx/examples/xrc/rc/toolbar.xrc51
-rw-r--r--lib/wx/examples/xrc/rc/uncenter.xpm24
-rw-r--r--lib/wx/examples/xrc/rc/uncenter.xrc47
-rw-r--r--lib/wx/examples/xrc/rc/update.gifbin0 -> 124 bytes
-rw-r--r--lib/wx/examples/xrc/rc/variable.xpm21
-rw-r--r--lib/wx/examples/xrc/rc/variable.xrc59
-rw-r--r--lib/wx/examples/xrc/xrc.erl323
-rw-r--r--lib/wx/include/gl.hrl3686
-rw-r--r--lib/wx/include/glu.hrl177
-rw-r--r--lib/wx/include/wx.hrl3724
-rw-r--r--lib/wx/info2
-rwxr-xr-xlib/wx/install.es302
-rw-r--r--lib/wx/license.terms286
-rw-r--r--lib/wx/prebuild.skip2
-rw-r--r--lib/wx/priv/erlang-logo32.pngbin0 -> 1608 bytes
-rw-r--r--lib/wx/priv/erlang-logo64.pngbin0 -> 4149 bytes
-rw-r--r--lib/wx/src/Makefile103
-rw-r--r--lib/wx/src/gen/gl.erl4034
-rw-r--r--lib/wx/src/gen/gl_debug.hrl697
-rw-r--r--lib/wx/src/gen/glu.erl231
-rw-r--r--lib/wx/src/gen/wxAcceleratorEntry.erl109
-rw-r--r--lib/wx/src/gen/wxAcceleratorTable.erl62
-rw-r--r--lib/wx/src/gen/wxArtProvider.erl72
-rw-r--r--lib/wx/src/gen/wxAuiDockArt.erl34
-rw-r--r--lib/wx/src/gen/wxAuiManager.erl316
-rw-r--r--lib/wx/src/gen/wxAuiManagerEvent.erl163
-rw-r--r--lib/wx/src/gen/wxAuiNotebook.erl666
-rw-r--r--lib/wx/src/gen/wxAuiNotebookEvent.erl138
-rw-r--r--lib/wx/src/gen/wxAuiPaneInfo.erl785
-rw-r--r--lib/wx/src/gen/wxAuiTabArt.erl34
-rw-r--r--lib/wx/src/gen/wxBitmap.erl299
-rw-r--r--lib/wx/src/gen/wxBitmapButton.erl564
-rw-r--r--lib/wx/src/gen/wxBitmapDataObject.erl87
-rw-r--r--lib/wx/src/gen/wxBoxSizer.erl161
-rw-r--r--lib/wx/src/gen/wxBrush.erl142
-rw-r--r--lib/wx/src/gen/wxBufferedDC.erl348
-rw-r--r--lib/wx/src/gen/wxBufferedPaintDC.erl309
-rw-r--r--lib/wx/src/gen/wxButton.erl518
-rw-r--r--lib/wx/src/gen/wxCalendarCtrl.erl680
-rw-r--r--lib/wx/src/gen/wxCalendarDateAttr.erl227
-rw-r--r--lib/wx/src/gen/wxCalendarEvent.erl99
-rw-r--r--lib/wx/src/gen/wxCaret.erl181
-rw-r--r--lib/wx/src/gen/wxCheckBox.erl554
-rw-r--r--lib/wx/src/gen/wxCheckListBox.erl564
-rw-r--r--lib/wx/src/gen/wxChildFocusEvent.erl92
-rw-r--r--lib/wx/src/gen/wxChoice.erl574
-rw-r--r--lib/wx/src/gen/wxChoicebook.erl698
-rw-r--r--lib/wx/src/gen/wxClientDC.erl267
-rw-r--r--lib/wx/src/gen/wxClipboard.erl138
-rw-r--r--lib/wx/src/gen/wxCloseEvent.erl110
-rw-r--r--lib/wx/src/gen/wxColourData.erl100
-rw-r--r--lib/wx/src/gen/wxColourDialog.erl570
-rw-r--r--lib/wx/src/gen/wxColourPickerCtrl.erl560
-rw-r--r--lib/wx/src/gen/wxColourPickerEvent.erl92
-rw-r--r--lib/wx/src/gen/wxComboBox.erl693
-rw-r--r--lib/wx/src/gen/wxCommandEvent.erl129
-rw-r--r--lib/wx/src/gen/wxContextMenuEvent.erl100
-rw-r--r--lib/wx/src/gen/wxControl.erl449
-rw-r--r--lib/wx/src/gen/wxControlWithItems.erl612
-rw-r--r--lib/wx/src/gen/wxCursor.erl131
-rw-r--r--lib/wx/src/gen/wxDC.erl831
-rw-r--r--lib/wx/src/gen/wxDataObject.erl34
-rw-r--r--lib/wx/src/gen/wxDateEvent.erl92
-rw-r--r--lib/wx/src/gen/wxDatePickerCtrl.erl540
-rw-r--r--lib/wx/src/gen/wxDialog.erl630
-rw-r--r--lib/wx/src/gen/wxDirDialog.erl574
-rw-r--r--lib/wx/src/gen/wxDirPickerCtrl.erl550
-rw-r--r--lib/wx/src/gen/wxDisplayChangedEvent.erl62
-rw-r--r--lib/wx/src/gen/wxEraseEvent.erl69
-rw-r--r--lib/wx/src/gen/wxEvent.erl103
-rw-r--r--lib/wx/src/gen/wxEvtHandler.erl203
-rw-r--r--lib/wx/src/gen/wxFileDataObject.erl67
-rw-r--r--lib/wx/src/gen/wxFileDialog.erl658
-rw-r--r--lib/wx/src/gen/wxFileDirPickerEvent.erl92
-rw-r--r--lib/wx/src/gen/wxFilePickerCtrl.erl552
-rw-r--r--lib/wx/src/gen/wxFindReplaceData.erl101
-rw-r--r--lib/wx/src/gen/wxFindReplaceDialog.erl574
-rw-r--r--lib/wx/src/gen/wxFlexGridSizer.erl281
-rw-r--r--lib/wx/src/gen/wxFocusEvent.erl69
-rw-r--r--lib/wx/src/gen/wxFont.erl227
-rw-r--r--lib/wx/src/gen/wxFontData.erl153
-rw-r--r--lib/wx/src/gen/wxFontDialog.erl550
-rw-r--r--lib/wx/src/gen/wxFontPickerCtrl.erl563
-rw-r--r--lib/wx/src/gen/wxFontPickerEvent.erl92
-rw-r--r--lib/wx/src/gen/wxFrame.erl699
-rw-r--r--lib/wx/src/gen/wxGBSizerItem.erl110
-rw-r--r--lib/wx/src/gen/wxGLCanvas.erl524
-rw-r--r--lib/wx/src/gen/wxGauge.erl571
-rw-r--r--lib/wx/src/gen/wxGenericDirCtrl.erl618
-rw-r--r--lib/wx/src/gen/wxGraphicsBrush.erl43
-rw-r--r--lib/wx/src/gen/wxGraphicsContext.erl461
-rw-r--r--lib/wx/src/gen/wxGraphicsFont.erl43
-rw-r--r--lib/wx/src/gen/wxGraphicsMatrix.erl149
-rw-r--r--lib/wx/src/gen/wxGraphicsObject.erl48
-rw-r--r--lib/wx/src/gen/wxGraphicsPath.erl236
-rw-r--r--lib/wx/src/gen/wxGraphicsPen.erl43
-rw-r--r--lib/wx/src/gen/wxGraphicsRenderer.erl136
-rw-r--r--lib/wx/src/gen/wxGrid.erl2264
-rw-r--r--lib/wx/src/gen/wxGridBagSizer.erl525
-rw-r--r--lib/wx/src/gen/wxGridCellAttr.erl207
-rw-r--r--lib/wx/src/gen/wxGridCellBoolEditor.erl99
-rw-r--r--lib/wx/src/gen/wxGridCellBoolRenderer.erl55
-rw-r--r--lib/wx/src/gen/wxGridCellChoiceEditor.erl96
-rw-r--r--lib/wx/src/gen/wxGridCellEditor.erl135
-rw-r--r--lib/wx/src/gen/wxGridCellFloatEditor.erl94
-rw-r--r--lib/wx/src/gen/wxGridCellFloatRenderer.erl109
-rw-r--r--lib/wx/src/gen/wxGridCellNumberEditor.erl104
-rw-r--r--lib/wx/src/gen/wxGridCellNumberRenderer.erl58
-rw-r--r--lib/wx/src/gen/wxGridCellRenderer.erl56
-rw-r--r--lib/wx/src/gen/wxGridCellStringRenderer.erl55
-rw-r--r--lib/wx/src/gen/wxGridCellTextEditor.erl83
-rw-r--r--lib/wx/src/gen/wxGridEvent.erl151
-rw-r--r--lib/wx/src/gen/wxGridSizer.erl233
-rw-r--r--lib/wx/src/gen/wxHelpEvent.erl96
-rw-r--r--lib/wx/src/gen/wxHtmlEasyPrinting.erl196
-rw-r--r--lib/wx/src/gen/wxHtmlLinkEvent.erl92
-rw-r--r--lib/wx/src/gen/wxHtmlWindow.erl695
-rw-r--r--lib/wx/src/gen/wxIcon.erl131
-rw-r--r--lib/wx/src/gen/wxIconBundle.erl113
-rw-r--r--lib/wx/src/gen/wxIconizeEvent.erl69
-rw-r--r--lib/wx/src/gen/wxIdleEvent.erl111
-rw-r--r--lib/wx/src/gen/wxImage.erl905
-rw-r--r--lib/wx/src/gen/wxImageList.erl200
-rw-r--r--lib/wx/src/gen/wxJoystickEvent.erl174
-rw-r--r--lib/wx/src/gen/wxKeyEvent.erl162
-rw-r--r--lib/wx/src/gen/wxLayoutAlgorithm.erl104
-rw-r--r--lib/wx/src/gen/wxListBox.erl615
-rw-r--r--lib/wx/src/gen/wxListCtrl.erl1100
-rw-r--r--lib/wx/src/gen/wxListEvent.erl186
-rw-r--r--lib/wx/src/gen/wxListItem.erl242
-rw-r--r--lib/wx/src/gen/wxListView.erl513
-rw-r--r--lib/wx/src/gen/wxListbook.erl698
-rw-r--r--lib/wx/src/gen/wxLogNull.erl46
-rw-r--r--lib/wx/src/gen/wxMDIChildFrame.erl618
-rw-r--r--lib/wx/src/gen/wxMDIClientWindow.erl486
-rw-r--r--lib/wx/src/gen/wxMDIParentFrame.erl654
-rw-r--r--lib/wx/src/gen/wxMask.erl103
-rw-r--r--lib/wx/src/gen/wxMaximizeEvent.erl62
-rw-r--r--lib/wx/src/gen/wxMemoryDC.erl285
-rw-r--r--lib/wx/src/gen/wxMenu.erl624
-rw-r--r--lib/wx/src/gen/wxMenuBar.erl662
-rw-r--r--lib/wx/src/gen/wxMenuEvent.erl83
-rw-r--r--lib/wx/src/gen/wxMenuItem.erl245
-rw-r--r--lib/wx/src/gen/wxMessageDialog.erl541
-rw-r--r--lib/wx/src/gen/wxMiniFrame.erl590
-rw-r--r--lib/wx/src/gen/wxMirrorDC.erl259
-rw-r--r--lib/wx/src/gen/wxMouseCaptureChangedEvent.erl69
-rw-r--r--lib/wx/src/gen/wxMouseEvent.erl348
-rw-r--r--lib/wx/src/gen/wxMoveEvent.erl69
-rw-r--r--lib/wx/src/gen/wxMultiChoiceDialog.erl565
-rw-r--r--lib/wx/src/gen/wxNavigationKeyEvent.erl123
-rw-r--r--lib/wx/src/gen/wxNcPaintEvent.erl62
-rw-r--r--lib/wx/src/gen/wxNotebook.erl720
-rw-r--r--lib/wx/src/gen/wxNotebookEvent.erl122
-rw-r--r--lib/wx/src/gen/wxNotifyEvent.erl102
-rw-r--r--lib/wx/src/gen/wxPageSetupDialog.erl72
-rw-r--r--lib/wx/src/gen/wxPageSetupDialogData.erl294
-rw-r--r--lib/wx/src/gen/wxPaintDC.erl267
-rw-r--r--lib/wx/src/gen/wxPaintEvent.erl62
-rw-r--r--lib/wx/src/gen/wxPalette.erl98
-rw-r--r--lib/wx/src/gen/wxPaletteChangedEvent.erl77
-rw-r--r--lib/wx/src/gen/wxPanel.erl493
-rw-r--r--lib/wx/src/gen/wxPasswordEntryDialog.erl550
-rw-r--r--lib/wx/src/gen/wxPen.erl156
-rw-r--r--lib/wx/src/gen/wxPickerBase.erl552
-rw-r--r--lib/wx/src/gen/wxPostScriptDC.erl277
-rw-r--r--lib/wx/src/gen/wxPreviewCanvas.erl475
-rw-r--r--lib/wx/src/gen/wxPreviewControlBar.erl497
-rw-r--r--lib/wx/src/gen/wxPreviewFrame.erl593
-rw-r--r--lib/wx/src/gen/wxPrintData.erl207
-rw-r--r--lib/wx/src/gen/wxPrintDialog.erl564
-rw-r--r--lib/wx/src/gen/wxPrintDialogData.erl243
-rw-r--r--lib/wx/src/gen/wxPrintPreview.erl192
-rw-r--r--lib/wx/src/gen/wxPrinter.erl135
-rw-r--r--lib/wx/src/gen/wxPrintout.erl274
-rw-r--r--lib/wx/src/gen/wxProgressDialog.erl571
-rw-r--r--lib/wx/src/gen/wxQueryNewPaletteEvent.erl77
-rw-r--r--lib/wx/src/gen/wxRadioBox.erl663
-rw-r--r--lib/wx/src/gen/wxRadioButton.erl512
-rw-r--r--lib/wx/src/gen/wxRegion.erl305
-rw-r--r--lib/wx/src/gen/wxSashEvent.erl110
-rw-r--r--lib/wx/src/gen/wxSashLayoutWindow.erl566
-rw-r--r--lib/wx/src/gen/wxSashWindow.erl552
-rw-r--r--lib/wx/src/gen/wxScreenDC.erl257
-rw-r--r--lib/wx/src/gen/wxScrollBar.erl546
-rw-r--r--lib/wx/src/gen/wxScrollEvent.erl99
-rw-r--r--lib/wx/src/gen/wxScrollWinEvent.erl76
-rw-r--r--lib/wx/src/gen/wxScrolledWindow.erl590
-rw-r--r--lib/wx/src/gen/wxSetCursorEvent.erl98
-rw-r--r--lib/wx/src/gen/wxShowEvent.erl77
-rw-r--r--lib/wx/src/gen/wxSingleChoiceDialog.erl571
-rw-r--r--lib/wx/src/gen/wxSizeEvent.erl69
-rw-r--r--lib/wx/src/gen/wxSizer.erl761
-rw-r--r--lib/wx/src/gen/wxSizerFlags.erl134
-rw-r--r--lib/wx/src/gen/wxSizerItem.erl354
-rw-r--r--lib/wx/src/gen/wxSlider.erl579
-rw-r--r--lib/wx/src/gen/wxSpinButton.erl533
-rw-r--r--lib/wx/src/gen/wxSpinCtrl.erl562
-rw-r--r--lib/wx/src/gen/wxSpinEvent.erl109
-rw-r--r--lib/wx/src/gen/wxSplashScreen.erl582
-rw-r--r--lib/wx/src/gen/wxSplitterEvent.erl130
-rw-r--r--lib/wx/src/gen/wxSplitterWindow.erl680
-rw-r--r--lib/wx/src/gen/wxStaticBitmap.erl510
-rw-r--r--lib/wx/src/gen/wxStaticBox.erl495
-rw-r--r--lib/wx/src/gen/wxStaticBoxSizer.erl189
-rw-r--r--lib/wx/src/gen/wxStaticLine.erl509
-rw-r--r--lib/wx/src/gen/wxStaticText.erl515
-rw-r--r--lib/wx/src/gen/wxStatusBar.erl625
-rw-r--r--lib/wx/src/gen/wxStdDialogButtonSizer.erl198
-rw-r--r--lib/wx/src/gen/wxStyledTextCtrl.erl3980
-rw-r--r--lib/wx/src/gen/wxStyledTextEvent.erl252
-rw-r--r--lib/wx/src/gen/wxSysColourChangedEvent.erl62
-rw-r--r--lib/wx/src/gen/wxTextAttr.erl253
-rw-r--r--lib/wx/src/gen/wxTextCtrl.erl876
-rw-r--r--lib/wx/src/gen/wxTextDataObject.erl84
-rw-r--r--lib/wx/src/gen/wxTextEntryDialog.erl558
-rw-r--r--lib/wx/src/gen/wxToggleButton.erl512
-rw-r--r--lib/wx/src/gen/wxToolBar.erl919
-rw-r--r--lib/wx/src/gen/wxToolTip.erl85
-rw-r--r--lib/wx/src/gen/wxToolbook.erl698
-rw-r--r--lib/wx/src/gen/wxTopLevelWindow.erl631
-rw-r--r--lib/wx/src/gen/wxTreeCtrl.erl1146
-rw-r--r--lib/wx/src/gen/wxTreeEvent.erl153
-rw-r--r--lib/wx/src/gen/wxTreebook.erl746
-rw-r--r--lib/wx/src/gen/wxUpdateUIEvent.erl219
-rw-r--r--lib/wx/src/gen/wxWindow.erl1708
-rw-r--r--lib/wx/src/gen/wxWindowCreateEvent.erl85
-rw-r--r--lib/wx/src/gen/wxWindowDC.erl264
-rw-r--r--lib/wx/src/gen/wxWindowDestroyEvent.erl85
-rw-r--r--lib/wx/src/gen/wxXmlResource.erl326
-rw-r--r--lib/wx/src/gen/wx_misc.erl216
-rw-r--r--lib/wx/src/gen/wxe_debug.hrl3279
-rw-r--r--lib/wx/src/gen/wxe_funcs.hrl3273
-rw-r--r--lib/wx/src/wx.erl320
-rw-r--r--lib/wx/src/wx_object.erl605
-rw-r--r--lib/wx/src/wxe.hrl55
-rw-r--r--lib/wx/src/wxe_master.erl313
-rw-r--r--lib/wx/src/wxe_server.erl371
-rw-r--r--lib/wx/src/wxe_util.erl201
-rw-r--r--lib/wx/test/Makefile68
-rw-r--r--lib/wx/test/Readme30
-rw-r--r--lib/wx/test/wx.spec2
-rw-r--r--lib/wx/test/wx_basic_SUITE.erl296
-rw-r--r--lib/wx/test/wx_class_SUITE.erl381
-rw-r--r--lib/wx/test/wx_event_SUITE.erl331
-rw-r--r--lib/wx/test/wx_opengl_SUITE.erl182
-rw-r--r--lib/wx/test/wx_test_lib.erl234
-rw-r--r--lib/wx/test/wx_test_lib.hrl110
-rw-r--r--lib/wx/test/wx_xtra_SUITE.erl176
-rwxr-xr-xlib/wx/test/wxt41
-rw-r--r--lib/wx/test/wxt.erl160
-rw-r--r--lib/wx/vsn.mk6
-rw-r--r--lib/wx/wxwin.m4366
394 files changed, 170714 insertions, 0 deletions
diff --git a/lib/wx/AUTHORS b/lib/wx/AUTHORS
new file mode 100644
index 0000000000..c15f1c7cca
--- /dev/null
+++ b/lib/wx/AUTHORS
@@ -0,0 +1,10 @@
+
+Dan Gudmundsson main work.
+
+Matthew Harrison wrote examples, code and helped debugging.
+
+Mats-Ola Persson wrote the the initial <em>wxWidgets</em> binding as
+part of his master thesis.
+
+Olle Mattsson wrote most of the demo in examples.
+
diff --git a/lib/wx/Makefile b/lib/wx/Makefile
new file mode 100644
index 0000000000..83f545b662
--- /dev/null
+++ b/lib/wx/Makefile
@@ -0,0 +1,77 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ./vsn.mk
+include ./config.mk
+SUBDIRS = src
+ifeq ($(CAN_BUILD_DRIVER), true)
+SUBDIRS += c_src
+endif
+SUBDIRS += examples demos doc/src
+CLEANDIRS = $(SUBDIRS) api_gen
+
+ifeq ($(INSIDE_ERLSRC),true)
+# we are inside erl src
+# ----------------------------------------------------
+# Default Subdir Targets
+# ----------------------------------------------------
+SUB_DIRECTORIES=$(SUBDIRS)
+include $(ERL_TOP)/make/otp_subdir.mk
+else
+# we are building standalone wxErlang
+all: opt
+
+opt:
+ @mkdir -p ebin
+ @mkdir -p priv
+ @mkdir -p c_src/$(SYS_TYPE)
+ @for d in $(SUBDIRS); do \
+ if test ! -d $$d ; then \
+ echo "=== Skipping subdir $$d" ; \
+ else \
+ (cd $$d && $(MAKE) $@) ; \
+ fi ; \
+ done
+
+# clean, removes beam, object and target files
+
+clean:
+ rm -f *~
+ @for d in $(CLEANDIRS); do \
+ if test ! -d $$d ; then \
+ echo "=== Skipping subdir $$d" ; \
+ else \
+ (cd $$d && $(MAKE) $@) ; \
+ fi ; \
+ done
+
+docs:
+ (cd doc/src/ && $(MAKE) $@)
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+libdir = @libdir@
+
+install:
+ escript ./install.es $(INSTALLDIR)
+
+release:
+ escript ./install.es --create_release
+
+endif
diff --git a/lib/wx/Notes b/lib/wx/Notes
new file mode 100644
index 0000000000..3f48a3d4fb
--- /dev/null
+++ b/lib/wx/Notes
@@ -0,0 +1,60 @@
+- [Dgud] Added wx_object implementation so user can create callback api
+ as gen_server like process/objects which gets destroyed
+ when the real objects are destroyed.
+- [Dgud] Added clienData to controlWithItems functions
+- [Dgud] Improved error handling, i.e. if 'This' is NULL gives a badarg
+ and connect to non existing event type gives badarg.
+- [Dgud] Added wxCalendarEvent, wx*PickerEvents, wxTreeEvent wxNotebookEvent
+- [Dgud] Added wxStaticLine wxArtProvider wxClipboard
+- [Dgud] Reworked test directory
+- [RichardC] Fixed documentation Makefile
+- [Dgud] Fixed dialyzer warnings (Thanks Kostis)
+ Fixed Bugs in wxBitmap and wxCursor
+- [RichardC] Fixed a lot of warnings in the demos and examples.
+- [Dgud] Fixed the internal event handling so that callbacks,
+ and batch functions can not deadlock by using wxwidgets.
+- [Dgud] **Changed** backwards incompatible:
+ Changed code generator so that enum and defines will be more
+ stable in the future. This requires that your code will have
+ to be recompiled.
+- [HarryH] wxMenuItem:GetBitmap/SetBitmap.
+- [HarryH] Started with the samples, menu.erl
+
+Old: 2008-05-26
+- [Dgud] **Changed** backwards incompatible:
+ wxListBox, wxComboBox wxChoice wxCheckListBox
+ function 'new': to use more optional values.
+- [Dgud] Added Notebook class
+- [Dgud] Added missing append/insert to ctrlWithItems
+- [Dgud] Added CalenderCtrl class
+- [Dgud] Added SizerItem functions
+- [Dgud] Add wxMDI* classes and wxLayoutAlgorithm
+- [Dgud] Added wxWindow:getHandle() -> integer() to be able to
+ use platform dependent 3party libs
+- [Dgud] **Changed** backwards incompatible:
+ #wx.user_data to #wx.userData to conform with wx api.
+- [Dgud] Fixed array of string bugs (in several functions).
+- [Dgud] Added data to command events
+- [Dgud] Added wxList(Ctrl) events
+
+- [Dgud] Fixed installer
+- [Dgud] **Changed** the wxEvtHandler:connect api
+- [Dgud] Fixed an event callback glitch.
+- [Dgud] Removed a memory leak, and optimized the object pointers.
+- [Dgud] Added wxMiniFrame and wxSash classes
+- [Dgud] Added wxStyledTextControl, requires larger binary but is nice
+ for code viewing and editors.
+
+- [Dgud] Printing functionality, test implementation see sudoku demo
+- [Dgud] Added wxHtmlEasyPrinting, and classless functions to module wx_misc
+- [Dgud] Fixed Colors to actually work
+- [Dgud] Fixed enum guard tests
+
+
+- [Dgud] Fixed defines and added some global vars, incompatible
+- [Dgud] Fixed Colors to be {R,G,B,A} everywhere (optional in args)
+- [Dgud] Fixed memory cleaning and xrc (external dialog editor) support
+- [Dgud] Reworked event handling
+- [Dgud] Added GLU module and some functions
+- [Dgud] Fixed statusbar functions.
+- [Dgud] Prefix all records in wx.hrl with wx. \ No newline at end of file
diff --git a/lib/wx/README b/lib/wx/README
new file mode 100644
index 0000000000..e81f16681a
--- /dev/null
+++ b/lib/wx/README
@@ -0,0 +1,77 @@
+
+REQUIREMENTS:
+ At least Erlang-R13B with smp enabled. It Requires unicode support.
+
+ Linux, Mac, Solaris-10 or Windows.
+
+ On linux you will need wxWidgets-2.8 compiled with everything
+ enabled, including unicode and opengl support.
+
+ And I have given up on Solaris-8|9, wxWidgets on my old gtk version
+ doesn't run well, 7 of 10 wxWidgets examples seg fault.
+ Some early tests show that Solaris 10 works, though.
+
+INSTALLING:
+ The prebuilt (windows and mac) version can be installed by invoking:
+ install.es
+ or
+ /PATH/TO/ERL/bin/escript install.es
+
+BUILDING:
+ You will need wxWidgets-2.8.*
+
+ On mac I built wxwidgets with:
+
+ mkdir MYBUILD; cd MYBUILD
+ ../configure --with-opengl --enable-unicode --enable-graphics_ctx \
+ --enable-gnomeprint \ On unix only
+ --disable-shared
+ make && make install
+ cd contrib/src/stc/
+ make && make install
+
+ On linux I have used the wxwidgets-libraries that came with
+ the distribution. It requires wxStyledTextControl which was
+ prebuilt on my linux, otherwise you have to build wxWidgets
+ by your self as on the mac above.
+
+ On windows I used MinGW and Msys, I build wxwidgets with:
+
+ mkdir MYBUILD; cd MYBUILD
+ ../configure --prefix=/c/local/ --with-opengl --enable-graphics_ctx \
+ --enable-unicode --disable-shared --with-msw
+ make && make install
+ cd contrib/src/stc/
+ make && make install
+
+ You should also build wxerlang with msys and mingw since
+ I havn't tested on cygwin at all.
+ You need to use werl on windows, erl (non-gui) hangs wxwidgets startup.
+
+ make
+ should work if erl, gcc and g++ and wx-config is found in path.
+
+
+HELPING:
+ See TODO list.
+ Use it, i.e. write code which tests the library, submit tests.
+ See api_gen/Readme for improving the code generation.
+ My C++ knowledge isn't the best, send patches and explain why
+ so I can learn something.
+
+STATUS:
+ Testing I havn't done more testing than the code in test directory.
+ So please help by testing and writing test suites.
+ Most classes needs some argument tweaking (in wxapi.conf) to
+ work as expected, but I havn't read all the documentation and
+ gone through every argument on every function.
+
+ See (and run) the demo in the examples directory.
+
+ This library is (currently) a driver, so if the you (or I) make errors,
+ such as accessing deleted objects or other things wxWidgets didn't
+ expect you to do, erlang will crash hard.
+
+Cheers
+ Dan Gudmundsson
+
diff --git a/lib/wx/TODO b/lib/wx/TODO
new file mode 100644
index 0000000000..bf5553b9be
--- /dev/null
+++ b/lib/wx/TODO
@@ -0,0 +1,30 @@
+
+Improve documentation.
+
+Fix all fixme's :-)
+
+Makefiles and configure tests
+ Can always be improved, especially mine.
+
+Port programs instead of drivers.
+ Another backend which doesn't crash the emulator during
+ developing/testing or at customer site,
+ Option to wx:new().
+
+Cleanup the code!!!!
+
+Platform specific classes/functions
+ wxPrinterDC for example is mac and windows only.
+
+Add user_data now that erl_driver can unpack term_binaries.
+
+Add missing clases, especially the ones used in the api:
+ wxDropTarget wxXmlResourceHandler wxGLContext
+
+Testing and debugging.
+
+API stuff: (Stuff I've or others have seen that I don't have time to fix right now)
+
+================
+
+Patch wxMac with CGwarpMouseCursorPosition \ No newline at end of file
diff --git a/lib/wx/api_gen/Makefile b/lib/wx/api_gen/Makefile
new file mode 100644
index 0000000000..c6b65b60bc
--- /dev/null
+++ b/lib/wx/api_gen/Makefile
@@ -0,0 +1,74 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+ERLC = erlc
+ERL = erl
+EBIN = .
+
+# make WXGTK_DIR=/wxWidgets-2.8.5/include
+WXGTK_DIR = /usr/include/wx-2.8
+#WXGTK_DIR = /opt/wxgtk2.8.9/include/wx-2.8
+GL_DIR = /usr/include/GL
+
+ERL_COMPILE_FLAGS=+debug_info +warn_unused_vars
+
+COMPILER = gen_util wx_gen wx_gen_erl wx_gen_cpp
+COMPILER_T = $(COMPILER:%=$(EBIN)/%.beam)
+
+GL_COMP = gl_gen gl_gen_erl gl_gen_c
+GL_COMP_T = $(GL_COMP:%=$(EBIN)/%.beam)
+
+TARGET_EDIR = ../src/gen
+TARGET_CDIR = ../c_src/gen
+
+C_TARGETS = wxe_funcs.cpp
+GL_C_TARGETS = gl_funcs.cpp
+
+WX = $(TARGET_CDIR)/$(C_TARGETS)
+
+GL = $(TARGET_CDIR)/$(GL_C_TARGETS)
+
+opt: $(WX) $(GL)
+
+$(WX): wxxml_generated $(COMPILER_T) wxapi.conf $(wildcard wx_extra/wx*.c_src) $(wildcard wx_extra/wx*.erl)
+ erl -noshell -run wx_gen code
+
+wxxml_generated: wx_doxygen.conf wx_extra/bugs.h wx_extra/wxe_evth.h
+ sed -e 's|@WXGTK_DIR@|$(WXGTK_DIR)|g' wx_doxygen.conf > wx_doxygen
+ doxygen wx_doxygen && touch wxxml_generated
+
+glxml_generated: gl_doxygen.conf
+ sed -e 's|@GL_DIR@|$(GL_DIR)|g' gl_doxygen.conf > gl_doxygen
+ doxygen gl_doxygen && touch glxml_generated
+
+
+$(GL): glxml_generated $(GL_COMP_T) glapi.conf
+ erl -noshell -run gl_gen code
+
+%.beam: %.erl wx_gen.hrl gl_gen.hrl
+ $(ERLC) -W $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) $< -o$(EBIN)
+
+# TODO split cleans into separate targets?
+complete_clean:
+ rm -f gl_doxygen wx_doxygen wx_xml/*.x* gl_xml/*.x*
+ rm -f glxml_generated wxxml_generated
+ $(MAKE) clean
+clean:
+ rm -f *~
+ rm -f $(COMPILER_T) $(GL_COMP_T)
+ rm -f wx_extra/*~
diff --git a/lib/wx/api_gen/README b/lib/wx/api_gen/README
new file mode 100644
index 0000000000..3c49f7b2a5
--- /dev/null
+++ b/lib/wx/api_gen/README
@@ -0,0 +1,26 @@
+API GENERATION:
+ Most of the code in wx is generated.
+ Users of wxErlang should not normally need to regenerate the generated code,
+ as it is checked in by wxErlang developers, when changes are made.
+ 2008-09-29 Code checked in is currently generated from wxwidgets 2.8.7.
+
+REQUIREMENTS:
+ The code generation requires doxygen (1.4.6) which is
+ used to parse wxWidgets c++ headers and generate xml files (in
+ wx_xml/).
+
+ (2008-09-29 doxygen 1.4.6 is required.
+ Later versions of Doxygen - up to 1.5.6 at least - have a bug in the xml generation
+ which causes us problems. This has been logged and we are waiting for a fix.)
+
+CONFIGURATION:
+ wxapi.conf contains the specification to the code generator. The code
+ generator reads the specification and parses the xml files and
+ produces the erlang and the 'C' code.
+
+ Adding/changing stuff/classes should be done by updating wxapi.conf
+ and running make. Sometimes the code generator will require changes,
+ I havn't thought of everything yet.
+
+CONTRIBUTION:
+ Send me patches or update the svn version.
diff --git a/lib/wx/api_gen/gen_util.erl b/lib/wx/api_gen/gen_util.erl
new file mode 100644
index 0000000000..d47fd579a5
--- /dev/null
+++ b/lib/wx/api_gen/gen_util.erl
@@ -0,0 +1,246 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%% Some utilities
+
+-module(gen_util).
+-compile(export_all).
+
+lowercase([F|R]) when F >= $A, F =< $Z -> [F+($a-$A)|R];
+lowercase(Str) when is_list(Str) -> Str.
+
+lowercase_all([F|R]) when F >= $A, F =< $Z -> [F+($a-$A)|lowercase_all(R)];
+lowercase_all([F|R]) -> [F|lowercase_all(R)];
+lowercase_all([]) -> [].
+
+uppercase([F|R]) when F >= $a, F =< $z -> [F+($A-$a)|R];
+uppercase(Str) when is_list(Str) -> Str.
+
+uppercase_all([F|R]) when F >= $a, F =< $z -> [F+($A-$a)|uppercase_all(R)];
+uppercase_all([A|R]) -> [A|uppercase_all(R)];
+uppercase_all([]) -> [].
+
+
+strip_name([H|R1],[H|R2]) ->
+ strip_name(R1,R2);
+strip_name(String,[]) -> String.
+
+open_write(File) ->
+ %% io:format("Generating ~s~n",[File]),
+ {ok, Fd} = file:open(File++".temp", [write]),
+ put(current_file, {Fd,File}).
+
+
+close() ->
+ case get(current_file) of
+ undefined ->
+ ok;
+ {closed, File} ->
+ io:format("Closing twice ~s~n",[File]);
+ {Fd,File} ->
+ file:close(Fd),
+ case os:cmd("diff " ++ File ++ " " ++ File ++ ".temp" ++ "| head -30") of
+ [] ->
+ ok = file:delete(File ++ ".temp"),
+ %% So that make understands that we have made this
+ case os:getenv("CLEARCASE_ROOT") of
+ false -> os:cmd("touch " ++ File);
+ _ -> ignore
+ end,
+ ok;
+ Diff ->
+ case check_diff(Diff) of
+ copyright -> %% We ignore copyright changes only
+ ok = file:delete(File ++ ".temp");
+ _ ->
+ io:format("Diff in ~s~n~s ~n", [File, Diff]),
+ case file:rename(File ++ ".temp", File) of
+ ok -> ok;
+ _ ->
+ io:format("***** Failed to save file ~p ~n",[File])
+ end
+ end
+ end,
+ put(current_file, {closed, File})
+ end.
+
+
+check_diff(Diff) ->
+ try
+ [_,D1,_,D2|Tail] = re:split(Diff, "\n"),
+ case Tail of
+ [] -> ok;
+ [<<>>] -> ok;
+ _ -> throw(diff)
+ end,
+ <<_, _, "%% Copyright", _/binary>> = D1,
+ <<_, _, "%% Copyright", _/binary>> = D2,
+ copyright
+ catch
+ throw:_ -> diff;
+ error:{badmatch,_} ->
+ diff;
+ _:What ->
+ io:format("~p:~p: ~p ~p~n", [?MODULE,?LINE, What, erlang:get_stacktrace()]),
+ diff
+ end.
+
+w(Str) ->
+ w(Str, []).
+w(Str,Args) ->
+ {Fd,_} = get(current_file),
+ io:format(Fd, Str, Args).
+
+args(Fun, Limit, List) ->
+ args(Fun, Limit, List, infinity, 0).
+
+args(Fun, Limit, List, Max) ->
+ args(Fun, Limit, List, Max, 0).
+
+args(_Fun, _Limit, [], _Max, _) -> ""; %% No args
+args(Fun, _Limit, [Last], _Max, _Pos) ->
+ case Fun(Last) of
+ skip -> ""; %% FIXME bug if last skips
+ Str -> Str
+ end;
+args(Fun, Limit, [H|R], Max, Pos) ->
+ case Fun(H) of
+ skip -> args(Fun,Limit,R, Max, Pos);
+ Str ->
+ {NL, NewPos} =
+ case length(Str) + Pos of
+ Curr when Curr > Max ->
+ {"\n ", 0};
+ Curr ->
+ {"", Curr}
+ end,
+ case args(Fun,Limit,R, Max, NewPos) of
+ "" -> Str;
+ End -> Str ++ Limit ++ NL ++ End
+ end
+ end.
+
+
+
+
+tokens(S) ->
+ tokens1(S, " \t\r\n(){}*;,@", []).
+tokens(S,Seps) ->
+ tokens1(S, Seps, []).
+
+tokens1([C|S], Seps, Toks) ->
+ case lists:member(C, Seps) of
+ true -> tokens1(S, Seps, [C|Toks]);
+ false -> tokens2(S, Seps, Toks, [C])
+ end;
+tokens1([], _Seps, Toks) ->
+ replace_and_remove(Toks, []).
+
+tokens2([C|S], Seps, Toks, Cs) ->
+ case lists:member(C, Seps) of
+ true -> tokens1(S, Seps, [C, lists:reverse(Cs) |Toks]);
+ false -> tokens2(S, Seps, Toks, [C|Cs])
+ end;
+tokens2([], _Seps, Toks, Cs) ->
+ replace_and_remove([lists:reverse(Cs)|Toks], []).
+
+replace_and_remove([E|R], Acc) when is_list(E) -> %% Keep everything that is a word
+ replace_and_remove(R, [E|Acc]);
+replace_and_remove([$\n | R], Acc) -> %% It is semi line oriented so keep eol
+ replace_and_remove(R, [eol|Acc]);
+replace_and_remove([$( | R], Acc) ->
+ replace_and_remove(R, ["("|Acc]);
+replace_and_remove([$) | R], Acc) ->
+ replace_and_remove(R, [")"|Acc]);
+replace_and_remove([${ | R], Acc) ->
+ replace_and_remove(R, ["{"|Acc]);
+replace_and_remove([$} | R], Acc) ->
+ replace_and_remove(R, ["}"|Acc]);
+replace_and_remove([$| | R], Acc) ->
+ replace_and_remove(R, ["|"|Acc]);
+replace_and_remove([$* | R], Acc) ->
+ replace_and_remove(R, ["*"|Acc]);
+replace_and_remove([$& | R], Acc) ->
+ replace_and_remove(R, [$&|Acc]);
+replace_and_remove([$<,$< | R], Acc) ->
+ replace_and_remove(R, ["<<"|Acc]);
+replace_and_remove([$, | R], Acc) ->
+ replace_and_remove(R, [cont|Acc]);
+replace_and_remove([$; | R], Acc) ->
+ replace_and_remove(R, [eoe|Acc]);
+replace_and_remove([$@ | R], Acc) ->
+ replace_and_remove(R, [directive|Acc]);
+
+replace_and_remove([_E|R], Acc) -> %% Ignore everthing else
+ replace_and_remove(R, Acc);
+replace_and_remove([], Acc) ->
+ Acc.
+
+halt(Reason) ->
+ case process_info(group_leader(), status) of
+ {_,waiting} ->
+ %% Now all output data is down in the driver.
+ %% Give the driver some extra time before halting.
+ receive after 10 -> ok end,
+ erlang:halt(Reason);
+ _ ->
+ %% Probably still processing I/O requests.
+ receive after 20 -> ok end,
+ gen_util:halt(Reason)
+ end.
+
+erl_copyright() ->
+ w("%%~n",[]),
+ w("%% %CopyrightBegin%~n",[]),
+ w("%% ~n",[]),
+ w("%% Copyright Ericsson AB 2008-2009. All Rights Reserved.~n",[]),
+ w("%% ~n",[]),
+ w("%% The contents of this file are subject to the Erlang Public License,~n",[]),
+ w("%% Version 1.1, (the \"License\"); you may not use this file except in~n",[]),
+ w("%% compliance with the License. You should have received a copy of the~n",[]),
+ w("%% Erlang Public License along with this software. If not, it can be~n",[]),
+ w("%% retrieved online at http://www.erlang.org/.~n",[]),
+ w("%% ~n",[]),
+ w("%% Software distributed under the License is distributed on an \"AS IS\"~n",[]),
+ w("%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See~n",[]),
+ w("%% the License for the specific language governing rights and limitations~n",[]),
+ w("%% under the License.~n",[]),
+ w("%% ~n",[]),
+ w("%% %CopyrightEnd%~n",[]).
+
+c_copyright() ->
+ w("/*~n",[]),
+ w(" * %CopyrightBegin%~n",[]),
+ w(" * ~n",[]),
+ w(" * Copyright Ericsson AB 2008-2009. All Rights Reserved.~n",[]),
+ w(" * ~n",[]),
+ w(" * The contents of this file are subject to the Erlang Public License,~n",[]),
+ w(" * Version 1.1, (the \"License\"); you may not use this file except in~n",[]),
+ w(" * compliance with the License. You should have received a copy of the~n",[]),
+ w(" * Erlang Public License along with this software. If not, it can be~n",[]),
+ w(" * retrieved online at http://www.erlang.org/.~n",[]),
+ w(" * ~n",[]),
+ w(" * Software distributed under the License is distributed on an \"AS IS\"~n",[]),
+ w(" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See~n",[]),
+ w(" * the License for the specific language governing rights and limitations~n",[]),
+ w(" * under the License.~n",[]),
+ w(" * ~n",[]),
+ w(" * %CopyrightEnd% ~n",[]),
+ w("*/~n",[]).
+
+
diff --git a/lib/wx/api_gen/gl_doxygen.conf b/lib/wx/api_gen/gl_doxygen.conf
new file mode 100644
index 0000000000..e29a3654b5
--- /dev/null
+++ b/lib/wx/api_gen/gl_doxygen.conf
@@ -0,0 +1,228 @@
+# Doxyfile 1.4.3
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = wxe
+PROJECT_NUMBER = 0.1
+OUTPUT_DIRECTORY = ./
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = NO
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = YES
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+SEPARATE_MEMBER_PAGES = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = YES
+EXTRACT_STATIC = YES
+EXTRACT_LOCAL_CLASSES = YES
+EXTRACT_LOCAL_METHODS = YES
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = NO
+INLINE_INFO = NO
+SORT_MEMBER_DOCS = NO
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= NO
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = YES
+WARNINGS = NO
+WARN_IF_UNDOCUMENTED = NO
+WARN_IF_DOC_ERROR = NO
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = @GL_DIR@/gl.h @GL_DIR@/glext.h @GL_DIR@/glu.h
+#INPUT = /usr/include/GL/gl.h /usr/include/GL/glext.h /usr/include/GL/glu.h
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+USE_HTAGS = NO
+VERBATIM_HEADERS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = NO
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = NO
+TOC_EXPAND = NO
+DISABLE_INDEX = NO
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = NO
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = NO
+RTF_OUTPUT = rtf
+COMPACT_RTF = NO
+RTF_HYPERLINKS = NO
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = YES
+XML_OUTPUT = ./gl_xml/
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = NO
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = \
+ APIENTRY="" \
+ WINGDIAPI="" \
+ GLAPI="" \
+ GL_GLEXT_PROTOTYPES="1"
+
+EXPAND_AS_DEFINED = YES
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = NO
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = NO
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
+
diff --git a/lib/wx/api_gen/gl_gen.erl b/lib/wx/api_gen/gl_gen.erl
new file mode 100644
index 0000000000..91a6a1adbf
--- /dev/null
+++ b/lib/wx/api_gen/gl_gen.erl
@@ -0,0 +1,687 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : gl_gen.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 16 Apr 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(gl_gen).
+
+-export([code/0]).
+
+-include_lib("xmerl/include/xmerl.hrl").
+-include("gl_gen.hrl").
+
+-import(lists, [foldl/3,foldr/3,reverse/1,reverse/2,keysearch/3,map/2,filter/2]).
+-import(proplists, [get_value/2,get_value/3]).
+
+-import(gen_util,[uppercase_all/1]).
+
+-compile(export_all).
+
+code() -> safe(fun gen_code/0,true).
+
+devcode() -> spawn(fun() -> safe(fun gen_code/0,false) end).
+
+safe(What, QuitOnErr) ->
+ try
+ What(),
+ io:format("Completed succesfully~n~n", []),
+ QuitOnErr andalso gen_util:halt(0)
+ catch Err:Reason ->
+ catch gen_util:close(),
+ io:format("Error ~p: ~p:~p~n ~p~n",
+ [get(current_func),Err,Reason,erlang:get_stacktrace()]),
+ timer:sleep(1999),
+ QuitOnErr andalso gen_util:halt(1)
+ end.
+
+gen_code() ->
+ {ok, Opts0} = file:consult("glapi.conf"),
+ erase(func_id),
+ Opts = init_defs(Opts0),
+ GLUDefs = parse_glu_defs(Opts),
+ GLDefs = parse_gl_defs(Opts),
+ {GLUDefines,GLUFuncs} = setup(GLUDefs, Opts),
+ {GLDefines,GLFuncs} = setup(GLDefs, Opts),
+ gl_gen_erl:glu_defines(GLUDefines),
+ gl_gen_erl:glu_api(GLUFuncs),
+
+ gl_gen_erl:gl_defines(GLDefines),
+ gl_gen_erl:gl_api(GLFuncs),
+ gl_gen_erl:gen_debug(GLFuncs,GLUFuncs),
+ gl_gen_c:gen(GLFuncs,GLUFuncs),
+ ok.
+
+init_defs(Opts0) ->
+ Opts0.
+
+parse_glu_defs(Opts0) ->
+ All = foldl(fun(File, Acc) -> load_file(File,Opts0,Acc) end, [], ["glu"]),
+ reverse(All).
+
+parse_gl_defs(Opts0) ->
+ All = foldl(fun(File, Acc) -> load_file(File,Opts0,Acc) end, [], ["gl","glext"]),
+ reverse(All).
+
+load_file(FileName, Opts, Acc) ->
+ File = filename:join(["gl_xml",FileName ++ "_8h.xml"]),
+ put({loaded, FileName}, true),
+ case xmerl_scan:file(File, [{space, normalize}]) of
+ {error, enoent} ->
+ io:format("Skipped File not found ~p ~n", [File]),
+ Acc;
+ {Doc, _} ->
+ io:format("Scanning ~p ~n", [File]),
+ %% It's duplicated in xml get sectiondef only once.
+ Content = find_data(Doc#xmlElement.content),
+ lists:foreach(fun(D) -> extract_argnames(D) end, Content),
+ foldl(fun(Data,Acc0) -> parse_file(Data, Opts, Acc0) end,
+ Acc, Content)
+ end.
+
+extract_argnames(#xmlElement{name=memberdef,attributes=Attr,content=C}) ->
+ case keysearch(kind, #xmlAttribute.name, Attr) of
+ {value, #xmlAttribute{value = "typedef"}} ->
+ parse_typedef(C,undefined);
+ _ ->
+ ok
+ end;
+extract_argnames(_) -> ok.
+
+parse_typedef([#xmlElement{name=argsstring,content=[#xmlText{value=AS}]}|R],_) ->
+ parse_typedef(R,AS);
+parse_typedef([#xmlElement{name=name}|_],undefined) ->
+ skip;
+parse_typedef([#xmlElement{name=name,content=[#xmlText{value=N}]}|_],AS) ->
+ Args0 = string:tokens(AS," ,()*[]"),
+ try
+ Args = get_arg_names(Args0),
+ put({typedef,string:strip(N)},Args)
+ catch _:Where ->
+ io:format("Error ~p: ~p ~p~n", [N,Args0,Where]),
+ ?error(arg_names)
+ end;
+parse_typedef([_|R],AS) ->
+ parse_typedef(R,AS);
+parse_typedef([],_) -> skip.
+
+get_arg_names(As0) ->
+ Args = lists:filter(fun("const") -> false; (_) -> true end, As0),
+ get_arg_names(Args, []).
+
+get_arg_names([_Type,Name|R],Acc) ->
+ get_arg_names(R, [Name|Acc]);
+get_arg_names([],Acc) -> reverse(Acc);
+get_arg_names(["void"],[]) -> [];
+get_arg_names(Error,_Acc) -> exit(Error).
+
+%% Avoid bugs in (old) doxygen..the new one doesn't have 'em
+find_data([#xmlElement{name=compounddef, content=C}|_]) -> find_data(C);
+find_data([#xmlElement{name=sectiondef, attributes=Attr, content=C}|R]) ->
+ case keysearch(kind, #xmlAttribute.name, Attr) of
+ {value, _} -> %% The new one have func define typedef
+ find_data(R) ++ C;
+ false ->
+ C
+ end;
+find_data([_Hmm|R]) ->
+%% case _Hmm of
+%% #xmlElement{} ->
+%% io:format("0 ~p ~n",[_Hmm#xmlElement.name]);
+%% _ ->
+%% ok
+%% end,
+ find_data(R);
+find_data([]) -> [].
+
+parse_file(#xmlElement{name=memberdef,attributes=Attr, content=C}, Opts, Acc) ->
+ case keysearch(kind, #xmlAttribute.name, Attr) of
+ {value, #xmlAttribute{value = "function"}} ->
+ try
+ Def = parse_func(C, Opts),
+ [Def|Acc]
+ catch throw:skip -> Acc
+ after erase(current_func)
+ end;
+ {value, #xmlAttribute{value = "define"}} ->
+ try
+ Def = parse_define(C, #def{}, Opts),
+ [Def|Acc]
+ catch throw:skip -> Acc
+ end;
+ {value, #xmlAttribute{value = "typedef"}} ->
+ Acc;
+ _W ->
+ io:format("Hmm ~p~n",[_W]),
+ Acc
+ end;
+parse_file(_Hmm,_,Acc) ->
+ Acc.
+
+parse_define([#xmlElement{name=name,content=[#xmlText{value="API" ++ _}]}|_],_Def,_Os) ->
+ throw(skip);
+parse_define([#xmlElement{name=name,content=[#xmlText{value="GLAPI"++_}]}|_],_Def,_Os) ->
+ throw(skip);
+parse_define([#xmlElement{name=name,content=[#xmlText{value="WINGDIAPI"++_}]}|_],_Def,_Os) ->
+ throw(skip);
+parse_define([#xmlElement{name=name,content=[#xmlText{value=Name}]}|R], Def, Os) ->
+ parse_define(R, Def#def{name=Name}, Os);
+parse_define([#xmlElement{name=initializer,content=[#xmlText{value=V}]}|_],Def,_Os) ->
+ Val0 = string:strip(V),
+ try
+ case Val0 of
+ "0x" ++ Val1 ->
+ Val = http_util:hexlist_to_integer(Val1),
+ Def#def{val=Val, type=hex};
+ _ ->
+ Val = list_to_integer(Val0),
+ Def#def{val=Val, type=int}
+ end
+ catch _:_ ->
+ Def#def{val=Val0, type=string}
+ end;
+parse_define([_|R], D, Opts) ->
+ parse_define(R, D, Opts);
+parse_define([], D, _Opts) ->
+ D.
+
+parse_func(Xml, Opts) ->
+ {Func,_} = foldl(fun(X,Acc) -> parse_func(X,Acc,Opts) end, {#func{},1}, Xml),
+ #func{params=Args0,type=Type0} = Func,
+ Args = filter(fun(#arg{type=void}) -> false; (_) -> true end, Args0),
+ #arg{type=Type} =
+ patch_param(Func#func.name,#arg{name="result",type=Type0},Opts),
+ Func#func{params=reverse(Args), type=Type}.
+
+parse_func(#xmlElement{name=type, content=C}, {F,AC}, Os) ->
+ Type = parse_type(drop_empty(C), Os),
+ {F#func{type=Type},AC};
+parse_func(#xmlElement{name=name, content=[#xmlText{value=C}]},{F,AC},Os) ->
+ Func = string:strip(C),
+ put(current_func, Func),
+ {F#func{name=name(Func,Os)},AC};
+parse_func(#xmlElement{name=param, content=C},{F,AC},Os) ->
+ Parse = fun(Con, Ac) -> parse_param(Con, Ac, Os) end,
+ Param0 = foldl(Parse, #arg{}, drop_empty(C)),
+ Param = fix_param_name(Param0, F, AC),
+ {add_param(Param, Os, F),AC+1};
+parse_func(_, F,_) ->
+ F.
+
+fix_param_name(A=#arg{name=undefined,type=T},#func{name=Func},Count) ->
+ TDName = "PFN" ++ uppercase_all(Func) ++ "PROC",
+ case get({typedef,TDName}) of
+ undefined when T == void ->
+ A;
+ undefined ->
+ io:format("Didn't find typedef for: ~s~n", [TDName]),
+ exit(aargh);
+ AS ->
+ try A#arg{name = lists:nth(Count, AS)}
+ catch _:_ -> A
+ end
+ end;
+fix_param_name(A,_,_) -> A.
+
+parse_param(#xmlElement{name=type,content=C}, Arg, Os) ->
+ Arg#arg{type=parse_type(drop_empty(C),Os)};
+parse_param(#xmlElement{name=declname,content=[C]},Arg,_Os) ->
+ #xmlText{value=Name} = C,
+ Arg#arg{name=Name};
+parse_param(#xmlElement{name=array,content=[#xmlText{value=C}]},
+ Arg=#arg{type=Type0},_Os) ->
+ try
+ [Int] = string:tokens(C, "[] "),
+ Val = list_to_integer(Int),
+ Arg#arg{type=Type0#type{single={tuple,Val}, by_val=true}}
+ catch _:_ ->
+ ?warning("Undefined Array size ~p in ~p ~p~n",
+ [Arg, get(current_func), C]),
+ Arg#arg{type=Type0#type{single={tuple,undefined}, by_val=true}}
+ end;
+
+%% Skip these
+parse_param(#xmlElement{name=definition}, Arg, _) -> Arg;
+parse_param(#xmlElement{name=argsstring}, Arg,_) -> Arg;
+parse_param(#xmlElement{name=briefdescription}, Arg,_) -> Arg;
+parse_param(#xmlElement{name=detaileddescription}, Arg,_) -> Arg;
+parse_param(#xmlElement{name=inbodydescription}, Arg,_) -> Arg;
+parse_param(#xmlElement{name=location}, Arg,_) -> Arg;
+parse_param(Other, Arg,_) ->
+ io:format("Unhandled Param ~p ~n in ~p~n", [Other,Arg]),
+ ?error(unhandled_param).
+
+add_param(Arg0=#arg{type=T0}, Opts, F=#func{name=Name,params=Args}) ->
+ Arg = case T0 of
+%% #type{mod=[const],ref={pointer,1},name="GLubyte"} ->
+%% Arg0#arg{type=T0#type{base=binary}};
+ #type{mod=[const]} -> Arg0; %% In is true default
+ #type{ref={pointer,_}} -> Arg0#arg{in=false,
+ type=T0#type{single=undefined}};
+ _ -> Arg0
+ end,
+ Patched = patch_param(Name,Arg,Opts),
+ F#func{params=[Patched|Args]}.
+
+patch_param(Method,P = #arg{name=ArgName},AllOpts) ->
+ %%io:format("~p ~n", [Method]),
+ case lookup(Method,AllOpts,undefined) of
+ undefined -> P;
+ What ->
+ %% io:format("~p ~p => ~p~n", [Method, ArgName, What]),
+ case What of
+ {ArgName,Fopt} when is_list(Fopt) ->
+ foldl(fun handle_arg_opt/2,P,Fopt);
+ {ArgName,Fopt} ->
+ handle_arg_opt(Fopt,P);
+ {_,_} -> P;
+ Opts when is_list(Opts) ->
+ case get_value(ArgName, Opts, undefined) of
+ undefined -> P;
+ List when is_list(List) ->
+ foldl(fun handle_arg_opt/2,P,List);
+ Val ->
+ handle_arg_opt(Val,P)
+ end
+ end
+ end.
+
+handle_arg_opt(skip, P) -> P#arg{where=c};
+%%handle_arg_opt(nowhere, P) -> P#arg{where=nowhere};
+%%handle_arg_opt(skip_member, _P) -> throw(skip_member);
+handle_arg_opt(in, P) -> P#arg{in=true};
+handle_arg_opt(out, P) -> P#arg{in=false};
+handle_arg_opt(both, P) -> P#arg{in=both};
+handle_arg_opt(binary, P=#arg{type=T}) ->
+ P#arg{type=T#type{size=undefined,base=binary}};
+handle_arg_opt({binary,Sz}, P=#arg{type=T}) ->
+ P#arg{type=T#type{size=Sz,base=binary}};
+handle_arg_opt({type,Type}, P=#arg{type=T}) -> P#arg{type=T#type{name=Type}};
+handle_arg_opt({single,Opt},P=#arg{type=T}) -> P#arg{type=T#type{single=Opt}};
+handle_arg_opt({base,Opt}, P=#arg{type=T}) -> P#arg{type=T#type{base=Opt}};
+handle_arg_opt({c_only,Opt},P) -> P#arg{where=c, alt=Opt}.
+
+parse_type([], _Os) -> void;
+parse_type(C, Os) ->
+ {Type,_Info} = foldl(fun extract_type_info/2,{[],undefined},C),
+ Empty = #type{},
+ case parse_type2(reverse(Type),Empty,Os) of
+ Empty -> ?error({strange_type, Type});
+ Assert -> Assert
+ end.
+
+extract_type_info(#xmlText{value=Value}, {Acc, Info}) ->
+ {reverse(foldl(fun extract_type_info2/2, [],
+ string:tokens(Value, " "))) ++ Acc, Info};
+extract_type_info(#xmlElement{name=ref,attributes=As,
+ content=[#xmlText{value=V}]},
+ {Acc,undefined}) ->
+ {value, #xmlAttribute{value = Refid}} =
+ keysearch(refid,#xmlAttribute.name,As),
+ {value, #xmlAttribute{value = Kind}} =
+ keysearch(kindref,#xmlAttribute.name,As),
+ {reverse(foldl(fun extract_type_info2/2, [],
+ string:tokens(V, " "))) ++ Acc,
+ {Kind,Refid}};
+extract_type_info(What,Acc) ->
+ ?error({parse_error,What,Acc}).
+
+extract_type_info2("const",Acc) -> [const|Acc];
+extract_type_info2("*", [{by_ref,{pointer,N}}|Acc]) ->
+ [{by_ref,{pointer,N+1}}|Acc];
+extract_type_info2("*", Acc) -> [{by_ref,{pointer,1}}|Acc];
+extract_type_info2("**", Acc) -> [{by_ref,{pointer,2}}|Acc];
+extract_type_info2(Type, Acc) -> [Type|Acc].
+
+parse_type2(["void"], _T, _Opts) -> void;
+parse_type2([N="void"|R], T, Opts) ->
+ parse_type2(R,T#type{name=N},Opts);
+parse_type2([const|R],T=#type{mod=Mod},Opts) ->
+ parse_type2(R,T#type{mod=[const|Mod]},Opts);
+parse_type2(["unsigned"|R],T=#type{mod=Mod},Opts) ->
+ parse_type2(R,T#type{mod=[unsigned|Mod]},Opts);
+parse_type2([N="GLenum"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4, base=int},Opts);
+parse_type2([N="GLboolean"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=1, base=bool},Opts);
+parse_type2([N="GLbitfield"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4, base=int},Opts);
+parse_type2([N="GLvoid"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, base=idx_binary},Opts);
+
+parse_type2([N="GLbyte"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=1, base=int},Opts);
+parse_type2([N="GLubyte"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=1, base=int},Opts);
+parse_type2([N="GLshort"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=2, base=int},Opts);
+parse_type2([N="GLushort"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=2, base=int},Opts);
+parse_type2([N="GLint"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4, base=int},Opts);
+parse_type2([N="GLuint"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4, base=int},Opts);
+parse_type2([N="GLsizei"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4, base=int},Opts);
+
+parse_type2([N="GLfloat"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4,base=float},Opts);
+parse_type2([N="GLdouble"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=8,base=float},Opts);
+parse_type2([N="GLclampf"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=4,base=float},Opts);
+parse_type2([N="GLclampd"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=8,base=float},Opts);
+parse_type2([N="GLhandleARB"|R],T,Opts) ->
+ parse_type2(R,T#type{name=N, size=8,base=int},Opts);
+parse_type2(["GLchar" ++ _ARB|R],T,Opts) ->
+ parse_type2(R,T#type{name="GLchar",size=1,base=string},Opts);
+parse_type2(["GLUquadric"|R],T,Opts) ->
+ parse_type2(R,T#type{name="GLUquadric",size=8,base=int},Opts);
+parse_type2(["GLintptr" ++ _ARB|R],T,Opts) ->
+ parse_type2(R,T#type{name="GLintptr",size=8,base=int},Opts);
+parse_type2(["GLsizeiptr" ++ _ARB|R],T,Opts) ->
+ parse_type2(R,T#type{name="GLsizeiptr",size=8,base=int},Opts);
+
+parse_type2([{by_ref,Ref}|R],T,Opts) ->
+ parse_type2(R,T#type{ref=Ref,by_val=false},Opts);
+
+%% Let type errors be seen later because we don't know if these unhandled types
+%% will be used.
+parse_type2(_A = [Name|R],T,Opts) ->
+%% io:format("unhandled ~p ~p ~n",[_A,T]),
+ New = T#type{name={unhandled,Name,get(current_func)}},
+ parse_type2(R,New,Opts);
+parse_type2([], T, _) -> T.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Function mangling %%
+
+setup(Defs,Opts) ->
+ {Fs0,Ds0} =
+ foldr(fun(F=#func{name=N},{Fs,Ds}) ->
+ case put(N,F) of
+ undefined ->
+ {[N|Fs],Ds};
+ _ -> %% Duplicate
+ {Fs,Ds}
+ end;
+ (D=#def{}, {Fs,Ds}) ->
+ {Fs,[D|Ds]}
+ end, {[],[]}, Defs),
+ Fs = setup_functions(Fs0,Opts,[]),
+ erase(current_func),
+ %% Remove duplicates but keep order
+ {Ds,_} = foldl(fun(D=#def{name=Name},{Keep,Defined}) ->
+ case gb_sets:is_member(Name,Defined) of
+ true -> {Keep,Defined};
+ false -> {[D|Keep],gb_sets:add(Name,Defined)}
+ end
+ end, {[],gb_sets:empty()}, Ds0),
+ {reverse(Ds),Fs}.
+
+setup_functions([F0|Defs],Opts,Acc) ->
+ put(current_func, F0),
+ {Name, Ext} = get_extension(F0,Opts),
+ %%io:format("~p = ~p + ~p~n", [F0, Name, Ext]),
+ Skip = (not keep(F0,Opts)) andalso (skip(F0,Opts) orelse skip(Ext,Opts)),
+ case Skip of
+ true ->
+ setup_functions(Defs,Opts,Acc);
+ false ->
+ case setup_extension(Name,Ext,Opts) of
+ skip ->
+ setup_functions(Defs,Opts,Acc);
+ New ->
+ setup_functions(Defs,Opts,[New|Acc])
+ end
+ end;
+setup_functions([],_, Acc) -> reverse(Acc).
+
+setup_extension(Name,"",Opts) ->
+ setup_vector_variant(Name,"",Opts);
+setup_extension(Name,Ext,Opts) ->
+ case get(Name) of
+ undefined ->
+ setup_vector_variant(Name,Ext,Opts);
+ OrigF = #func{} ->
+ F = get(Name++Ext),
+ case is_equal(F,OrigF) of
+ true ->
+ put(Name, OrigF#func{ext={ext,Ext}}),
+ skip;
+ _ ->
+ setup_vector_variant(Name,Ext,Opts)
+ end
+ end.
+
+setup_vector_variant(Name,Ext,Opts) ->
+ case reverse(Name) of
+ [$v|NoVec] -> %% Hmm might be a vector version
+ RealName = reverse(NoVec,Ext),
+ case get(RealName) of
+ undefined ->
+ setup_idx_binary(Name,Ext,Opts);
+ Real = #func{} ->
+ verify_args(Name,Ext,Real,RealName,Opts)
+ end;
+ _ ->
+ setup_idx_binary(Name,Ext,Opts)
+ end.
+
+verify_args(Name,Ext,Real = #func{params=RAs},RealName,Opts) ->
+ FuncName = Name ++ Ext,
+ Vector = #func{params=Args} = get(FuncName),
+ case is_vector(Name,Opts) of
+ false ->
+ Check = fun(#arg{type=#type{name=Type}},Acc) ->
+ if Type =:= Acc -> Acc;
+ Acc =:= undefined -> Type;
+ true -> different
+ end
+ end,
+ case foldl(Check,undefined,RAs) of
+ different ->
+ setup_idx_binary(Name,Ext,Opts);
+ undefined ->
+ setup_idx_binary(Name,Ext,Opts);
+ _ when length(Args) =/= 1 ->
+ setup_idx_binary(Name,Ext,Opts);
+ _Type ->
+ put(FuncName,Vector#func{where=erl,alt={vector,0,RealName}}),
+ put(RealName,Real#func{alt={has_vector,0,FuncName}}),
+ Name++Ext
+ end;
+ VecPos ->
+ put(FuncName,Vector#func{where=erl,alt={vector,VecPos,RealName}}),
+ put(RealName,Real#func{alt={has_vector,VecPos,FuncName}}),
+ Name++Ext
+ end.
+
+is_vector(Name, Opts) ->
+ Vecs = get_value(vector, Opts, []),
+ lookup(Name, Vecs, false).
+
+lookup(Name,[{Vector, VecPos}|R],Def) when is_list(Vector) ->
+ case lists:prefix(Vector,Name) of
+ true ->
+ %% VecPos;
+ %%io:format("~s ~s => ~p ~n", [Vector,Name,VecPos]),
+ case Vector == Name of
+ true ->
+ VecPos;
+ false -> %% Look for exactly the correct Name
+ case lookup(Name,R,Def) of
+ Def -> VecPos;
+ Other -> Other
+ end
+ end;
+ false -> lookup(Name,R, Def)
+ end;
+lookup(Name,[_|R],Def) ->
+ lookup(Name,R,Def);
+lookup(_,[], Def) -> Def.
+
+setup_idx_binary(Name,Ext,_Opts) ->
+ FuncName = Name ++ Ext,
+ Func = #func{params=Args} = get(FuncName),
+ Id = next_id(function),
+
+ %% Ok warn if single is undefined
+ lists:foreach(fun(#arg{type=#type{base=memory}}) -> ok;
+ (#arg{type=#type{base=idx_binary}}) -> ok;
+ (#arg{type=#type{name="GLUquadric"}}) -> ok;
+ (A=#arg{type=#type{single=undefined}}) ->
+ ?warning("~p Unknown size of~n ~p~n",
+ [get(current_func),A]),
+ io:format("{~p, {~p, }}.~n",
+ [get(current_func),A#arg.name]),
+ ok;
+ (_) -> ok
+ end, Args),
+
+ case setup_idx_binary(Args, []) of
+ ignore ->
+ put(FuncName, Func#func{id=Id}),
+ Name++Ext;
+ {bin, A1,A2} ->
+ put(FuncName, Func#func{id=Id,params=A1}),
+ Extra = FuncName++"Bin",
+ put(Extra, Func#func{params=A2, id=next_id(function)}),
+ [FuncName,Extra];
+ {matrix, A1,A2} ->
+ put(FuncName, Func#func{id=Id,params=A2}),
+ Extra = FuncName++"Matrix",
+ put(Extra, Func#func{where=erl, params=A1, id=Id}),
+ [FuncName,Extra]
+ end.
+
+setup_idx_binary([A=#arg{in=true,type=T=#type{base=idx_binary}}|R], Acc) ->
+ A1 = A#arg{type=T#type{base=guard_int,size=4}},
+ A2 = A#arg{type=T#type{base=binary}},
+ Head = reverse(Acc),
+ case setup_idx_binary(R, []) of
+ ignore ->
+ {bin, Head ++ [A1|R], Head ++ [A2|R]};
+ {bin, R1,R2} ->
+ {bin, Head ++ [A1|R1], Head ++ [A2|R2]}
+ end;
+setup_idx_binary([A=#arg{in=true,type=T=#type{single={tuple,matrix}}}|R], Acc) ->
+ A1 = A#arg{type=T#type{single={tuple, matrix12}}},
+ A2 = A#arg{type=T#type{single={tuple, 16}}},
+ Head = reverse(Acc),
+ case setup_idx_binary(R, []) of
+ ignore ->
+ {matrix, Head ++ [A1|R], Head ++ [A2|R]};
+ {matrix, R1,R2} ->
+ {matrix, Head ++ [A1|R1], Head ++ [A2|R2]}
+ end;
+setup_idx_binary([H|R],Acc) ->
+ setup_idx_binary(R,[H|Acc]);
+setup_idx_binary([],_) -> ignore.
+
+is_equal(F1=#func{type=T1,params=A1},F2=#func{type=T2,params=A2}) ->
+ Equal = is_equal_type(T1,T2) andalso is_equal_args(A1,A2),
+ case Equal of
+ true -> ok;
+ false ->
+ %% io:format("A1: ~p~nA2: ~p~n",[A1,A2]),
+ ?warning("Skipped Ext Not Equal ~p ~p~n",
+ [F1#func.name,F2#func.name])
+ end,
+ Equal.
+
+is_equal_args([],[]) -> true;
+is_equal_args([_A1=#arg{type=T1}|A1s],[_A2=#arg{type=T2}|A2s]) ->
+ case is_equal_type(T1,T2) of
+ true -> is_equal_args(A1s,A2s);
+ false ->
+ %%io:format("Diff~n ~p~n ~p ~n~n", [_A1,_A2]),
+ false
+ end.
+
+is_equal_type(T,T) -> true;
+is_equal_type(#type{name="GLcharARB"},#type{name="GLchar"}) -> true;
+%%is_equal_type(#type{name="GLhandleARB"},#type{name="GLuint"}) -> true;
+is_equal_type(#type{name="GLenum"},#type{name="GLuint"}) -> true;
+is_equal_type(#type{name="GLenum"},#type{name="GLint"}) -> true;
+is_equal_type(#type{base=idx_binary},#type{base=guard_int}) -> true;
+is_equal_type(#type{base=idx_binary},#type{base=memory}) -> true;
+is_equal_type(#type{single={tuple,matrix}},#type{single={tuple,matrix12}}) -> true;
+is_equal_type(#type{base=B,single=S,name=N,size=Sz},
+ #type{base=B,single=S,name=N,size=Sz}) -> true;
+is_equal_type(_,_) -> false.
+
+skip(Name,Opts) ->
+ Skip = get_value(skip, Opts, []),
+ lists:any(fun(Prefix) -> lists:prefix(Prefix,Name) end, Skip).
+
+keep(Name,Opts) ->
+ Skip = get_value(keep, Opts, []),
+ lists:any(fun(Prefix) -> lists:prefix(Prefix,Name) end, Skip).
+
+get_extension(ExtName,_Opts) ->
+ case reverse(ExtName) of
+ "BRA" ++ Name -> {reverse(Name),"ARB"};
+ "TXE" ++ Name -> {reverse(Name),"EXT"};
+ "ASEM" ++ Name -> {reverse(Name),"MESA"};
+ "ITA" ++ Name -> {reverse(Name),"ATI"};
+ "DMA" ++ Name -> {reverse(Name),"AMD"};
+ "VN" ++ Name -> {reverse(Name),"NV"}; %Nvidia
+ "ELPPA"++ Name -> {reverse(Name),"APPLE"};
+ "LETNI"++ Name -> {reverse(Name),"INTEL"};
+ "NUS" ++ Name -> {reverse(Name),"SUN"};
+ "XNUS" ++ Name -> {reverse(Name),"SUNX"};
+ "IGS" ++ Name -> {reverse(Name),"SGI"};
+ "SIGS" ++ Name -> {reverse(Name),"SGIS"};
+ "XIGS" ++ Name -> {reverse(Name),"SGIX"};
+ "XFD3" ++ Name -> {reverse(Name),"3DFX"};
+ "MBI" ++ Name -> {reverse(Name),"IBM"};
+ "RGNI" ++ Name -> {reverse(Name),"INGR"};
+ "IGP" ++ Name -> {reverse(Name),"PGI"};
+ "PH" ++ Name -> {reverse(Name),"HP"};
+ "YDEMERG" ++ Name -> {reverse(Name),"GREMEDY"};
+ %%["" ++ Name] -> {Name; %%
+ _ -> {ExtName, ""}
+ end.
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+drop_empty(List) ->
+ filter(fun(#xmlText { value = Text}) ->
+ string:strip(Text) =/= "";
+ (_)->
+ true
+ end, List).
+
+name(Name, _Opts) -> Name.
+
+next_id(What) ->
+ Next = case get(What) of
+ undefined -> 5010; %% Opengl
+ N -> N+1
+ end,
+ put(What, Next),
+ Next.
diff --git a/lib/wx/api_gen/gl_gen.hrl b/lib/wx/api_gen/gl_gen.hrl
new file mode 100644
index 0000000000..0eef69b817
--- /dev/null
+++ b/lib/wx/api_gen/gl_gen.hrl
@@ -0,0 +1,41 @@
+
+-record(func,
+ {
+ name = undefined, % real name
+ type = void, % method type
+ params = [], % arguments to the function
+ where = both, % C code and/or erlang
+ id = undefined, % Integer
+ alt = undefined, % Function alternative
+ ext = undefined % Have ARB or other extension
+ }
+ ).
+
+-record(arg,
+ {
+ name = undefined,
+ type = undefined,
+ in = true,
+ where = both, % both in c and erl or only in either
+ alt = undefined
+ }).
+
+-record(type,
+ {
+ name = undefined, % typename
+ base = undefined, % basename int, char, float ..
+ size = 4, % in bytes
+ by_val = true, % or false = by_ref
+ single = true, % Single or array (list)
+ ref = undefined, % {pointer, N}
+ mod = [] % const ...
+ }
+ ).
+
+-record(def, {name, val, type}). %% type=hex, int, string
+
+-define(error(What),
+ erlang:error({{?MODULE,?LINE},{get(current_func)},What})).
+
+-define(warning(Str,Args),
+ io:format("~p:~p Warning:"++Str, [?MODULE,?LINE] ++ Args)).
diff --git a/lib/wx/api_gen/gl_gen_c.erl b/lib/wx/api_gen/gl_gen_c.erl
new file mode 100644
index 0000000000..5c72499790
--- /dev/null
+++ b/lib/wx/api_gen/gl_gen_c.erl
@@ -0,0 +1,596 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : gl_gen_c.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 25 Apr 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-module(gl_gen_c).
+-compile(export_all).
+
+-include("gl_gen.hrl").
+
+-import(lists, [foldl/3,foldr/3,reverse/1, keysearch/3, map/2, filter/2, max/1]).
+-import(gen_util, [lowercase/1, lowercase_all/1, uppercase/1, uppercase_all/1,
+ open_write/1, close/0, c_copyright/0, w/2,
+ args/3, strip_name/2]).
+-import(wx_gen, [next_id/1]).
+
+
+gen(GLFuncs, GLUFuncs) ->
+ gen_defines(GLFuncs,GLUFuncs),
+ gl_gen_init(GLFuncs),
+ glu_gen_init(GLUFuncs),
+
+ %% Marshal funcs
+ open_write("../c_src/gen/gl_funcs.cpp"),
+ c_copyright(),
+ w("/***** This file is generated do not edit ****/ ~n~n", []),
+ w("#include <stdio.h>~n", []),
+ w("#include <string.h>~n", []),
+ w("#include \"../wxe_impl.h\"~n", []),
+ w("#include \"../wxe_gl.h\"~n", []),
+ w("#include \"gl_fdefs.h\"~n", []),
+
+ w("~nint gl_error_op;~n", []),
+ w("void gl_dispatch(int op, char *bp,ErlDrvTermData caller,WXEBinRef *bins[]){~n",
+ []),
+ w(" gl_error_op = op;~n", []),
+ w(" if(caller != gl_active) {~n", []),
+ w(" wxGLCanvas * current = glc[caller];~n", []),
+ w(" if(current) { gl_active = caller; current->SetCurrent();}~n", []),
+ w(" else {~n "
+ " ErlDrvTermData rt[] = // Error msg~n"
+ " {ERL_DRV_ATOM, driver_mk_atom((char *) \"_wxe_error_\"),~n"
+ " ERL_DRV_INT, op,~n"
+ " ERL_DRV_ATOM, driver_mk_atom((char *) \"no_gl_context\"),~n"
+ " ERL_DRV_TUPLE,3};~n"
+ " driver_send_term(WXE_DRV_PORT,caller,rt,8);~n"
+ " return ;~n }~n };~n~n", []),
+
+ w(" switch(op) ~n{~n",[]),
+ w(" case 5000: ~n wxe_tess_impl(bp, caller); ~n break;~n", []),
+ w(" case WXE_BIN_INCR:~n driver_binary_inc_refc(bins[0]->bin);~n break;~n",[]),
+ w(" case WXE_BIN_DECR:~n driver_binary_dec_refc(bins[0]->bin);~n break;~n",[]),
+
+ [funcs(F) || F <- GLUFuncs],
+ [funcs(F) || F <- GLFuncs],
+
+ w("}} /* The End */~n~n",[]),
+
+ close().
+
+funcs([F1|Fs]) when is_list(F1) ->
+ put(current_func,F1),
+ func(get(F1)),
+ erase(current_func),
+ funcs(Fs);
+funcs([]) -> ok;
+funcs(F) ->
+ put(current_func,F),
+ func(get(F)),
+ erase(current_func).
+
+func(#func{where=erl}) -> ok;
+func(#func{id=Id,alt={has_vector,_,FuncName}}) ->
+ #func{name=Name,type=T,params=As} = get(FuncName),
+ w("case ~p: { // ~s ~n", [Id,Name]),
+ put(bin_count,-1),
+ As1 = declare_vars(T, As),
+ As2 = decode_args(As1),
+ As3 = call_gl(Name,T,As2),
+ build_return_vals(T,As3),
+ free_args(),
+ w("}; break; ~n", []);
+func(#func{name=Name,id=Id,type=T,params=As,alt=_Alt}) ->
+ w("case ~p: { // ~s ~n", [Id,Name]),
+ put(bin_count,-1),
+ As2 = decode_args(As),
+ declare_vars(T, As), %% Unusal order but it's c++
+ As3 = call_gl(Name,T,As2),
+ build_return_vals(T,As3),
+ free_args(),
+ w("}; break; ~n", []).
+
+declare_vars(void,Ps) ->
+ [declare_var(P) || P <- Ps];
+declare_vars(T, Ps) ->
+ declare_var(#arg{name="result",in=false,type=T}),
+ [declare_var(P) || P <- Ps].
+
+declare_var(A=#arg{where=erl}) -> A;
+
+declare_var(A=#arg{name=N,in=false,type=#type{name=T,base=B,single={tuple,Sz}}}) ->
+ true = is_number(Sz), %% Assert
+ w(" ~s ~s[~p] = {~s};~n", [T,N,Sz,args(fun zero/1,",",lists:duplicate(Sz,B))]),
+ A;
+declare_var(A=#arg{name=N,in=false,type=#type{name=T,base=B,single={list,Sz}}}) when is_number(Sz) ->
+ w(" ~s ~s[~p] = {~s};~n", [T,N,Sz,args(fun zero/1,",",lists:duplicate(Sz,B))]),
+ A;
+declare_var(A=#arg{name=N,in=false,type=#type{name=T,single={list,ASz,_USz},mod=[]}}) ->
+ true = is_list(ASz), %% Assert
+ w(" ~s *~s;~n", [T,N]),
+ w(" ~s = (~s *) driver_alloc(sizeof(~s) * *~s);~n", [N,T,T,ASz]),
+ store_free(N),
+ A;
+declare_var(A=#arg{name=N,in=false,type=#type{name=T,base=binary,size=Sz}}) ->
+ true = is_number(Sz), %% Assert
+ w(" ~s ~s[~p];~n", [T,N,Sz]),
+ A;
+declare_var(A=#arg{name=N,in=false,
+ type=#type{name=T="GLUquadric",base=B,by_val=false,single=true}}) ->
+ A;
+declare_var(A=#arg{name=N,in=false,
+ type=#type{name=T,base=B,by_val=false,single=true}}) ->
+ w(" ~s ~s[1] = {~s};~n", [T,N,zero(B)]),
+ A;
+declare_var(A=#arg{where=_}) ->
+ A.
+
+zero(float) -> "0.0";
+zero(_) -> "0".
+
+store_free(N) ->
+ case get(free_args) of
+ undefined -> put(free_args, [N]);
+ List -> put(free_args, [N|List])
+ end.
+
+free_args() ->
+ case get(free_args) of
+ undefined -> ignore;
+ List ->
+ erase(free_args),
+ [w(" driver_free(~s);~n", [Arg]) || Arg <- List]
+ end.
+
+decode_args(As0) ->
+ {As,_Align} = lists:mapfoldl(fun decode_arg/2,0,As0),
+ As.
+
+decode_arg(P=#arg{where=erl},A) -> {P,A};
+decode_arg(P=#arg{where=c},A) -> {P,A};
+decode_arg(P=#arg{in=false},A) -> {P,A};
+
+decode_arg(P=#arg{name=Name,type=#type{name=Type,base=binary}},A0) ->
+ w(" ~s *~s = (~s *) bins[~p]->base;~n", [Type,Name,Type,next_id(bin_count)]),
+ {P, A0};
+decode_arg(P=#arg{name=Name,type=#type{name=Type,base=memory}},A0) ->
+ w(" ~s *~s = (~s *) bins[~p]->base;~n", [Type,Name,Type,next_id(bin_count)]),
+ {P, A0};
+decode_arg(P=#arg{name=Name,type=#type{name=T,base=string,single=list}},A0) ->
+ A = align(4,A0),
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [Name]),
+ w(" int * ~sTotSize = (int *) bp; bp += 4;~n",[Name]),
+%% w(" if(*~sLen > 256) *~sLen = 256;", []),
+ w(" ~s **~s;~n", [T,Name]),
+ w(" ~s = (~s **) driver_alloc(sizeof(~s *) * *~sLen); ~n",[Name, T, T, Name]),
+ store_free(Name),
+ w(" for(int i=0;i<*~sLen;i++) {~n", [Name]),
+ w(" ~s[i] = (~s *) bp; bp += 1+strlen(bp);};~n",[Name,T]),
+ w(" bp += (8 - ((~p + *~sTotSize) % 8)) % 8;~n",[A,Name]),
+ {P, 0};
+
+decode_arg(P=#arg{name=Name,type=#type{size=Sz,single=list,name=Type}},A0) ->
+ A = align(max([Sz,4]),A0),
+ w(" int * ~sLen = (int *) bp; bp += ~p;~n", [Name, max([4,Sz])]),
+ w(" ~s * ~s = (~s *) bp; ", [Type,Name,Type]),
+ w(" bp += (8-((*~sLen*~p+~p)%8))%8;~n", [Name,Sz,A]),
+ {P, 0};
+decode_arg(P=#arg{name=Name,type=#type{size=TSz,name=Type,single={tuple,undefined}}},A0) ->
+ A = align(TSz,A0),
+ w(" int *~sLen = (int *) bp; bp += ~p;~n", [Name, max([4,TSz])]),
+ if TSz =:= 4 ->
+ w(" ~s *~s = (~s *) bp; bp += *~sLen*4+((*~sLen)+~p)%2*4;~n",
+ [Type,Name,Type, Name,Name, A div 4]);
+ TSz =:= 8 ->
+ w(" ~s *~s = (~s *) bp; bp += *~sLen*8;~n", [Type,Name,Type,Name])
+ end,
+ {P, 0};
+decode_arg(P=#arg{name=Name,type=#type{size=BSz,name=Type,single={tuple,TSz}}},A0) ->
+ A = align(BSz,TSz,A0),
+ w(" ~s * ~s = (~s *) bp; bp += ~p;~n", [Type,Name,Type,BSz*TSz]),
+ {P, A};
+decode_arg(P=#arg{name=Name,type=#type{size=BSz,name=Type,single={list,TSz}}},A0) ->
+ A = align(BSz,TSz,A0),
+ w(" ~s * ~s = (~s *) bp; bp += ~p;~n", [Type,Name,Type,BSz*TSz]),
+ {P, A};
+decode_arg(P=#arg{name=Name,type=#type{name=Type,base=guard_int}},A0) ->
+ A = align(4,A0),
+ w(" ~s *~s = (~s *) * (int *) bp; bp += 4;~n", [Type,Name,Type]),
+ {P, A};
+decode_arg(P=#arg{name=Name,type=#type{name=Type,base=string,single=true}},A0) ->
+ w(" ~s *~s = (~s *) bp;~n", [Type,Name,Type]),
+ w(" int ~sLen = strlen((char *)~s); bp += ~sLen+1+((8-((1+~sLen+~p)%8))%8);~n",
+ [Name,Name,Name,Name,A0]),
+ {P, 0};
+decode_arg(P=#arg{name=Name,
+ type=#type{name=Type,size=8,base=int,by_val=true,ref=undefined}},A0) ->
+ A = align(8,A0),
+ w(" ~s ~s = (~s) * (GLuint64EXT *) bp; bp += 8;~n", [Type,Name,Type]),
+ {P, A};
+decode_arg(P=#arg{name=Name,type=#type{name=Type="GLUquadric",size=8,base=int}},A0) ->
+ A = align(8,A0),
+ w(" ~s * ~s = (~s *) * (GLuint64EXT *) bp; bp += 8;~n", [Type,Name,Type]),
+ {P, A};
+decode_arg(P=#arg{name=Name,
+ type=#type{name=Type,size=Sz,by_val=true,ref=undefined}},A0) ->
+ A = align(Sz,A0),
+ w(" ~s *~s = (~s *) bp; bp += ~p;~n", [Type,Name,Type,Sz]),
+ {P, A};
+decode_arg(P=#arg{name=Name,type=#type{size=BSz,name=Type,single={tuple_list,TSz}}},A0) ->
+ A = align(BSz,TSz,A0),
+ w(" int *~sLen = (int *) bp; bp += ~p;~n", [Name, max([4,BSz])]),
+ w(" ~s * ~s = (~s *) bp; bp += *~sLen*~p;~n", [Type,Name,Type,Name,BSz*TSz]),
+ {P, A};
+decode_arg(P=#arg{name=Name, type=#type{name=Type,size=Sz,by_val=false,
+ ref={pointer,1}, mod=[const]}},
+ A0) ->
+ A = align(Sz,A0),
+ w(" ~s *~s = (~s *) bp; bp += ~p;~n", [Type,Name,Type,Sz]),
+ {P, A};
+decode_arg(P, _A) ->
+ ?error({unhandled_type, {P#arg.name,P#arg.type,_A}}).
+
+align(Size, PreAlign) ->
+ align(Size,1,PreAlign).
+
+align(1,N,A) -> (A+1*N+0) rem 8;
+
+align(2,N,A) when (A rem 2) =:= 0 -> (A+2*N+0) rem 8;
+align(2,N,A) when (A rem 2) =:= 1 -> a_str(1),(A+2*N+1) rem 8;
+
+align(4,N,A) when (A rem 4) =:= 0 -> (A+4*N+0) rem 8;
+align(4,N,A) when (A rem 4) =:= 1 -> a_str(3),(A+4*N+3) rem 8;
+align(4,N,A) when (A rem 4) =:= 2 -> a_str(2),(A+4*N+2) rem 8;
+align(4,N,A) when (A rem 4) =:= 3 -> a_str(1),(A+4*N+1) rem 8;
+
+align(8,_,0) -> 0;
+align(8,_,1) -> a_str(7),0;
+align(8,_,2) -> a_str(6),0;
+align(8,_,3) -> a_str(5),0;
+align(8,_,4) -> a_str(4),0;
+align(8,_,5) -> a_str(3),0;
+align(8,_,6) -> a_str(2),0;
+align(8,_,7) -> a_str(1),0.
+
+a_str(P) -> w(" bp += ~p;~n", [P]).
+
+call_gl(Name,void,As) ->
+ Args = args(fun call_arg/1, ",", As),
+ w(" we~s(~s);~n", [Name,Args]),
+ As;
+call_gl(Name,T=#type{},As) ->
+ Args = args(fun call_arg/1, ",", As),
+ Type = result_type(T),
+ w(" ~s result = we~s(~s);~n", [Type,Name,Args]),
+ As.
+
+result_type(#type{name=T, ref=undefined}) -> T;
+result_type(#type{name=T, ref={pointer,1}, mod=Mods}) ->
+ mod(Mods) ++ T ++ " * ".
+
+call_arg(#arg{alt={length,Alt},type=#type{}}) ->
+ "*" ++ Alt ++ "Len";
+call_arg(#arg{alt={constant,Alt},type=#type{}}) ->
+ Alt;
+call_arg(#arg{name=Name,type=#type{single={tuple, _}}}) ->
+ Name;
+call_arg(#arg{name=Name,type=#type{single={list, _}}}) ->
+ Name;
+call_arg(#arg{name=Name,type=#type{size=8,base=int,ref=undefined}}) ->
+ Name;
+call_arg(#arg{name=Name,type=#type{ref=undefined}}) ->
+ "*" ++ Name;
+call_arg(#arg{name=Name,type=#type{base=guard_int}}) ->
+ Name;
+call_arg(#arg{name=Name,type=#type{base=string,ref={pointer,2},mod=[const]}}) ->
+ "(const GLchar **) " ++ Name;
+call_arg(#arg{name=Name,type=#type{size=8,base=int,ref={pointer,1}}}) ->
+ Name;
+call_arg(#arg{name=Name,type=#type{}}) ->
+ Name.
+
+build_return_vals(Type,As) ->
+ case calc_sizes(Type,As) of
+ {0,none,0} -> %% Sync memory access functions
+ Any = fun(#arg{type=#type{base=B}}) -> B =:= memory end,
+ case lists:any(Any, As) of
+ false -> ok;
+ true ->
+ w(" int AP = 0; ErlDrvTermData rt[6];~n",[]),
+ w(" rt[AP++]=ERL_DRV_ATOM;"
+ " rt[AP++]=driver_mk_atom((char *) \"_wxe_result_\");~n",[]),
+ w(" rt[AP++]=ERL_DRV_ATOM;"
+ " rt[AP++]=driver_mk_atom((char *) \"ok\");~n",[]),
+ w(" rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;~n",[]),
+ w(" driver_send_term(WXE_DRV_PORT,caller,rt,AP);~n",[]),
+ ok
+ end;
+ {Val,Vars,Cnt} ->
+ ExtraTuple = if Cnt > 1 -> 2; true -> 0 end,
+ CSize = if Vars =:= none ->
+ Sz = integer_to_list(Val+4+ExtraTuple),
+ w(" int AP = 0; ErlDrvTermData rt[~s];~n",[Sz]),
+ Sz;
+ true ->
+ Sz = integer_to_list(Val+4+ExtraTuple) ++ " + " ++ Vars,
+ w(" int AP = 0; ErlDrvTermData *rt;~n",[]),
+ w(" rt = (ErlDrvTermData *) "
+ "driver_alloc(sizeof(ErlDrvTermData)*(~s));~n", [Sz]),
+ Sz
+ end,
+ w(" rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) \"_wxe_result_\");~n",[]),
+ FreeList = build_ret_types(Type,As),
+ case Cnt of
+ 1 -> ok;
+ _ ->
+ w(" rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = ~p;~n",[Cnt])
+ end,
+ w(" rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;~n",[]),
+ w(" if (AP != ~s ) fprintf(stderr, \"%d: ERROR AP mismatch %d %d\\r\\n\",__LINE__,AP,~s);~n",
+ [CSize,CSize]),
+ w(" driver_send_term(WXE_DRV_PORT,caller,rt,AP);~n",[]),
+ case Vars of
+ none -> ignore;
+ _ ->
+ w(" driver_free(rt); ~n", [])
+ end,
+ [w(" ~s~n", [Name]) || Name <- FreeList],
+ ok
+ end.
+
+calc_sizes(Type,As) ->
+ TSz = case return_size("result", Type) of
+ {0, none} ->
+ {0, none, 0};
+ {Sz,Vars} ->
+ {Sz,Vars, 1}
+ end,
+ Calc = fun(#arg{name=N,in=False,where=W,type=T},{Sz,Vars, Cnt})
+ when False =/= true, W=/= c ->
+ case return_size(N, T) of
+ {Val, none} -> {Sz+Val, Vars, Cnt+1};
+ {Val, Var} when Vars =:= none ->
+ {Sz+Val, Var,Cnt+1};
+ {Val, Var} when Vars =:= none ->
+ {Sz+Val, Var ++ " + " ++ Vars,Cnt+1}
+ end;
+ (_,Acc) -> Acc
+ end,
+ foldl(Calc, TSz, As).
+
+return_size(_N,void) -> {0, none};
+return_size(_N,#type{base=binary}) -> {4, none};
+return_size(_N,#type{single=true}) -> {2,none};
+return_size(_N,#type{single={tuple,Sz}}) -> {Sz*2+2, none};
+return_size(_N,#type{name="GLubyte",single={list,null}}) ->{3, none};
+return_size(_N,#type{single={list,Sz}}) -> {Sz*2+3, none};
+return_size(_N,#type{base=string,single={list,_,_}}) -> {3, none};
+return_size(_N,#type{single={list,_,Sz}}) -> {3, "(*" ++Sz++")*2"}.
+
+
+build_ret_types(void,Ps) ->
+ Calc = fun(#arg{name=N,in=False,where=W,type=T},Free)
+ when False =/= true, W=/= c ->
+ case build_ret(N, False, T) of
+ ok -> Free;
+ Other -> [Other|Free]
+ end;
+ (_,Free) -> Free
+ end,
+ lists:foldl(Calc, [], Ps);
+build_ret_types(Type,Ps) ->
+ build_ret("result", out, Type),
+ Calc = fun(#arg{name=N,in=False,where=W,type=T},Free)
+ when False =/= true, W=/= c ->
+ case build_ret(N, False, T) of
+ ok -> Free;
+ Other -> [Other|Free]
+ end;
+ (_,Free) -> Free
+ end,
+ lists:foldl(Calc, [], Ps).
+
+build_ret(Name,_Q,#type{name=_T,base=int,single=true,by_val=true}) ->
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) ~s;~n", [Name]);
+build_ret(Name,_Q,#type{name=_T,base=bool,single=true,by_val=true}) ->
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) ~s;~n", [Name]);
+build_ret(Name,_Q,#type{name="GLUquadric",base=int}) ->
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) ~s;~n", [Name]);
+build_ret(Name,_Q,#type{name=_T,base=int,single=true,by_val=false}) ->
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *~s;~n", [Name]);
+build_ret(Name,_Q,#type{name=_T,base=bool,single=true,by_val=false}) ->
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *~s;~n", [Name]);
+build_ret(Name,_Q,#type{name=_T,size=4,base=float,single=true,by_val=false}) ->
+ w(" GLdouble ~sConv = (double) *~s; \n",[Name,Name]),
+ w(" rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) &~sConv;~n", [Name]);
+build_ret(Name,_Q,#type{name=_T,size=8,base=float,single=true,by_val=false}) ->
+ w(" rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) ~s;~n", [Name]);
+
+build_ret(Name,_Q,#type{name=_T,size=FSz,base=float,single={tuple,Sz}}) ->
+ Temp = Name ++ "Tmp",
+ case FSz of
+ 8 ->
+ w(" GLdouble *~s = ~s;\n", [Temp,Name]);
+ 4 ->
+ w(" GLdouble ~sConv[~p], *~s = ~sConv; \n",[Name,Sz,Temp,Name]),
+ w(" for(int i=0; i < ~p; i++) ~sConv[i] = (GLdouble) ~s[i];\n",[Sz,Name,Name])
+ end,
+ [w(" rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) ~s++;~n", [Temp])
+ || _ <- lists:seq(1,Sz)],
+ w(" rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = ~p;~n",[Sz]);
+build_ret(Name,_Q,#type{name=T,base=_,single={tuple,Sz}}) ->
+ Temp = Name ++ "Tmp",
+ w(" ~s *~s = ~s;\n", [T,Temp,Name]),
+ [w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *~s++;~n", [Temp])
+ || _ <- lists:seq(1,Sz)],
+ w(" rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = ~p;~n",[Sz]);
+build_ret(Name,_Q,#type{name="GLubyte",single={list,null}}) ->
+ w(" rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) ~s;"
+ " rt[AP++] = strlen((char *) ~s);\n", [Name, Name]);
+build_ret(Name,_Q,#type{base=string,single={list,_,Sz}}) ->
+ w(" rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) ~s;"
+ " rt[AP++] = *~s;\n", [Name, Sz]);
+build_ret(Name,_Q,#type{name=_T,base=B,single={list,_,Sz}}) when B =/= float ->
+ w(" for(int i=0; i < *~s; i++) {\n", [Sz]),
+ w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) ~s[i];}~n", [Name]),
+ w(" rt[AP++] = ERL_DRV_NIL;", []),
+ w(" rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*~s)+1;~n",[Sz]);
+build_ret(Name,_Q,#type{name=_T,size=FSz,base=float,single={list,Sz}}) ->
+ Temp = Name ++ "Tmp",
+ case FSz of
+ 8 ->
+ w(" GLdouble *~s = ~s;\n", [Temp,Name]);
+ 4 ->
+ w(" GLdouble ~sConv[~p], *~s = ~sConv; \n",[Name,Sz,Temp,Name]),
+ w(" for(int i=0; i < ~p; i++) ~sConv[i] = (GLdouble) ~s[i];\n",[Sz,Name,Name])
+ end,
+ [w(" rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) ~s++;~n", [Temp])
+ || _ <- lists:seq(1,Sz)],
+ w(" rt[AP++] = ERL_DRV_NIL;", []),
+ w(" rt[AP++] = ERL_DRV_LIST; rt[AP++] = ~p+1;~n",[Sz]);
+build_ret(Name,_Q,#type{name=T,base=_,single={list,Sz}}) ->
+ Temp = Name ++ "Tmp",
+ w(" ~s *~s = ~s;\n", [T,Temp,Name]),
+ [w(" rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *~s++;~n", [Temp])
+ || _ <- lists:seq(1,Sz)],
+ w(" rt[AP++] = ERL_DRV_NIL;", []),
+ w(" rt[AP++] = ERL_DRV_LIST; rt[AP++] = ~p+1;~n",[Sz]);
+build_ret(Name,_Q,#type{name="GLubyte",base=binary,size=Sz}) ->
+ w(" ErlDrvBinary * BinCopy = driver_alloc_binary(~p);~n", [Sz]),
+ w(" memcpy(BinCopy->orig_bytes, ~s, ~p);~n", [Name,Sz]),
+ w(" rt[AP++] = ERL_DRV_BINARY; rt[AP++] = (ErlDrvTermData) BinCopy;", []),
+ w(" rt[AP++] = ~p; rt[AP++] = 0;~n", [Sz]),
+ "driver_free_binary(BinCopy);";
+build_ret(Name,_Q,T=#type{}) ->
+ io:format("{~p, {~p, {single,{tuple,X}}}}.~n", [get(current_func),Name]),
+ io:format(" ~p~n",[T]).
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+gen_defines(GLFuncs,GLUFuncs) ->
+ open_write("../c_src/gen/gl_fdefs.h"),
+ c_copyright(),
+ w("/***** This file is generated do not edit ****/ ~n~n", []),
+ w("#ifdef WX_DEF_EXTS~n", []),
+ w("# define WXE_EXTERN~n", []),
+ w("#else~n# define WXE_EXTERN extern~n", []),
+ w("#endif~n~n", []),
+ [fdefs(F) || F <- GLFuncs],
+ [fdefs(F) || F <- GLUFuncs],
+ close().
+
+fdefs([F1|_Fs]) when is_list(F1) ->
+ put(current_func,F1),
+ fdef(get(F1)),
+ erase(current_func);
+fdefs([]) -> ok;
+fdefs(F) ->
+ put(current_func,F),
+ fdef(get(F)),
+ erase(current_func).
+
+fdef(#func{where=erl}) -> ok;
+fdef(#func{alt={has_vector,_,FuncName}}) ->
+ #func{name=Name,type=T,params=As} = get(FuncName),
+ w("typedef ~s (APIENTRY * WXE~s)(~s);~n",
+ [fdef_type(T), uppercase_all(Name), fdef_types(As)]),
+ w("WXE_EXTERN WXE~s we~s;~n", [uppercase_all(Name), Name]);
+fdef(#func{name=Name,type=T,params=As,alt=_Alt}) ->
+ w("typedef ~s (APIENTRY * WXE~s)(~s);~n",
+ [fdef_type(T), uppercase_all(Name), fdef_types(As)]),
+ w("WXE_EXTERN WXE~s we~s;~n", [uppercase_all(Name), Name]).
+
+fdef_type(void) -> "void";
+fdef_type(#type{name=T, mod=Mod, single=true, ref=undefined}) ->
+ mod(Mod) ++ T;
+fdef_type(#type{name=T, mod=Mod, single={tuple,Sz}, ref=undefined}) ->
+ mod(Mod) ++ T ++ " m[" ++ integer_to_list(Sz) ++ "]";
+fdef_type(#type{name=T, mod=Mod, ref={pointer,1}}) ->
+ mod(Mod) ++ T ++ " *";
+fdef_type(#type{name=T, mod=Mod, ref={pointer,2}}) ->
+ mod(Mod) ++ T ++ " **".
+
+mod([const]) -> "const ";
+mod([]) -> "".
+
+fdef_types(As) ->
+ args(fun(#arg{type=T}) -> fdef_type(T) end, ",", As).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+gl_gen_init(Funcs) ->
+ open_write("../c_src/gen/gl_finit.h"),
+ c_copyright(),
+ w("/***** This file is generated do not edit ****/ ~n~n", []),
+ w("static struct {\n"
+ " const char * name;\n"
+ " const char * alt;\n"
+ " void * func;\n"
+ "} gl_fns[] = \n"
+ "{\n", []),
+ [finits(F) || F <- Funcs],
+ w(" { NULL, NULL, NULL}};\n",[]),
+ close().
+
+glu_gen_init(Funcs) ->
+ open_write("../c_src/gen/glu_finit.h"),
+ c_copyright(),
+ w("/***** This file is generated do not edit ****/ ~n~n", []),
+ w("static struct {\n"
+ " const char * name;\n"
+ " const char * alt;\n"
+ " void * func;\n"
+ "} glu_fns[] = \n"
+ "{\n", []),
+ [finits(F) || F <- Funcs],
+ w(" { NULL, NULL, NULL}};\n",[]),
+ close().
+
+
+finits([F1|_Fs]) when is_list(F1) ->
+ put(current_func,F1),
+ finit(get(F1)),
+ erase(current_func);
+finits([]) -> ok;
+finits(F) ->
+ put(current_func,F),
+ finit(get(F)),
+ erase(current_func).
+
+finit(#func{where=erl}) -> ok;
+finit(#func{alt={has_vector,_,FuncName}, ext=Ext}) ->
+ #func{name=Name} = get(FuncName),
+ w(" {~p, ~s, &we~s},\n", [Name, ext(Name,Ext), Name]);
+finit(#func{name=Name, ext=Ext}) ->
+ w(" {~p, ~s, &we~s},\n", [Name, ext(Name,Ext), Name]).
+
+ext(Name, {ext,Ext}) ->
+ "\"" ++ Name ++ Ext ++ "\"";
+ext(_,_) -> "NULL".
+
+
+
+
+
diff --git a/lib/wx/api_gen/gl_gen_erl.erl b/lib/wx/api_gen/gl_gen_erl.erl
new file mode 100644
index 0000000000..3e436100b6
--- /dev/null
+++ b/lib/wx/api_gen/gl_gen_erl.erl
@@ -0,0 +1,603 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : gl_gen_erl.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 18 Apr 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(gl_gen_erl).
+
+-include("gl_gen.hrl").
+
+-compile(export_all).
+
+-import(lists, [foldl/3,foldr/3,reverse/1, keysearch/3, map/2, filter/2, max/1]).
+-import(gen_util, [lowercase/1, lowercase_all/1, uppercase/1, uppercase_all/1,
+ open_write/1, close/0, erl_copyright/0, w/2,
+ args/3, args/4, strip_name/2]).
+
+gl_defines(Defs) ->
+ open_write("../include/gl.hrl"),
+ erl_copyright(),
+ w("~n%% OPENGL DEFINITIONS~n~n", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ [gen_define(Def) || Def=#def{} <- Defs],
+ close(),
+ ok.
+
+glu_defines(Defs) ->
+ open_write("../include/glu.hrl"),
+ erl_copyright(),
+ w("~n%% GLU DEFINITIONS~n~n", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ [gen_define(Def) || Def=#def{} <- Defs],
+ close(),
+ ok.
+
+gen_define(#def{name=N, val=Val, type=int}) ->
+ w("-define(~s, ~p).~n", [N,Val]);
+gen_define(#def{name=N, val=Val, type=hex}) ->
+ w("-define(~s, ~.16#).~n", [N,Val]);
+gen_define(#def{name=N, val=Val, type=string}) ->
+ w("-define(~s, ?~s).~n", [N,Val]).
+
+types() ->
+ [{"GLenum", "32/native-unsigned"},
+ {"GLboolean", "8/native-unsigned"},
+ {"GLbitfield","32/native-unsigned"}, %
+ %%{"GLvoid",":void "},%
+ {"GLbyte", "8/native-signed"}, % 1-byte signed
+ {"GLshort", "16/native-signed"}, % 2-byte signed
+ {"GLint", "32/native-signed"}, % 4-byte signed
+ {"GLubyte", "8/native-unsigned"}, % 1-byte unsigned
+ {"GLushort", "16/native-unsigned"}, % 2-byte unsigned
+ {"GLuint", "32/native-unsigned"}, % 4-byte unsigned
+ {"GLsizei", "32/native-signed"}, % 4-byte signed
+ {"GLfloat", "32/native-float"}, % single precision float
+ {"GLclampf", "32/native-float"}, % single precision float in [0,1]
+ {"GLdouble", "64/native-float"}, % double precision float
+ {"GLclampd", "64/native-float"}, % double precision float in [0,1]
+ {"GLsizeiptr","64/native-unsigned"}, % 64 bits int, convert on c-side
+ {"GLintptr", "64/native-unsigned"}, % 64 bits int, convert on c-sidew
+ {"GLUquadric", "64/native-unsigned"},% Handle 32bits aargh 64bits on mac64
+ {"GLhandleARB","64/native-unsigned"} % Handle 32bits aargh 64bits on mac64
+ ].
+
+gl_api(Fs) ->
+ open_write("../src/gen/gl.erl"),
+ erl_copyright(),
+ w("~n%% OPENGL API~n~n", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("%% @doc Standard OpenGL api. ~n", []),
+ w("%% See <a href=\"http://www.opengl.org/sdk/docs/man/\">www.opengl.org</a>~n",[]),
+ w("%%~n", []),
+ w("%% Booleans are represented by integers 0 and 1. ~n~n", []),
+ w("%% @type wx_mem(). see wx.erl on memory allocation functions~n", []),
+ w("%% @type enum(). An integer defined in gl.hrl~n", []),
+ w("%% @type offset(). An integer which is an offset in an array~n", []),
+ w("%% @type clamp(). A float clamped between 0.0 - 1.0 ~n", []),
+
+ w("-module(gl).~n~n",[]),
+ w("-compile(inline).~n", []),
+ %% w("-compile(export_all).~n~n", []),
+ %% w("-compile(binary_comprehension).~n~n", []),
+ w("-include(\"wxe.hrl\").~n", []),
+ [w("-define(~s,~s).~n", [GL,Erl]) || {GL,Erl} <- types()],
+
+ Exp = fun(F) -> gen_export(F) end,
+ ExportList = lists:map(Exp,Fs),
+ w("~n-export([~s]).~n~n", [args(fun(EF) -> EF end, ",", ExportList, 60)]),
+
+ w("~n%% API ~n~n", []),
+ [gen_funcs(F) || F <- Fs],
+ close(),
+ ok.
+
+glu_api(Fs) ->
+ open_write("../src/gen/glu.erl"),
+ erl_copyright(),
+ w("~n%% OPENGL UTILITY API~n~n", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("%% @doc A part of the standard OpenGL Utility api. ~n", []),
+ w("%% See <a href=\"http://www.opengl.org/sdk/docs/man/\">www.opengl.org</a>~n",[]),
+ w("%%~n", []),
+ w("%% Booleans are represented by integers 0 and 1. ~n~n", []),
+ w("%% @type wx_mem(). see wx.erl on memory allocation functions~n", []),
+ w("%% @type enum(). An integer defined in gl.hrl~n", []),
+ w("%% @type offset(). An integer which is an offset in an array~n", []),
+ w("%% @type clamp(). A float clamped between 0.0 - 1.0 ~n~n", []),
+
+ w("-module(glu).~n",[]),
+ w("-compile(inline).~n", []),
+ w("-include(\"wxe.hrl\").~n", []),
+ [w("-define(~s,~s).~n", [GL,Erl]) || {GL,Erl} <- types()],
+
+ Exp = fun(F) -> gen_export(F) end,
+ ExportList = ["tesselate/2" | lists:map(Exp,Fs)],
+ w("~n-export([~s]).~n~n", [args(fun(EF) -> EF end, ",", ExportList, 60)]),
+
+ w("~n%% API ~n~n", []),
+
+ w("%% @spec (Vec3, [Vec3]) -> {Triangles, VertexPos}~n",[]),
+ w("%% Vec3 = {float(),float(),float()}~n",[]),
+ w("%% Triangles = [VertexIndex::integer()]~n",[]),
+ w("%% VertexPos = binary()~n",[]),
+ w("%% @doc General purpose polygon triangulation.~n",[]),
+ w("%% The first argument is the normal and the second a list of~n"
+ "%% vertex positions. Returned is a list of indecies of the vertices~n"
+ "%% and a binary (64bit native float) containing an array of ~n"
+ "%% vertex positions, it starts with the vertices in Vs and ~n"
+ "%% may contain newly created vertices in the end.~n", []),
+
+ w("tesselate({Nx,Ny,Nz}, Vs) ->~n",[]),
+ w(" wxe_util:call(5000, <<(length(Vs)):32/native,0:32,~n"
+ " Nx:?GLdouble,Ny:?GLdouble,Nz:?GLdouble,~n"
+ " (<< <<Vx:?GLdouble,Vy:?GLdouble,Vz:?GLdouble >>~n"
+ " || {Vx,Vy,Vz} <- Vs>>)/binary >>).~n~n", []),
+
+ [gen_funcs(F) || F <- Fs],
+ close(),
+ ok.
+
+gen_funcs([F]) when is_list(F) ->
+ put(current_func,F),
+ gen_func(get(F)),
+ erase(current_func),
+ w(".~n~n",[]);
+gen_funcs(All=[F|Fs]) when is_list(F) ->
+ put(current_func,F),
+ gen_doc([get(A) || A <- All]),
+ gen_func(get(F)),
+ erase(current_func),
+ w(";~n",[]),
+ gen_funcs(Fs);
+gen_funcs([]) ->
+ w(".~n~n",[]);
+gen_funcs(F) ->
+ put(current_func,F),
+ gen_doc([get(F)]),
+ gen_func(get(F)),
+ erase(current_func),
+ w(".~n~n",[]).
+
+gen_export([F|_]) when is_list(F) ->
+ gen_export2(get(F));
+gen_export(F) when is_list(F) ->
+ gen_export2(get(F)).
+
+gen_export2(#func{name=Name,alt={vector,VecPos,Vec}}) ->
+ #func{params=As0} = get(Vec),
+ {As1,_As2} = lists:split(VecPos, As0),
+ Args = lists:filter(fun(Arg) -> func_arg(Arg) =/= skip end, As1),
+ erl_func_name(Name) ++ "/" ++ integer_to_list(length(Args) +1);
+gen_export2(#func{name=Name,params=As0}) ->
+ Args = lists:filter(fun(Arg) -> func_arg(Arg) =/= skip end, As0),
+ erl_func_name(Name) ++ "/" ++ integer_to_list(length(Args)).
+
+
+gen_doc([#func{alt={vector,VecPos,Vec}}]) ->
+ #func{type=T,params=As} = get(Vec),
+ {As1,As2} = lists:split(VecPos, As),
+ Args1 = case args(fun func_arg/1, ",", As1) of [] -> []; Else -> Else++"," end,
+ Args2 = args(fun func_arg/1, ",", As2),
+ w("%% @spec (~s{~s}) -> ~s~n",[Args1,Args2,doc_return_types(T,As)]),
+ w("%% @equiv ~s(~s)~n",[erl_func_name(Vec), Args1++Args2]);
+gen_doc([#func{name=Name,type=T,params=As,alt=Alt}|_]) ->
+ w("%% @spec (~s) -> ~s~n", [doc_arg_types(As),doc_return_types(T,As)]),
+ GLDoc = "http://www.opengl.org/sdk/docs/man/xhtml/",
+ w("%% @doc See <a href=\"~s~s.xml\">external</a> documentation.~n",
+ [GLDoc, doc_name(Name,Alt)]).
+
+gen_func(#func{name=Name,alt={vector,VecPos,Vec}}) ->
+ #func{params=As} = get(Vec),
+ {As1,As2} = lists:split(VecPos, As),
+ Args1 = case args(fun func_arg/1, ",", As1) of [] -> []; Else -> Else++"," end,
+ Args2 = args(fun func_arg/1, ",", As2),
+
+ w("~s(~s{~s}) ->", [erl_func_name(Name),Args1,Args2]),
+ w(" ~s(~s)", [erl_func_name(Vec), Args1++Args2]);
+gen_func(_F=#func{name=Name,type=T,params=As,id=MId}) ->
+ Args = args(fun func_arg/1, ",", As),
+ w("~s(~s)~s ", [erl_func_name(Name), Args, guard_test(As)]),
+ w("->~n", []),
+ PreAs = pre_marshal(As),
+ {StrArgs,_} = marshal_args(PreAs),
+ case have_return_vals(T,As) of
+ true ->
+ w(" wxe_util:call(~p, <<~s>>)", [MId, StrArgs]);
+ false ->
+ w(" wxe_util:cast(~p, <<~s>>)", [MId, StrArgs])
+ end.
+
+func_arg(#arg{in=In,where=W,name=Name,type=Type})
+ when In =/= false, W =/= c ->
+ case Type of
+ #type{single={tuple,TSz0}} when TSz0 =/= undefined ->
+ TSz = if is_integer(TSz0) -> TSz0;
+ TSz0 =:= matrix12 -> 12
+ end,
+ [NameId|_] = erl_arg_name(Name),
+ Names = [[NameId|integer_to_list(Id)] || Id <- lists:seq(1,TSz)],
+ "{" ++ args(fun(ElName) -> ElName end, ",", Names) ++ "}";
+ _ ->
+ erl_arg_name(Name)
+ end;
+func_arg(_) -> skip.
+
+doc_arg_types(Ps0) ->
+ Ps = [P || P=#arg{in=In, where=Where} <- Ps0,In =/= false, Where =/= c],
+ args(fun doc_arg_type/1, ",", Ps).
+
+doc_return_types(T, Ps0) ->
+ Ps = [P || P=#arg{in=In, where=Where} <- Ps0,In =/= true, Where =/= c],
+ doc_return_types2(T, Ps).
+
+doc_return_types2(void, []) -> "ok";
+doc_return_types2(void, [#arg{type=T}]) -> doc_arg_type2(T);
+doc_return_types2(T, []) -> doc_arg_type2(T);
+doc_return_types2(void, Ps) ->
+ "{" ++ args(fun doc_arg_type/1,",",Ps) ++ "}";
+doc_return_types2(T, Ps) ->
+ "{" ++ doc_arg_type2(T) ++ "," ++ args(fun doc_arg_type/1,",",Ps) ++ "}".
+
+doc_arg_type(#arg{name=Name,type=T}) ->
+ try
+ erl_arg_name(Name) ++ "::" ++ doc_arg_type2(T)
+ catch _:Error ->
+ io:format("Error: ~p ~p~n~p~n",[Name, Error, erlang:get_stacktrace()]),
+ exit(error)
+ end.
+
+doc_arg_type2(T=#type{single=true}) ->
+ doc_arg_type3(T);
+doc_arg_type2(T=#type{single=undefined}) ->
+ doc_arg_type3(T);
+doc_arg_type2(T=#type{single={tuple,undefined}}) ->
+ "{" ++ doc_arg_type3(T) ++ "}";
+doc_arg_type2(T=#type{single={tuple,_Sz}}) ->
+ "{" ++ doc_arg_type3(T) ++ "}";
+doc_arg_type2(T=#type{single=list}) ->
+ "[" ++ doc_arg_type3(T) ++ "]";
+doc_arg_type2(T=#type{single={list, Max}}) when is_integer(Max) ->
+ "[" ++ doc_arg_type3(T) ++ "]";
+doc_arg_type2(_T=#type{single={list,null}}) ->
+ "string()";
+doc_arg_type2(T=#type{base=string}) ->
+ doc_arg_type3(T);
+doc_arg_type2(T=#type{single={list,_,_}}) ->
+ "[" ++ doc_arg_type3(T) ++ "]";
+doc_arg_type2(T=#type{single={tuple_list,_TSz}}) ->
+ "[{" ++ doc_arg_type3(T) ++ "}]".
+
+doc_arg_type3(#type{name="GLenum"}) -> "enum()";
+doc_arg_type3(#type{name="GLclamp"++_}) -> "clamp()";
+doc_arg_type3(#type{base=int}) -> "integer()";
+doc_arg_type3(#type{base=float}) -> "float()";
+doc_arg_type3(#type{base=guard_int}) -> "offset()|binary()";
+doc_arg_type3(#type{base=string}) -> "string()";
+doc_arg_type3(#type{base=bool}) -> "0|1";
+doc_arg_type3(#type{base=binary}) -> "binary()";
+doc_arg_type3(#type{base=memory}) -> "wx:wx_mem()".
+
+guard_test(As) ->
+ Str = args(fun(#arg{name=N,type=#type{base=guard_int}}) ->
+ " is_integer("++erl_arg_name(N)++")";
+ (_) ->
+ skip
+ end, ",", As),
+ case Str of
+ [] -> [];
+ Other -> " when " ++ Other
+ end.
+
+pre_marshal([#arg{name=N,in=true,type=#type{base=binary}}|R]) ->
+ w(" wxe_util:send_bin(~s),~n", [erl_arg_name(N)]),
+ pre_marshal(R);
+pre_marshal([#arg{name=N,type=#type{base=memory}}|R]) ->
+ w(" wxe_util:send_bin(~s#wx_mem.bin),~n", [erl_arg_name(N)]),
+ pre_marshal(R);
+pre_marshal([A=#arg{name=N,type=#type{base=string,single=list}}|R]) ->
+ %% With null terminations
+ w(" ~sTemp = list_to_binary([[Str|[0]] || Str <- ~s ]),~n",
+ [erl_arg_name(N), erl_arg_name(N)]),
+ [A|pre_marshal(R)];
+pre_marshal([A|R]) ->
+ [A|pre_marshal(R)];
+pre_marshal([]) -> [].
+
+marshal_args(As) ->
+ marshal_args(As, [], 0).
+
+marshal_args([#arg{where=erl}|Ps], Margs, Align) ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#arg{where=c}|Ps], Margs, Align) ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#arg{in=false}|Ps], Margs, Align) ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#arg{name=Name, type=Type}|Ps], Margs, Align0) ->
+ {Arg,Align} = marshal_arg(Type,erl_arg_name(Name),Align0),
+ marshal_args(Ps, [Arg|Margs], Align);
+marshal_args([],Margs, Align) ->
+ {args(fun(Str) -> Str end, ",", reverse(Margs)), Align}.
+
+marshal_arg(#type{size=Sz,name=Type,single={tuple,undefined}},Name,A0) ->
+ KeepA = case Sz of 8 -> "0:32,"; _ -> "" end,
+ Str0 = "(size("++Name++")):?GLuint,"++KeepA++"\n"
+ " (<< <<C:?"++Type++ ">> ||"
+ "C <- tuple_to_list("++Name++")>>)/binary",
+ case Sz of
+ 4 ->
+ {Str,Align} = align(4,A0,Str0),
+ {Str++",0:((("++integer_to_list(Align div 4)++
+ "+size("++Name++")) rem 2)*32)",0};
+ 8 ->
+ align(8,A0,Str0)
+ end;
+marshal_arg(#type{size=BSz,name=Type,single={tuple,TSz}},Name,A0)
+ when is_integer(TSz) ->
+ NameId = hd(Name),
+ Names = [[NameId|integer_to_list(Id)] || Id <- lists:seq(1,TSz)],
+ All = args(fun(ElName) -> ElName ++ ":?" ++ Type end, ",", Names),
+ align(BSz,TSz,A0,All);
+
+marshal_arg(#type{size=BSz,name=Type,single={tuple,matrix12}},Name,A0) ->
+ NameId = hd(Name),
+ Ns0 = [[NameId|integer_to_list(Id)] || Id <- lists:seq(1,3)],
+ Ns1 = [[NameId|integer_to_list(Id)] || Id <- lists:seq(4,6)],
+ Ns2 = [[NameId|integer_to_list(Id)] || Id <- lists:seq(7,9)],
+ Ns3 = [[NameId|integer_to_list(Id)] || Id <- lists:seq(10,12)],
+ All = args(fun(ElName) -> ElName ++ ":?" ++ Type end, ",",
+ Ns0 ++ ["0"] ++ Ns1 ++ ["0"] ++ Ns2 ++ ["0"] ++ Ns3 ++ ["1"]),
+ align(BSz,16,A0,All);
+
+marshal_arg(#type{size=Sz,name=Type,base=Base,single=list},Name,A0)
+ when Base =:= float; Base =:= int ->
+ KeepA = case Sz of 8 -> "0:32,"; _ -> "" end,
+ Str0 = "(length("++Name++")):?GLuint,"++KeepA++"\n"
+ " (<< <<C:?"++Type++">> || C <- "++Name++">>)/binary",
+ {Str,Align} = align(max([Sz,4]),A0,Str0),
+ align_after(Sz,Align,0,1,Name,Str);
+
+marshal_arg(#type{base=guard_int},Name,A0) ->
+ align(4,A0,Name ++ ":?GLuint");
+
+marshal_arg(#type{size=Sz,name=Type,single=true,
+ by_val=true,ref=undefined},Name,A0) ->
+ align(Sz,A0,Name ++ ":?" ++ Type);
+
+marshal_arg(#type{size=8,name="GLUquadric"=Type},Name,A0) ->
+ align(8,A0,Name ++ ":?" ++ Type);
+
+marshal_arg(#type{base=string,single=true,ref={pointer,1}},Name,A0) ->
+ Str = "(list_to_binary(["++Name++"|[0]]))/binary", % Null terminate
+ align_after(1,A0,1,1,Name,Str);
+
+marshal_arg(#type{base=string,single=list,ref={pointer,2}},Name,A0) ->
+ Str0 =
+ "(length("++Name++")):?GLuint,"
+ "(size("++Name ++ "Temp)):?GLuint,"
+ "(" ++ Name ++ "Temp)/binary",
+ {Str,A} = align(4,A0,Str0),
+ {Str ++ ",0:((8-((size("++Name++"Temp)+"++
+ integer_to_list(A) ++") rem 8)) rem 8)", 0};
+
+marshal_arg(#type{size=Sz,name=Type,single={tuple_list,TSz}},Name,A0) ->
+ NameId = hd(Name),
+ Names = [[NameId|integer_to_list(Id)] || Id <- lists:seq(1,TSz)],
+ TTup = args(fun(ElName) -> ElName end, ",", Names),
+ TBin = args(fun(ElName) -> ElName ++ ":?" ++ Type end, ",", Names),
+
+ KeepA = case Sz of 8 -> "0:32,"; 4 -> "" end,
+ Str0 = "(length("++Name++")):?GLuint,"++KeepA++"\n"
+ " (<< <<"++TBin++">> || {"++TTup++"} <- "++Name++">>)/binary",
+ align(Sz,A0,Str0);
+
+marshal_arg(T=#type{}, Name, Align) ->
+ io:format("{\"~s\", {\"~s\", }}.~n", [get(current_func),lowercase(Name)]),
+ %%?error({unhandled_type, {Name,T}}).
+ w(" Don't know how to marshal this type ~p ~p ~n", [T,Name]),
+ align(8,Align,"").
+
+% Make sure that it is aligned before adding it, and update alignment
+align(Size, PreAlign, Str) ->
+ align(Size,1,PreAlign,Str).
+
+align(1,N,A,Str) -> {Str, (A+1*N+0) rem 8};
+
+align(2,N,A,Str) when (A rem 2) =:= 0 -> {Str, (A+2*N+0) rem 8};
+align(2,N,A,Str) when (A rem 2) =:= 1 -> {"0:8," ++Str, (A+2*N+1) rem 8};
+
+align(4,N,A,Str) when (A rem 4) =:= 0 -> {Str, (A+4*N+0) rem 8};
+align(4,N,A,Str) when (A rem 4) =:= 1 -> {"0:24,"++Str, (A+4*N+3) rem 8};
+align(4,N,A,Str) when (A rem 4) =:= 2 -> {"0:16,"++Str, (A+4*N+2) rem 8};
+align(4,N,A,Str) when (A rem 4) =:= 3 -> {"0:8," ++Str, (A+4*N+1) rem 8};
+
+align(8,_,0,Str) -> {Str, 0};
+align(8,_,1,Str) -> {"0:56,"++Str, 0};
+align(8,_,2,Str) -> {"0:48,"++Str, 0};
+align(8,_,3,Str) -> {"0:40,"++Str, 0};
+align(8,_,4,Str) -> {"0:32,"++Str, 0};
+align(8,_,5,Str) -> {"0:24,"++Str, 0};
+align(8,_,6,Str) -> {"0:16,"++Str, 0};
+align(8,_,7,Str) -> {"0:8," ++Str, 0}.
+
+align_after(8,0,_Add,_Multiplier,_Name,Str) -> {Str,0};
+align_after(4,0,Add,Mult,Name,Str) ->
+ Extra = extra_align(Add,Mult),
+ Align = ",0:(((length("++Name++")"++Extra++") rem 2)*32)",
+ {Str ++ Align,0};
+align_after(4,4,Add,Mult,Name,Str) ->
+ Extra = extra_align(Add,Mult),
+ Align = ",0:(((1+length("++Name++")"++Extra++") rem 2)*32)",
+ {Str ++ Align,0};
+align_after(2,A,Add,Mult,Name,Str) when (A rem 2) =:= 0 ->
+ Extra = extra_align(A+Add*2,Mult),
+ Align = ",0:((8-((length("++Name++")*2"++Extra++") rem 8)) rem 8)",
+ {Str ++ Align,0};
+align_after(1,A,Add,Mult,Name,Str) ->
+ Extra = extra_align(A+Add,Mult),
+ Align = ",0:((8-((length("++Name++")"++Extra++") rem 8)) rem 8)",
+ {Str ++ Align,0};
+align_after(Sz,A,Add,Mult,Name,Str) ->
+ io:format("~p ~p with ~p ~p ~s~n, ~p", [Sz,A,Add,Mult,Name,Str]),
+ ?error(align_error).
+
+extra_align(0,1) -> "";
+extra_align(0,M) when M > 1 -> "* " ++ integer_to_list(M);
+extra_align(A,1) when A > 0 -> "+ " ++ integer_to_list(A);
+extra_align(A,M) when A > 0,M>1 ->
+ "* " ++ integer_to_list(M) ++ "+ " ++ integer_to_list(A).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+have_return_vals(void, Ps) ->
+ lists:any(fun(#arg{in=In, type=#type{base=B}}) ->
+ In =/= true orelse B =:= memory
+ end, Ps);
+have_return_vals(#type{}, _) -> true.
+
+erl_func_name("glu" ++ Name) -> check_name(lowercase(Name));
+erl_func_name("gl" ++ Name) -> check_name(lowercase(Name)).
+
+erl_arg_name(Name) -> uppercase(Name).
+
+check_name("begin") -> "'begin'";
+check_name("end") -> "'end'";
+check_name(Other) -> Other.
+
+
+doc_name(Name0, Alt) ->
+ Name = doc_name2(Name0,Alt),
+%% case lists:member(lists:last(Name0), "uvbisdf987654312") of
+%% true -> io:format("~s ~s~n", [Name0,Name]);
+%% false -> ignore
+%% end,
+ Name.
+
+doc_name2(N="glGetBufferParameteriv", _) -> N;
+doc_name2(N="glEnd", _) -> N;
+doc_name2(Name, {has_vector,_,_}) ->
+ strip_hard(reverse(Name));
+doc_name2(Name, _) ->
+ reverse(strip(reverse(Name))).
+
+strip_hard(Rev) ->
+ case strip(Rev) of
+ Rev -> reverse(strip2(Rev));
+ Other -> reverse(Other)
+ end.
+
+strip("BRA"++R) -> "BRA"++strip(R);
+strip([$v,$b,$u,$N,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$i,$u,$N,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$s,$u,$N,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$b,$N,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$i,$N,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$s,$N,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$d,$N,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$f,$N,N|R]) when N > 47, N < 58 -> R;
+strip([$b,$u,$N,N|R]) when N > 47, N < 58 -> R;
+
+strip([$v,$b,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$i,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$s,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$v,$b,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$i,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$s,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$d,N|R]) when N > 47, N < 58 -> R;
+strip([$v,$f,N|R]) when N > 47, N < 58 -> R;
+
+strip([$b,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$i,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$s,$u,N|R]) when N > 47, N < 58 ->R;
+strip([$b,N|R]) when N > 47, N < 58 -> R;
+strip([$i,N|R]) when N > 47, N < 58 -> R;
+strip([$s,N|R]) when N > 47, N < 58 -> R;
+strip([$d,N|R]) when N > 47, N < 58 -> R;
+strip([$f,N|R]) when N > 47, N < 58 -> R;
+
+strip([$v,$b,$u|R]) -> R;
+strip([$v,$i,$u|R]) -> R;
+strip([$v,$s,$u|R]) -> R;
+strip([$v,$b|R]) -> R;
+strip([$v,$i|R]) -> R;
+strip([$v,$s|R]) -> R;
+strip([$v,$d|R]) -> R;
+strip([$v,$f|R]) -> R;
+
+strip(R = "delban" ++ _) -> R;
+strip([$d,$e|R]) -> [$e|R];
+strip([$f,$e|R]) -> [$e|R];
+strip([$i,$e|R]) -> [$e|R];
+strip([$d,$x|R]) -> [$x|R];
+strip([$f,$x|R]) -> [$x|R];
+strip([$d,$d|R]) -> [$d|R];
+strip([$f,$d|R]) -> [$d|R];
+strip([$i,$l|R]) -> [$l|R];
+strip([$f,$l|R]) -> [$l|R];
+strip([$i,$r|R]) -> [$r|R];
+strip([$f,$r|R]) -> [$r|R];
+strip([$i,$g|R]) -> [$g|R];
+strip([$f,$g|R]) -> [$g|R];
+strip([$i,$n|R]) -> [$n|R];
+strip([$f,$n|R]) -> [$n|R];
+strip([$d,$n|R]) -> [$n|R];
+
+strip([$v,R]) -> R;
+strip([N|R]) when N > 47, N < 58 -> R;
+strip([_|R="tceRlg"]) -> R;
+strip([_|R="thgiLlg"]) -> R;
+strip(R) -> R.
+
+strip2([$b,$u|R]) -> R;
+strip2([$i,$u|R]) -> R;
+strip2([$s,$u|R]) -> R;
+strip2([$b|R]) -> R;
+strip2([$i|R]) -> R;
+strip2([$s|R]) -> R;
+strip2([$d|R]) -> R;
+strip2([$f|R]) -> R;
+strip2(R) -> R.
+
+gen_debug(GL, GLU) ->
+ open_write("../src/gen/gl_debug.hrl"),
+ erl_copyright(),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("gldebug_table() -> ~n[~n", []),
+ [printd(F,gl) || F <- GL],
+ [printd(F,glu) || F <- GLU],
+ w(" {-1, {mod, func, -1}}~n",[]),
+ w("].~n~n", []),
+ close().
+
+printd([F|R],Mod) when is_list(F) ->
+ printd(F,Mod),
+ printd(R,Mod);
+printd([],_) -> ok;
+printd(F,Mod) ->
+ case get(F) of
+ #func{alt={vector,_VecPos,_Vec}} -> ok;
+ #func{where=erl} -> ok;
+ #func{id=Id, name=Method} ->
+ w(" {~p, {~s, ~s, 0}},~n", [Id, Mod, erl_func_name(Method)]);
+ _Other ->
+ io:format("F= ~p => ~p~n", [F, _Other])
+ end.
diff --git a/lib/wx/api_gen/gl_xml/.gitignore b/lib/wx/api_gen/gl_xml/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/api_gen/gl_xml/.gitignore
diff --git a/lib/wx/api_gen/glapi.conf b/lib/wx/api_gen/glapi.conf
new file mode 100644
index 0000000000..f9ed7a1065
--- /dev/null
+++ b/lib/wx/api_gen/glapi.conf
@@ -0,0 +1,333 @@
+%% -*- erlang -*-
+% general options
+
+{skip, %% Skip these functions
+ [
+ %%% GLU
+ "glu", %% The ones we want is specified in keep
+ "gluQuad",
+ "gluBegin",
+ "gluEnd",
+ "gluNew",
+ "gluDelete",
+%% "gluTess",
+%% "gluGetNurbs",
+%% "gluGetTess",
+
+ %%% GL
+ "glProgramCallbackMESA",
+ "glGetProgramRegisterfvMESA",
+ "glGetPointerv",
+ "glGetBufferPointerv",
+ "glGetVertexAttribPointerv",
+ "glGetSeparableFilter",
+ "glMultiDrawElements",
+ "glMapBuffer",
+ "glUnmapBuffer",
+ "glEdgeFlagPointerEXT",
+ "glWeightPointerARB",
+ "glMatrixIndexPointerARB",
+ "glPixelTransformParameter",
+ %% OpengGL 3.0
+ %"glGetTransformFeedbackVarying", %% Jobbiga
+ %"glTransformFeedbackVaryings",
+
+ %% EXT
+ %% By default skip these extensions
+ "SGIX","SGIS","NV","ATI","AMD","SUN","SUNX","GREMEDY",
+ "HP","IBM","INTEL","APPLE","3DFX","PGI","EXT"]}.
+
+%% Exceptions to the above
+{keep,
+ [
+ %% GL_EXT_framebuffer_object
+ "glIsRenderbufferEXT",
+ "glBindRenderbufferEXT",
+ "glDeleteRenderbuffersEXT",
+ "glGenRenderbuffersEXT",
+ "glRenderbufferStorageEXT",
+ "glGetRenderbufferParameterivEXT",
+ "glIsFramebufferEXT",
+ "glBindFramebufferEXT",
+ "glDeleteFramebuffersEXT",
+ "glGenFramebuffersEXT",
+ "glCheckFramebufferStatusEXT",
+ "glFramebufferTexture1DEXT",
+ "glFramebufferTexture2DEXT",
+ "glFramebufferTexture3DEXT",
+ "glFramebufferRenderbufferEXT",
+ "glGetFramebufferAttachmentParameterivEXT",
+ "glGenerateMipmapEXT",
+ %% GL_ATI_separate_stencil
+ "glStencilOpSeparateATI",
+ "glStencilFuncSeparateATI",
+ %% GL_EXT_depth_bounds_test
+ "glDepthBoundsEXT",
+ %% GL_EXT_blend_equation_separate
+ "glBlendEquationSeparateEXT",
+ %% GL_EXT_stencil_clear_tag
+ "glStencilClearTagEXT",
+ %% GL_EXT_framebuffer_blit
+ "glBlitFramebufferEXT",
+ %% GL_EXT_framebuffer_multisample
+ "glRenderbufferStorageMultisampleEXT",
+
+ "gluBuild", % mipmaps*
+ "gluCheckExtension", "gluErrorString", "gluGetString",
+ "gluLookAt", "gluOrtho2D", "gluPerspective", "gluPickMatrix",
+ "gluScaleImage",
+
+ "gluNewQuadric", "gluDeleteQuadric",
+ "gluQuadricTexture", "gluQuadricOrientation", "gluQuadricNormals", "gluQuadricDrawStyle",
+ "gluDisk", "gluCylinder", "gluPartialDisk", "gluSphere",
+
+ "gluProject", "gluUnProject"
+ ]}.
+
+{vector, [{"glMultiTexCoord",1}, {"glConvolutionParameter",2},{"glVertexAttrib",1}, {"glVertexAttribI",1}]}.
+
+%% function specific information
+
+{"glBitmap", {"bitmap", {base,idx_binary}}}.
+{"glPolygonStipple", {"mask", binary}}.
+{"glGetPolygonStipple", [{"mask", [{binary, 128},out, {single,true}]}]}.
+{"glClipPlane", {"equation", {single,{tuple,4}}}}.
+{"glGetClipPlane", {"equation", {single,{tuple,4}}}}.
+{"glLoadMatrix", {"m", {single,{tuple,matrix}}}}.
+{"glMultMatrix", {"m", {single,{tuple,matrix}}}}.
+{"glCallLists", [{"n", {c_only, {length, "lists"}}},
+ {"type", {c_only, {constant, "GL_UNSIGNED_INT"}}},
+ {"lists", [{single,list},{type,"GLuint"}, {base,int}]}]}.
+{"glLight", {"params", {single,{tuple,undefined}}}}.
+{"glGetLight", {"params", {single, {tuple, 4}}}}.
+{"glMaterial", {"params", {single,{tuple,undefined}}}}.
+{"glGetMaterial", {"params", {single, {tuple, 4}}}}.
+{"glPixelMap", {"values", binary}}.
+{"glGetPixelMap", {"values", [{base,memory}, in]}}.
+{"glTexGen", {"params",{single,{tuple,undefined}}}}.
+{"glGetTexGen", {"params",{single,{tuple,4}}}}.
+{"glTexEnv", {"params",{single,{tuple,undefined}}}}.
+{"glGetTexEnv", {"params",{single,{tuple,4}}}}.
+{"glTexParameter", {"params",{single,{tuple,undefined}}}}.
+{"glGetTexParameter", {"params",{single,{tuple,4}}}}.
+{"glGetTexLevelParameter", {"params", {single,{tuple,1}}}}.
+{"glGenTextures", [{"textures", {single,{list,"n","n"}}}]}.
+{"glDeleteTextures", [{"n", {c_only, {length, "textures"}}},
+ {"textures", [{single,list}]}]}.
+{"glPrioritizeTextures", [{"n", {c_only, {length, "textures"}}},
+ {"textures", [{single,list}]},
+ {"priorities", [{single,list}]}]}.
+{"glAreTexturesResident", [{"n", {c_only,{length,"textures"}}},
+ {"textures", [{single,list}]},
+ {"residences", [{single,{list,"texturesLen","texturesLen"}}]}]}.
+{"glMap", {"points", binary}}.
+{"glGetMap", {"v", [{base,memory},in]}}.
+{"glFog", {"params", {single,{tuple,undefined}}}}.
+{"glColorTableParameter", {"params",{single,{tuple,4}}}}.
+{"glGetColorTable", {"table", [{base,memory},in]}}.
+{"glGetColorTableParameter", {"params", {single,{tuple,4}}}}.
+{"glGetHistogram", {"values", [{base,memory}, in]}}.
+{"glGetHistogramParameter", {"params", {single,{tuple,1}}}}.
+{"glGetMinmax", {"values", [{base,memory}, in]}}.
+{"glGetMinmaxParameter", {"params", {single,{tuple,1}}}}.
+{"glGetConvolutionFilter", {"image", [{base,memory}, in]}}.
+{"glConvolutionParameter", {"params", {single,{tuple,undefined}} }}.
+{"glGetConvolutionParameter", {"params", {single,{tuple,4}}}}.
+
+{"glRect", [{"v1", {single,{tuple,2}}},{"v2", {single,{tuple,2}}}]}.
+
+{"glGetString", {"result", {single,{list,null}}}}.
+{"glGetBooleanv", {"params", {single,{list,16}}}}.
+{"glGetDoublev", {"params", {single,{list,16}}}}.
+{"glGetFloatv", {"params", {single,{list,16}}}}.
+{"glGetIntegerv", {"params", {single,{list,16}}}}.
+
+{"glFeedbackBuffer", {"buffer", [{base,memory}, in]}}.
+{"glSelectBuffer", {"buffer", [{base,memory}, in]}}.
+{"glReadPixels", {"pixels", [{base,memory}, in]}}.
+{"glGetTexImage", {"pixels", [{base,memory}, in]}}.
+{"glGetCompressedTexImage", {"img", [{base,memory}, in]}}.
+
+{"glLoadTransposeMatrix", {"m", {single,{tuple,matrix}}}}.
+{"glMultTransposeMatrix", {"m",{single,{tuple,matrix}}}}.
+
+{"glMultiDrawArrays", [{"first", [in,{single,list}]},
+ {"count", [in,{single,list}]},
+ {"primcount", {c_only, {length,"first"}}}]}.
+
+{"glGenQueries", {"ids", {single,{list, "n", "n"}}}}.
+{"glGetQueryiv", {"params", {single, true}}}.
+{"glGetQueryObject", {"params", {single, true}}}.
+
+{"glPointParameter", {"params", {single,{tuple,undefined}} }}.
+{"glDeleteQueries", [{"n",{c_only,{length,"ids"}}},{"ids",[{single,list}]}]}.
+{"glGenBuffers", {"buffers",[{single,{list,"n","n"}}]}}.
+{"glGetBufferSubData", {"data", [{base,memory}, in]}}.
+{"glGetBufferParameteriv", {"params", {single,true}}}.
+{"glDeleteBuffers", [{"n",{c_only,{length,"buffers"}}},{"buffers",[{single,list}]}]}.
+{"glDrawBuffers", [{"n",{c_only,{length,"bufs"}}},{"bufs",[{single,list}]}]}.
+
+{"glShaderSource", [{"length", {c_only,{constant,"NULL"}}},
+ {"count", {c_only,{length,"string"}}},
+ {"string", {single,list}}]}.
+
+{"glGetActiveAttribARB", [{"length",[skip,{single, true}]},
+ {"size", {single, true}},
+ {"type", {single, true}},
+ {"name", {single, {list,"maxLength","length"}}}
+ ]}.
+
+{"glGetActiveAttrib", [{"length",[skip,{single, true}]},
+ {"size", {single, true}},
+ {"type", {single, true}},
+ {"name", {single, {list,"bufSize","length"}}}
+ ]}.
+
+{"glGetActiveUniformARB", [{"length",[skip,{single, true}]},
+ {"size", {single, true}},
+ {"type", {single, true}},
+ {"name", {single, {list,"maxLength","length"}}}
+ ]}.
+{"glGetActiveUniform", [{"length",[skip,{single, true}]},
+ {"size", {single, true}},
+ {"type", {single, true}},
+ {"name", {single, {list,"bufSize","length"}}}
+ ]}.
+
+{"glGetAttachedShaders", [{"count", [skip,{single,true}]},
+ {"obj", {single, {list,"maxCount","count"}}}
+ ]}.
+
+{"glGetProgramiv", {"params", {single,true}}}.
+
+{"glGetProgramInfoLog", [{"length", [skip,{single,true}]},
+ {"infoLog", {single, {list,"bufSize","length"}}}
+ ]}.
+{"glGetShaderiv", {"params", {single,true}}}.
+{"glGetShaderInfoLog", [{"length", [skip,{single,true}]},
+ {"infoLog", {single, {list,"bufSize","length"}}}
+ ]}.
+
+{"glGetShaderSourceARB", [{"length", [skip,{single,true}]},
+ {"source", {single, {list,"maxLength","length"}}}
+ ]}.
+{"glGetShaderSource", [{"length", [skip,{single,true}]},
+ {"source", {single, {list,"bufSize","length"}}}
+ ]}.
+
+
+{"glGetUniform", {"params", {single,{tuple,16}}}}.
+{"glGetVertexAttrib", {"params", {single,{tuple,4}}}}.
+
+{"glUniform1", [{"count",{c_only,{length,"value"}}}, {"value", [{single,list}]}]}.
+{"glUniform2", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,2}}]}]}.
+{"glUniform3", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,3}}]}]}.
+{"glUniform4", [{"count",{c_only,{length,"value"}}}, {"value", [{single,{tuple_list,4}}]}]}.
+{"glUniformMatrix2fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,4}}]}]}.
+{"glUniformMatrix3fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,9}}]}]}.
+{"glUniformMatrix4fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,16}}]}]}.
+{"glUniformMatrix2x3fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,6}}]}]}.
+{"glUniformMatrix3x2fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,6}}]}]}.
+{"glUniformMatrix2x4fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,8}}]}]}.
+{"glUniformMatrix4x2fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,8}}]}]}.
+{"glUniformMatrix3x4fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,12}}]}]}.
+{"glUniformMatrix4x3fv", [{"count",{c_only,{length,"value"}}},{"value", [{single,{tuple_list,12}}]}]}.
+{"glVertexAttrib4", {"v", {single, {tuple,4}}}}.
+
+
+{"glWeight", [{"size",{c_only,{length,"weights"}}}, {"weights", {single,list}}]}.
+{"glMatrixIndex", [{"size",{c_only,{length,"indices"}}}, {"indices", {single,list}}]}.
+
+
+{"glProgramStringARB", [{"len",{c_only,{constant,"stringLen"}}},
+ {"string",[{base,string},{single,true}]}]}.
+{"glGetProgramStringARB", {"string", [in,{base,memory}]}}.
+{"glGenProgramsARB", {"programs", {single,{list,"n","n"}}}}.
+{"glDeleteProgramsARB", [{"n",{c_only,{length,"programs"}}},{"programs",{single,list}}]}.
+{"glProgramEnvParameter4", {"params", {single,{tuple,4}}}}.
+{"glGetProgramEnvParameter", {"params", {single,{tuple,4}}}}.
+{"glProgramLocalParameter", {"params", {single,{tuple,4}}}}.
+{"glGetProgramLocalParameter", {"params", {single,{tuple,4}}}}.
+{"glGetObjectParameter", {"params", {single,true}}}.
+{"glGetInfoLogARB", [{"length", [skip,{single,true}]},
+ {"infoLog", {single, {list,"maxLength","length"}}}
+ ]}.
+{"glGetAttachedObjectsARB", [{"count", [skip,{single,true}]},
+ {"obj", {single, {list,"maxCount","count"}}}
+ ]}.
+
+{"glGenRenderbuffersEXT", {"renderbuffers", {single,{list,"n","n"}}}}.
+{"glDeleteRenderbuffersEXT",[{"n",{c_only,{length,"renderbuffers"}}},{"renderbuffers",{single,list}}]}.
+{"glDeleteFramebuffersEXT", [{"n",{c_only,{length,"framebuffers"}}},{"framebuffers",{single,list}}]}.
+{"glGetRenderbufferParameterivEXT", {"params", {single,true}}}.
+
+{"glGetFramebufferAttachmentParameterivEXT", {"params",{single,true}}}.
+{"glGenFramebuffersEXT", {"framebuffers",{single,{list,"n","n"}}}}.
+
+{"gluPickMatrix", {"viewport", [in, {single, {tuple, 4}}]}}.
+{"gluProject", [{"model", {single, {tuple, matrix}}},
+ {"proj", {single, {tuple, matrix}}},
+ {"view", {single, {tuple, 4}}},
+ {"winX", [{single,true},out]},
+ {"winY", [{single,true},out]},
+ {"winZ", [{single,true},out]}]}.
+{"gluUnProject", [{"model", {single, {tuple, matrix}}},
+ {"proj", {single, {tuple, matrix}}},
+ {"view", {single, {tuple, 4}}},
+ {"objX",[{single,true},out]},
+ {"objY",[{single,true},out]},
+ {"objZ",[{single,true},out]},
+ {"objW",[{single,true},out]}]}.
+{"gluBuild", {"data", [binary]}}.
+{"gluScaleImage", [{"dataIn", [in, binary]}, {"dataOut", [in, {base, memory}]}]}.
+{"gluCheckExtension", [{"extName", {single, list}}, {"extString", {single, list}}]}.
+{"gluErrorString", {"result", {single, {list,null}}}}.
+{"gluGetString", {"result", {single, {list,null}}}}.
+
+{"gluDeleteQuadric", {"quad", in}}.
+{"gluQuadric", {"quad", in}}.
+{"gluSphere", {"quad", in}}.
+{"gluPartialDisk", {"quad", in}}.
+{"gluDisk", {"quad", in}}.
+{"gluCylinder", {"quad", in}}.
+
+%% OpenGL 3.0
+{"glGetBooleani_v", {"data", {single,{list,16}}}}.
+{"glGetIntegeri_v", {"data", {single,{list,16}}}}.
+
+{"glTransformFeedbackVaryings", [{"count", {c_only,{length,"varyings"}}},
+ {"varyings", [{base,string}, {single,list}]}]}.
+{"glGetTransformFeedbackVarying", [{"size", {single, true}},{"type", {single, true}},
+ {"length", [skip, {single, true}]},
+ {"name", {single, {list,"bufSize","length"}}}]}.
+
+
+{"glGenRenderbuffers", {"renderbuffers", {single,{list,"n","n"}}}}.
+{"glGenFramebuffers", {"framebuffers",{single,{list,"n","n"}}}}.
+{"glGetRenderbufferParameteriv", {"params", {single,true}}}.
+{"glGetFramebufferAttachmentParameteriv", {"params",{single,true}}}.
+{"glGenVertexArrays", {"arrays", {single, {list,"n","n"}}}}.
+{"glGenRenderbuffers", {"renderbuffers", {single,{list,"n","n"}}}}.
+{"glDeleteRenderbuffers",[{"n",{c_only,{length,"renderbuffers"}}},
+ {"renderbuffers",{single,list}}]}.
+{"glDeleteFramebuffers", [{"n",{c_only,{length,"framebuffers"}}},
+ {"framebuffers",{single,list}}]}.
+{"glVertexAttribI4", {"v", {single, {tuple,4}}}}.
+%% {"glVertexAttribI4", {"v", }}.
+%% {"glVertexAttribI4ubv", {"v", }}.
+%% {"glVertexAttribI4usv", {"v", }}.
+{"glClearBuffer", {"value", {single, {tuple, undefined}}}}.
+{"glDeleteVertexArrays", [{"n",{c_only,{length,"arrays"}}},{"arrays", {single, list}}]}.
+
+{"glGetUniformIndices", [{"uniformCount", {c_only, {length, "uniformNames"}}},
+ {"uniformNames", [{base,string}, {single,list}]},
+ {"uniformIndices", [out, {single,{list, "uniformNamesLen", "uniformNamesLen"}}]}]}.
+{"glGetActiveUniformsiv", [{"uniformCount", {c_only, {length, "uniformIndices"}}},
+ {"uniformIndices", {single,list}},
+ {"params", [out, {single, {list, "uniformIndicesLen", "uniformIndicesLen"}}]}]}.
+
+{"glGetActiveUniformName", [{"length",[skip,{single, true}]},
+ {"uniformName", {single, {list,"bufSize","length"}}}]}.
+{"glGetActiveUniformBlockName", [{"length",[skip,{single, true}]},
+ {"uniformBlockName", {single, {list,"bufSize","length"}}}]}.
+{"glGetActiveUniformBlockiv", {"params", [in, {base,memory}]}}.
diff --git a/lib/wx/api_gen/wx_doxygen.conf b/lib/wx/api_gen/wx_doxygen.conf
new file mode 100644
index 0000000000..1fc57486e6
--- /dev/null
+++ b/lib/wx/api_gen/wx_doxygen.conf
@@ -0,0 +1,299 @@
+# Doxyfile 1.4.3
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = wxe
+PROJECT_NUMBER = 0.1
+OUTPUT_DIRECTORY = ./
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = NO
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = YES
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+SEPARATE_MEMBER_PAGES = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = YES
+EXTRACT_STATIC = YES
+EXTRACT_LOCAL_CLASSES = YES
+EXTRACT_LOCAL_METHODS = YES
+EXTRACT_ANON_NSPACES = YES
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = NO
+INLINE_INFO = NO
+SORT_MEMBER_DOCS = NO
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= NO
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = YES
+WARNINGS = NO
+WARN_IF_UNDOCUMENTED = NO
+WARN_IF_DOC_ERROR = NO
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = @WXGTK_DIR@/wx/ wx_extra/
+#FILE_PATTERNS = *.h
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS = mac/* mgl/* msw/* os2/* x11/* gtk1/* cocoa/* motif/* msdos/* palmos/* private/*
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+USE_HTAGS = NO
+VERBATIM_HEADERS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = NO
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = NO
+TOC_EXPAND = NO
+DISABLE_INDEX = NO
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = NO
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = NO
+RTF_OUTPUT = rtf
+COMPACT_RTF = NO
+RTF_HYPERLINKS = NO
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = YES
+XML_OUTPUT = ./wx_xml/
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = NO
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = \
+ wxUSE_MENUS=1 \
+ wxUSE_TOOLBAR=1 \
+ wxUSE_CONTROLS=1 \
+ wxUSE_BUTTON=1 \
+ wxUSE_STATBOX=1 \
+ wxUSE_BOOKCTRL=1 \
+ wxUSE_CHOICE=1 \
+ wxUSE_STATUSBAR=1 \
+ wxUSE_TEXTCTRL=1 \
+ wxUSE_GUI=1 \
+ wxUSE_GRID=1 \
+ wxUSE_TOGGLE_BTN=1 \
+ wxUSE_MSGDLG=1 \
+ wxUSE_FILEDLG=1 \
+ wxUSE_XRC=1 \
+ wxUSE_STATTEXT=1 \
+ wxUSE_STATLINE=1 \
+ wxUSE_LISTCTRL=1 \
+ wxUSE_ACCEL=1 \
+ wxUSE_CARET=1 \
+ wxUSE_CONSTRAINTS=1 \
+ wxUSE_TOOLTIPS=1 \
+ wxUSE_DRAG_AND_DROP=1 \
+ wxUSE_HELP=1 \
+ wxUSE_IMAGE=1 \
+ wxUSE_VALIDATORS=1 \
+ wxUSE_UNICODE=1 \
+ wxUSE_CALENDARCTRL=1 \
+ wxUSE_DATETIME=1 \
+ wxUSE_COMBOBOX=1 \
+ wxUSE_GAUGE=1 \
+ wxUSE_LISTBOX=1 \
+ wxUSE_BMPBUTTON=1 \
+ wxUSE_CHECKBOX=1 \
+ wxUSE_TREECTRL=1 \
+ wxUSE_LISTCTRL=1 \
+ wxUSE_BOOKCTRL=1 \
+ wxUSE_NOTEBOOK=1 \
+ wxUSE_CHOICEBOOK=1 \
+ wxUSE_TOOLBOOK=1 \
+ wxUSE_LISTBOOK=1 \
+ wxUSE_TREEBOOK=1 \
+ wxUSE_SPINBTN=1 \
+ wxUSE_FINDREPLDLG=1 \
+ wxUSE_TEXTDLG=1 \
+ wxUSE_FONTDLG=1 \
+ wxUSE_DIRDLG=1 \
+ wxUSE_PRINTING_ARCHITECTURE=1 \
+ wxUSE_HTML=1 \
+ wxUSE_POSTSCRIPT=1 \
+ wxUSE_PROGRESSDLG=1 \
+ wxUSE_RADIOBOX=1 \
+ wxUSE_MINIFRAME=1 \
+ wxUSE_PALETTE=1 \
+ wxUSE_SASH=1 \
+ wxTopLevelWindowNative=1 \
+ wxUSE_GLCANVAS=1 \
+ wxUSE_GRAPHICS_CONTEXT=1 \
+ wxUSE_AUI=1 \
+ wxUSE_MDI_ARCHITECTURE=1 \
+ wxUSE_FILEPICKERCTRL=1 \
+ wxUSE_DIRPICKERCTRL=1 \
+ wxUSE_FONTPICKERCTRL=1 \
+ wxUSE_DATEPICKCTRL=1 \
+ wxUSE_COLOURPICKERCTRL=1 \
+ wxUSE_DATAOBJ=1 \
+ wxUSE_SLIDER=1 \
+ wxUSE_CLIPBOARD=1 \
+ wxABI_VERSION=20809 \
+ __WXGTK24__=1 \
+ __WXGTK__=1 \
+ WXDLLEXPORT=""
+
+# WXWIN_COMPATIBILITY_2_6=1 \
+
+EXPAND_AS_DEFINED = YES
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = YES
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = NO
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
+
diff --git a/lib/wx/api_gen/wx_extra/bugs.h b/lib/wx/api_gen/wx_extra/bugs.h
new file mode 100644
index 0000000000..b8f3dfcb00
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/bugs.h
@@ -0,0 +1,36 @@
+
+// I have added this doxygen seems to get lost in some macros
+// in sashwin.h
+
+enum wxSashDragStatus
+ {
+ wxSASH_STATUS_OK,
+ wxSASH_STATUS_OUT_OF_RANGE
+ };
+
+// Macro needed in erlang
+class WXDLLIMPEXP_XRC wxXmlResource : public wxObject
+{
+ public:
+ wxObject xrcctrl(wxWindow *Window, wxString Name, wxString Type);
+};
+
+// The generater needs constructors
+class WXDLLIMPEXP_ADV wxGridCellBoolRenderer : public wxGridCellRenderer
+{
+ public:
+ wxGridCellBoolRenderer();
+};
+
+class WXDLLIMPEXP_ADV wxGridCellStringRenderer : public wxGridCellRenderer
+{
+ public:
+ wxGridCellStringRenderer();
+};
+
+class WXDLLIMPEXP_ADV wxGridCellNumberRenderer : public wxGridCellStringRenderer
+{
+ public:
+ wxGridCellNumberRenderer();
+};
+
diff --git a/lib/wx/api_gen/wx_extra/wxEvtHandler.c_src b/lib/wx/api_gen/wx_extra/wxEvtHandler.c_src
new file mode 100644
index 0000000000..4e492db045
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxEvtHandler.c_src
@@ -0,0 +1,66 @@
+case 98: { // wxeEvtListener::wxeEvtListener
+ wxeEvtListener *Result = new wxeEvtListener(Ecmd.port);
+ rt.addRef(getRef((void *)Result,memenv), "wxeEvtListener");
+ break;
+}
+case 99: { // wxeEvtListener::destroy
+ wxObject *This = (wxObject *) getPtr(bp,memenv);
+ rt.addAtom("ok");
+ delete This;
+ break;
+}
+
+case 100: { // wxEvtHandler::Connect
+ wxeEvtListener *Listener = (wxeEvtListener *) getPtr(bp,memenv); bp += 4;
+ wxEvtHandler *This = (wxEvtHandler *) getPtr(bp, memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ int * lastId = (int *) bp; bp += 4;
+ int * skip = (int *) bp; bp += 4;
+ int * haveUserData = (int *) bp; bp += 4;
+ wxeErlTerm * userData = NULL;
+ int * fun_cb = (int *) bp; bp += 4;
+ int * eventTypeLen = (int *) bp; bp += 4;
+ int * class_nameLen = (int *) bp; bp += 4;
+
+ if(*haveUserData) {
+ userData = new wxeErlTerm(Ecmd.bin[0]);
+ }
+
+ int eventType = wxeEventTypeFromAtom(bp); bp += *eventTypeLen;
+ char *class_name = bp; bp+= *class_nameLen;
+ if(eventType > 0 ) {
+ wxeCallbackData * Evt_cb = new wxeCallbackData(Ecmd.caller,(void *) This,
+ class_name,*fun_cb,
+ *skip, userData);
+ This->Connect((int) *winid,(int) *lastId,eventType,
+ (wxObjectEventFunction)(wxEventFunction) &wxeEvtListener::forward,
+ Evt_cb, Listener);
+ rt.addAtom("ok");
+ } else {
+ rt.addAtom("badarg");
+ rt.addAtom("event_type");
+ rt.addTupleCount(2);
+ }
+ break;
+}
+case 101: { // wxEvtHandler::Disconnect
+ wxeEvtListener *Listener = (wxeEvtListener *) getPtr(bp,memenv); bp += 4;
+ wxEvtHandler *This = (wxEvtHandler *) getPtr(bp, memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ int * lastId = (int *) bp; bp += 4;
+ int * eventTypeLen = (int *) bp; bp += 4;
+
+ int eventType = wxeEventTypeFromAtom(bp); bp += *eventTypeLen;
+ if(eventType > 0) {
+ bool Result = This->Disconnect((int) *winid,(int) *lastId,eventType,
+ (wxObjectEventFunction)(wxEventFunction)
+ &wxeEvtListener::forward,
+ NULL, Listener);
+ rt.addBool(Result);
+ } else {
+ rt.addAtom("badarg");
+ rt.addAtom("event_type");
+ rt.addTupleCount(2);
+ }
+ break;
+}
diff --git a/lib/wx/api_gen/wx_extra/wxEvtHandler.erl b/lib/wx/api_gen/wx_extra/wxEvtHandler.erl
new file mode 100644
index 0000000000..c6810eb32c
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxEvtHandler.erl
@@ -0,0 +1,183 @@
+%% This module is actually handwritten see ../api_gen/wx_extra/wxEvtHandler.erl
+%%
+%% @doc The Event handler.
+%%
+%% To get events from wxwidgets objects you subscribe to them by
+%% calling connect/[2-3]. Events are sent as messages, if no callback
+%% was supplied These messages will be {@link wx(). #wx{}} where
+%% EventRecord is a record that depends on the {@link
+%% wxEventType(). event type}. The records are defined in:
+%% wx/include/wx.hrl.
+%%
+%% If a callback was supplied to connect, the callback will be invoked
+%% (in another process) to handle the event. The callback should be of
+%% arity 2. fun(EventRecord::wx(), EventObject::wxObject()).
+%%
+%% Beware that the callback will be in executed in new process each time.
+%%
+%% <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html">
+%% The orginal documentation</a>.
+%%
+%% @headerfile "../../include/wx.hrl"
+%%
+%%@type wxEvtHandler(). An object reference
+
+-module(wxEvtHandler).
+-include("wxe.hrl").
+-include("../include/wx.hrl").
+
+%% API
+-export([connect/2, connect/3, disconnect/1, disconnect/2, disconnect/3]).
+
+%% internal exports
+-export([connect_impl/3, disconnect_impl/2, disconnect_impl/3,
+ new_evt_listener/0, destroy_evt_listener/1,
+ get_callback/1, replace_fun_with_id/2]).
+
+-record(evh, {et=null,id=?wxID_ANY,lastId=?wxID_ANY,skip=undefined,userdata=[],cb=0}).
+
+
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType()) -> ok
+%% @doc Equivalent to {@link connect/3. connect(This, EventType, [])}
+
+connect(This, EventType) ->
+ connect(This, EventType, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType(), [Options]) -> ok
+%% @doc This function subscribes the to events of EventType,
+%% in the range id, lastId. The events will be received as messages
+%% if no callback is supplied.
+%%
+%% Options:
+%% {id, integer()}, The identifier (or first of the identifier range) to be
+%% associated with this event handler.
+%% Default ?wxID_ANY
+%% {lastId, integer()}, The second part of the identifier range.
+%% If used 'id' must be set as the starting identifier range.
+%% Default ?wxID_ANY
+%% {skip, boolean()}, If skip is true further event_handlers will be called.
+%% This is not used if the 'callback' option is used.
+%% Default false.
+%% {callback, function()} Use a callback fun(EventRecord::wx(), EventObject::wxObject())
+%% to process the event. Default not specfied i.e. a message will
+%% be delivered to the process calling this function.
+%% {userData, term()} An erlang term that will be sent with the event. Default: [].
+connect(This=#wx_ref{type=ThisT}, EventType, Options) ->
+ EvH = parse_opts(Options, #evh{et=EventType}),
+ ?CLASS(ThisT,wxEvtHandler),
+ case wxe_util:connect_cb(This, EvH) of
+ ok -> ok;
+ {badarg, event_type} ->
+ erlang:error({badarg,EventType})
+ end.
+
+parse_opts([{callback,Fun}|R], Opts) when is_function(Fun) ->
+ %% Check Fun Arity?
+ parse_opts(R, Opts#evh{cb=Fun});
+parse_opts([callback|R], Opts) ->
+ parse_opts(R, Opts#evh{cb=1});
+parse_opts([{userData, UserData}|R],Opts) ->
+ parse_opts(R, Opts#evh{userdata=UserData});
+parse_opts([{skip, Skip}|R],Opts) when is_boolean(Skip) ->
+ parse_opts(R, Opts#evh{skip=Skip});
+parse_opts([{id, Id}|R],Opts) when is_integer(Id) ->
+ parse_opts(R, Opts#evh{id=Id});
+parse_opts([{lastId, Id}|R],Opts) when is_integer(Id) ->
+ parse_opts(R, Opts#evh{lastId=Id});
+parse_opts([_BadArg|R], Opts) ->
+ parse_opts(R, Opts);
+parse_opts([], Opts = #evh{id=Id,lastId=Lid,skip=Skip, cb=CB}) ->
+ if
+ Skip =/= undefined andalso CB =/= 0 ->
+ erlang:error({badarg, {combined, skip, callback}});
+ Lid =/= ?wxID_ANY andalso Id =:= ?wxID_ANY ->
+ erlang:error({badarg, no_start_identifier_range});
+ Skip =:= undefined -> %% Default
+ Opts#evh{skip=false};
+ true ->
+ Opts
+ end.
+
+%% @spec (This::wxEvtHandler()) -> true | false
+%% @doc Equivalent to {@link disconnect/3. disconnect(This, null, [])}
+%% Can also have an optional callback Fun() as an additional last argument.
+
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ disconnect(This, null, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType()) -> true | false
+%% @doc Equivalent to {@link disconnect/3. disconnect(This, EventType, [])}
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}, EventType) when is_atom(EventType) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ disconnect(This, EventType, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType(), Opts) -> true | false
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html#wxevthandlerdisconnect">external documentation</a>
+%% This function unsubscribes the process or callback fun from the event handler.
+%% EventType may be the atom 'null' to match any eventtype.
+%% Notice that the options skip and userdata is not used to match the eventhandler.
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}, EventType, Opts) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ EvH = parse_opts(Opts, #evh{et=EventType}),
+ case wxe_util:disconnect_cb(This, EvH) of
+ {badarg, event_type} ->
+ erlang:error({badarg,EventType});
+ Bool ->
+ Bool
+ end.
+
+
+%% @hidden
+connect_impl(#wx_ref{type=wxeEvtListener,ref=EvtList},
+ #wx_ref{type=ThisT,ref=ThisRef},
+ #evh{id=Winid, lastId=LastId, et=EventType,
+ skip=Skip, userdata=Userdata, cb=FunID})
+ when is_integer(FunID)->
+ EventTypeBin = list_to_binary([atom_to_list(EventType)|[0]]),
+ ThisTypeBin = list_to_binary([atom_to_list(ThisT)|[0]]),
+ UD = if Userdata =:= [] -> 0;
+ true ->
+ wxe_util:send_bin(term_to_binary(Userdata)),
+ 1
+ end,
+ wxe_util:call(100, <<EvtList:32/?UI,ThisRef:32/?UI,
+ Winid:32/?UI,LastId:32/?UI,
+ (wxe_util:from_bool(Skip)):32/?UI,
+ UD:32/?UI,
+ FunID:32/?UI,
+ (size(EventTypeBin)):32/?UI,
+ (size(ThisTypeBin)):32/?UI,
+ %% Note no alignment
+ EventTypeBin/binary,ThisTypeBin/binary>>).
+
+%% @hidden
+disconnect_impl(Listener, Object) ->
+ disconnect_impl(Listener, Object, #evh{}).
+%% @hidden
+disconnect_impl(#wx_ref{type=wxeEvtListener,ref=EvtList},
+ #wx_ref{type=_ThisT,ref=ThisRef},
+ #evh{id=Winid, lastId=LastId, et=EventType}) ->
+ EventTypeBin = list_to_binary([atom_to_list(EventType)|[0]]),
+ wxe_util:call(101, <<EvtList:32/?UI,
+ ThisRef:32/?UI,Winid:32/?UI,LastId:32/?UI,
+ (size(EventTypeBin)):32/?UI,
+ %% Note no alignment
+ EventTypeBin/binary>>).
+
+%% @hidden
+new_evt_listener() ->
+ wxe_util:call(98, <<>>).
+
+%% @hidden
+destroy_evt_listener(#wx_ref{type=wxeEvtListener,ref=EvtList}) ->
+ wxe_util:call(99, <<EvtList:32/?UI>>).
+
+%% @hidden
+get_callback(#evh{cb=Callback}) ->
+ Callback.
+
+%% @hidden
+replace_fun_with_id(Evh, Id) ->
+ Evh#evh{cb=Id}.
diff --git a/lib/wx/api_gen/wx_extra/wxListCtrl.c_src b/lib/wx/api_gen/wx_extra/wxListCtrl.c_src
new file mode 100644
index 0000000000..cd3074e481
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxListCtrl.c_src
@@ -0,0 +1,24 @@
+<<SortItems
+case ~s: { // wxListCtrl::SortItems taylormade
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int sortCallback=*(int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+
+ callbackInfo* cb = new callbackInfo();
+ cb->port = Ecmd.port;
+ cb->callbackID = sortCallback;
+ bool Result = This->SortItems(wxEListCtrlCompare, (long)cb);
+ delete cb;
+
+ /* Destroy the callback, see wxEPrintout::clear_cb */
+ wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ // NOTE: Remove this later when changing from funs to gen_server
+ cbrt.addAtom("wx_delete_cb");
+ cbrt.addInt(sortCallback);
+ cbrt.addTupleCount(2);
+ cbrt.send();
+
+ rt.addBool(Result);
+ break;
+}
+SortItems>>
diff --git a/lib/wx/api_gen/wx_extra/wxListCtrl.erl b/lib/wx/api_gen/wx_extra/wxListCtrl.erl
new file mode 100644
index 0000000000..e6470182cb
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxListCtrl.erl
@@ -0,0 +1,39 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+<<EXPORT:SortItems sortItems/2 SortItems:EXPORT>>
+
+<<SortItems
+%% @spec (This::wxListCtrl(), SortCallBack::function()) -> boolean()
+%% @doc Sort the items in the list control<br />
+%% <pre>SortCalBack(Item1,Item2) -> integer()</pre>
+%% <br /> SortCallBack receives the client data associated with two items
+%% to compare, and should return 0 if the items are equal, a negative
+%% value if the first item is less than the second one and a positive
+%% value if the first item is greater than the second one.
+%% <br /> NOTE: The callback may not call other processes.
+sortItems(#wx_ref{type=ThisT,ref=ThisRef}, SortCallBack)
+ when is_function(SortCallBack, 2) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Sort = fun([Item1,Item2]) ->
+ Result = SortCallBack(Item1,Item2),
+ <<Result:32/?UI>>
+ end,
+ SortId = wxe_util:get_cbId(Sort),
+ wxe_util:call(~s, <<ThisRef:32/?UI,SortId:32/?UI>>).
+SortItems>>
diff --git a/lib/wx/api_gen/wx_extra/wxPrintout.c_src b/lib/wx/api_gen/wx_extra/wxPrintout.c_src
new file mode 100644
index 0000000000..c088a95e73
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxPrintout.c_src
@@ -0,0 +1,30 @@
+<<wxPrintout
+case ~s: { // wxPrintout::wxPrintout taylormade
+ int onPreparePrinting=0,onBeginPrinting=0,onEndPrinting=0,onBeginDocument=0,
+ onEndDocument=0,hasPage=0,getPageInfo=0;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ int onPrintPage=*(int *) bp; bp += 4;
+ while( * (int*) bp) {
+ switch (* (int*) bp) {
+ case 1: {bp += 4; onPreparePrinting = *(int *) bp; bp += 4;} break;
+ case 2: {bp += 4; onBeginPrinting = *(int *) bp; bp += 4;} break;
+ case 3: {bp += 4; onEndPrinting = *(int *) bp; bp += 4;} break;
+ case 4: {bp += 4; onBeginDocument = *(int *) bp; bp += 4;} break;
+ case 5: {bp += 4; onEndDocument = *(int *) bp; bp += 4;} break;
+ case 6: {bp += 4; hasPage = *(int *) bp; bp += 4;} break;
+ case 7: {bp += 4; getPageInfo = *(int *) bp; bp += 4;} break;
+ }
+ }
+ wxEPrintout *Result = new wxEPrintout(title,onPrintPage,
+ onPreparePrinting,
+ onBeginPrinting,onEndPrinting,
+ onBeginDocument,onEndDocument,
+ hasPage,getPageInfo, Ecmd.port);
+
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintout");
+ break;
+}
+wxPrintout>>
+
diff --git a/lib/wx/api_gen/wx_extra/wxPrintout.erl b/lib/wx/api_gen/wx_extra/wxPrintout.erl
new file mode 100644
index 0000000000..be8f2e2fa5
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxPrintout.erl
@@ -0,0 +1,102 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+<<EXPORT:wxPrintout new/2,new/3 wxPrintout:EXPORT>>
+
+<<wxPrintout
+%% @spec (Title::string(), OnPrintPage::function()) -> wxPrintout:wxPrintout()
+%% @doc @equiv new(Title, OnPrintPage, [])
+new(Title, OnPrintPage) ->
+ new(Title, OnPrintPage, []).
+
+%% @spec (Title::string(), OnPrintPage::function(), [Option]) -> wxPrintout:wxPrintout()
+%% Option = {onPreparePrinting, OnPreparePrinting::function()} |
+%% {onBeginPrinting, OnBeginPrinting::function()} |
+%% {onEndPrinting, OnEndPrinting::function()} |
+%% {onBeginDocument, OnBeginDocument::function()} |
+%% {onEndDocument, OnEndDocument::function()} |
+%% {hasPage, HasPage::function()} |
+%% {getPageInfo, GetPageInfo::function()}
+%% @doc Creates a wxPrintout object with a callback fun and optionally other callback funs.<br />
+%% <pre>OnPrintPage(This,Page) -> boolean() </pre>
+%% <pre>OnPreparePrinting(This) -> term() </pre>
+%% <pre>OnBeginPrinting(This) -> term() </pre>
+%% <pre>OnEndPrinting(This) -> term() </pre>
+%% <pre>OnBeginDocument(This,StartPage,EndPage) -> boolean() </pre>
+%% <pre>OnEndDocument(This) -> term() </pre>
+%% <pre>HasPage(This,Page)} -> boolean() </pre>
+%% <pre>GetPageInfo(This) -> {MinPage:.integer(), MaxPage::integer(), PageFrom::integer(), PageTo::integer()} </pre>
+%% The <b>This</b> argument is the wxPrintout object reference to this object
+%% <br /> NOTE: The callbacks may not call other processes.
+new(Title, OnPrintPage, Opts) when is_list(Title), is_function(OnPrintPage), is_list(Opts) ->
+ OnPrint = fun([This,Page]) ->
+ Bool = OnPrintPage(This,Page),
+ <<(wxe_util:from_bool(Bool)):32/?UI>>
+ end,
+ OnPrintPageId = wxe_util:get_cbId(OnPrint),
+ MOpts = fun({onPreparePrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<1:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onBeginPrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<2:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onEndPrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<3:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onBeginDocument, F},Acc) when is_function(F) ->
+ Fun = fun([This,S,E]) ->
+ BegD = F(This,S,E),
+ <<(wxe_util:from_bool(BegD)):32/?UI>>
+ end,
+ [<<4:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onEndDocument, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<5:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({hasPage, F},Acc) when is_function(F) ->
+ Fun = fun([This,Page]) ->
+ HasP = F(This,Page),
+ <<(wxe_util:from_bool(HasP)):32/?UI>>
+ end,
+ [<<6:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({getPageInfo, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ {Min,Max,PF,PT} = F(This),
+ <<Min:32/?UI,Max:32/?UI,PF:32/?UI,PT:32/?UI>>
+ end,
+ [<<7:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc]
+ end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Opts)),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(~s, << (byte_size(Title_UC)):32/?UI,Title_UC/binary,
+ 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8,
+ OnPrintPageId:32/?UI,
+ BinOpt/binary>>).
+
+wxPrintout>>
diff --git a/lib/wx/api_gen/wx_extra/wxXmlResource.c_src b/lib/wx/api_gen/wx_extra/wxXmlResource.c_src
new file mode 100644
index 0000000000..152e83fe32
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxXmlResource.c_src
@@ -0,0 +1,3 @@
+<<xrcctrl
+// XRCTRL macro implemented in erlang funcid ~s
+xrcctrl>> \ No newline at end of file
diff --git a/lib/wx/api_gen/wx_extra/wxXmlResource.erl b/lib/wx/api_gen/wx_extra/wxXmlResource.erl
new file mode 100644
index 0000000000..cd2bea6a1d
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxXmlResource.erl
@@ -0,0 +1,43 @@
+
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+<<EXPORT:xrcctrl xrcctrl/3 xrcctrl:EXPORT>>
+
+<<xrcctrl
+%% @spec (Window::wxWindow:wxWindow(),Name::string(), Type::atom()) -> wx:wxObject()
+
+%% @doc Looks up a control with Name in a window created with XML
+%% resources. You can use it to set/get values from controls.
+%% The object is type casted to <b>Type</b>.
+%% Example: <br />
+%% Xrc = wxXmlResource:get(), <br />
+%% Dlg = wxDialog:new(), <br />
+%% true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"), <br />
+%% LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl), <br />
+%% wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]), <br />
+
+xrcctrl(Window = #wx_ref{}, Name, Type) when is_list(Name), is_atom(Type) ->
+ %% Func Id ~s
+ ID = wxXmlResource:getXRCID(Name),
+ Res = wxWindow:findWindow(Window,ID),
+ wx:typeCast(Res, Type).
+
+xrcctrl>>
+
+
diff --git a/lib/wx/api_gen/wx_extra/wxe_evth.h b/lib/wx/api_gen/wx_extra/wxe_evth.h
new file mode 100644
index 0000000000..9af603b9e2
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxe_evth.h
@@ -0,0 +1,25 @@
+
+// This add some extra functions, special code is in the compiler
+// this file is currently not used at all except to get the inherited
+// functions in the erlang modules.
+
+
+class wxeEvtHandler : public wxObject
+{
+ public:
+ // Dynamic association of a member function handler with the event handler,
+ // winid and event type
+ void Connect(int eventType,
+ int options = -1);
+
+ // Disconnect
+
+ // Convenience function: take just one id
+ void Disconnect(int eventType, int winid = -1);
+
+ // Even more convenient: without id (same as using id of wxID_ANY)
+ void Disconnect(int eventType);
+
+ void Disconnect();
+
+}
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl
new file mode 100644
index 0000000000..50dd2d6f51
--- /dev/null
+++ b/lib/wx/api_gen/wx_gen.erl
@@ -0,0 +1,1443 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%% Api wrapper generator
+
+-module(wx_gen).
+-export([code/0,xml/0]).
+
+-include("wx_gen.hrl").
+
+-include_lib("xmerl/include/xmerl.hrl").
+
+-import(lists, [foldl/3,foldr/3,reverse/1, keysearch/3, map/2, filter/2]).
+-import(proplists, [get_value/2,get_value/3]).
+
+-compile(export_all).
+
+code() -> safe(fun gen_code/0,true).
+xml() -> safe(fun gen_xml/0,true).
+
+devcode() -> erase(),safe(fun gen_code/0,false).
+
+safe(What, QuitOnErr) ->
+ try
+ What(),
+ io:format("Completed succesfully~n~n", []),
+ QuitOnErr andalso gen_util:halt(0)
+ catch Err:Reason ->
+ io:format("Error in ~p ~p~n", [get(current_class),get(current_func)]),
+ erlang:display({Err,Reason, erlang:get_stacktrace()}),
+ catch gen_util:close(),
+ QuitOnErr andalso gen_util:halt(1)
+ end.
+
+gen_code() ->
+ {ok, Defs0} = file:consult("wxapi.conf"),
+ %% {ok, Defs0} = file:consult("test.conf"),
+ erase(func_id),
+ put(class_id, 10), %% Start from 10 using the other as special
+ Defs1 = init_defs(Defs0),
+ Defs2 = parse_defs(Defs1, []),
+ parse_enums([File || {{include, File},_} <- get()]),
+ Defs = translate_enums(Defs2),
+ wx_gen_erl:gen(Defs),
+ wx_gen_cpp:gen(Defs),
+ ok.
+
+gen_xml() ->
+%% {ok, Defs} = file:consult("wxapi.conf"),
+
+%% Rel = reverse(tl(reverse(os:cmd("wx-config --release")))),
+%% Dir = " /usr/include/wx-" ++ Rel ++ "/wx/",
+%% Files0 = [Dir ++ File || {class, File, _, _, _} <- Defs],
+%% Files1 = [Dir ++ File || {doxygen, File} <- Defs],
+%% ok = file:write_file("wxapi.files", list_to_binary("INPUT = "++Files0++Files1)),
+ ok.
+
+-record(hs,{alias,skip,fs,fopt,ev,acc,info}).
+
+init_defs(List0) ->
+ List1 = to_lists(List0),
+ lists:map(fun mangle_info/1, List1).
+
+mangle_info(E={enum,Type0,SkipStr}) ->
+ Type = case is_atom(Type0) of true -> atom_to_list(Type0); false -> Type0 end,
+ put({enum, Type}, #enum{skip=SkipStr,as_atom=false}), %% as_atom=true}),
+ E;
+mangle_info(E={const_skip,List}) ->
+ put(const_skip, [atom_to_list(M) || M <- List]),
+ E;
+mangle_info(E={not_const,List}) ->
+ put(not_const, [atom_to_list(M) || M <- List]),
+ E;
+mangle_info(E={gvars,List}) ->
+ A2L = fun({N,{T,C}}) -> {atom_to_list(N), {T,atom_to_list(C)}};
+ ({N,C}) -> {atom_to_list(N), atom_to_list(C)}
+ end,
+ put(gvars, map(A2L,List)),
+ E;
+mangle_info({class,CN,P,O,FL}) ->
+ Alias = get_value(alias,O, []),
+ Skip = get_value(skip, O, []),
+ Event = get_value(event,O, false),
+ Acc = get_value(acc, O, []),
+ {Fs,Fopts} = foldr(fun(FWO={F,FO},{Fl,Fopt}) when is_list(FO) ->
+ {[F|Fl],[FWO|Fopt]};
+ (F,{Fl,Fopt}) ->
+ {[F|Fl], Fopt}
+ end, {[],[]}, FL),
+ {class,CN,P,#hs{alias=Alias,skip=Skip,fs=Fs,ev=Event,acc=Acc,info=O,
+ fopt=gb_trees:from_orddict(lists:sort(Fopts))}}.
+
+to_lists(Defs) ->
+ map(fun({class,C,P,O,Fs}) ->
+ {class,atom_to_list(C),atom_to_list(P),to_lists2(O),to_lists2(Fs)};
+ (Skip) -> Skip
+ end, Defs).
+
+to_lists2(List) ->
+ map(fun(Skip = {const_skip, _List}) -> Skip;
+ (Skip = {not_const, _List}) -> Skip;
+ (Skip = {skip, _List}) -> Skip;
+ (Skip = {event, _List}) -> Skip;
+ (Skip = {acc, _List}) -> Skip;
+ (Skip = {doc, _List}) -> Skip;
+ (Skip = taylormade) -> Skip;
+ (Skip = {ifdef,_}) -> Skip;
+ (Skip = {erl_func, _Name}) -> Skip;
+ ({alias, AList}) -> {alias, [{atom_to_list(A),atom_to_list(B)} || {A,B} <- AList]};
+ (Else) when is_atom(Else) -> atom_to_list(Else);
+ ({Else,W}) when is_atom(Else) -> {atom_to_list(Else),W};
+ ({{Else,W},O}) when is_atom(Else) -> {{atom_to_list(Else),W},O};
+ (Else) -> Else
+ end, List).
+
+parse_defs([{class,Name,Parent,Info}|Rest], Acc0) ->
+ {FileName, Type} =
+ case Parent of
+ "static" -> {Name ++ "_8h", static};
+ _ -> {"class" ++ Name, class}
+ end,
+ Tab = ets:new(defs, [bag]),
+ Defs0 = load_members(FileName, Name, gb_trees:empty(), Tab, Type, Info),
+
+ put(current_class, Name),
+ Class0 = #class{name=name(Name,Info),parent=Parent,
+ doc=get_value(doc,Info#hs.info,undefined),
+ file=FileName,options=Info#hs.info, id=next_id(class_id)},
+ ParseClass = fun(Member,{Class,Dfs}) ->
+ parse_class(Member,Tab,Dfs,Class,Info)
+ end,
+ {Class1,Defs} = foldl(ParseClass,{Class0,Defs0},Info#hs.fs),
+
+ Class2 = case Info#hs.ev of
+ false -> Class1;
+ Ev -> parse_attr(gb_trees:to_list(Defs), Class1, Ev, Info)
+ end,
+ Class = meta_info(Class2),
+ erase(current_class),
+ [erase(Del) || {Del = {loaded, _},_} <- get()],
+ %% ets:delete(Tab), keep it for debugging
+ parse_defs(Rest, [Class|Acc0]);
+parse_defs([_|Rest], Acc) ->
+ parse_defs(Rest, Acc);
+parse_defs([], Acc) -> reverse(Acc).
+
+meta_info(C=#class{name=CName,methods=Ms0}) ->
+ Ms = lists:append(Ms0),
+ HaveConstructor =
+ lists:keysearch(constructor, #method.method_type, Ms) =/= false,
+ case lists:keysearch(destructor, #method.method_type, Ms) of
+ false when HaveConstructor ->
+ Dest = #method{name="destroy",id=next_id(func_id),
+ method_type=destructor, params=[this(CName)]},
+ C#class{methods = [[Dest]|Ms0]};
+ false ->
+ C#class{abstract = true};
+ _ ->
+ C
+ end.
+
+parse_class(Member0,Tab,Defs0,Class = #class{name=CName},Opts) ->
+ {Member,NoArgs} = case Member0 of
+ {_, _} -> Member0;
+ _ -> {Member0,all}
+ end,
+ case ets:lookup(Tab, Member) of
+ [] ->
+ case Member of
+ [$~|_] -> ignore;
+ _ ->
+ ?warning("Skipped Member ~p in ~p (not found in ~p)~n",
+ [Member,CName,Tab])
+ end,
+ {Class,Defs0};
+ Ms ->
+ case select_member(Ms, Class, Defs0, Opts) of
+ {[],Defs} ->
+ ?warning("Skipped Member ~p in ~p (not found in base)~n",
+ [Member,CName]),
+ {Class,Defs};
+ {Selected,Defs} ->
+ Parsed = parse_members(Member,Selected,Defs,CName,Opts),
+ {add_method(Parsed,NoArgs,Class,Opts), Defs}
+ end
+ end.
+
+parse_members(MemberName, Members, Defs, Class, Opts) ->
+ ParseAll =
+ fun(Member,Acc) ->
+ try
+ case gb_trees:lookup(Member, Defs) of
+ {value,#xmlElement{name=memberdef,attributes=Attrs,
+ content=Data}} ->
+ MType = case keysearch(static,#xmlAttribute.name,Attrs) of
+ {value, #xmlAttribute{value = "yes"}} ->
+ static;
+ _ ->
+ member
+ end,
+ Virtual =
+ case keysearch(virt,#xmlAttribute.name,Attrs) of
+ {value, #xmlAttribute{value = "virtual"}} ->
+ true;
+ {value, #xmlAttribute{value = "non-virtual"}} ->
+ false;
+ _ ->
+ undefined
+ end,
+ [parse_member(Data,MType,Virtual,Opts)|Acc];
+ none ->
+ Acc;
+ _Hmm ->
+ Acc
+ end
+ catch throw:skip_member ->
+ Acc
+ end
+ end,
+ case foldl(ParseAll,[],Members) of
+ [] ->
+ ?warning("Skipped ~p No public def found in ~p ~n",
+ [MemberName,Class]),
+ io:format("~p ~p~n",[MemberName, Members]),
+ [];
+ Res ->
+ Res
+ end.
+
+
+parse_attr(Defs, Class, Ev, Info = #hs{acc=AccList0}) ->
+% io:format("Parsing Class ~p~n", [Class#class.name]),
+ {Attrs, AccList} = parse_attr1(Defs, AccList0, Info, []),
+ case AccList of
+ [] ->
+ Class#class{attributes=Attrs, event=Ev};
+ _ ->
+ Inherited = [{inherited, Inherit} || Inherit <- AccList],
+ Class#class{attributes=Attrs++Inherited, event=Ev}
+ end.
+
+parse_attr1([{{attr,_}, #xmlElement{content=C, attributes=Attrs}}|R], AttrList0, Opts, Res) ->
+ Parse = fun(Con, Ac) -> parse_param(Con, Opts, Ac) end,
+ Param0 = foldl(Parse, #param{}, drop_empty(C)),
+ case keysearch(prot, #xmlAttribute.name, Attrs) of
+ {value, #xmlAttribute{value = "public"}} ->
+ {Acc,AttrList} = attr_acc(Param0, AttrList0),
+ parse_attr1(R,AttrList,Opts,
+ [Param0#param{in=false,prot=public,acc=Acc}|Res]);
+ {value, #xmlAttribute{value = "protected"}} ->
+ {Acc,AttrList} = attr_acc(Param0, AttrList0),
+ parse_attr1(R,AttrList,Opts,
+ [Param0#param{in=false,prot=protected,acc=Acc}|Res]);
+ {value, #xmlAttribute{value = "private"}} ->
+ {Acc,AttrList} = attr_acc(Param0, AttrList0),
+ parse_attr1(R,AttrList,Opts,
+ [Param0#param{in=false,prot=private,acc=Acc}|Res])
+ end;
+parse_attr1([{_Id,_}|R],AttrList,Info, Res) ->
+ parse_attr1(R,AttrList,Info, Res);
+parse_attr1([],Left,_, Res) ->
+ {lists:reverse(Res), Left}.
+
+attr_acc(#param{name=N}, List) ->
+ Name = list_to_atom(N),
+ case get_value(Name, List, undefined) of
+ undefined -> {undefined, List};
+ Val -> {Val, lists:keydelete(Name,1,List)}
+ end.
+
+load_members(FileName, Class, Defs, Tab, Type,Opts) ->
+ File = filename:join(["wx_xml",FileName ++ ".xml"]),
+ put({loaded, FileName}, true),
+ case xmerl_scan:file(File, [{space, normalize}]) of
+ {error, enoent} ->
+ io:format("Skipped File not found ~p ~n", [File]),
+ Defs;
+ {Doc, _} ->
+ %% io:format("Scanning ~p ~n", [File]),
+ INCs = xmerl_xpath:string("./compounddef/includes/text()", Doc),
+ [put({include,reverse(tl(tl(reverse(Inc))))},ref) ||
+ #xmlText{value=Inc} <- INCs],
+ case Type of
+ class ->
+ AM = xmerl_xpath:string("./compounddef/listofallmembers/*", Doc),
+ foldl(fun(X,Y) -> extract_rmembers(X,Y,Opts) end, Tab, AM);
+ _ ->
+ ignore
+ end,
+ LMembers0 = xmerl_xpath:string("./compounddef/sectiondef/*", Doc),
+ foldl(fun(E,Acc) -> extract_lmembers(E,Class,Type,Tab,Opts,Acc) end, Defs, LMembers0)
+ end.
+
+extract_lmembers(Entry=#xmlElement{name=memberdef,attributes=Attrs,content=C},Class,Type,Tab,Opts,Acc) ->
+ case keysearch(kind, #xmlAttribute.name, Attrs) of
+ {value, #xmlAttribute{value = "function"}} ->
+ case keysearch(prot, #xmlAttribute.name, Attrs) of
+ {value, #xmlAttribute{value = "public"}} ->
+ {value, #xmlAttribute{value = Id}} =
+ keysearch(id, #xmlAttribute.name, Attrs),
+ case Type of
+ static ->
+ Get = fun(#xmlElement{name=name,content=[#xmlText{value=Name}]},NAcc) ->
+ [name(string:strip(Name),Opts)|NAcc];
+ (_D, NAcc) ->
+ NAcc
+ end,
+ case foldl(Get, [], C) of
+ [Name] ->
+ true = ets:insert(Tab,{Name,Id});
+ [] ->
+ ignore
+ end;
+ _ -> ignore
+ end,
+ case gb_trees:lookup(Id,Acc) of
+ {value, _Entry} -> gb_trees:update(Id,Entry,Acc);
+ none -> gb_trees:insert(Id,Entry,Acc)
+ end;
+ _ ->
+ Acc
+ end;
+ {value, #xmlAttribute{value = "variable"}} when Type =/= static ->
+%% {value, #xmlAttribute{value = Id}} =
+%% keysearch(id, #xmlAttribute.name, Attrs),
+ %% Hopefully wxW have some decent order!!
+ Id = next_id(attr_id),
+ gb_trees:insert({attr,Id},Entry,Acc);
+ {value, #xmlAttribute{value = "enum"}} when Type =/= static ->
+ extract_enum(Entry,Class, undefined),
+ Acc;
+ _ -> Acc
+
+ end.
+
+extract_rmembers(#xmlElement{name=member,attributes=Attrs,content=C},Tab, Opts) ->
+ {value,#xmlAttribute{value=Id}} = keysearch(refid, #xmlAttribute.name, Attrs),
+ Get = fun(#xmlElement{name=name,content=[#xmlText{value=Name}]},Acc) ->
+ [name(string:strip(Name),Opts)|Acc];
+ (_D, Acc) ->
+ Acc
+ end,
+ case foldl(Get, [], C) of
+ [Name] ->
+ true = ets:insert(Tab,{Name,Id});
+ [] ->
+ ignore
+ end,
+ Tab.
+
+select_member([{_,ID}], #class{name=Class,file=Orig}, Defs0, Opts) ->
+ [FileName, _8H|_] = string:tokens(ID, "_"),
+ case get({loaded, FileName}) =:= undefined
+ andalso get({loaded, FileName ++ "_" ++ _8H}) =:= undefined of
+ true ->
+ true = FileName =/= Orig, % Assert
+ Defs = load_members(FileName, Class, Defs0, skip, skip, Opts),
+ {[ID],Defs};
+ false ->
+ {[ID],Defs0}
+ end;
+select_member(Several, #class{name=Class,file=Orig}, Defs0, Opts) ->
+ MIds = [{string:tokens(MId, "_"),MId} || {_,MId} <- Several],
+ [StatFile |_ ] = string:tokens(Orig, "_"),
+ Check =
+ fun({[FN,_|_],ID}, {T,D}) when FN =:= Orig -> {[ID|T],D};
+ ({[FN,"8h"|_],ID}, {T,D}) when FN =:= StatFile -> {[ID|T],D};
+ ({[FN,_A|_],ID},{T,D}) ->
+ InBase = "class" ++ Class ++ "Base" =:= FN,
+ "wx" ++ ClassName = Class,
+ InGeneric = "classwxGeneric" ++ ClassName =:= FN,
+ IsHelper = case re:run(FN, "Helper$") of
+ {match,_} -> true;
+ _ -> false
+ end,
+ ImplBase = case re:run(FN, "Base$") of
+ {match,_} -> true;
+ _ ->
+ %% Hack for base-base class
+ FN =:= "classwxItemContainer"
+ end,
+ case InBase orelse InGeneric orelse IsHelper orelse ImplBase of
+ true ->
+ Defs = case get({loaded, FN}) of
+ undefined ->
+ true = FN =/= Orig, % Assert
+ load_members(FN,Class,D,skip,skip,Opts);
+ true -> D
+ end,
+ {[ID|T], Defs};
+ _C ->
+ %% io:format("DBG ~p ~p ~p ~p ~n",[FN,_A,_C,Class]),
+ {T,D}
+ end
+ end,
+ foldl(Check,{[],Defs0},MIds).
+
+parse_member(Data,MType,Virtual,Opts = #hs{fopt=Fopts}) ->
+ Parse = fun(Con,A) -> parse_member2(Con,Opts,A) end,
+ Method = #method{name=MName,params=PS0} =
+ foldl(Parse, #method{method_type=MType, virtual=Virtual}, Data),
+ %% Skip motif name's if it's last and optional
+ PS2 = case PS0 of %% Backward order..
+ [#param{name="name",def=Def,type=#type{name="wxString"}}|PS1]
+ when Def =/= none ->
+ PS1;
+ _ ->
+ PS0
+ end,
+ Sz = length(PS2),
+ PS = map(fun(P=#param{name=PName}) ->
+ patch_param(MName,{Sz,PName},P,Fopts)
+ end, PS2),
+ Alias = find_erl_alias_name(MName,PS,Fopts),
+ Method#method{params=PS, alias=Alias}.
+
+find_erl_alias_name(MName,Ps,Fopts) ->
+ case gb_trees:lookup(MName, Fopts) of
+ {value, FuncO} when is_list(FuncO) ->
+ Aliases = lists:foldl(fun({Var, {erl_func, AliasName}}, Acc) ->
+ [{Var,AliasName}|Acc];
+ ({erl_func, AliasName}, Acc) ->
+ [{all,AliasName}|Acc];
+ ({Var, List}, Acc) when is_list(List) ->
+ case get_value(erl_func,List) of
+ undefined ->
+ Acc;
+ AliasName ->
+ [{Var,AliasName}|Acc]
+ end;
+ (_,Acc) -> Acc
+ end, [], FuncO),
+ case Aliases of
+ [] ->
+ undefined;
+ _ ->
+ Find = fun({all,AliasName},Acc) -> [AliasName|Acc];
+ ({Var,AliasName},Acc) ->
+ case lists:keysearch(Var, #param.name, Ps) of
+ {value, _} -> [AliasName|Acc];
+ _ -> Acc
+ end
+ end,
+ case lists:foldl(Find, [], Aliases) of
+ [Alias] -> Alias;
+ [] -> undefined
+ end
+ end;
+ _ ->
+ undefined
+ end.
+
+parse_member2(#xmlElement{name=type, content=C},Opts,M0) ->
+ Type = parse_type(drop_empty(C), Opts),
+ M0#method{type=Type};
+parse_member2(#xmlElement{name=name, content=[#xmlText{value=C}]}, Opts, M0) ->
+ Func = string:strip(C),
+ put(current_func, Func),
+ M0#method{name=name(Func,Opts)};
+parse_member2(#xmlElement{name=param, content=C},Opts,M0) ->
+ Parse = fun(Con, Ac) -> parse_param(Con, Opts, Ac) end,
+ Param0 = foldl(Parse, #param{}, drop_empty(C)),
+ add_param(Param0, Opts, M0);
+parse_member2(_, _,M0) ->
+ M0.
+
+add_param(InParam, Opts, M0) ->
+ Param0 = case InParam#param.name of
+ undefined -> InParam#param{name="val"};
+ _ -> InParam
+ end,
+ Param = case Param0#param.type of
+ #type{base={comp,_,_Comp}} -> Param0;
+ #type{base={class,_Class}} -> Param0;
+ #type{base={ref,_}} -> Param0;
+ #type{base={term,_}} -> Param0;
+ #type{base=List} when is_list(List) -> Param0;
+ %% Assume the pointer args to base types are out parameters
+ #type{by_val=false,single=true, mod=Mod} ->
+ case lists:member(const, Mod) of
+ true -> Param0; % But not if they are const
+ false -> Param0#param{in=false}
+ end;
+ _ -> Param0
+ end,
+ add_param2(Param, Opts, M0).
+
+add_param2(P=#param{name=Name},#hs{fopt=FOpt},M0=#method{name=MName,params=Ps}) ->
+ case patch_param(MName, Name, P, FOpt) of
+ #param{where=nowhere} ->
+ M0#method{params=Ps};
+ Patched ->
+ %% case MName of %% DEBUG
+ %% "GetSelections" ->
+ %% io:format("~p~n",[Patched]);
+ %% _ -> ignore
+ %% end,
+ %%ASSERT
+ case Patched#param.type of
+ #type{base=undefined} -> ?error({unknown_type,Patched});
+ _ -> ok
+ end,
+ M0#method{params=[Patched|Ps]}
+ end.
+
+patch_param(Method, Name, P, Opt) ->
+ case gb_trees:lookup(Method,Opt) of
+ none -> P;
+ {value,NoArg} when is_integer(NoArg) -> P;
+ {value,Opts} when is_list(Opts) ->
+ case get_value(Name, Opts) of
+ undefined -> P;
+ List when is_list(List) ->
+ foldl(fun handle_param_opt/2,P,List);
+ Val ->
+ handle_param_opt(Val,P)
+ end
+ end.
+
+handle_param_opt(skip, P) -> P#param{where=c};
+handle_param_opt(nowhere, P) -> P#param{where=nowhere};
+handle_param_opt(skip_member, _P) -> throw(skip_member);
+handle_param_opt({skip_member, Type}, P) ->
+ case P of
+ #param{type=#type{name=Type}} ->
+ throw(skip_member);
+ #param{type=Type} ->
+ throw(skip_member);
+ _ ->
+ P
+ end;
+handle_param_opt({erl_func,_Name}, P) -> P; %% Handled elsewhere
+handle_param_opt(in, P) -> P#param{in=true};
+handle_param_opt(out, P) -> P#param{in=false};
+handle_param_opt(both, P) -> P#param{in=both};
+handle_param_opt({def,Def},P) -> P#param{def=Def};
+handle_param_opt({type,Type}, P=#param{type=T}) -> P#param{type=T#type{name=Type}};
+handle_param_opt({single,Opt}, P=#param{type=T}) -> P#param{type=T#type{single=Opt}};
+handle_param_opt({base,Opt}, P=#param{type=T}) -> P#param{type=T#type{base=Opt}};
+handle_param_opt({c_only,Opt},P) -> P#param{where=c, alt=Opt};
+handle_param_opt({ref, pointer}, P=#param{type=T}) ->
+ P#param{type=T#type{by_val=false,ref={pointer, 1}}};
+handle_param_opt({mod,Mods}, P=#param{type=T=#type{mod=Mods0}}) ->
+ P#param{type=T#type{mod=Mods++Mods0}}.
+
+get_opt(Opt, Method, Sz, Opts) ->
+ case gb_trees:lookup(Method,Opts) of
+ none -> undefined;
+ {value, List} when is_list(List) ->
+ case get_value({Sz,Opt}, List, undefined) of
+ undefined ->
+ get_value(Opt, List, undefined);
+ Res -> Res
+ end
+ end.
+
+parse_param(#xmlElement{name=type,content=C},Opts,T) ->
+ Type = parse_type(drop_empty(C),Opts),
+ T#param{type=Type};
+parse_param(#xmlElement{name=declname,content=[C]},_Opts,T) ->
+ #xmlText{value=Name} = C,
+ T#param{name=Name};
+parse_param(#xmlElement{name=defval,content=[#xmlText{value=Def}]},_Opts,T) ->
+ T#param{def=string:strip(Def)};
+parse_param(#xmlElement{name=defval,content=Other},_Opts,T) ->
+ %% For defaults = (modifer wxType *) NULL
+ Def0 = foldr(fun(#xmlText{value=V}, Acc) -> V ++ Acc;
+ (#xmlElement{content=[#xmlText{value=V}]},Acc) ->
+ V ++ Acc
+ end, [], Other),
+%% Def1 = lists:dropwhile(fun($)) -> false;(_) -> true end, Def0),
+%% Def = string:strip(Def1), %% Drop type cast !!
+%% io:format("Def ~s => ~s => ~s ~n", [Def0, Def1,string:strip(Def)]),
+ T#param{def=string:strip(Def0)};
+parse_param(#xmlElement{name=array,content=C},_Opts, T = #param{type=Type0}) ->
+ case Type0 of
+ _ when T#param.name=:="WXUNUSED" -> %% doxygen can't handle this macro
+ [#xmlText{value=RealVar}] = C,
+ [Name] = string:tokens(RealVar, "() "),
+ T#param{name=Name};
+%% #type{mod=[const]} ->
+%% T#param{type=Type0#type{single=array, by_val=true}};
+%% _ ->
+%% T#param{type=Type0#type{single=array, by_val=false}}
+ _ ->
+ T#param{type=Type0#type{single=array, by_val=true}}
+ end;
+parse_param(#xmlElement{name=name,content=[C]}, _, T) ->
+ %% Attributes have this
+ #xmlText{value=Name} = C,
+ T#param{name=Name};
+%% Skipped: Attributes have this
+parse_param(#xmlElement{name=definition}, _, T) -> T;
+parse_param(#xmlElement{name=argsstring}, _, T) -> T;
+parse_param(#xmlElement{name=briefdescription}, _, T) -> T;
+parse_param(#xmlElement{name=detaileddescription}, _, T) -> T;
+parse_param(#xmlElement{name=inbodydescription}, _, T) -> T;
+parse_param(#xmlElement{name=location}, _, T) -> T;
+parse_param(#xmlElement{name=referencedby}, _, T) -> T;
+parse_param(Other=#xmlElement{name=Name}, _, T) ->
+ io:format("Unhandled Param ~p ~p ~n in ~p~n", [Name,Other,T]),
+ ?error(unhandled_param).
+
+parse_type([], _Opts) -> void;
+parse_type(TypeInfo, Opts) ->
+ {Type,Info} = foldl(fun extract_type_info/2,{[],undefined},TypeInfo),
+ case Info of
+ {"member", Ref} ->
+ case string:tokens(Ref, "_") of
+ [FileName, "8h", _Id] ->
+ put({file_ref, FileName++"_8h"}, ref);
+ _ ->
+ ok
+ end;
+ _ -> ok
+ end,
+
+ Empty = #type{},
+ case parse_type2(reverse(Type),Info,Opts,#type{}) of
+ Empty -> ?error({strange_type, Type});
+ Assert -> Assert
+ end.
+
+extract_type_info(#xmlText{value=Value}, {Acc, Info}) ->
+ {reverse(foldl(fun extract_type_info2/2, [], string:tokens(Value, " "))) ++ Acc, Info};
+extract_type_info(#xmlElement{name=ref,attributes=As,content=[#xmlText{value=V}]},
+ {Acc,undefined}) ->
+ {value, #xmlAttribute{value = Refid}} = keysearch(refid,#xmlAttribute.name,As),
+ {value, #xmlAttribute{value = Kind}} = keysearch(kindref,#xmlAttribute.name,As),
+ {reverse(foldl(fun extract_type_info2/2, [], string:tokens(V, " "))) ++ Acc,
+ {Kind,Refid}};
+extract_type_info(What,Acc) ->
+ ?error({parse_error,What,Acc}).
+
+extract_type_info2("const",Acc) -> [const|Acc];
+extract_type_info2("*", [{by_ref,{pointer,N}}|Acc]) -> [{by_ref,{pointer,N+1}}|Acc];
+extract_type_info2("*", Acc) -> [{by_ref,{pointer,1}}|Acc];
+extract_type_info2("**", Acc) -> [{by_ref,{pointer,2}}|Acc];
+extract_type_info2("&", Acc) -> [{by_ref,reference}|Acc];
+extract_type_info2("WXDLLIMP" ++ _, Acc) -> Acc;
+extract_type_info2(Type, Acc) -> [Type|Acc].
+
+parse_type2(["void"], _Info, _Opts, _T) -> void;
+parse_type2(["virtual"|R], _Info, _Opts, _T) ->
+ [] = R,
+ %% Bug in old doxygen virtual destructors have type virtual
+ void;
+parse_type2(["wxe_cb"|R],Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=int,base=wxe_cb});
+parse_type2([const|R],Info,Opts,T=#type{mod=Mod}) ->
+ parse_type2(R,Info,Opts,T#type{mod=[const|Mod]});
+parse_type2(["unsigned"|R],Info,Opts,T=#type{mod=Mod}) ->
+ parse_type2(R,Info,Opts,T#type{mod=[unsigned|Mod]});
+parse_type2(["int"|R],Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=int,base=int});
+parse_type2(["char"|R],Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name="char",base=int});
+parse_type2([N="size_t"|R], Info, Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=N, base=int});
+parse_type2(["long"|R],Info, Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=long,base=int});
+parse_type2(["float"|R],Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=float,base=float});
+parse_type2(["double"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=double,base=double});
+parse_type2([N="wxDouble"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=double});
+parse_type2(["bool"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=bool,base=bool});
+parse_type2([N="wxWindowID"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2([N="wxTextCoord"|R],Info,Opts,T) -> %%long
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2([N="wxTextPos"|R],Info,Opts,T) -> %%long
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2([N="wxPrintQuality"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2([N="wxPaperSize"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2(["wxDataFormat"|_R],_Info,_Opts,T) ->
+ %% Hack Hack
+ T#type{name="wxDataFormatId",base=int};
+parse_type2([N="wxArrayInt"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int,single=array});
+parse_type2([N="wxArrayDouble"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=double,single=array});
+parse_type2([N="wxTreeItemId"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={ref,N}});
+parse_type2([N="wxArrayTreeItemIds"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={ref,"wxTreeItemId"},single=array});
+parse_type2([N="wxTreeItemData"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name="wxETreeItemData",base={term,N}});
+parse_type2([N="wxClientData"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name="wxeErlTerm",base={term,N}});
+parse_type2([N="wxChar"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2(["wxUint32"|R],Info,Opts,T=#type{mod=Mod}) ->
+ parse_type2(R,Info,Opts,T#type{name=int,base=int,mod=[unsigned|Mod]});
+parse_type2([N="wxCoord"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=int});
+parse_type2([N="wxPoint"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"X"},{int,"Y"}]}});
+parse_type2([N="wxSize"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"W"},{int,"H"}]}});
+parse_type2([N="wxGBPosition"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"R"},{int,"C"}]}});
+parse_type2([N="wxGBSpan"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"RS"},{int,"CS"}]}});
+parse_type2([N="wxGridCellCoords"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"R"},{int,"C"}]}});
+parse_type2([N="wxGridCellCoordsArray"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,"wxGridCellCoords",
+ [{int,"R"},{int,"C"}]},
+ single=array});
+parse_type2([N="wxRect"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base={comp,N,[{int,"X"},{int,"Y"},
+ {int,"W"},{int,"H"}]}});
+parse_type2([N="wxColour"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,
+ base={comp,N,[{int,"R"},{int,"G"},{int,"B"},{int,"A"}]}});
+parse_type2([N="wxColor"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name="wxColour",
+ base={comp,N,[{int,"R"},{int,"G"},{int,"B"},{int,"A"}]}});
+
+parse_type2([N="wxPoint2DDouble"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,
+ base={comp,N,[{double,"X"},{double,"Y"}]}});
+parse_type2([N="wxRect2DDouble"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,
+ base={comp,N,[{double,"X"},{double,"Y"},
+ {double,"W"},{double,"H"}]}});
+
+parse_type2([N="wxDateTime"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,
+ base={comp,N,[{int,"D"},{int,"Mo"},{int,"Y"},
+ {int,"H"},{int,"Mi"},{int,"S"}]}
+ });
+
+parse_type2([N="wxMouseState"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N, base={comp,N,{record, wxMouseState}}});
+parse_type2([N="wxHtmlLinkInfo"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N, base={comp,N,{record, wxHtmlLinkInfo}}});
+parse_type2([N="wxString"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=string});
+parse_type2([N="wxArtClient"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=string});
+parse_type2(["wxArtID"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name="wxString",base=string});
+parse_type2([N="wxFileName"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=string});
+parse_type2([N="wxArrayString"|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=[int],single=array,by_val=true});
+parse_type2([{by_ref,Ref}|R],Info,Opts,T) ->
+ parse_type2(R,Info,Opts,T#type{ref=Ref,by_val=false});
+parse_type2([],_,_,T) -> T;
+
+parse_type2([N="wxImageList"|R],Info,Opts,T) -> %% ARRG breaks the following clause
+ parse_type2(R,Info,Opts,T#type{name=N,base={class,N}});
+parse_type2(L=[Name|R],I,Opts,T) ->
+ case reverse(Name) of
+ "tsiL" ++ RBase ->
+ parse_type2(R,I,Opts,
+ T#type{name=Name,base={class,reverse(RBase)},single=list});
+ _ ->
+ parse_type3(L,I,Opts,T)
+ end.
+
+parse_type3(["wxNotebookPage"|R],I,Opts,T) ->
+ Xml = case I of
+ {_, Ref} -> Ref;
+ undefined -> undefined
+ end,
+ parse_type2(R,I,Opts,T#type{name="wxWindow",base={class,"wxWindow"},xml=Xml});
+parse_type3([N|R],I={"member",Ref},Opts,T) ->
+ Type = name(N,Opts),
+ ErlClass = special_name(Type),
+ case string:tokens(Ref, "_") of
+ ["class" ++ _] -> ignore;
+ Other ->
+ Inc0 = lists:takewhile(fun("8h") -> false;(_) -> true end,Other),
+ Inc = gen_util:args(fun(A) -> A end, "_", Inc0),
+%% io:format("Inc ~s ~n", [Inc]),
+ put({include,Inc}, ref)
+ end,
+ case get_enum(Type) of
+ {_, undefined} ->
+ parse_type2(R,I,Opts,T#type{name=Type,base={class,ErlClass},xml=Ref});
+ {TypeWOClass,#enum{}} ->
+ parse_type2(R,I,Opts,T#type{name=Type,base={enum,TypeWOClass},xml=Ref})
+ end;
+parse_type3([N = "wx"++_|R],I,Opts,T) ->
+ Xml = case I of
+ {_, Ref} -> Ref;
+ undefined -> undefined
+ end,
+ Class = name(N,Opts),
+ ErlClass = special_name(Class),
+ parse_type2(R,I,Opts,T#type{name=Class,base={class,ErlClass},xml=Xml});
+parse_type3([N="WXWidget"|R], Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=N,base=long});
+%% Let type errors be seen later because we don't know if these unhandled types
+%% will be used.
+parse_type3([Name|R],Info,Opts, T) ->
+ New = T#type{name={unhandled,Name,Info,get(current_class),get(current_func)}},
+ parse_type2(R,Info,Opts, New).
+
+%%skipped(#method{method_type=constructor, type=void}, _Opts) -> true;
+skipped(#method{}, #hs{skip=[]}) -> false;
+skipped(#method{name=Name,params=P}, #hs{skip=Skip}) ->
+ AtomName = list_to_atom(Name),
+ Skipped = lists:member(AtomName, Skip) orelse
+ lists:member({AtomName,length(P)}, Skip),
+ %% io:format("~p ~p skipped ~p ~n", [AtomName, length(P),Skipped]),
+ Skipped.
+
+add_method(Ms0, NoArgs, Class, Opts) ->
+ Add = fun(M=#method{params=Ps0}, Acc) ->
+ case length(Ps0) of
+ NoArgs ->
+ [add_method2(M,Class,Opts)|Acc];
+ _ when NoArgs =:= all ->
+ [add_method2(M,Class,Opts)|Acc];
+ _ ->
+ Acc
+ end
+ end,
+ NewMs = lists:foldl(Add,[],Ms0),
+ Unique = filter_functions(reverse(NewMs), Opts),
+ erase(current_func),
+ foldl(fun(M,C=#class{methods=Ms}) when is_list(M) -> C#class{methods=[M|Ms]} end,
+ Class,reverse(Unique)).
+
+add_method2(M0=#method{name=Name,params=Ps0,type=T0},#class{name=CName,parent=Par},#hs{fopt=Opts}) ->
+ Type = case patch_param(Name, return, #param{type=T0}, Opts) of
+ #param{type = T0} ->
+ case patch_param(Name, {length(Ps0),return}, #param{type=T0}, Opts) of
+ #param{where=nowhere} -> void;
+ #param{type = Type0} -> Type0
+ end;
+ #param{where=nowhere} -> void;
+ #param{type = Type0} -> Type0
+ end,
+
+ {Req,Opt} = lists:partition(fun(#param{def=Def}) -> Def == none end,
+ M0#method.params),
+ Ps = reverse(Ps0),
+
+ IsStatic = case Par of
+ "static" -> static;
+ _ -> M0#method.method_type
+ end,
+ Where = case get_opt(where, Name, length(Ps), Opts) of
+ undefined -> both;
+ Other ->
+ Other
+ end,
+ M1 = M0#method{defined_in=CName,
+ min_arity = length(Req),
+ max_arity = length(Req) + if length(Opt) > 0 -> 1; true -> 0 end,
+ type = Type,
+ method_type = IsStatic,
+ where = Where,
+ id=next_id(func_id),
+ pre_hook = get_opt(pre_hook, Name, length(Ps), Opts),
+ post_hook = get_opt(post_hook, Name, length(Ps), Opts),
+ doc = get_opt(doc, Name, length(Ps), Opts)
+ },
+ M = case Name of
+ CName ->
+ M1#method{method_type=constructor,name=CName,
+ type=constructor(CName), params=Ps};
+ [$~|CName] ->
+ M1#method{method_type=destructor,name=Name,
+ params=[this(CName)|Ps]};
+ _ ->
+ case M1#method.method_type of
+ static -> M1#method{params=Ps};
+ member -> M1#method{params=[this(CName)|Ps]}
+ end
+ end,
+ M.
+
+this(Class) ->
+ #param{name="This",where=this,
+ type=#type{name=Class,base={class,Class},by_val=false,ref={pointer,1}}}.
+
+constructor(Class) ->
+ #type{name=Class,base={class,Class},by_val=false,ref=reference}.
+
+filter_functions(Parsed, Opts) ->
+ Left = foldl(fun(M0,Acc) ->
+ case skipped(M0, Opts) of
+ true -> Acc;
+ false ->
+ TF = extract_type_footprint(M0),
+ [TF|Acc]
+ end
+ end,[],Parsed),
+ Clean = remove_or_merge(lists:sort(Left),[],[]),
+ erl_skip_opt(reverse(Clean),[],[]).
+
+remove_or_merge([{A,{L,In,O1},M1}|Rest=[{A,{L,In,O2},M2}|_]],Acc1,Acc2)
+ when M1#method.method_type =:= M2#method.method_type ->
+ %% These are the same remove one of them.
+ case O1 =:= O2 of
+ true -> ok;
+ false ->
+ ?warning("Multiple out arguments of ~s:~s: ~p or ~p~n",
+ [get(current_class),M1#method.name, O1,O2])
+ end,
+ remove_or_merge(Rest,Acc1,Acc2);
+remove_or_merge([F={A,{Len,_,_},M1}|Rest],[{A,{Len,_,_},M2}|_]=Acc1,Acc2)
+ when M1#method.method_type =:= M2#method.method_type ->
+ NewAcc1 = maybe_merge(F,Acc1,[]),
+ remove_or_merge(Rest,NewAcc1,Acc2);
+remove_or_merge([F|Rest],[],Acc2) ->
+ remove_or_merge(Rest,[F],Acc2);
+remove_or_merge([F|Rest],Acc1,Acc2) ->
+ remove_or_merge(Rest,[F], [reverse(Acc1)|Acc2]);
+remove_or_merge([],[], Acc2) -> Acc2;
+remove_or_merge([],Acc1,Acc2) -> [reverse(Acc1)|Acc2].
+
+erl_skip_opt([Ms|R],[],Acc2) ->
+ {Orig, Skipped} = erl_skip_opt2(Ms,[],[],[]),
+ erl_skip_opt(R,Orig,[Skipped|Acc2]);
+erl_skip_opt(All=[Ms=[{_,{Len,_,_},_}|_]|R],Acc1=[{_,{N,_,_},_}|_], Acc2) ->
+ case Len =:= N+1 of
+ true ->
+ {Orig, Skipped} = erl_skip_opt2(Ms,[],[],Acc1),
+ erl_skip_opt(R,Orig,[Skipped++strip_ti(Acc1)|Acc2]);
+ false ->
+ erl_skip_opt(All, [], [strip_ti(Acc1)|Acc2])
+ end;
+erl_skip_opt([],Acc1,Acc2) -> [strip_ti(Acc1)|Acc2].
+
+erl_skip_opt2([F={_,{N,In,_},M=#method{where=Where}}|Ms],Acc1,Acc2,Check) ->
+ case N > 0 andalso lists:last(In) =:= opt_list of
+ true when Where =/= merged_c, Where =/= taylormade ->
+ case Check of
+ [] ->
+ erl_skip_opt2(Ms,[F|Acc1],[M#method{where=erl_no_opt}|Acc2],[]);
+ _ ->
+ Skipped = reverse(tl(reverse(In))),
+ T = fun({_,{_,Args,_},_}) -> true =:= types_differ(Skipped,Args) end,
+ case lists:all(T, Check) of
+ true ->
+ erl_skip_opt2(Ms,[F|Acc1],
+ [M#method{where=erl_no_opt}|Acc2],
+ Check);
+ false ->
+ erl_skip_opt2(Ms,[F|Acc1],Acc2,Check)
+ end
+ end;
+ _ ->
+ erl_skip_opt2(Ms,[F|Acc1],Acc2,[])
+ end;
+erl_skip_opt2([],Acc1,Acc2,_) -> {Acc1,Acc2}.
+
+strip_ti(Ms) ->
+ [M || {_,{_,_,_},M} <- Ms].
+
+maybe_merge(T1,[],Acc) -> reverse([T1|Acc]);
+maybe_merge(F={A1,T1={Len,In1,O1},M1},[C={A2,T2={Len,In2,O2},M2}|Rest],Acc) ->
+ case types_differ(In1,In2) of
+ true -> maybe_merge(F,Rest,[C|Acc]);
+ {class,C1,C2} when O1 =:= O2 ->
+ {Merged,M2Mod} = merge_class_params(M1,M2,C1,C2),
+ reverse([{A1,T1,Merged},{A2,T2,M2Mod}|Acc]) ++ Rest;
+ false ->
+ ?warning("Argument clash in ~s:~s:~n ~p~nor ~p~n",
+ [get(current_class),M1#method.name,{In1,O1},{In2,O2}]),
+ [F|Rest++Acc]
+ end.
+
+merge_class_params(M1=#method{params=P1,id=Mi1},M2=#method{params=P2,id=Mi2},C1,C2) ->
+ Merged = merge_class_params2({class,C1},P1,Mi1,{class,C2},P2,Mi2),
+ {M1#method{params=Merged}, M2#method{where=merged_c}}.
+
+merge_class_params2(B1,[P1|R1],M1,B2,[P1|R2],M2) ->
+ [P1|merge_class_params2(B1,R1,M1,B2,R2,M2)];
+merge_class_params2(B1,[P1=#param{type=T1=#type{base=B1}}|R1],M1,
+ B2,[#param{type=T2=#type{base=B2}}|R2],M2) ->
+ [P1#param{type={merged,M1,T1,R1,M2,T2,R2}}|merge_class_params2(B1,R1,M1,B2,R2,M2)];
+merge_class_params2(B1,[P1|R1],_M1,B2,[P2|R2],_M2) ->
+ io:format("Merged Failed ~p ~p~n", [B1,B2]),
+ io:format(" ~p ~p~n ~p~p~n", [P1,R1,P2,R2]),
+ ?error(merged_failed);
+merge_class_params2(_,[],_,_,[],_) ->
+ [].
+
+types_differ([C1|R1], [C2|R2]) when is_list(C1), is_list(C2) ->
+ types_differ(R1,R2); %% Different Classes
+types_differ([C|R1], [C|R2]) ->
+ types_differ(R1,R2);
+types_differ([{term,_}|R1], [_|R2]) ->
+ types_differ(R1,R2);
+types_differ([_|R1], [{term,_}|R2]) ->
+ types_differ(R1,R2);
+types_differ([{class,C1}|R1], [{class,C2}|R2]) ->
+ case types_differ(R1,R2) of
+ true ->
+ true;
+ false ->
+%% _ ->
+ {class,C1,C2};
+ {class,C1,C2} ->
+ {class,C1,C2};
+ {class, _,_} ->
+ false
+ end;
+types_differ([int|_], _) -> true;
+types_differ(_, [int|_]) -> true;
+types_differ([{class,_}|_], _) -> true;
+types_differ(_, [{class,_}|_]) -> true;
+types_differ([binary|_], _) -> true;
+types_differ(_, [binary|_]) -> true;
+
+types_differ([list|R1], [opt_list|R2]) ->
+ types_differ(R1,R2);
+types_differ([opt_list|R1], [list|R2]) ->
+ types_differ(R1,R2);
+types_differ([C1|R1], [C2|R2]) when is_tuple(C1), is_tuple(C2) ->
+ (size(C1) =/= size(C2)) orelse types_differ(R1,R2);
+types_differ([C1|_R1], [_C2|_R2]) when is_tuple(C1) ->
+ true;
+types_differ([_C1|_R1], [C2|_R2]) when is_tuple(C2)->
+ true;
+types_differ([_C1|R1], [_C2|R2]) -> %% More cases?
+ types_differ(R1,R2);
+types_differ([], []) ->
+ false.
+
+extract_type_footprint(M=#method{type=void,alias=A,params=Ps}) ->
+ {A,extract_type_footprint2(Ps, [], [], false), M};
+extract_type_footprint(M=#method{type=Type,alias=A,params=Ps}) ->
+ {A,extract_type_footprint2(Ps, [type_foot_print(Type)], [], false), M}.
+
+extract_type_footprint2([_P=#param{where=c, in=InArg}|R], Out, In, Opt)
+ when InArg =/= false ->
+ extract_type_footprint2(R, Out, In, Opt);
+extract_type_footprint2([_P=#param{def=Def, in=InArg}|R], Out, In, _Opt) when Def =/= none, InArg =/= false ->
+ extract_type_footprint2(R, Out, In, true);
+extract_type_footprint2([#param{in=false, type=Type}|Ps], Out, In, Opt) ->
+ extract_type_footprint2(Ps, [type_foot_print(Type)|Out], In, Opt);
+extract_type_footprint2([#param{in=true, type=Type}|Ps], Out, In, Opt) ->
+ extract_type_footprint2(Ps, Out, [type_foot_print(Type)|In], Opt);
+extract_type_footprint2([#param{in=both, type=Type}|Ps], Out, In, Opt) ->
+ TFP = type_foot_print(Type),
+ extract_type_footprint2(Ps, [TFP|Out], [TFP|In], Opt);
+
+extract_type_footprint2([], Out0, In, Opt) ->
+ Out = case Out0 of
+ [] -> void;
+ [One] -> One;
+ _ -> list_to_tuple(reverse(Out0))
+ end,
+ if Opt ->
+ {length(In)+1,reverse([opt_list|In]),Out};
+ true ->
+ {length(In), reverse(In),Out}
+ end.
+
+type_foot_print(#type{single=Single}) when Single =/= true -> list;
+type_foot_print(#type{base=string}) -> list;
+type_foot_print(#type{base=Base}) when is_list(Base) -> list;
+type_foot_print(#type{base=long}) -> int;
+type_foot_print(#type{base=binary}) -> binary;
+type_foot_print(#type{base={binary,_}}) -> binary;
+type_foot_print(#type{base=int}) -> int;
+type_foot_print(#type{base=bool}) -> bool;
+%%type_foot_print(#type{base=datetime}) -> datetime;
+type_foot_print(#type{base=float}) -> float;
+type_foot_print(#type{base=double}) -> float;
+type_foot_print(#type{base=C={class,_}}) -> C;
+type_foot_print(#type{base={enum,_}}) -> int;
+type_foot_print(#type{base={ref,_}}) -> ref;
+type_foot_print(#type{base={term,_}}) -> term;
+type_foot_print(#type{base=eventType}) -> atom;
+%% type_foot_print({Type,Str}) when is_list(Str) ->
+%% type_foot_print(Type);
+type_foot_print(#type{base={comp,_,R={record,_}}}) ->
+ R;
+type_foot_print(#type{base={comp,_,Types}}) ->
+ TFL = map(fun({T,N}) when is_list(N) ->
+ case T of
+ double -> float;
+ _ -> T
+ end
+ end, Types),
+ list_to_tuple(TFL).
+%type_foot_print(What) -> What.
+
+
+translate_enums(Defs) ->
+ Res = [translate_enums1(Def) || Def <- Defs],
+ Consts = [Enum || Enum = {{enum,_},_} <- get()],
+ translate_constants(Consts, get(not_const), get(const_skip)),
+ put(gvars, [{Gvar,Class,next_id(const)} || {Gvar,Class} <- lists:sort(get(gvars))]),
+ Res.
+
+translate_enums1(C=#class{name=Name, methods=Ms0, attributes=As0}) ->
+ Ms = [translate_enums2(M, Name) || M <- Ms0],
+ As = [translate_enums3(A, Name) || A <- As0],
+ C#class{methods=Ms, attributes=As}.
+
+translate_enums2(M=#method{params=Ps0, type=T0},Class) ->
+ Ps = [translate_enums3(P, Class) || P <- Ps0],
+ T = translate_enums_type(T0,Class),
+ M#method{params=Ps,type=T};
+translate_enums2(Ms,Class) when is_list(Ms) ->
+ [translate_enums2(M,Class) || M <- Ms].
+
+translate_enums3(P=#param{type=Type0},InClass) ->
+ Type = translate_enums_type(Type0,InClass),
+ P#param{type=Type};
+translate_enums3(InHer = {inherited, _},_InClass) ->
+ InHer.
+
+translate_enums_type(T=#type{base={class,C}},Class) ->
+ case get_enum(C,Class) of
+ {_, undefined} -> T;
+ {Enum, #enum{}} ->
+ %% io:format("ENUM Change class ~p to enum ~p~n", [C,Enum]),
+ T#type{base={enum, Enum}}
+ end;
+translate_enums_type(T,_Class) -> T.
+
+translate_constants(Enums, NotConsts0, Skip0) ->
+ NotConsts = gb_sets:from_list(NotConsts0),
+ Skip = gb_sets:from_list(Skip0),
+ Consts0 = create_consts(lists:sort(Enums), Skip, NotConsts, []),
+ put(consts, gb_trees:from_orddict(lists:ukeysort(1,[{N,C}|| C = #const{name=N} <- Consts0]))).
+
+create_consts([{{enum, Name},Enum = #enum{vals=Vals}}|R], Skip, NotConsts, Acc0) ->
+ CC = fun(What, Acc) ->
+ create_const(What, Skip, NotConsts, Acc)
+ end,
+ Acc = case Vals of
+ undefined ->
+ ?warning("Missing Enum ~p ~p ~n",[Name, Enum]),
+ Acc0;
+ [] -> %% ?warning("Ignored Empty Enum list ~p ~n",[_Name]),
+ Acc0;
+ _ ->
+ foldl(CC, Acc0, lists:sort(Vals))
+ end,
+ create_consts(R, Skip, NotConsts, Acc);
+create_consts([],_,_,Acc) -> Acc.
+
+create_const({Name, Val}, Skip, NotConsts, Acc) ->
+ case gb_sets:is_member(Name, Skip) of
+ true -> Acc;
+ false ->
+ case gb_sets:is_member(Name, NotConsts) of
+ true ->
+ [#const{name=Name,val=next_id(const),is_const=false}|Acc];
+ false ->
+ [#const{name=Name,val=Val,is_const=true}|Acc]
+%% false ->
+%% [#const{name=Name,val=Val}|Acc]
+ end
+ end.
+
+%%%%%%%%%%%%%
+next_id(What) ->
+ Next = case get(What) of
+ undefined -> 100;
+ N -> N+1
+ end,
+ put(What, Next),
+ Next.
+
+name([$~|Name], Opts) ->
+ [$~|name(Name,Opts)];
+name(Name0, #hs{alias=Alias}) ->
+ Name = case reverse(Name0) of
+ "esaBlooT" ++ _ -> %% Arrg uses base
+ Name0;
+ "esaBelbaTdirG" ++ _ -> %% Arrg uses base
+ Name0;
+ "esaBrekciP" ++ _ -> %% Arrg uses base
+ Name0;
+ "esaB" ++ Rest when hd(Name0) == $w ->
+ %% Arrg Some decl uses base class directly
+ reverse(Rest);
+ _F ->
+ Name0
+ end,
+ get_value(Name,Alias,Name).
+
+special_name("wxIconLocation") -> "wx";
+special_name("wxToolBarToolBase") -> "wx";
+special_name("wxObject") -> "wx";
+special_name("wxValidator") -> "wx"; % XXXXX
+%% special_name("wxTreeItemData") -> "wx"; % XXXXX
+%% special_name("wxTreeItemId") -> "wx";
+%% special_name("wxDataObject") -> "wx";
+special_name(Other) -> Other.
+
+drop_empty(List) ->
+ filter(fun(#xmlText { value = Text}) ->
+ string:strip(Text) =/= "";
+ (_)->
+ true
+ end, List).
+
+%%% Enums
+parse_enums(Files) ->
+ DontSearch = ["wxchar","filefn", "platform", "strconv", "filename",
+ "buffer", "string", "debug", "platinfo"],
+ %% Arg need to patch some specials, atleast for wx-2.6
+ ExtraSearch = ["gtk_2glcanvas", "generic_2splash"],
+ parse_enums(Files ++ ExtraSearch,gb_sets:from_list(DontSearch)).
+
+parse_enums([File|Files], Parsed) ->
+ case gb_sets:is_member(File,Parsed) of
+ false ->
+ FileName = filename:join(["wx_xml",File ++ "_8h.xml"]),
+%% io:format("Parse Enums in ~s ~n", [FileName]),
+ case xmerl_scan:file(FileName, [{space, normalize}]) of
+ {error, enoent} ->
+ parse_enums(Files, gb_sets:add(File,Parsed));
+ {Doc, _} ->
+ ES = "./compounddef/sectiondef/memberdef[@kind=\"enum\"]",
+ AM = xmerl_xpath:string(ES, Doc),
+ lists:foreach(fun(Def) -> extract_enum(Def, undefined, File) end, AM),
+
+ DS = "./compounddef/sectiondef/memberdef[@kind=\"define\"]",
+ Defs = xmerl_xpath:string(DS, Doc),
+ extract_defs(Defs,File),
+
+ INCs = xmerl_xpath:string("./compounddef/includes/text()", Doc),
+ New = [reverse(tl(tl(reverse(Inc)))) ||
+ #xmlText{value="wx/"++Inc} <- INCs],
+ %% io:format("Scan enums from ~p ~n", [File]),
+ parse_enums(New ++ Files, gb_sets:add(File,Parsed))
+ end;
+ true ->
+ parse_enums(Files,Parsed)
+ end;
+parse_enums([],_) -> ok.
+
+extract_enum(#xmlElement{name=memberdef,content=C}, Class, File) ->
+ {Name0,Vals0} = extract_enum2(C,undefined,0,[]),
+ {Vals,Name} =
+ if
+ hd(Name0) =:= $@, Class =:= undefined ->
+ {Vals0, Name0 ++ "_" ++ File};
+ Class =:= undefined->
+ {Vals0, Name0};
+ true ->
+ {[{Class++"::"++N,V} || {N,V} <- Vals0], {Class,Name0}}
+ end,
+ case get({enum, Name}) of
+ undefined ->
+%% io:format("1Enum name ~p~n", [Name]),
+%% [io:format(" ~s ~p~n", [D,V]) || {D,V} <- Vals],
+ put({enum, Name}, #enum{vals=Vals});
+ E = #enum{vals=undefined} ->
+%% io:format("2Enum name ~p~n", [Name]),
+%% [io:format(" ~s ~p~n", [D,V]) || {D,V} <- Vals],
+ put({enum, Name}, E#enum{vals=Vals});
+ #enum{vals=Vals} -> ok;
+%% io:format("Same? ~p ~n", [PVals == Vals])
+ #enum{vals=OldVals} ->
+ io:format("Enum ~p in ~p ~p ~p~n", [Name,Class,get(current_class),get(current_func)]),
+ io:format("New ~p~n", [Vals]),
+ io:format("Old ~p~n", [OldVals]),
+ erlang:error({enum_mismatch,Name,Vals,OldVals})
+ end,
+ ok.
+
+extract_enum2([#xmlElement{name=name,content=[#xmlText{value=Name}]}|R],_,Id,Acc0) ->
+ extract_enum2(R,Name,Id,Acc0);
+
+extract_enum2([#xmlElement{name=enumvalue,content=C}|R], N,Id,Acc0) ->
+ {Acc,NewId} = extract_enum3(C,Id,Acc0),
+ extract_enum2(R, N, NewId, Acc);
+extract_enum2([_|R], N, Id, Acc) ->
+ extract_enum2(R, N, Id, Acc);
+extract_enum2([], N, _Id, Acc) ->
+ {N, reverse(Acc)}.
+
+extract_enum3([#xmlElement{name=name,content=[#xmlText{value=Name}]}|R], Id, Acc) ->
+ case lists:keymember(Name, 1, Acc) of
+ true -> %% Doxygen double includes some defs.
+ {Acc,Id};
+ false ->
+ case Id of
+ This = {Str,Num} ->
+ extract_enum3(R, {Str, Num+1}, [{Name,This}|Acc]);
+ Val ->
+ extract_enum3(R, Val+1, [{Name,Val}|Acc])
+ end
+ end;
+
+extract_enum3([#xmlElement{name=initializer,
+ content=Cs=[#xmlText{}|_]}|_],_Id,[{Name,_}|Acc]) ->
+
+ String = lists:append([string:strip(C#xmlText.value) || C <- Cs]),
+
+ Val0 = gen_util:tokens(String,"<& "),
+
+ try
+ case Val0 of
+ ["0x" ++ Val1] ->
+ Val = http_util:hexlist_to_integer(Val1),
+ {[{Name, Val}|Acc], Val+1};
+ [Single] ->
+ Val = list_to_integer(Single),
+ {[{Name, Val}|Acc], Val+1};
+ ["1", "<<", Shift] ->
+ Val = 1 bsl list_to_integer(Shift),
+ {[{Name, Val}|Acc], Val+1};
+ [_Str, "+", _What] ->
+ Val = lists:append(Val0),
+ {[{Name, {Val, 0}}|Acc], {Val,1}};
+ _What ->
+ %% io:format("~p Name ~p ~p~n",[?LINE, Name, Val0]),
+ throw(below)
+ end
+ catch _:_ ->
+ {[{Name,{String,0}}|Acc], {String,1}}
+ end;
+extract_enum3([_|R], Id, Acc) ->
+ extract_enum3(R, Id, Acc);
+extract_enum3([], Id, Acc) ->
+ {Acc, Id}.
+
+extract_defs(Defs, File) ->
+ case foldl(fun extract_defs2/2, {[], gb_sets:empty()}, Defs) of
+ [] -> ok;
+ {Vals,_Skip} ->
+%% io:format("Defs file ~p~n", [File]),
+%% [io:format(" ~s ~p~n", [D,V]) || {D,V} <- Vals, not is_integer(V)]
+ put({enum, {define,"From " ++ File ++ ".h"}}, #enum{vals=Vals})
+ end.
+
+extract_defs2(#xmlElement{name=memberdef,content=C},{Acc,Skip}) ->
+ try
+ Res = {Name,_} = extract_def(C,undefined,Skip),
+ case gb_sets:is_member(Name,Skip) orelse lists:keymember(Name, 1, Acc) of
+ true -> {Acc,Skip};
+ false -> {[Res | Acc], Skip}
+ end
+ catch throw:SkipName -> {Acc, gb_sets:add(SkipName,Skip)}
+ end.
+
+extract_def([#xmlElement{name=name,content=[#xmlText{value=Name}]}|R], _N, Skip) ->
+ case Name of
+ "wxUSE" ++ _ ->
+ throw(Name);
+ "wx" ++ _ ->
+ extract_def(R, Name, Skip);
+ _ ->
+ throw(Name)
+ end;
+extract_def([#xmlElement{name=param}|_],Name,_) ->
+ throw(Name);
+extract_def([#xmlElement{name=initializer,content=[#xmlText{value=Val0}]}|_],N,Skip) ->
+ case Val0 of
+ "0x" ++ Val1 -> {N, http_util:hexlist_to_integer(Val1)};
+ _ ->
+ try
+ Val = list_to_integer(Val0),
+ {N, Val}
+ catch _:_ ->
+ case def_is_ok(Val0, Skip) of
+ false ->
+ throw(N);
+ NVal when is_integer(NVal) ->
+ {N, NVal};
+ NVal ->
+ {N, {NVal,0}}
+ end
+ end
+ end;
+extract_def([_|R],N,Skip) ->
+ extract_def(R,N,Skip);
+extract_def(_,N,_) ->
+ throw(N).
+
+def_is_ok(Name, Skip) ->
+ Toks = gen_util:tokens(Name,"()| \\:"),
+ R = def_is_ok(Toks, Skip, []),
+% io:format("~s -> ~p~n", [Name,R]),
+ R.
+
+def_is_ok([], _Skip, [")",Int, "("]) -> Int;
+def_is_ok([], _Skip, Acc) -> lists:append(reverse(Acc));
+def_is_ok([N="wx"++_|R],Skip,Acc) ->
+ case gb_sets:is_member(N,Skip) of
+ true -> false;
+ false -> def_is_ok(R,Skip,[N|Acc])
+ end;
+def_is_ok(["0x"++Val|R],Skip,Acc) ->
+ def_is_ok(R,Skip,["16#" ++ Val|Acc]);
+def_is_ok([N="|"|R], Skip, Acc) ->
+ def_is_ok(R,Skip,[N|Acc]);
+def_is_ok([N="("|R], Skip, Acc) ->
+ def_is_ok(R,Skip,[N|Acc]);
+def_is_ok([N=")"|R], Skip, Acc) ->
+ def_is_ok(R,Skip,[N|Acc]);
+def_is_ok([":"|_], _Skip, _Acc) ->
+ false;
+def_is_ok([N|R],Skip,Acc) ->
+ case catch list_to_integer(N) of
+ {'EXIT', _} -> false;
+ Int -> def_is_ok(R,Skip,[Int|Acc])
+ end.
+
+get_enum(Type0) when is_list(Type0) ->
+ case string:tokens(Type0,":") of
+ [Type] ->
+ {Type, get({enum,Type})};
+ [Class,Type] ->
+ get_enum(Type,Class)
+ end;
+get_enum({Class,Type}) ->
+ get_enum(Type,Class).
+
+get_enum(Type,Class) ->
+ case get({enum,Type}) of
+ undefined ->
+ {{Class,Type},get({enum, {Class,Type}})};
+ Res = #enum{} ->
+ {Type,Res}
+ end.
diff --git a/lib/wx/api_gen/wx_gen.hrl b/lib/wx/api_gen/wx_gen.hrl
new file mode 100644
index 0000000000..b34d399358
--- /dev/null
+++ b/lib/wx/api_gen/wx_gen.hrl
@@ -0,0 +1,88 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+-record(class,
+ {
+ name = undefined,
+ parent = undefined,
+ methods = [],
+ attributes = [],
+ event = false,
+ file = undefined,
+ options = undefined,
+ abstract = false,
+ id, % Unique integer identifer
+ doc
+ }).
+
+-record(method,
+ {
+ name = undefined, % real name
+ alias = undefined, % erlang func name
+ type = void, % method type
+ min_arity = undefined, % Required args
+ max_arity = undefined, % Optional args
+ defined_in = undefined, %
+ params = [], % arguments to the function
+ method_type = member, % kind of method, e.g constructor
+ where = both, % Erl or c or both
+ id = undefined, % Id (integer)
+ doc, % Extra documentation
+ virtual, % Is virtual?
+ pre_hook, % Pre hook before call in c-code
+ post_hook % Post hook after call in c-code
+ }
+ ).
+
+-record(param,
+ {
+ name = undefined,
+ type = undefined,
+ def = none,
+ in = true,
+ where = both, % both in c and erl or only in either
+ prot = public, % only used by attributes
+ alt = undefined,% c-only alternative usually a length indicator
+ acc % access function if protected and needed
+ }).
+
+-record(type,
+ {
+ name = undefined, % typename
+ base = undefined, % basename int, char, float ..
+ by_val = true, % or false = by_ref
+ single = true, % Single or array (list)
+ mod = [], % const ...
+ ref = undefined, % pointer or reference
+ xml = undefined % xml identity
+ }
+ ).
+
+-record(enum, {skip="", as_atom=false, vals}).
+-record(const,{name,val,enum,is_const}).
+
+-define(error(What),
+ erlang:error({{?MODULE,?LINE},{get(current_class),get(current_func)},What})).
+
+-define(warning(Str,Args),
+ io:format("~p:~p Warning:"++Str, [?MODULE,?LINE] ++ Args)).
+
+%-ifdef(TRACE_COMMENT).
+%-define(WTC(X), w("// ~p:~p ~p~n",[?MODULE, ?LINE, X])).
+%-else.
+-define(WTC(X), void).
+%-endif.
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl
new file mode 100644
index 0000000000..fd0bea04ae
--- /dev/null
+++ b/lib/wx/api_gen/wx_gen_cpp.erl
@@ -0,0 +1,1220 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : wx_gen_cpp.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 19 Feb 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_gen_cpp).
+
+-include("wx_gen.hrl").
+
+-compile(export_all).
+
+-import(lists, [foldl/3,foldr/3,reverse/1, keysearch/3, map/2, filter/2]).
+-import(gen_util, [lowercase/1, lowercase_all/1, uppercase/1, uppercase_all/1,
+ open_write/1, close/0, c_copyright/0, w/2, w/1,
+ args/3, strip_name/2]).
+-import(wx_gen, [next_id/1]).
+
+gen(Defs) ->
+ open_write("../c_src/gen/wxe_derived_dest.h"),
+ c_copyright(),
+ w("~n/***** This file is generated do not edit ****/ ~n~n", []),
+ gen_derived_dest(Defs),
+ close(),
+
+ open_write("../c_src/gen/wxe_funcs.cpp"),
+ c_copyright(),
+ Res = gen_funcs(Defs),
+ close(),
+
+ open_write("../c_src/gen/wxe_macros.h"),
+ c_copyright(),
+ gen_macros(),
+ close(),
+
+ open_write("../c_src/gen/wxe_init.cpp"),
+ c_copyright(),
+ build_enums(),
+ close(),
+
+ build_events(),
+ Res.
+
+gen_derived_dest(Defs) ->
+ [gen_derived_dest_2(Class) || Class <- Defs],
+
+ UglySkipList = ["wxCaret", "wxCalendarDateAttr",
+ "wxFileDataObject", "wxTextDataObject", "wxBitmapDataObject"
+ ],
+
+ ?WTC("gen_derived_dest"),
+ w("void WxeApp::delete_object(void *ptr, wxeRefData *refd) {~n", []),
+ w(" switch(refd->type) {~n", []),
+ Case = fun(#class{name=Class, id=Id, abstract=IsAbs, parent=P}) when P /= "static" ->
+ UglyWorkaround = lists:member(Class, UglySkipList),
+ case hd(reverse(wx_gen_erl:parents(Class))) of
+ root when IsAbs == false, UglyWorkaround == false ->
+ w(" case ~p: delete (~s *) ptr; break;~n", [Id, Class]);
+ root when IsAbs == false, UglyWorkaround == true ->
+ w(" case ~p: /* delete (~s *) ptr;"
+ "These objects must be deleted by owner object */ "
+ "break;~n", [Id, Class]);
+ _ -> ok
+ end;
+ (_) -> ok
+ end,
+ [Case(Class) || Class <- Defs],
+ w(" default: delete (wxObject *) ptr;~n", []),
+ w("}}~n~n", []).
+
+gen_derived_dest_2(C=#class{name=Class}) ->
+ case is_derived(C) of
+ true ->
+ ?WTC("gen_derived_dest_2"),
+ w("class E~s : public ~s { ~n",[Class,Class]),
+ case Class of
+ "wxGLCanvas" -> %% Special for cleaning up gl context
+ w(" public: ~~E~s() {deleteActiveGL(this);"
+ "((WxeApp *)wxTheApp)->clearPtr(this);}; ~n", [Class]);
+ _ ->
+ w(" public: ~~E~s() {((WxeApp *)wxTheApp)->clearPtr(this);}; ~n", [Class])
+ end,
+ gen_constructors(C),
+ w("}; ~n~n", []);
+ false ->
+ ignore
+ end.
+
+gen_constructors(#class{name=Class, methods=Ms0}) ->
+ Ms = lists:append(Ms0),
+ Cs = lists:filter(fun(#method{method_type=MT}) -> MT =:= constructor end, Ms),
+ [gen_constructor(Class, Const) || Const <- Cs].
+
+gen_constructor(_Class, #method{where=merged_c}) -> ok;
+gen_constructor(_Class, #method{where=erl_no_opt}) -> ok;
+gen_constructor(Class, _M=#method{params=Ps}) ->
+ Gen1 = fun(#param{name=N, type=T}) -> gen_type(T,1) ++ N end,
+ Gen2 = fun(#param{name=N, type=T}) -> gen_type(T,2) ++ N end,
+ CallA = fun(#param{name=N}) -> N end,
+ HaveMergedType = fun(#param{type={merged,_,_,_,_,_,_}}) -> true; (_) -> false end,
+ ?WTC("gen_constructor"),
+ case lists:any(HaveMergedType, Ps) of
+ false ->
+ w(" E~s(~s) : ~s(~s) {};~n",
+ [Class,args(Gen1,",",Ps),Class,args(CallA,",",Ps)]);
+ true ->
+ w(" E~s(~s) : ~s(~s) {};~n",
+ [Class,args(Gen1,",",Ps),Class,args(CallA,",",Ps)]),
+ w(" E~s(~s) : ~s(~s) {};~n",
+ [Class,args(Gen2,",",Ps),Class,args(CallA,",",Ps)])
+ end.
+
+gen_type(#type{name=Type, ref={pointer,1}, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ " * ";
+gen_type(#type{name=Type, ref={pointer,2}, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ " ** ";
+gen_type(#type{name=Type, ref=reference, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ "& ";
+gen_type(#type{name=Type, ref=undefined, base=binary, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ " * ";
+gen_type(#type{name=Type, ref=undefined, single=array, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ " * ";
+gen_type(#type{name=Type, ref=undefined, mod=Mod},_) ->
+ mods(Mod) ++ to_string(Type) ++ " ";
+gen_type({merged, _, T1, _,_, _T2,_}, 1) ->
+ gen_type(T1,error);
+gen_type({merged, _, _T1,_, _, T2,_}, 2) ->
+ gen_type(T2,error).
+
+gen_funcs(Defs) ->
+ w("~n/***** This file is generated do not edit ****/ ~n~n"),
+ w("#include <wx/wx.h>~n"),
+ w("#include \"../wxe_impl.h\"~n"),
+ w("#include \"../wxe_events.h\"~n"),
+ w("#include \"../wxe_return.h\"~n"),
+ w("#include \"wxe_macros.h\"~n"),
+ w("#include \"wxe_derived_dest.h\"~n~n"),
+
+ w("void WxeApp::wxe_dispatch(wxeCommand& Ecmd)~n{~n"),
+ w(" char * bp = Ecmd.buffer; ~n"),
+ w(" wxeMemEnv *memenv = getMemEnv(Ecmd.port);~n"),
+%% w(" wxMBConvUTF32 UTFconverter;~n"),
+ w(" wxeReturn rt = wxeReturn(WXE_DRV_PORT, Ecmd.caller, true);~n"),
+ w(" try { ~n"),
+ w(" switch (Ecmd.op) ~n{~n"),
+%% w(" case WXE_CREATE_PORT: ~n", []),
+%% w(" { newMemEnv(Ecmd.port); } break; ~n", []),
+%% w(" case WXE_REMOVE_PORT: ~n", []),
+%% w(" { destroyMemEnv(Ecmd.port); } break; ~n", []),
+ w(" case DESTROY_OBJECT: { ~n"),
+ w(" wxObject *This = (wxObject *) getPtr(bp,memenv); "),
+ w(" if(This) {"),
+ w(" ((WxeApp *) wxTheApp)->clearPtr((void *) This);~n"),
+ w(" delete This; }~n } break; ~n"),
+ w(" case WXE_REGISTER_OBJECT: {~n"
+ " registerPid(bp, Ecmd.caller, memenv);~n"
+ " rt.addAtom(\"ok\");~n"
+ " break;~n"
+ " }~n"),
+
+ Res = [gen_class(Class) || Class <- Defs],
+
+ w(" default: {~n"),
+ w(" wxeReturn error = wxeReturn(WXE_DRV_PORT, Ecmd.caller, false);"),
+ w(" error.addAtom(\"_wxe_error_\");~n"),
+ w(" error.addInt((int) Ecmd.op);~n"),
+ w(" error.addAtom(\"not_supported\");~n"),
+ w(" error.addTupleCount(3);~n"),
+ w(" error.send();~n"),
+ w(" return ;~n"),
+ w(" }~n"),
+ w("} // switch~n"),
+ w(" rt.send();~n"),
+ w("} catch (wxe_badarg badarg) { // try ~n"),
+ w(" wxeReturn error = wxeReturn(WXE_DRV_PORT, Ecmd.caller, false);"),
+ w(" error.addAtom(\"_wxe_error_\");~n"),
+ w(" error.addInt((int) Ecmd.op);~n"),
+ w(" error.addAtom(\"badarg\");~n"),
+ w(" error.addInt((int) badarg.ref);~n"),
+ w(" error.addTupleCount(2);~n"),
+ w(" error.addTupleCount(3);~n"),
+ w(" error.send();~n"),
+ w("}} /* The End */ ~n"),
+ Res.
+
+gen_class(C=#class{name=Name,methods=Ms,options=Opts}) ->
+ put(current_class, Name),
+ NewMs =
+ case lists:member(taylormade, Opts) of
+ true ->
+ {ok, Bin} = file:read_file(filename:join([wx_extra,Name++".c_src"])),
+ ?WTC("gen_class"),
+ w("~s~n", [binary_to_list(Bin)]),
+ Ms;
+ false ->
+ case lists:keysearch(ifdef,1,Opts) of
+ {value, {ifdef, What}} ->
+ w("#if ~p~n",[What]),
+ Methods = lists:flatten(Ms),
+ MsR = [gen_method(Name,M) ||
+ M <- lists:keysort(#method.id, Methods)],
+ w("#endif // ~p~n",[What]),
+ MsR;
+ false ->
+ Methods = lists:flatten(Ms),
+ [gen_method(Name,M) ||
+ M <- lists:keysort(#method.id, Methods)]
+ end
+ end,
+ erase(current_class),
+ C#class{methods=NewMs}.
+
+gen_method(_CName, M=#method{where=erl_no_opt}) -> M;
+gen_method(CName, M=#method{where=taylormade, name=Name, id=Id}) ->
+ {ok, Bin} = file:read_file(filename:join([wx_extra, CName ++".c_src"])),
+ Str0 = binary_to_list(Bin),
+ %% io:format("C++ Class ~p ~p ~n", [CName, Name]),
+
+ {match, [Str1]} = re:run(Str0, "<<"++Name++"(.*)"++Name++">>",
+ [dotall, {capture, all_but_first, list}]),
+ ?WTC("gen_method"),
+ w(Str1, [wx_gen_erl:get_unique_name(Id)]),
+ M;
+gen_method(CName, M=#method{name=N,params=[Ps],method_type=destructor,id=MethodId}) ->
+ case hd(reverse(wx_gen_erl:parents(CName))) of
+ root ->
+ ?WTC("gen_method"),
+ w("case ~s: { // ~s::~s ~n", [wx_gen_erl:get_unique_name(MethodId),CName,N]),
+ decode_arguments([Ps]),
+ w(" if(This) {", []),
+ w(" ((WxeApp *) wxTheApp)->clearPtr((void *) This);~n", []),
+ w(" delete This;}~n", []),
+ free_args(),
+ w(" break; ~n}~n", []);
+ object -> %% Use default
+ ignore
+ end,
+ M;
+gen_method(CName, M=#method{name=N,params=Ps0,type=T,method_type=MT,id=MethodId}) ->
+ put(current_func, N),
+ put(bin_count,-1),
+ ?WTC("gen_method"),
+ w("case ~s: { // ~s::~s ~n", [wx_gen_erl:get_unique_name(MethodId),CName,N]),
+ Ps1 = declare_variables(void, Ps0),
+ {Ps2,Align} = decode_arguments(Ps1),
+ Opts = [Opt || Opt = #param{def=Def,in=In,where=Where} <- Ps2,
+ Def =/= none, In =/= false, Where =/= c],
+ decode_options(Opts, Align),
+ case M#method.pre_hook of
+ undefined -> skip;
+ Pre -> w(" ~s;~n", [Pre])
+ end,
+ Ps3 = call_wx(N,{MT,CName},T,Ps2),
+ case M#method.post_hook of
+ undefined -> skip;
+ Post -> w(" ~s;~n", [Post])
+ end,
+ free_args(),
+ build_return_vals(T,Ps3),
+ w(" break; ~n}~n", []),
+ erase(current_func),
+ M.
+
+declare_variables(void,Ps) ->
+ [declare_var(P) || P <- Ps];
+declare_variables(T, Ps) ->
+ declare_type("result", out, ignore, T),
+ [declare_var(P) || P <- Ps].
+
+declare_var(P = #param{where=erl}) -> P;
+declare_var(P = #param{where=this}) -> P;
+declare_var(P = #param{name=Name,def=Def,type=Type,in=true}) when Def =/= none ->
+ declare_type(Name, true, Def, Type),
+ P;
+declare_var(P = #param{in=In}) when In =/= false -> P;
+declare_var(P = #param{name=Name,in=In,def=Def,type=Type}) ->
+ declare_type(Name, In, Def, Type),
+ P.
+
+declare_type(N,false,_,#type{name="wxArrayInt"}) ->
+ w(" wxArrayInt ~s;~n", [N]);
+declare_type(N,false,_,#type{name="wxArrayString"}) ->
+ w(" wxArrayString ~s;~n", [N]);
+declare_type(N,false,_,#type{base=Base,single=true,name=Type,by_val=false,mod=Mod})
+ when Base =:= int; Base =:= long; Base =:= float; Base =:= double ->
+ w(" ~s~s ~s;~n", [mods(Mod),Type,N]);
+declare_type(N,false,_,#type{base={enum,_},single=true,name=Type,by_val=false,mod=Mod}) ->
+ w(" ~s~s ~s;~n", [mods(Mod),Type,N]);
+declare_type(N,false,_,#type{name="wxArrayTreeItemIds",ref=reference}) ->
+ w(" wxArrayTreeItemIds ~s;~n", [N]);
+declare_type(N,false,_,#type{name="wxDateTime"}) ->
+ w(" wxDateTime ~s;~n", [N]);
+declare_type(N,true,Def,#type{base=Base,single=true,name=Type,by_val=true})
+ when Base =:= int; Base =:= long; Base =:= float; Base =:= double; Base =:= bool ->
+ w(" ~s ~s=~s;~n", [Type,N,Def]);
+declare_type(N,true,Def,#type{base={comp,_,_},single=true,name=Type,mod=Mod,ref={pointer,1}}) ->
+ w(" ~s~s *~s=~s; ~s ~s;~n", [mods(Mod),Type,N,Def,Type,N++"Tmp"]);
+declare_type(N,true,Def,#type{base={comp,_,_},single=true,name=Type,ref=reference}) ->
+ w(" ~s ~s= ~s;~n", [Type,N,Def]);
+declare_type(N,true,Def,#type{base={enum,Type},single=true}) ->
+ w(" ~s ~s=~s;~n", [enum_type(Type),N,Def]);
+declare_type(N,true,Def,#type{base={class,_},single=true,name=Type,ref={pointer,1},mod=Mod}) ->
+ w(" ~s~s * ~s=~s;~n", [mods(Mod),Type,N,Def]);
+declare_type(N,true,Def,#type{base={class,_},single=true,name=Type,ref=reference,mod=Mod}) ->
+ w(" ~s~s * ~s= &~s;~n", [mods(Mod),Type,N,Def]);
+declare_type(N,true,Def,#type{base=Base,single=true,name=Type,by_val=false,ref={pointer,1}})
+ when Base =:= int; Base =:= long; Base =:= float; Base =:= double; Base =:= bool ->
+ w(" ~s *~s=~s;~n", [Type,N,Def]);
+declare_type(N,true,Def,#type{single=true,name="wxArtClient"}) ->
+ w(" wxArtClient ~s= ~s;~n", [N,Def]);
+declare_type(N,true,Def,#type{single=true,base=string}) ->
+ w(" wxString ~s= ~s;~n", [N,Def]);
+%% declare_type(N,true,_Def,#type{name="wxString"}) ->
+%% w(" wxString ~s= wxEmptyString;~n", [N]);
+declare_type(N,true,Def,#type{base=binary, name=char}) ->
+ w(" char ~sD[] = {~s}, * ~s = ~sD;~n", [N,Def,N,N]);
+declare_type(_N,true,_Def,void) ->
+ skip;
+declare_type(N,true,Def,#type{name=Type, ref={pointer,2}}) ->
+ %% xxxx
+ w(" ~s ** ~s = ~s;~n", [Type,N,Def]);
+declare_type(N,true,Def,#type{name=Type, single=array, ref={pointer,1}}) ->
+ w(" int * ~sLen = 0;~n", [N]),
+ w(" ~s * ~s = ~s;~n", [Type,N,Def]);
+declare_type(N,true,"",#type{name="wxArrayString", single=array, ref=reference}) ->
+ w(" wxArrayString ~s;~n", [N]);
+declare_type(N,true,Def,#type{name=Type, base={term,_}}) ->
+ w(" ~s * ~s= ~s;~n", [Type,N,Def]);
+declare_type(N,In,Def,T) ->
+ ?error({unhandled_type, {N,In,Def,T}}).
+
+decode_options([], _Align) -> ok;
+decode_options(Opts, Align) ->
+ align(Align, 64),
+ w(" while( * (int*) bp) { switch (* (int*) bp) { ~n", []),
+ foldl(fun decode_opt/2, 1, Opts),
+ w(" }}; ~n", []).
+
+decode_opt(#param{name=Name,type=Type}, N) ->
+ w(" case ~p: {bp += 4;~n", [N]),
+ Align = decode_arg(Name,Type,opt,1),
+ align(Align, 64),
+ w(" } break;~n", []),
+ N+1.
+
+decode_arguments(Ps0) ->
+ lists:mapfoldl(fun decode_arg/2,0,Ps0).
+
+store_free(N) ->
+ case get(free_args) of
+ undefined -> put(free_args, [N]);
+ List -> put(free_args, [N|List])
+ end.
+
+free_args() ->
+ case get(free_args) of
+ undefined -> ignore;
+ List ->
+ erase(free_args),
+ [w(" driver_free(~s);~n", [Arg]) || Arg <- List]
+ end.
+
+decode_arg(P = #param{where=erl},A) -> {P,A};
+decode_arg(P = #param{where=c},A) -> {P,A};
+decode_arg(P = #param{in=false},A) -> {P,A};
+decode_arg(P = #param{def=Def},A) when Def =/= none -> {P,A};
+decode_arg(P = #param{name=Name,type=Type},A0) ->
+ A = decode_arg(Name, Type, arg, A0),
+ {P, A}.
+
+wa(Decl,DA,Get,GetA,arg) ->
+ w(Decl,DA),
+ w(Get,GetA);
+wa(_Decl,_DA,Get,GetA,opt) ->
+ w(Get,GetA).
+
+decode_arg(N,#type{name=Class,base={class,_},single=true},Arg,A0) ->
+ A = align(A0,32),
+ wa(" ~s *",[Class],"~s = (~s *) getPtr(bp,memenv); bp += 4;~n",[N,Class],Arg),
+ A;
+decode_arg(N,{merged,_,#type{name=Class,base={class,_},single=true},_,_,_,_},arg,A0) ->
+ A = align(A0,32),
+ w(" ~s * ~s = (~s *) getPtr(bp,memenv); bp += 4;~n", [Class,N,Class]),
+ A;
+decode_arg(N,#type{base=long,single=true,name=Type},arg,A0) ->
+ A = align(A0,64),
+ w(" long * ~s = (~s *) bp; bp += 8;~n", [N,Type]),
+ A;
+decode_arg(N,#type{base=int,single=true,mod=Mod0,name=Type,ref=Ref},Arg,A0) ->
+ Mod = mods(Mod0),
+ case Arg of
+ arg -> w(" ~s~s * ~s = (~s~s *) bp; bp += 4;~n", [Mod,int,N,Mod,int]);
+ opt when Ref =:= {pointer,1} ->
+ w(" ~s = (~s *) bp; bp += 4;~n", [N,int]);
+ opt ->
+ w(" ~s = (~s)*(~s~s *) bp; bp += 4;~n", [N,Type,Mod,int])
+ end,
+ align(A0,32);
+decode_arg(N,#type{base=float,single=true,name=Type},arg,A0) ->
+ w(" ~s * ~s = (~s *) bp; bp += 4;~n", [Type,N,Type]),
+ align(A0,32);
+decode_arg(N,#type{base=double,single=true,name=Type},Arg,A0) ->
+ A = align(A0,64),
+ case Arg of
+ arg -> w(" ~s * ~s = (~s *) bp; bp += 8;~n", [Type,N,Type]);
+ opt -> w(" ~s = * (~s *) bp; bp += 8;~n", [N,Type])
+ end,
+ A;
+decode_arg(N,#type{base=bool,single=true,name=Type},Arg,A0) ->
+ case Arg of
+ arg -> w(" bool * ~s = (~s *) bp; bp += 4;~n", [N,Type]);
+ opt -> w(" ~s = *(~s *) bp; bp += 4;~n", [N,Type])
+ end,
+ align(A0,32);
+decode_arg(N,#type{base={enum,Type},single=true},Arg,A0) ->
+ wa(" ~s ", [enum_type(Type)], "~s = *(~s *) bp; bp += 4;;~n",[N, enum_type(Type)], Arg),
+ align(A0,32);
+decode_arg(N,#type{base={comp,"wxDateTime",List},single=true,name=Type,ref=Ref},Arg,A0) ->
+ Decl = fun({int,Spec}) ->
+ w(" int * ~s~s = (int *) bp; bp += 4;~n", [N,Spec])
+ end,
+ align(A0,32),
+ lists:foreach(Decl,List),
+ Name = fun({_,"Mo"}) -> "(wxDateTime::Month) *"++N++"Mo";
+ ({_,"Y"}) -> "*"++N++"Y";
+ ({_,Spec}) -> "(wxDateTime::wxDateTime_t) *"++N++Spec
+ end,
+ case Arg of
+ arg -> w(" ~s ~s = ~s(~s);~n", [Type,N,Type,args(Name, ",", List)]);
+ opt when Ref =:= {pointer,1} ->
+ w(" ~sTmp = ~s(~s); ~s = & ~sTmp;~n",
+ [N,Type,args(Name, ",", List), N,N]);
+ opt ->
+ w(" ~s = ~s(~s);~n", [N,Type,args(Name, ",", List)])
+ end,
+ (A0+length(List)) rem 2;
+decode_arg(N,#type{base={comp,_,List},single=true,name=Type,ref=Ref},Arg,A0) ->
+ Decl = fun({int,Spec}) ->
+ w(" int * ~s~s = (int *) bp; bp += 4;~n", [N,Spec]);
+ ({double, Spec}) ->
+ w(" wxDouble * ~s~s = (wxDouble *) bp; bp += 8;~n", [N,Spec])
+ end,
+ case hd(List) of
+ {int, _} -> align(A0,32);
+ {double, _} -> align(A0,64)
+ end,
+ lists:foreach(Decl,List),
+ Name = fun({_,Spec}) -> "*"++N++Spec end,
+ case Arg of
+ arg -> w(" ~s ~s = ~s(~s);~n", [Type,N,Type,args(Name, ",", List)]);
+ opt when Ref =:= {pointer,1} ->
+ w(" ~sTmp = ~s(~s); ~s = & ~sTmp;~n",
+ [N,Type,args(Name, ",", List), N,N]);
+ opt ->
+ w(" ~s = ~s(~s);~n", [N,Type,args(Name, ",", List)])
+ end,
+ case hd(List) of
+ {int, _} -> (A0+length(List)) rem 2;
+ {double, _} -> 0
+ end;
+
+decode_arg(N,#type{name=Class,base={ref,"wxTreeItemId"},single=true},Arg,A0) ->
+ A = align(A0,32),
+ wa(" ~s ",[Class],"~s = wxTreeItemId(getPtr(bp,memenv)); bp += 4;~n",[N],Arg),
+ A;
+decode_arg(N,#type{name="wxChar", single=S},Arg,A0)
+ when S =/= true ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ wa(" wxString", []," ~s = wxString(bp, wxConvUTF8);~n", [N],Arg),
+ w(" bp += *~sLen+((8-((~p+ *~sLen) & 7)) & 7);~n", [N,4*((A0+1) rem 2),N]),
+ 0;
+decode_arg(N,#type{base=string, name="wxFileName"},Arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ wa(" wxString", []," ~sStr = wxString(bp, wxConvUTF8);~n", [N],Arg),
+ w(" bp += *~sLen+((8-((~p+ *~sLen) & 7)) & 7);~n", [N,4*((A0+1) rem 2),N]),
+ w(" wxFileName ~s = wxFileName(~sStr);~n",[N,N]),
+ 0;
+decode_arg(N,#type{base=string},Arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ wa(" wxString", []," ~s = wxString(bp, wxConvUTF8);~n", [N],Arg),
+ w(" bp += *~sLen+((8-((~p+ *~sLen) & 7)) & 7);~n", [N,4*((A0+1) rem 2),N]),
+ 0;
+decode_arg(N,#type{name="wxArrayString"},Place,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ case Place of
+ arg -> w(" wxArrayString ~s;~n", [N]);
+ opt -> ignore %% Allready declared
+ end,
+ w(" int ~sASz = 0, * ~sTemp;~n", [N,N]),
+ w(" for(int i=0; i < *~sLen; i++) {~n", [N]),
+ w(" ~sTemp = (int *) bp; bp += 4;~n", [N]),
+ w(" ~s.Add(wxString(bp, wxConvUTF8));~n", [N]),
+ w(" bp += *~sTemp;~n", [N]),
+ w(" ~sASz += *~sTemp+4;~n }~n", [N,N]),
+ w(" bp += (8-((~p+ ~sASz) & 7 )) & 7;~n", [4*((A0+1) rem 2),N]),
+ 0;
+
+decode_arg(N,#type{name="wxArrayInt"},arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ w(" wxArrayInt ~s;~n", [N]),
+ w(" for(int i=0; i < *~sLen; i++) {", [N]),
+ w(" ~s.Add(*(int *) bp); bp += 4;}~n", [N]),
+ w(" bp += ((*~sLen + ~p) % 2 )*4;~n",[N, (A0+1)]),
+ 0;
+decode_arg(N,#type{name="wxArrayDouble"},arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ align(A0+1,64),
+ w(" wxArrayDouble ~s;~n", [N]),
+ w(" for(int i=0; i < *~sLen; i++) {", [N]),
+ w(" ~s.Add(*(int *) bp); bp += 4;}~n", [N]),
+ 0;
+decode_arg(_N,#type{base=eventType},_Arg,A0) ->
+%% w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+%% case Arg of
+%% arg ->
+%% w(" int ~s = wxeEventTypeFromAtom(bp);bp += *~sLen;~n",[N,N]),
+%% w(" char *class_name = bp;~n", []),
+%% w(" wxeCallbackData * Evt_cb = new wxeCallbackData(Ecmd.caller,This,class_name);~n",
+%% [])
+%% end,
+ A0;
+decode_arg(N,#type{name=Type,base=binary,mod=Mod0},Arg,A0) ->
+ Mod = mods([M || M <- Mod0]),
+ case Arg of
+ arg ->
+ w(" ~s~s * ~s = (~s~s*) Ecmd.bin[~p]->base; ~n",
+ [Mod,Type,N,Mod,Type, next_id(bin_count)]);
+ opt ->
+ w(" ~s = (~s~s*) Ecmd.bin[~p]->base; ~n",
+ [N,Mod,Type,next_id(bin_count)])
+ end,
+ A0;
+decode_arg(N,#type{base={term,"wxTreeItemData"},mod=Mod0},Arg,A0) ->
+ Mod = mods([M || M <- Mod0]),
+ Type = "wxETreeItemData",
+ BinCnt = next_id(bin_count),
+ case Arg of
+ arg ->
+ w(" ~s~s * ~s = new ~s(Ecmd.bin[~p]->size, Ecmd.bin[~p]->base); ~n",
+ [Mod,Type,N,Type,BinCnt,BinCnt]);
+ opt ->
+ w(" ~s = new ~s(Ecmd.bin[~p]->size, Ecmd.bin[~p]->base); ~n",
+ [N,Type,BinCnt,BinCnt])
+ end,
+ A0;
+decode_arg(N,#type{name=Type,base={term,_},mod=Mod0},Arg,A0) ->
+ Mod = mods([M || M <- Mod0]),
+ BinCnt = next_id(bin_count),
+ case Arg of
+ arg ->
+ w(" ~s~s * ~s = new ~s(Ecmd.bin[~p]); ~n",
+ [Mod,Type,N,Type,BinCnt]);
+ opt ->
+ w(" ~s = new ~s(Ecmd.bin[~p]); ~n",
+ [N,Type,BinCnt])
+ end,
+ A0;
+decode_arg(N,#type{single=array,base=int},Arg,A0) ->
+ case Arg of
+ arg ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ w(" int * ~s = (int *) bp; bp += *~sLen*4+((~p+ *~sLen)%2 )*4;~n",
+ [N,N,(A0+1) rem 2,N]);
+ opt ->
+ w(" ~sLen = (int *) bp; bp += 4;~n", [N]),
+ w(" ~s = (int *) bp; bp += *~sLen*4+((~p+ *~sLen)%2 )*4;~n",
+ [N,N,(A0+1) rem 2,N])
+ end,
+ 0;
+decode_arg(N,#type{by_val=true,single=array,base={comp,Class="wxPoint",_}},arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ w(" ~s *~s;~n",[Class,N]),
+ w(" ~s = (~s *) driver_alloc(sizeof(~s) * *~sLen);~n",[N,Class,Class,N]),
+ store_free(N),
+ w(" for(int i=0; i < *~sLen; i++) {~n", [N]),
+ w(" int x = * (int *) bp; bp += 4;~n int y = * (int *) bp; bp += 4;~n", []),
+ w(" ~s[i] = wxPoint(x,y);}~n", [N]),
+ align(A0,32);
+decode_arg(N,#type{by_val=true,single=array,base={class,Class}},arg,A0) ->
+ A = align(A0,32),
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ w(" ~s *~s;~n",[Class,N]),
+ w(" ~s = (~s *) driver_alloc(sizeof(~s) * *~sLen);", [N, Class, Class, N]),
+ store_free(N),
+ w(" for(int i=0; i < *~sLen; i++) {", [N]),
+ w(" ~s[i] = * (~s *) getPtr(bp,memenv); bp += 4;}~n", [N,Class]),
+ w(" bp += ((~p+ *~sLen)%2 )*4;~n", [A, N]),
+ 0;
+decode_arg(N,#type{name=Type,single=list,base={class,Class}},arg,A0) ->
+ w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),
+ A = align(A0,32),
+ w(" ~s ~s;~n",[Type,N]),
+ w(" for(int i=0; i < *~sLen; i++) {", [N]),
+ w(" ~s.Append(*(~s *) getPtr(bp,memenv)); bp += 4;}~n", [N,Class]),
+ w(" bp += ((~p+ *~sLen)%2 )*4;~n", [A,N]),
+ 0;
+decode_arg(Name,T, Arg,_A) ->
+ ?error({unhandled_type, {Name,T, Arg}}).
+
+align(0, 32) -> 1;
+align(1, 32) -> 0;
+align(0, 64) -> 0;
+align(1, 64) ->
+ w(" bp += 4; /* Align */~n"),
+ 0;
+align(N,Sz) ->
+ align(N rem 2, Sz).
+
+call_wx(_N,{constructor,_},#type{base={class,RClass}},Ps) ->
+ #class{id=Id} = ClassDef = get({class,RClass}),
+ Class = case is_derived(ClassDef) of
+ true -> "E" ++ RClass;
+ false -> RClass
+ end,
+ w(" ~s * Result = new ~s(~s);~n",
+ [RClass, Class,args(fun call_arg/1, ",",filter(Ps))]),
+ CType = case is_window(RClass) of
+ true -> %% Windows have parents that should be deleted first
+ case is_dialog(RClass) of
+ true -> 2; %% Dialogs must be closed first event before windows
+ false -> 0
+ end;
+ false ->
+ case hd(reverse(wx_gen_erl:parents(RClass))) of
+ root -> Id;
+ _ -> 1
+ end
+ end,
+ case virtual_dest(ClassDef) orelse (CType =/= 0) of
+ true ->
+ w(" newPtr((void *) Result, ~p, memenv);~n", [CType]);
+ false -> %% Hmm window without virt dest
+ w(" /* Possible memory leak here, class is missing virt dest */ \n")
+ end,
+ Ps;
+call_wx(N,{member,_},Type,Ps) ->
+ {Beg,End} = return_res(Type),
+ w(" if(!This) throw wxe_badarg(0);~n",[]),
+ w(" ~sThis->~s(~s)~s;~n",[Beg,N,args(fun call_arg/1, ",",filter(Ps)),End]),
+ Ps;
+call_wx(N,{static,Class},Type,Ps) ->
+ {Beg,End} = return_res(Type),
+ #class{parent=Parent} = get({class,Class}),
+ case Parent of
+ "static" ->
+ w(" ~s::~s(~s)~s;~n",[Beg,N,args(fun call_arg/1, ",",filter(Ps)),End]);
+ _ ->
+ w(" ~s~s::~s(~s)~s;~n",[Beg,Class,N,args(fun call_arg/1, ",",filter(Ps)),End])
+ end,
+ Ps.
+
+
+return_res(void) -> {"", ""};
+return_res(Type = #type{mod=Mod}) ->
+ case lists:member(const, Mod) of
+ true ->
+ {Beg, End} = return_res1(Type),
+ {"const " ++ Beg, End};
+ _ ->
+ return_res1(Type)
+ end.
+
+return_res1(#type{name=Type,ref={pointer,_}, base={term,_}}) ->
+ {Type ++ " * Result = (" ++ Type ++ "*)", ""};
+return_res1(#type{name=Type,ref={pointer,_}}) ->
+ {Type ++ " * Result = (" ++ Type ++ "*)", ""};
+return_res1(#type{name=Type,single=true,ref=reference}) ->
+ {Type ++ " * Result = &", ""};
+return_res1(#type{name=Type,single=true,by_val=true})
+ when is_atom(Type) ->
+ {atom_to_list(Type) ++ " Result = ", ""};
+return_res1(#type{name=Type="wxArrayInt"}) ->
+ {Type ++ " Result = ", ""};
+return_res1(#type{name=Type,base={class,_},single=list,ref=reference}) ->
+ {Type ++ " Result = ", ""};
+return_res1(#type{name=Type,base={comp,_,_},single=array,by_val=true}) ->
+ {Type ++ " Result = ", ""};
+return_res1(#type{name=Type,single=true,by_val=true, base={class, _}}) ->
+ %% Memory leak !!!!!! XXXX BUGBUG FIXME or doument!!
+ case Type of
+ "wxImage" -> ok;
+ "wxFont" -> ok;
+ "wxBitmap" -> ok;
+ "wxIcon" -> ok;
+ "wxGraphics" ++ _ -> ok;
+ _ ->
+ io:format("~s::~s Building return value of temp ~s~n",
+ [get(current_class),get(current_func),Type])
+ end,
+ %% #class{id=Id} = get({class,Type}),
+ {Type ++ " * Result = new " ++ Type ++ "(", "); newPtr((void *) Result,"
+ ++ "3, memenv);"};
+return_res1(#type{base={enum,_Type},single=true,by_val=true}) ->
+ {"int Result = " , ""};
+return_res1(#type{name="wxCharBuffer", base={binary,_},single=true,by_val=true}) ->
+ {"char * Result = ", ".data()"};
+return_res1(#type{name=Type,single=array,ref=reference}) ->
+ {Type ++ " Result = ", ""};
+return_res1(#type{name=Type,single=true,by_val=true}) ->
+ {Type ++ " Result = ", ""}.
+
+filter(Ps) ->
+ lists:filter(fun filter_arg/1, Ps).
+filter_arg(#param{where=erl}) -> false;
+filter_arg(#param{where=this}) -> false;
+filter_arg(#param{}) -> true.
+%%filter_arg(#param{def=Def, in=In}) -> Def =:= none orelse In =:= false.
+
+
+call_arg(#param{where=c, alt={length,Alt}}) when is_list(Alt) ->
+ "*" ++ Alt ++ "Len";
+call_arg(#param{where=c, alt={size,Id}}) when is_integer(Id) ->
+ %% It's a binary
+ "Ecmd.bin["++ integer_to_list(Id) ++ "]->size";
+call_arg(#param{name=N,def=Def,type=#type{name=Type,by_val=true,single=true,base=Base}})
+ when Base =:= int; Base =:= long; Base =:= float; Base =:= double; Base =:= bool ->
+ case Def of
+ none -> "(" ++ to_string(Type) ++ ") *" ++ N;
+ _ -> N
+ end;
+
+call_arg(#param{name=N,type=#type{base={enum,Type}, by_val=true,single=true}}) ->
+ "(" ++ enum_type(Type) ++") " ++ N;
+call_arg(#param{name=N,type=#type{base={class,_},by_val=true,single=true}}) -> "*" ++ N;
+call_arg(#param{name=N,type=#type{base={class,_},ref=reference,single=true}}) -> "*" ++ N;
+call_arg(#param{name=N,type=#type{base=eventType}}) ->
+ N ++ ", (wxObjectEventFunction)(wxEventFunction) &WxeApp::handle_evt, Evt_cb, this";
+call_arg(#param{name=N,type=#type{by_val=true, single=_False}}) -> N;
+call_arg(#param{name=N,def=Def,type=#type{by_val=false, ref={pointer,2}}})
+ when Def =/= none -> N;
+call_arg(#param{name=N,type=#type{by_val=false, ref={pointer,2}}}) -> "&" ++ N;
+call_arg(#param{name=N,in=false,type=#type{ref=reference, single=true}}) -> N;
+call_arg(#param{name=N,in=false,type=#type{by_val=false, single=true}}) -> "&" ++ N;
+call_arg(#param{name=N,def=Def,type=#type{base={comp,_,_},ref={pointer,1},single=true}})
+ when Def =:= none ->
+ "&" ++N;
+call_arg(#param{name=N,type=#type{by_val=false}}) -> N;
+call_arg(#param{name=N,type={merged,_,#type{base={class,_},single=true,
+ by_val=ByVal,
+ ref=Ref},_,_,_,_}})
+ when ByVal =:= true; Ref =:= reference ->
+ "*" ++ N;
+call_arg(#param{def=Def, type=void}) when Def =/= none -> Def;
+call_arg(#param{name=N,type=#type{base={ref,_},by_val=true,single=true}}) -> N;
+call_arg(#param{name=N,type={merged,_,_,_,_,_,_}}) -> N.
+
+%% call_arg(#param{name=N,type=#type{base=Tuple,ref=reference}})
+%% when is_tuple(Tuple) -> "&" ++ N;
+
+to_string(Type) when is_atom(Type) -> atom_to_list(Type);
+to_string(Type) when is_list(Type) -> Type.
+
+virtual_dest(#class{abstract=true, parent="root"}) -> false;
+virtual_dest(#class{abstract=true, parent="object"}) -> true;
+virtual_dest(#class{abstract=true, parent=Parent}) ->
+ virtual_dest(get({class,Parent}));
+virtual_dest(#class{methods=Ms, parent=Parent}) ->
+ case lists:keysearch(destructor,#method.method_type, lists:append(Ms)) of
+ {value, #method{method_type=destructor, virtual=Virtual}} ->
+ case Virtual of
+ undefined ->
+ case get({class,Parent}) of
+ undefined ->
+ case Parent of
+ "object" ->
+ true;
+ "root" ->
+ false;
+ _ ->
+ io:format("Error: ~p ~n",[Parent]),
+ erlang:error(no_parent)
+ end;
+ PClass ->
+ virtual_dest(PClass)
+ end;
+ _ ->
+ Virtual
+ end;
+ false ->
+ false
+ end.
+
+debug(F,A) ->
+ case get(debug) of
+ true -> ?warning(F,A);
+ _ -> ok
+ end.
+
+is_derived(#class{abstract=true}) -> false;
+is_derived(C = #class{}) -> virtual_dest(C).
+
+is_window(Class) ->
+ lists:member("wxWindow", wx_gen_erl:parents(Class)).
+
+is_dialog(Class) ->
+ lists:member("wxDialog", wx_gen_erl:parents(Class)).
+
+build_return_vals(Type,Ps) ->
+ HaveType = case Type of void -> 0; _ -> 1 end,
+ NoOut = lists:sum([1 || #param{in=In} <- Ps, In =/= true]) + HaveType,
+ OutTupSz = if NoOut > 1 -> NoOut; true -> 0 end,
+
+ build_ret_types(Type,Ps),
+ if
+ OutTupSz > 1 -> w(" rt.addTupleCount(~p);~n",[OutTupSz]);
+ true -> ignore
+ end,
+ Ps.
+
+build_ret_types(void,Ps) ->
+ Calc = fun(#param{name=N,in=False,type=T}, Free) when False =/= true ->
+ case build_ret(N, False, T) of
+ ok -> Free;
+ Other -> [Other|Free]
+ end;
+ (_, Free) -> Free
+ end,
+ lists:foldl(Calc, [], Ps);
+build_ret_types(Type,Ps) ->
+ Free = case build_ret("Result", out, Type) of
+ ok -> [];
+ FreeStr -> [FreeStr]
+ end,
+ Calc = fun(#param{name=N,in=False,type=T}, FreeAcc) when False =/= true ->
+ case build_ret(N, False, T) of
+ ok -> FreeAcc;
+ FreeMe -> [FreeMe|FreeAcc]
+ end;
+ (_, FreeAcc) -> FreeAcc
+ end,
+ lists:foldl(Calc, Free, Ps).
+
+build_ret(Name,_,#type{base={class,Class},single=true}) ->
+ w(" rt.addRef(getRef((void *)~s,memenv), \"~s\");~n",[Name,Class]);
+build_ret(Name,_,#type{base={ref,"wxTreeItemId"=Class},single=true}) ->
+ w(" rt.addRef(getRef((void *)~s.m_pItem,memenv), \"~s\");~n",[Name,Class]);
+build_ret(Name,_,#type{base={term,_},single=true}) ->
+ w(" rt.addExt2Term(~s);~n", [Name]);
+build_ret(Name,_,#type{base={binary,Size},single=true}) ->
+ w(" if(~s) {~n", [Name]),
+ w(" rt.addBinary(~s, ~s);~n", [Name,Size]),
+ w(" } else {rt.addAtom(\"null\");};~n");
+build_ret(Name,_,#type{name="wxUIntPtr", ref={pointer,1}, single=true}) ->
+ w(" rt.add(~s);~n", [Name]);
+build_ret(Name,_,#type{base={enum,_Type},single=true}) ->
+ w(" rt.addInt(~s);~n",[Name]);
+build_ret(Name,_,#type{base={comp,_,{record, _}},single=true}) ->
+ w(" rt.add(~s);~n", [Name]);
+build_ret(Name,_,#type{base={comp,_,_},single=true, ref=reference}) ->
+ w(" rt.add((*~s));~n",[Name]);
+build_ret(Name,_,#type{base={comp,_,_},single=true}) ->
+ w(" rt.add(~s);~n",[Name]);
+build_ret(Name,_,#type{base=bool,single=true,by_val=true}) ->
+ w(" rt.addBool(~s);~n",[Name]);
+build_ret(Name,both,#type{base=int,single=true,mod=M}) ->
+ case lists:member(unsigned, M) of
+ true -> w(" rt.addUint(*~s);~n",[Name]);
+ false -> w(" rt.addInt(*~s);~n",[Name])
+ end;
+build_ret(Name,_,#type{base=int,single=true,mod=M}) ->
+ case lists:member(unsigned, M) of
+ true -> w(" rt.addUint(~s);~n",[Name]);
+ false -> w(" rt.addInt(~s);~n",[Name])
+ end;
+build_ret(Name,_,#type{name="wxArrayInt"}) ->
+ w(" rt.add(~s);~n", [Name]);
+build_ret(Name,_,#type{base={comp,_,_},single=array}) ->
+ w(" for(unsigned int i=0; i < ~s.GetCount(); i++) {~n", [Name]),
+ w(" rt.add(~s[i]);~n }~n",[Name]),
+ w(" rt.endList(~s.GetCount());~n",[Name]);
+build_ret(Name,_,#type{name=List,single=list,base={class,Class}}) ->
+ w(" int i=0;~n"),
+ w(" for(~s::const_iterator it = ~s.begin(); it != ~s.end(); ++it) {~n",
+ [List, Name, Name]),
+ w(" ~s * ~sTmp = *it;~n", [Class,Name]),
+ w(" rt.addRef(getRef((void *)~sTmp,memenv), \"~s\"); i++;}~n",[Name,Class]),
+ w(" rt.endList(~s.GetCount());~n",[Name]);
+
+build_ret(Name,_,#type{name="wxArrayTreeItemIds"}) ->
+ w(" for(unsigned int i=0; i < ~s.GetCount(); i++) {~n", [Name]),
+ w(" rt.addRef(getRef((void *)~s[i].m_pItem,memenv), \"wxTreeItemId\");}~n",[Name]),
+ w(" rt.endList(~s.GetCount());~n",[Name]);
+
+build_ret(Name,_,#type{base=float,single=true}) ->
+%% w(" double Temp~s = ~s;~n", [Name,Name]),
+ w(" rt.addFloat(~s);~n",[Name]);
+build_ret(Name,_,#type{base=double,single=true}) ->
+ w(" rt.addFloat(~s);~n",[Name]);
+build_ret(Name,_,#type{base=string,single=true}) ->
+ w(" rt.add(~s);~n",[Name]);
+build_ret(Name,_,#type{name="wxArrayString", single=array}) ->
+ w(" rt.add(~s);~n", [Name]);
+build_ret(Name,In,T) ->
+ ?error({nyi, Name,In, T}).
+
+mods([const|R]) -> "const " ++ mods(R);
+mods([unsigned|R]) -> "unsigned " ++ mods(R);
+mods([]) -> "".
+
+build_enums() ->
+ Tree = get(consts),
+ w(" /* This file is also generated */~n"),
+ w("#include <wx/wx.h>~n"),
+ w("#include \"../wxe_impl.h\"~n"),
+ w("#include \"wxe_macros.h\"~n"),
+ w("#include \"../wxe_return.h\"~n"),
+ w("void WxeApp::init_nonconsts(wxeMemEnv *memenv, ErlDrvTermData caller) {~n"),
+ NotConsts = [NC || NC = #const{is_const=false} <- gb_trees:values(Tree)],
+ Size = length(NotConsts),
+ GVars = get(gvars),
+ GSize = length(GVars),
+ w(" wxeReturn rt = wxeReturn(WXE_DRV_PORT, caller);~n"),
+ w(" rt.addAtom((char*)\"wx_consts\");~n"),
+ [build_enum(NConst) || NConst <- lists:keysort(#const.val, NotConsts)],
+ _Cnt = foldl(fun(Gvar, I) -> build_gvar(Gvar,I) end, 0, lists:sort(GVars)),
+ w(" rt.endList(~p);~n", [Size+GSize]),
+ w(" rt.addTupleCount(2);~n"),
+ w(" rt.send();~n"),
+ w("}~n"),
+ ok.
+
+build_enum(#const{name=Name}) ->
+ w(" rt.addAtom(\"~s\"); rt.addInt(~s);~n", [Name, Name]),
+ w(" rt.addTupleCount(2);~n").
+
+build_gvar({Name, "wxColour", _Id}, Cnt) ->
+ w(" rt.addAtom(\"~s\"); rt.add(*(~s));~n",[Name,Name]),
+ w(" rt.addTupleCount(2);~n"),
+ Cnt;
+build_gvar({Name, {address,Class}, _Id}, Cnt) ->
+ w(" rt.addAtom(\"~s\"); rt.addRef(getRef((void *)&~s,memenv), \"~s\");~n",[Name,Name,Class]),
+ w(" rt.addTupleCount(2);~n"),
+ Cnt+1;
+build_gvar({Name, Class, _Id}, Cnt) ->
+ w(" rt.addAtom(\"~s\"); rt.addRef(getRef((void *)~s,memenv),\"~s\");~n",[Name,Name,Class]),
+ w(" rt.addTupleCount(2);~n"),
+ Cnt+1.
+
+gen_macros() ->
+ w("#include <wx/caret.h>~n"), %% Arrg wxw forgot?? some files
+ w("#include <wx/tooltip.h>~n"),
+ w("#include <wx/gbsizer.h>~n"),
+ w("#include <wx/splash.h>~n"),
+ w("#include <wx/grid.h>~n"),
+ w("#include <wx/image.h>~n"),
+ w("#include <wx/tglbtn.h>~n"),
+ w("#include <wx/calctrl.h>~n"),
+ w("#include <wx/dirctrl.h>~n"),
+ w("#include <wx/listctrl.h>~n"),
+ w("#include <wx/treectrl.h>~n"),
+ w("#include <wx/spinbutt.h>~n"),
+ w("#include <wx/spinctrl.h>~n"),
+ w("#include <wx/colordlg.h>~n"),
+ w("#include <wx/fdrepdlg.h>~n"),
+ w("#include <wx/fontdlg.h>~n"),
+ w("#include <wx/progdlg.h>~n"),
+ w("#include <wx/printdlg.h>~n"),
+ w("#include <wx/dcbuffer.h>~n"),
+ w("#include <wx/dcmirror.h>~n"),
+ w("#include <wx/glcanvas.h>~n"),
+ w("#include <wx/dcps.h>~n"),
+ w("#include <wx/xrc/xmlres.h>~n"),
+ w("#include <wx/html/htmprint.h>~n"),
+ w("#include <wx/stc/stc.h>~n"),
+ w("#include <wx/minifram.h>~n"),
+ w("#include <wx/sashwin.h>~n"),
+ w("#include <wx/laywin.h>~n"),
+ w("#include <wx/graphics.h>~n"),
+ w("#include <wx/aui/aui.h>~n"),
+ w("#include <wx/datectrl.h>~n"),
+ w("#include <wx/filepicker.h>~n"),
+ w("#include <wx/fontpicker.h>~n"),
+ w("#include <wx/clrpicker.h>~n"),
+ w("#include <wx/statline.h>~n"),
+ w("#include <wx/clipbrd.h>~n"),
+ w("#include <wx/splitter.h>~n"),
+ w("#include <wx/choicebk.h>~n"),
+ w("#include <wx/toolbook.h>~n"),
+ w("#include <wx/listbook.h>~n"),
+ w("#include <wx/treebook.h>~n"),
+ w("#include <wx/html/htmlwin.h>~n"),
+ w("#include <wx/html/htmlcell.h>~n"),
+ w("#include <wx/filename.h>~n"),
+
+ w("~n~n", []),
+ [w("#define ~s_~s ~p~n", [Class,Name,Id]) ||
+ {Class,Name,_,Id} <- wx_gen_erl:get_unique_names()],
+ w("~n~n").
+
+build_events() ->
+ open_write("../c_src/gen/wxe_events.cpp"),
+ c_copyright(),
+ w("~n/***** This file is generated do not edit ****/ ~n~n"),
+ w("#include <wx/wx.h>~n"),
+ w("#include \"../wxe_impl.h\"~n~n"),
+ w("#include \"wxe_macros.h\"~n"),
+ w("#include \"../wxe_events.h\"~n~n"),
+ w("#include \"../wxe_return.h\"~n~n"),
+
+ w("wxeEtype::wxeEtype(const char *name, int Id) {eName = name;cID = Id;}~n~n"),
+ w("WX_DECLARE_HASH_MAP(int, wxeEtype*, wxIntegerHash, wxIntegerEqual, wxeETmap );~n~n"),
+
+ w("wxeETmap etmap; ~n~n"),
+
+ w(
+"int wxeEventTypeFromAtom(char *etype_atom) {
+ wxeETmap::iterator it;
+ for(it = etmap.begin(); it != etmap.end(); ++it) {
+ wxeEtype * value = it->second;
+ if(strcmp(value->eName, etype_atom) == 0) {
+ if(it->first > wxEVT_USER_FIRST) {
+ return it->first - wxEVT_USER_FIRST;
+ } else {
+ return it->first;
+ }
+ }
+ }
+ return -1;
+}
+
+"),
+
+ Evs0 = [C || {_,C=#class{event=Evs}} <- get(), Evs =/= false],
+ Evs = lists:keysort(#class.id, Evs0),
+ initEventTable(Evs),
+ encode_events(Evs),
+ close().
+
+initEventTable(Evs) ->
+ w("void initEventTable() ~n{~n"),
+ w(" struct { ",[]),
+ w("int ev_type; int class_id; const char * ev_name;} event_types[] = ~n {~n",[]),
+
+ lists:foreach(fun(Ev) -> init_event_classes(Ev) end,
+ [#class{id=0,event=[wxEVT_NULL]}|Evs]),
+ w(" {-1, 0, ""}~n };~n",[]),
+ w(" for(int i=0; event_types[i].ev_type != -1; i++) {~n",[]),
+ w(" if(NULL == etmap[event_types[i].ev_type]) {~n",[]),
+ w(" etmap[event_types[i].ev_type] = ~n"
+ " new wxeEtype(event_types[i].ev_name, event_types[i].class_id);~n"),
+ w(" } else {~n",[]),
+ w(" wxeEtype *prev = etmap[event_types[i].ev_type];~n"
+ " wxString msg(wxT(\"Duplicate event defs: \"));~n"
+ " msg += wxString::FromAscii(event_types[i].ev_name);~n"
+ " msg += wxString::Format(wxT(\" %d \"), event_types[i].class_id);~n"
+ " msg += wxString::FromAscii(prev->eName);~n"
+ " msg += wxString::Format(wxT(\" %d\"), prev->cID);~n"
+ " send_msg(\"internal_error\", &msg);~n"
+ " }~n"
+ " }~n", []),
+ w("}~n~n").
+
+init_event_classes(#class{event=ETs, id=Id}) ->
+ F = fun({Eev, Cev, OtherClass}) ->
+ w(" {~w + wxEVT_USER_FIRST, ~w, ~p},~n",
+ [Cev, find_id(OtherClass), wx_gen_erl:event_type_name(Eev)]);
+ ({Ev, {test_if, Test}}) ->
+ w("#if ~s ~n", [Test]),
+ w(" {~w, ~w, ~p},~n",
+ [Ev, Id, wx_gen_erl:event_type_name(Ev)]),
+ w("#endif ~n", []);
+ (Ev) ->
+ w(" {~w, ~w, ~p},~n",
+ [Ev, Id, wx_gen_erl:event_type_name(Ev)])
+ end,
+ [F(ET) || ET <- ETs].
+
+find_id(OtherClass) ->
+ Class = get({class,atom_to_list(OtherClass)}),
+ %%{value, Class} = lists:keysearch(atom_to_list(OtherClass), #class.name, All),
+ Class#class.id.
+
+encode_events(Evs) ->
+ ?WTC("encode_events"),
+ w("void wxeEvtListener::forward(wxEvent& event) ~n"
+ "{ ~n"
+ "#ifdef DEBUG~n"
+ " if(!sendevent(&event, port)) ~n"
+ " fprintf(stderr, \"Couldn't send event!\\r\\n\");~n"
+ "#else~n"
+ "sendevent(&event, port);~n"
+ "#endif~n"
+ "}~n~n"),
+ w("int getRef(void* ptr, wxeMemEnv* memenv) ~n"
+ "{ ~n"
+ " WxeApp * app = (WxeApp *) wxTheApp;~n"
+ " return app->getRef(ptr,memenv);~n"
+ "} ~n~n"),
+ w("bool sendevent(wxEvent *event, ErlDrvPort port)~n{~n"
+ " int send_res ;~n"
+ " char * evClass = NULL;~n"
+ " wxMBConvUTF32 UTFconverter;~n"
+ " wxeEtype *Etype = etmap[event->GetEventType()];~n"
+ " wxeCallbackData *cb = (wxeCallbackData *)event->m_callbackUserData;~n"
+ " WxeApp * app = (WxeApp *) wxTheApp;~n"
+ " wxeMemEnv *memenv = app->getMemEnv(port);~n"
+ " if(!memenv) return 0;~n~n"
+ " wxeReturn rt = wxeReturn(port, cb->listener);~n"),
+
+ w("~n rt.addAtom((char*)\"wx\");~n"
+ " rt.addInt((int) event->GetId());~n"
+ " rt.addRef(getRef((void *)(cb->obj), memenv), cb->class_name);~n"
+ " rt.addExt2Term(cb->user_data);~n"),
+
+ w(" switch(Etype->cID) {~n"),
+ lists:foreach(fun(Ev) -> encode_event(Ev) end, Evs),
+ w(" }~n~n"),
+
+ w(" rt.addTupleCount(5);~n"),
+ w(" if(cb->fun_id) {~n"),
+ w(" rt.addRef(getRef((void *)event,memenv), evClass);~n"),
+ w(" rt.addTupleCount(2);~n"),
+ w(" rt.addInt(cb->fun_id);~n"),
+ w(" rt.addAtom(\"_wx_invoke_cb_\");~n"),
+ w(" rt.addTupleCount(3);~n"),
+ w(" pre_callback();~n"),
+ w(" send_res = rt.send();~n"),
+ w(" if(send_res) handle_event_callback(port, cb->listener);~n"),
+ w(" app->clearPtr((void *) event);~n"),
+ w(" } else {~n"),
+ w(" send_res = rt.send();~n"),
+ w(" if(cb->skip) event->Skip();~n"),
+ w(" };~n"),
+ w(" return send_res;~n"),
+ w(" }~n").
+
+encode_event(C = #class{name=Class, id=Id, options=Opts}) ->
+ ?WTC("encode_event"),
+ case proplists:get_value("mixed_event", Opts) of
+ undefined ->
+ w("case ~p: {// ~s~n", [Id,Class]),
+ encode_event2(C),
+ ok;
+ Mixed ->
+ w("case ~p: {// ~s or ~s~n", [Id,Class,Mixed]),
+ w(" if(event->IsKindOf(CLASSINFO(~s))) {~n",[Class]),
+ encode_event2(C),
+ w(" } else {~n",[]),
+ w(" Etype = etmap[event->GetEventType() + wxEVT_USER_FIRST];~n",[]),
+ encode_event2(get({class,atom_to_list(Mixed)})),
+ w(" }~n",[]),
+ ok
+ end,
+ w(" break;~n}~n").
+
+encode_event2(Class = #class{name=Name}) ->
+ Attrs = build_event_attrs(Class),
+ w(" evClass = (char*)\"~s\";~n",[Name]),
+ w(" rt.addAtom((char*)\"~s\");~n", [wx_gen_erl:event_rec_name(Name)]),
+ w(" rt.addAtom(Etype->eName);~n"),
+ build_ret_types(void, Attrs),
+ w(" rt.addTupleCount(~p);~n",[length(Attrs) + 2]).
+
+build_event_attrs(ClassRec = #class{name=Class}) ->
+ Attrs0 = wx_gen_erl:filter_attrs(ClassRec),
+ Rename =
+ fun(Att = #param{name=Name,prot=public,acc=undefined}, {All,Use}) ->
+ {[Att#param{name= "ev->" ++ Name}|All],Use};
+ (Att = #param{acc=Acc}, {All,_}) ->
+ {[Att#param{name= "ev->" ++ Acc}|All], true}
+ end,
+ case foldr(Rename,{[],false},Attrs0) of
+ {[],_} -> [];
+%% {Attrs,false} ->
+%% w(" ~s ev = dynamic_cast<~s&>(event);~n",[Class,Class]),
+%% Attrs;
+ {Attrs,_} ->
+ w(" ~s * ev = (~s *) event;~n",[Class,Class]),
+ FixClass =
+ fun(P=#param{name=N,acc=Acc,type=#type{single=Single,by_val=ByVal,
+ base={class,C}}})
+ when Acc =/= undefined ->
+ Var = var_name(N),
+ if Single, ByVal ->
+ w(" ~s * ~s = new ~s(~s);~n", [C,Var,C,N]),
+ w(" app->newPtr((void *) ~s,3, memenv);~n", [Var]);
+ true ->
+ w(" ~s * ~s = ~s;~n", [C,Var,N])
+ end,
+ P#param{name=Var};
+ (P) -> P
+ end,
+ lists:map(FixClass, Attrs)
+ end.
+
+var_name("ev->" ++ Name0) ->
+ case reverse(Name0) of
+ ")(" ++ Name -> reverse(Name);
+ _ -> Name0
+ end;
+var_name(Name) -> Name.
+
+enum_name({Class,Type}) ->
+ uppercase_all(Class ++ "_" ++ Type);
+enum_name(Type) ->
+ uppercase_all(Type).
+
+
+enum_type({Class,Type}) ->
+ Class ++ "::" ++ Type;
+enum_type(Type) -> Type.
diff --git a/lib/wx/api_gen/wx_gen_erl.erl b/lib/wx/api_gen/wx_gen_erl.erl
new file mode 100644
index 0000000000..64c11baec1
--- /dev/null
+++ b/lib/wx/api_gen/wx_gen_erl.erl
@@ -0,0 +1,1272 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : wx_gen_erl.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 25 Jan 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-module(wx_gen_erl).
+
+-include("wx_gen.hrl").
+
+-compile(export_all).
+
+-import(lists, [foldl/3,foldr/3,reverse/1, keysearch/3, map/2, filter/2]).
+-import(gen_util, [lowercase/1, lowercase_all/1, uppercase/1, uppercase_all/1,
+ open_write/1, close/0, erl_copyright/0, w/2,
+ args/3, args/4, strip_name/2]).
+
+gen(Defs) ->
+ [put({class,N},C) || C=#class{name=N} <- Defs],
+ gen_unique_names(Defs),
+ gen_event_recs(),
+ gen_enums_ints(),
+ [gen_class(Class) || Class <- Defs],
+ gen_funcnames().
+
+gen_class(Class) ->
+ try
+ gen_class1(Class)
+ catch throw:skipped ->
+ Class
+ end.
+
+gen_class1(C=#class{name=Name,parent="static",methods=Ms,options=_Opts}) ->
+ open_write("../src/gen/wx_misc.erl"),
+ put(current_class, Name),
+ erl_copyright(),
+ w("", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("%% @doc See external documentation: "
+ "<a href=\"http://www.wxwidgets.org/manuals/stable/wx_miscellany.html\">Misc</a>.\n\n",[]),
+
+ w("%% This module contains wxWidgets utility functions.~n~n", []),
+ w("-module(wx_misc).~n", []),
+ w("-include(\"wxe.hrl\").~n",[]),
+ %% w("-compile(export_all).~n~n", []), %% XXXX remove ???
+
+ Exp = fun(M) -> gen_export(C,M) end,
+ ExportList = lists:usort(lists:append(lists:map(Exp,reverse(Ms)))),
+ w("-export([~s]).~n~n", [args(fun(EF) -> EF end, ",", ExportList, 60)]),
+
+
+ Gen = fun(M) -> gen_method(Name,M) end,
+ NewMs = lists:map(Gen,reverse(Ms)),
+ close(),
+ erase(current_class),
+ C#class{methods=NewMs};
+
+gen_class1(C=#class{name=Name,parent=Parent,methods=Ms,options=Opts}) ->
+ case Opts of
+ ["ignore"] -> throw(skipped);
+ _ -> ok
+ end,
+ open_write("../src/gen/"++Name++".erl"),
+ put(current_class, Name),
+ erl_copyright(),
+ w("", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+
+ case lists:member(taylormade, Opts) of
+ true ->
+ {ok, Bin} = file:read_file(filename:join([wx_extra, Name++".erl"])),
+ w("~s~n", [binary_to_list(Bin)]),
+ NewMs = Ms;
+ false ->
+ w("%% @doc See external documentation: "
+ "<a href=\"http://www.wxwidgets.org/manuals/stable/wx_~s.html\">~s</a>.\n",
+ [lowercase_all(Name), Name]),
+
+ case C#class.doc of
+ undefined -> ignore;
+ Str -> w("%%~n%% ~s~n~n%%~n", [Str])
+ end,
+
+ case C#class.event of
+ false -> ignore;
+ Evs ->
+ EvTypes = [event_type_name(Ev) || Ev <- Evs],
+ EvStr = args(fun(Ev) -> "<em>"++Ev++"</em>" end, ", ", EvTypes),
+
+ w("%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>~n",[]),
+ w("%% <dd>~s</dd></dl>~n", [EvStr]),
+ w("%% See also the message variant {@link wxEvtHandler:~s(). #~s{}} event record type.~n",
+ [event_rec_name(Name),event_rec_name(Name)]),
+ w("%%~n",[]),
+ ok
+ end,
+
+ Parents = parents(Parent),
+ case [P || P <- Parents, P =/= root, P =/= object] of
+ [] -> ignore;
+ Ps ->
+ w("%% <p>This class is derived (and can use functions) from: ~n", []),
+ [w("%% <br />{@link ~s}~n", [P]) || P <- Ps],
+ w("%% </p>~n",[])
+ end,
+ w("%% @type ~s(). An object reference, The representation is internal~n",[Name]),
+ w("%% and can be changed without notice. It can't be used for comparsion~n", []),
+ w("%% stored on disc or distributed for use on other nodes.~n~n", []),
+ w("-module(~s).~n", [Name]),
+ w("-include(\"wxe.hrl\").~n",[]),
+ %% w("-compile(export_all).~n~n", []), %% XXXX remove ???
+ %% w("-compile(nowarn_unused_vars).~n~n", []), %% XXXX remove ???
+ Exp = fun(M) -> gen_export(C,M) end,
+ ExportList = lists:usort(lists:append(lists:map(Exp,reverse(Ms)))),
+ w("-export([~s]).~n~n", [args(fun(EF) -> EF end, ",", ExportList, 60)]),
+ w("%% inherited exports~n",[]),
+ Done0 = ["Destroy", "New", "Create", "destroy", "new", "create"],
+ Done = gb_sets:from_list(Done0 ++ [M|| #method{name=M} <- lists:append(Ms)]),
+ {_, InExported} = gen_inherited(Parents, Done, []),
+ w("-export([~s]).~n~n", [args(fun(EF) -> EF end, ",",
+ lists:usort(["parent_class/1"|InExported]),
+ 60)]),
+
+ w("%% @hidden~n", []),
+ parents_check(Parents),
+
+ Gen = fun(M) -> gen_method(Name,M) end,
+ NewMs = lists:map(Gen,reverse(Ms)),
+ gen_dest(C, Ms),
+
+ gen_inherited(Parents, Done, true)
+ end,
+
+ close(),
+ erase(current_class),
+ C#class{methods=NewMs}.
+
+
+parents("root") -> [root];
+parents("object") -> [object];
+parents(Parent) ->
+ case get({class,Parent}) of
+ #class{parent=GrandParent} ->
+ [Parent|parents(GrandParent)];
+ undefined ->
+ ?warning("unknown parent of ~p~n",[Parent]),
+ [Parent]
+ end.
+
+parents_check([object]) ->
+ w("parent_class(_Class) -> erlang:error({badtype, ?MODULE}).~n~n",[]);
+parents_check([root]) ->
+ w("parent_class(_Class) -> erlang:error({badtype, ?MODULE}).~n~n",[]);
+parents_check([Parent|Ps]) ->
+ w("parent_class(~s) -> true;~n",[Parent]),
+ parents_check(Ps).
+
+check_class(#type{base={class,"wx"}}) -> ok;
+check_class(#type{base={class,Name},xml=Xml}) ->
+ case get({class,Name}) of
+ undefined ->
+ case get({enum, Name}) of
+ undefined ->
+ case Xml of
+ "class" ++ _ ->
+ ?warning("~s:~s: Class ~p used but not defined~n",
+ [get(current_class),get(current_func),Name]);
+ _ ->
+ ?warning("~s:~s: Class ~p used but not defined~n (see ~p)~n",
+ [get(current_class),get(current_func),Name, Xml])
+ end;
+ _ ->
+ ?warning("~s:~s: Class ~p used is enum~n",
+ [get(current_class),get(current_func),Name])
+ end;
+ _ -> ok
+ end.
+
+gen_export(#class{name=Class,abstract=Abs},Ms0) ->
+ RemoveC = fun(#method{where=merged_c}) -> false;(_Other) -> true end,
+ Res = filter(RemoveC, Ms0),
+ case Res of
+ [] -> [];
+ [M=#method{where=taylormade}|_] ->
+ [taylormade_export(Class, M)];
+ Ms ->
+ GetF = fun(#method{method_type=constructor,where=W,params=Ps}) ->
+ {Args,Opts} = split_optional(Ps),
+ OptLen = case Opts of
+ [] -> 0;
+ _ when W =:= erl_no_opt -> 0;
+ _ -> 1
+ end,
+ "new/" ++ integer_to_list(length(Args)+OptLen);
+ (#method{method_type=destructor}) ->
+ case Abs of
+ true -> [];
+ _ -> "destroy/1"
+ end;
+ (#method{name=N,alias=A,where=W, params=Ps}) ->
+ {Args,Opts} = split_optional(Ps),
+ OptLen = case Opts of
+ [] -> 0;
+ _ when W =:= erl_no_opt -> 0;
+ _ -> 1
+ end,
+ erl_func_name(N,A) ++ "/" ++ integer_to_list(length(Args) + OptLen)
+ end,
+ lists:map(GetF, Ms)
+ end.
+
+
+gen_method(Class,Ms0) ->
+ RemoveC = fun(#method{where=merged_c}) -> false;(_Other) -> true end,
+ Res = filter(RemoveC, Ms0),
+ case Res of
+ [] -> Ms0;
+ [M=#method{where=taylormade}|_] ->
+ taylormade_func(Class, M),
+ Ms0;
+ Ms ->
+ gen_doc(Class,Ms),
+ gen_method1(Ms),
+ Ms0
+ end.
+
+gen_method1([M=#method{method_type=destructor}]) ->
+ %% Skip now do destructors later
+ M;
+gen_method1([M0]) ->
+ gen_method2(M0),
+ w(".~n~n",[]);
+gen_method1([M0|Ms]) ->
+ gen_method2(M0),
+ w(";~n",[]),
+ gen_method1(Ms).
+
+gen_method2(M=#method{name=N,alias=A,params=Ps0,where=erl_no_opt,method_type=MT}) ->
+ put(current_func, N),
+ Ps = [patch_param(P,classes) || P <- Ps0],
+ w("~n", []),
+ gen_function_clause(erl_func_name(N,A),MT,Ps,[],[name_type]),
+ w(" ", []),
+ gen_function_clause(erl_func_name(N,A),MT,Ps,empty_list,[no_guards,name_only]),
+ M;
+gen_method2(M=#method{name=N,alias=A,params=Ps,type=T,method_type=MT,id=MethodId}) ->
+ put(current_func, N),
+ {Args, Optional} = split_optional(Ps),
+ gen_function_clause(erl_func_name(N,A),MT, Args, Optional, []),
+ MId = arg_type_tests(Args, "?" ++ get_unique_name(MethodId)),
+ {MArgs,Align} = marshal_args(Args),
+ MOpts = marshal_opts(Optional, Align, Args),
+ case have_return_vals(T, Ps) of
+ _ when MT =:= constructor ->
+ w(" wxe_util:construct(~s,~n <<~s~s>>)", [MId, MArgs,MOpts]);
+ true ->
+ w(" wxe_util:call(~s,~n <<~s~s>>)", [MId, MArgs,MOpts]);
+ false ->
+ w(" wxe_util:cast(~s,~n <<~s~s>>)", [MId, MArgs,MOpts])
+ end,
+ erase(current_func),
+ M.
+
+gen_dest(#class{name=CName,abstract=Abs}, Ms) ->
+ case Abs of
+ true ->
+ ignore;
+ false ->
+ case lists:keysearch(destructor,#method.method_type, lists:append(Ms)) of
+ {value, #method{method_type=destructor, id=Id}} ->
+ case hd(reverse(parents(CName))) of
+ object ->
+ gen_dest2(CName, object);
+ root ->
+ gen_dest2(CName, Id)
+ end;
+ false ->
+ erlang:error({no_destructor_found, CName})
+ end
+ end.
+
+gen_dest2(Class, Id) ->
+ w("%% @spec (This::~s()) -> ok~n", [Class]),
+ w("%% @doc Destroys this object, do not use object again~n", []),
+ w("destroy(Obj=#wx_ref{type=Type}) -> ~n", []),
+ w(" ?CLASS(Type,~s),~n",[Class]),
+ case Id of
+ object ->
+ w(" wxe_util:destroy(?DESTROY_OBJECT,Obj),~n ok.~n", []);
+ _ ->
+ w(" wxe_util:destroy(?~s,Obj),~n ok.~n", [get_unique_name(Id)])
+ end,
+ ok.
+
+gen_inherited([root], Done, Exported) -> {Done, Exported};
+gen_inherited([object], Done, Exported) -> {Done, Exported};
+gen_inherited([Parent|Ps], Done0, Exported0) ->
+ #class{name=Class, methods=Ms} = get({class,Parent}),
+ case is_list(Exported0) of
+ false -> w(" %% From ~s ~n", [Class]);
+ true -> ignore
+ end,
+ {Done,Exported} = gen_inherited_ms(Ms, Class, Done0, gb_sets:empty(), Exported0),
+ gen_inherited(Ps, gb_sets:union(Done,Done0), Exported).
+
+gen_inherited_ms([[#method{name=Name,alias=A,params=Ps0,where=W,method_type=MT}|_]|R],
+ Class,Skip,Done, Exported)
+ when W =/= merged_c ->
+ case gb_sets:is_member(Name,Skip) of
+ false when MT =:= member, Exported =:= true ->
+ Ps = [patch_param(P,all) || P <- Ps0],
+ Opts = if W =:= erl_no_opt -> [];
+ true ->
+ [Opt || Opt = #param{def=Def,in=In, where=Where} <- Ps,
+ Def =/= none, In =/= false, Where =/= c]
+ end,
+ w("%% @hidden~n", []),
+ gen_function_clause(erl_func_name(Name,A),MT,Ps,Opts,[no_guards,name_only]),
+ w(" -> ~s:", [Class]),
+ gen_function_clause(erl_func_name(Name,A),MT,Ps,Opts,[no_guards,name_only]),
+ w(".~n", []),
+ gen_inherited_ms(R,Class, Skip, gb_sets:add(Name,Done), Exported);
+ false when MT =:= member, is_list(Exported) ->
+ {Args,Opts} = split_optional(Ps0),
+ OptLen = case Opts of
+ [] -> 0;
+ _ when W =:= erl_no_opt -> 0;
+ _ -> 1
+ end,
+ Export = erl_func_name(Name,A) ++ "/" ++ integer_to_list(length(Args) + OptLen),
+ gen_inherited_ms(R,Class,Skip, gb_sets:add(Name,Done), [Export|Exported]);
+ _ ->
+ gen_inherited_ms(R,Class, Skip, Done, Exported)
+ end;
+gen_inherited_ms([[_|Check]|R],Class,Skip, Done0,Exp) ->
+ gen_inherited_ms([Check|R],Class,Skip, Done0,Exp);
+gen_inherited_ms([[]|R],Class,Skip,Done0,Exp) ->
+ gen_inherited_ms(R,Class,Skip,Done0,Exp);
+gen_inherited_ms([], _, _Skip, Done,Exp) -> {Done,Exp}.
+
+
+%%%%%%%%%%%%%%%
+
+taylormade_func(Class, #method{name=Name, id=Id}) ->
+ {ok, Bin} = file:read_file(filename:join([wx_extra, Class ++".erl"])),
+ Str0 = binary_to_list(Bin),
+ {match, [Str1]} = re:run(Str0, "<<"++Name++"(.*)"++Name++">>",
+ [dotall, {capture, all_but_first, list}]),
+
+ w(Str1, ["?" ++ get_unique_name(Id)]),
+ ok.
+
+taylormade_export(Class, #method{name=Name}) ->
+ {ok, Bin} = file:read_file(filename:join([wx_extra, Class ++".erl"])),
+ Str0 = binary_to_list(Bin),
+ {match, [Str1]} = re:run(Str0, "<<EXPORT:"++Name++"(.*)"++Name++":EXPORT>>",
+ [dotall, {capture, all_but_first, list}]),
+ Str1.
+
+%%%%%%%%%%%%%%%
+
+arg_type_tests([P|Ps], Mid0) ->
+ case arg_type_test(P,"\n",Mid0) of
+ Mid0 ->
+ arg_type_tests(Ps, Mid0);
+ Mid -> %% Already checked the other args
+ Mid
+ end;
+arg_type_tests([],Mid) -> Mid.
+
+arg_type_test(#param{where=c}, _, Acc) ->
+ Acc;
+arg_type_test(#param{name=Name0,in=In,type=#type{base={class,T},single=true},def=none},
+ EOS,Acc) when In =/= false ->
+ Name = erl_arg_name(Name0),
+ w(" ?CLASS(~sT,~s),~s", [Name,T,EOS]),
+ Acc;
+arg_type_test(#param{name=Name0,in=In,type=#type{base={class,T}}, def=none},EOS,Acc)
+ when In =/= false ->
+ Name = erl_arg_name(Name0),
+ w(" [?CLASS(~sT,~s) || #wx_ref{type=~sT} <- ~s],~s", [Name,T,Name,Name,EOS]),
+ Acc;
+arg_type_test(#param{name=Name0,def=none,in=In,
+ type={merged,
+ M1, #type{base={class,T1},single=true},Ps1,
+ M2, #type{base={class,T2},single=true},Ps2}}, EOS, _Acc)
+ when In =/= false ->
+ Name = erl_arg_name(Name0),
+ Opname = Name++"OP",
+ w(" ~s = case ?CLASS_T(~sT,~s) of~n true ->\n ", [Opname,Name,T1]),
+ lists:foreach(fun(Param) -> arg_type_test(Param,"\n ", ignore) end,
+ element(1,split_optional(Ps1))),
+ w("?~s;~n",[get_unique_name(M1)]),
+ w(" _ -> ?CLASS(~sT,~s),\n ",[Name,T2]),
+ {Ps21,_} = split_optional(patchArgName(Ps2,Ps1)),
+ lists:foreach(fun(Param) -> arg_type_test(Param,"\n ", ignore) end,
+ Ps21),
+ w("?~s\n end,~s",[get_unique_name(M2),EOS]),
+ Opname;
+arg_type_test(#param{name=Name0, type=#type{base=eventType}}, EOS, Acc) ->
+ Name = erl_arg_name(Name0),
+ w(" ~sBin = list_to_binary([atom_to_list(~s)|[0]]),~s", [Name,Name,EOS]),
+ w(" ThisTypeBin = list_to_binary([atom_to_list(ThisT)|[0]]),~s", [EOS]),
+ Acc;
+arg_type_test(#param{name=Name0,def=none,type=#type{base={term,_}}}, EOS, Acc) ->
+ Name = erl_arg_name(Name0),
+ w(" wxe_util:send_bin(term_to_binary(~s)),~s", [Name,EOS]),
+ Acc;
+arg_type_test(#param{name=Name0,type=#type{base=binary}},EOS,Acc) ->
+ Name = erl_arg_name(Name0),
+ w(" wxe_util:send_bin(~s),~s", [Name,EOS]),
+ Acc;
+arg_type_test(#param{name=Name0,type=#type{name=Type,base=Base,single=Single}},EOS,Acc) ->
+ if
+ Type =:= "wxArtClient", Single =:= true ->
+ Name = erl_arg_name(Name0),
+ w(" ~s_UC = unicode:characters_to_binary([~s, $_, $C,0]),~s",
+ [Name,Name, EOS]);
+ Base =:= string orelse (Type =:= "wxChar" andalso Single =/= true) ->
+ Name = erl_arg_name(Name0),
+ w(" ~s_UC = unicode:characters_to_binary([~s,0]),~s", [Name,Name,EOS]);
+ Type =:= "wxArrayString" ->
+ Name = erl_arg_name(Name0),
+ w(" ~s_UCA = [unicode:characters_to_binary([~sTemp,0]) || ~s",
+ [Name,Name, EOS]),
+ w(" ~sTemp <- ~s],~s", [Name,Name,EOS]);
+ true -> %% Not a string
+ ignore
+ end,
+ Acc;
+arg_type_test(_,_,Acc) -> Acc.
+
+patchArgName([Param|R1], [#param{name=Name}|R2]) ->
+ [Param#param{name=Name}|patchArgName(R1,R2)];
+patchArgName([],[]) -> [].
+
+have_return_vals(void, Ps) ->
+ lists:any(fun(#param{in=In}) -> In =/= true end, Ps);
+have_return_vals(#type{}, _) -> true.
+
+gen_function_clause(Name0,MT,Ps,Optional,Variant) ->
+ PArg = fun(Arg) ->
+ case lists:member(name_only, Variant) of
+ true -> func_arg_name(Arg);
+ false ->
+ case lists:member(name_type, Variant) of
+ true ->
+ Name = func_arg_name(Arg),
+ case func_arg(Arg) of
+ Name -> Name;
+ Typed -> Name ++ "=" ++ Typed
+ end;
+ false ->
+ func_arg(Arg)
+ end
+ end
+ end,
+ Args = args(PArg, ",", Ps),
+ Name = case MT of constructor -> "new"; _ -> Name0 end,
+ w("~s(~s",[Name,Args]),
+ Opts = case Optional of
+ [] -> "";
+ empty_list when Args =:= [] -> "[]";
+ empty_list -> ", []";
+ _ when Args =:= [] -> "Options";
+ _ -> ", Options"
+ end,
+ w("~s)", [Opts]),
+ case lists:member(no_guards, Variant) of
+ true -> ok;
+ false ->
+ Guards = args(fun guard_test/1, ",", Ps),
+ if
+ Guards =:= [], Opts =:= "" -> w(" ->~n", []);
+ Guards =:= [] -> w("~n when is_list(Options) ->~n", []);
+ Opts =:= "" -> w("~n when ~s ->~n", [Guards]);
+ true -> w("~n when ~s,is_list(Options) ->~n", [Guards])
+ end
+ end.
+
+split_optional(Ps) ->
+ split_optional(Ps, [], []).
+split_optional([P=#param{def=Def,in=In, where=Where}|Ps], Standard, Opts)
+ when Def =/= none, In =/= false, Where =/= c ->
+ split_optional(Ps, Standard, [P|Opts]);
+split_optional([P=#param{def=Def,in=In, where=Where}|Ps], Standard, Opts)
+ when Def =:= none, In =/= false, Where =/= c ->
+ split_optional(Ps, [P|Standard], Opts);
+split_optional([_|Ps], Standard, Opts) ->
+ split_optional(Ps, Standard, Opts);
+split_optional([], Standard, Opts) ->
+ {reverse(Standard), reverse(Opts)}.
+
+patch_param(P=#param{type=#type{base=Tuple}}, all) when is_tuple(Tuple) ->
+ P#param{type={class,ignore}};
+patch_param(P=#param{type={merged,_,_,_,_,_,_}}, _) ->
+ P#param{type={class,ignore}};
+patch_param(P=#param{type=#type{base={class,_}}},_) ->
+ P#param{type={class,ignore}};
+patch_param(P=#param{type=#type{base={ref,_}}},_) ->
+ P#param{type={class,ignore}};
+patch_param(P,_) -> P.
+
+func_arg_name(#param{def=Def}) when Def =/= none -> skip;
+func_arg_name(#param{in=false}) -> skip;
+func_arg_name(#param{where=c}) -> skip;
+func_arg_name(#param{name=Name}) ->
+ erl_arg_name(Name).
+
+func_arg(#param{def=Def}) when Def =/= none -> skip;
+func_arg(#param{in=false}) -> skip;
+func_arg(#param{where=c}) -> skip;
+func_arg(#param{name=Name,type=#type{base=string}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name,type=#type{name="wxArrayString"}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name0,type=#type{base={class,_CN}, single=true}}) ->
+ Name = erl_arg_name(Name0),
+ "#wx_ref{type=" ++ Name ++ "T,ref=" ++ Name++"Ref}";
+func_arg(#param{name=Name0,type=#type{base={ref,CN}, single=true}}) ->
+ Name = erl_arg_name(Name0),
+ "#wx_ref{type=" ++ CN ++ ",ref=" ++ Name++"Ref}";
+func_arg(#param{name=Name0,type={merged,_,#type{base={class,_},single=true},_,
+ _, #type{base={class,_},single=true},_}}) ->
+ Name = erl_arg_name(Name0),
+ "#wx_ref{type=" ++ Name ++ "T,ref=" ++ Name++"Ref}";
+func_arg(#param{name=Name,type=#type{base={enum,_}}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name,type=#type{base={comp,"wxColour",_Tup}, single=true}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name,type=#type{base={comp,"wxDateTime",_Tup}, single=true}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name,type=#type{name="wxArtClient", single=true}}) ->
+ erl_arg_name(Name);
+func_arg(#param{name=Name,type=#type{base={comp,_,Tup}, single=true}}) ->
+ N = erl_arg_name(Name),
+ Doc = fun({_,V}) -> erl_arg_name(N)++V end,
+ "{" ++ args(Doc, ",", Tup) ++ "}";
+func_arg(#param{name=Name}) ->
+ erl_arg_name(Name).
+
+
+guard_test(#param{type=#type{base={class,_},single=true}}) -> skip;
+guard_test(#param{def=Def}) when Def =/= none -> skip;
+guard_test(#param{where=c}) -> skip;
+guard_test(#param{in=In}) when In == false -> skip;
+guard_test(#param{name=N, type=#type{base=string}}) ->
+ "is_list(" ++ erl_arg_name(N) ++")";
+guard_test(#param{name=N, type=#type{name="wxArtClient"}}) ->
+ "is_list(" ++ erl_arg_name(N) ++")";
+guard_test(#param{name=N, type=#type{name="wxArrayString"}}) ->
+ "is_list(" ++ erl_arg_name(N) ++")";
+guard_test(#param{name=Name,type=#type{single=Single}})
+ when Single =/= true->
+ "is_list(" ++ erl_arg_name(Name) ++ ")";
+guard_test(#param{name=N,type=#type{base=int}}) ->
+ "is_integer(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=N,type=#type{base=long}}) ->
+ "is_integer(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=N,type=#type{base=float}}) ->
+ "is_float(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=N,type=#type{base=double}}) ->
+ "is_float(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=N,type=#type{base=bool}}) ->
+ "is_boolean(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=N,type=#type{name="wxDateTime"}}) ->
+ "tuple_size(" ++ erl_arg_name(N) ++ ") =:= 2";
+guard_test(#param{name=N,type=#type{base=binary}}) ->
+ "is_binary(" ++ erl_arg_name(N) ++ ")";
+guard_test(#param{name=Name,type=#type{base={enum,_}}}) ->
+ "is_integer(" ++ erl_arg_name(Name) ++ ")";
+guard_test(#param{name=Name,type=#type{base=eventType}}) ->
+ "is_atom(" ++ erl_arg_name(Name) ++ ")";
+guard_test(#param{name=_N,type=#type{base={term,_}}}) ->
+ skip;
+guard_test(#param{name=_N,type=#type{base={ref,_}}}) ->
+ skip;
+guard_test(#param{name=_N,type=#type{base={class,_}}}) ->
+ skip;
+guard_test(#param{name=_N,type={merged,_,#type{base={class,_}},_,_,#type{},_}}) ->
+ skip;
+guard_test(#param{name=N,type=#type{base={comp,"wxColour",_Tup}}}) ->
+ "tuple_size(" ++ erl_arg_name(N) ++ ") =:= 3; tuple_size(" ++ erl_arg_name(N) ++ ") =:= 4";
+guard_test(#param{name=N,type=#type{base={comp,_,Tup}}}) ->
+ Doc = fun({int,V}) -> "is_integer("++erl_arg_name(N)++V ++")";
+ ({double,V}) -> "is_number("++erl_arg_name(N)++V ++")"
+ end,
+ args(Doc, ",", Tup);
+guard_test(#param{name=N,type={class,ignore}}) ->
+ "is_record(" ++ erl_arg_name(N)++ ", wx_ref)";
+guard_test(T) -> ?error({unknown_type,T}).
+
+gen_doc(_Class, [#method{method_type=destructor}]) -> skip;
+gen_doc(_Class,[#method{name=N,alias=A,params=Ps,type=T,where=erl_no_opt,method_type=MT}])->
+ w("%% @spec (~s~s) -> ~s~n",[doc_arg_types(Ps),"",doc_return_types(T,Ps)]),
+ w("%% @equiv ", []),
+ gen_function_clause(erl_func_name(N,A),MT,Ps,empty_list,[no_guards,name_only]);
+gen_doc(Class,[#method{name=N,params=Ps,type=T}])->
+ {_, Optional} = split_optional(Ps),
+ NonDef = [Arg || Arg = #param{def=Def,in=In, where=Where} <- Ps,
+ Def =:= none, In =/= false, Where =/= c],
+ OptsType = case Optional of
+ [] -> "";
+ _ when NonDef =:= [] -> "[Option]";
+ _ -> ", [Option]"
+ end,
+ w("%% @spec (~s~s) -> ~s~n",
+ [doc_arg_types(Ps),OptsType,doc_return_types(T,Ps)]),
+ doc_optional(Optional, normal),
+ DocEnum = doc_enum(T,Ps, normal),
+ case Class of
+ "utils" ->
+ w("%% @doc See <a href=\"http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#~s\">"
+ "external documentation</a>.~n",
+ [lowercase_all(N)]);
+ _ ->
+ w("%% @doc See <a href=\"http://www.wxwidgets.org/manuals/stable/wx_~s.html#~s~s\">"
+ "external documentation</a>.~n",
+ [lowercase_all(Class),lowercase_all(Class),lowercase_all(N)])
+ end,
+ doc_enum_desc(DocEnum);
+gen_doc(Class, Cs = [#method{name=N, alias=A,method_type=MT}|_]) ->
+ GetRet = fun(#method{params=Ps,type=T}) ->
+ doc_return_types(T,Ps)
+ end,
+ GetArgs = fun(#method{params=Ps, where=Where}) ->
+ Opt = case Where of
+ erl_no_opt -> [];
+ _ ->
+ case split_optional(Ps) of
+ {_, []} -> [];
+ _ -> ["[Option]"]
+ end
+ end,
+ [doc_arg_type(P) ||
+ P=#param{in=In,def=none,where=W} <- Ps,
+ In =/= false, W =/= c] ++ Opt
+ end,
+ Args = zip(lists:map(GetArgs, Cs)),
+ Ret = lists:map(GetRet, Cs),
+ w("%% @spec (~s) -> ~s~n",[args(fun doc_arg/1,",",Args),doc_ret(Ret)]),
+ case Class of
+ "utils" ->
+ w("%% @doc See <a href=\"http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#~s\">"
+ "external documentation</a>.~n",
+ [lowercase_all(N)]);
+ _ ->
+ w("%% @doc See <a href=\"http://www.wxwidgets.org/manuals/stable/wx_~s.html#~s~s\">"
+ "external documentation</a>.~n",
+ [lowercase_all(Class),lowercase_all(Class),lowercase_all(N)])
+ end,
+ Name = case MT of constructor -> "new"; _ -> erl_func_name(N,A) end,
+ w("%% <br /> Alternatives: ~n",[]),
+ [gen_doc2(Name, Clause) || Clause <- Cs],
+ ok.
+
+gen_doc2(Name,#method{params=Ps,where=erl_no_opt,method_type=MT}) ->
+ w("%% <p><c>~n",[]),
+ w("%% ~s(~s) -> ", [Name,doc_arg_types(Ps)]),
+ gen_function_clause(Name,MT,Ps,empty_list,[no_guards,name_only]),
+ w(" </c></p>~n",[]);
+gen_doc2(Name,#method{params=Ps,type=T}) ->
+ {NonDef, Optional} = split_optional(Ps),
+ OptsType = case Optional of
+ [] -> "";
+ _ when NonDef =:= [] -> "[Option]";
+ _ -> ", [Option]"
+ end,
+ w("%% <p><c>~n",[]),
+ w("%% ~s(~s~s) -> ~s </c>~n",
+ [Name,doc_arg_types(Ps),OptsType,doc_return_types(T,Ps)]),
+ doc_optional(Optional, xhtml),
+ DocEnum = doc_enum(T,Ps, xhtml),
+ doc_enum_desc(DocEnum),
+ w("%% </p>~n",[]).
+
+doc_arg(ArgList) ->
+ case all_eq(ArgList) of
+ true -> hd(ArgList);
+ false ->
+ Get = fun(Str) ->
+ [_Name|Types] = string:tokens(Str, ":"),
+ case Types of
+ [Type] -> Type;
+ _ ->
+ "term()"
+ end
+ end,
+ Args0 = lists:map(Get, ArgList),
+ Args = unique(Args0, []),
+ "X::" ++ args(fun(A) -> A end, "|", Args)
+ end.
+
+doc_ret(ArgList) ->
+ case all_eq(ArgList) of
+ true -> hd(ArgList);
+ false ->
+ args(fun(A) -> A end, "|", ArgList)
+ end.
+
+unique([], U) -> reverse(U);
+unique([H|R], U) ->
+ case lists:member(H,U) of
+ false -> unique(R,[H|U]);
+ true -> unique(R,U)
+ end.
+
+all_eq([H|R]) -> all_eq(R,H).
+
+all_eq([H|R],H) -> all_eq(R,H);
+all_eq([],_) -> true;
+all_eq(_,_) -> false.
+
+zip(List) ->
+ zip(List, [], [], []).
+
+zip([[F|L1]|List], Rest, AccL, Acc) ->
+ zip(List, [L1|Rest], [F|AccL], Acc);
+zip(Empty, Rest, AccL, Acc) ->
+ true = empty(Empty),
+ case empty(Rest) andalso empty(AccL) of
+ true -> reverse(Acc);
+ false ->
+ zip(reverse(Rest), [], [], [reverse(AccL)|Acc])
+ end.
+
+empty([[]|R]) -> empty(R);
+empty([]) -> true;
+empty(_) -> false.
+
+doc_arg_types(Ps0) ->
+ Ps = [P || P=#param{in=In, where=Where} <- Ps0,In =/= false, Where =/= c],
+ args(fun doc_arg_type/1, ", ", Ps).
+doc_arg_type(#param{name=Name,def=none,type=T}) ->
+ erl_arg_name(Name) ++ "::" ++ doc_arg_type2(T);
+doc_arg_type(#param{name=Name,in=false,type=T}) ->
+ erl_arg_name(Name) ++ "::" ++ doc_arg_type2(T);
+doc_arg_type(_) -> skip.
+
+doc_arg_type2(T=#type{single=Single}) when Single =:= array; Single =:= list ->
+ "[" ++ doc_arg_type3(T) ++ "]";
+doc_arg_type2(T) ->
+ doc_arg_type3(T).
+
+doc_arg_type3(#type{base=string}) -> "string()";
+doc_arg_type3(#type{name="wxChar", single=S}) when S =/= true -> "string()";
+doc_arg_type3(#type{name="wxArrayString"}) -> "[string()]";
+doc_arg_type3(#type{name="wxDateTime"}) -> "wx:datetime()";
+doc_arg_type3(#type{name="wxArtClient"}) -> "string()";
+doc_arg_type3(#type{base=int}) -> "integer()";
+doc_arg_type3(#type{base=long}) -> "integer()";
+doc_arg_type3(#type{base=bool}) -> "bool()";
+doc_arg_type3(#type{base=float}) -> "float()";
+doc_arg_type3(#type{base=double}) -> "float()";
+doc_arg_type3(#type{base=binary}) -> "binary()";
+doc_arg_type3(#type{base={binary,_}}) -> "binary()";
+doc_arg_type3(#type{base=eventType}) -> "atom()";
+doc_arg_type3(#type{base={ref,N}}) -> N++"()";
+doc_arg_type3(#type{base={term,_N}}) -> "term()";
+doc_arg_type3(T=#type{base={class,N}}) ->
+ check_class(T),
+ case get(current_class) of
+ N -> N ++ "()";
+ _ -> N++":" ++ N++"()"
+ end;
+doc_arg_type3({merged,_,T1=#type{base={class,N1}},_,_,T2=#type{base={class,N2}},_}) ->
+ check_class(T1),
+ check_class(T2),
+ Curr = get(current_class),
+ if
+ N1 =:= Curr, N2 =:= Curr -> N1++"() | "++ N2++"()";
+ N1 =:= Curr -> N1++"() | "++ N2++":" ++ N2++"()";
+ N2 =:= Curr -> N1++":" ++ N1++"() | "++ N2++"()";
+ true ->
+ N1++":" ++ N1++"() | "++ N2++":" ++ N2++"()"
+ end;
+doc_arg_type3(#type{base={enum,{_,N}}}) -> uppercase(N);
+doc_arg_type3(#type{base={enum,N}}) -> uppercase(N);
+doc_arg_type3(#type{base={comp,"wxColour",_Tup}}) ->
+ "wx:colour()";
+doc_arg_type3(#type{base={comp,_,{record,Name}}}) ->
+ "wx:" ++ atom_to_list(Name) ++ "()";
+doc_arg_type3(#type{base={comp,_,Tup}}) ->
+ Doc = fun({int,V}) -> V ++ "::integer()";
+ ({double,V}) -> V ++ "::float()"
+ end,
+ "{" ++ args(Doc, ",", Tup) ++ "}";
+doc_arg_type3(T) -> ?error({unknown_type,T}).
+
+doc_return_types(T, Ps) ->
+ doc_return_types2(T, [P || P=#param{in=In} <- Ps,In =/= true]).
+doc_return_types2(void, []) -> "ok";
+doc_return_types2(void, [#param{type=T}]) -> doc_arg_type2(T);
+doc_return_types2(T, []) -> doc_arg_type2(T);
+doc_return_types2(void, Ps) ->
+ "{" ++ args(fun doc_arg_type/1,",",Ps) ++ "}";
+doc_return_types2(T, Ps) ->
+ "{" ++ doc_arg_type2(T) ++ "," ++ args(fun doc_arg_type/1,",",Ps) ++ "}".
+
+break(xhtml) -> "<br />";
+break(_) -> "".
+
+doc_optional([],_) -> ok;
+doc_optional(Opts,Type) ->
+ w("%%~s Option = ~s~n", [break(Type),args(fun doc_optional2/1, " | ", Opts)]).
+
+doc_optional2(#param{name=Name, def=_Def, type=T}) ->
+ "{" ++ erl_option_name(Name) ++ ", " ++ doc_arg_type2(T) ++ "}".
+
+doc_enum(#type{base={enum,Enum}},Ps,Break) ->
+ [doc_enum_type(Enum,Break) |
+ [doc_enum_type(Type,Break) || #param{type=#type{base={enum,Type}}} <- Ps]];
+doc_enum(_,Ps,Break) ->
+ [doc_enum_type(Type,Break) || #param{type=#type{base={enum,Type}}} <- Ps].
+
+doc_enum_type(Type,Break) ->
+ {Enum0, #enum{vals=Vals}} = wx_gen:get_enum(Type),
+ case Enum0 of {_, Enum} -> Enum; Enum -> Enum end,
+ Consts = get(consts),
+ Format = fun({Name,_What}) ->
+ #const{name=Name} = gb_trees:get(Name, Consts),
+ "?" ++ enum_name(Name)
+ end,
+ Vs = args(Format, " | ", Vals),
+ w("%%~s ~s = integer()~n", [break(Break),uppercase(Enum)]),
+ {uppercase(Enum),Vs}.
+
+doc_enum_desc([]) -> ok;
+doc_enum_desc([{Enum,Vs}|R]) ->
+ w("%%<br /> ~s is one of ~s~n", [Enum,Vs]),
+ doc_enum_desc(R).
+
+%% Misc functions prefixed with wx
+erl_func_name("wx" ++ Name, undefined) -> check_name(lowercase(Name));
+erl_func_name(Name, undefined) -> check_name(lowercase(Name));
+erl_func_name(_, Alias) -> check_name(lowercase(Alias)).
+
+erl_option_name(Name) -> lowercase(Name).
+erl_arg_name(Name) -> uppercase(Name).
+
+check_name("destroy") -> "'Destroy'";
+check_name("xor") -> "'Xor'";
+check_name("~" ++ _Name) -> "destroy";
+check_name(Name) -> Name.
+
+marshal_opts([], _,_) -> ""; %% No opts skip this!
+marshal_opts(Opts, Align, Args) ->
+ w(" MOpts = fun", []),
+ marshal_opts1(Opts,1),
+ w(";~n (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,~n", []),
+ w(" BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),~n", []),
+ {Str, _} = align(64, Align, "BinOpt/binary"),
+ case Args of
+ [] -> Str; % All Args are optional
+ _ -> ", " ++ Str
+ end.
+
+marshal_opts1([P],N) ->
+ marshal_opt(P,N);
+marshal_opts1([P|R],N) ->
+ marshal_opt(P,N),
+ w(";~n ", []),
+ marshal_opts1(R,N+1).
+
+marshal_opt(P0=#param{name=Name,type=Type},N) ->
+ P = P0#param{def=none},
+ {Arg,Align} = marshal_arg(Type,erl_arg_name(Name),1),
+ AStr = if Align =:= 0 -> "";
+ Align =:= 1 -> ",0:32"
+ end,
+ w("({~s, ~s}, Acc) -> ", [erl_option_name(Name), func_arg(P)]),
+ arg_type_test(P,"",[]),
+ case Arg of
+ skip ->
+ w("[<<~p:32/?UI~s>>|Acc]", [N, AStr]);
+ _ ->
+ w("[<<~p:32/?UI,~s~s>>|Acc]", [N, Arg,AStr])
+ end.
+marshal_args(Ps) ->
+ marshal_args(Ps, [], 0).
+
+marshal_args([#param{where=erl}|Ps], Margs, Align) ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#param{name=_N,where=c}|Ps], Margs, Align) ->
+ %% io:format("~p:~p: skip ~p~n",[get(current_class),get(current_func),_N]),
+ marshal_args(Ps, Margs, Align);
+marshal_args([#param{in=false}|Ps], Margs, Align) ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#param{def=Def}|Ps], Margs, Align) when Def =/= none ->
+ marshal_args(Ps, Margs, Align);
+marshal_args([#param{name=Name, type=Type}|Ps], Margs, Align0) ->
+ {Arg,Align} = marshal_arg(Type,erl_arg_name(Name),Align0),
+ marshal_args(Ps, [Arg|Margs], Align);
+marshal_args([],Margs, Align) ->
+ {args(fun(Str) -> Str end, ",", reverse(Margs)), Align}.
+
+marshal_arg(#type{base={class,_}, single=true}, Name, Align) ->
+ align(32, Align, Name ++ "Ref:32/?UI");
+marshal_arg({merged,_,#type{base={class,_},single=true},_,_,_,_},Name,Align) ->
+ align(32, Align, Name ++ "Ref:32/?UI");
+marshal_arg(#type{base={ref,_}, single=true}, Name, Align) ->
+ align(32, Align, Name ++ "Ref:32/?UI");
+marshal_arg(#type{single=true,base=long}, Name, Align) ->
+ align(64, Align, Name ++ ":64/?UI");
+marshal_arg(#type{single=true,base=float}, Name, Align) ->
+ align(32, Align, Name ++ ":32/?F");
+marshal_arg(#type{single=true,base=double}, Name, Align) ->
+ align(64, Align, Name ++ ":64/?F");
+marshal_arg(#type{single=true,base=int}, Name, Align) ->
+ align(32, Align, Name ++ ":32/?UI");
+marshal_arg(#type{single=true,base={enum,_Enum}}, Name, Align) ->
+ align(32, Align, Name ++ ":32/?UI");
+
+marshal_arg(#type{single=true,base=bool}, Name, Align) ->
+ align(32, Align, "(wxe_util:from_bool(" ++ Name ++ ")):32/?UI");
+marshal_arg(#type{name="wxChar", single=Single}, Name, Align0)
+ when Single =/= true ->
+ {Str,Align} =
+ align(32,Align0, "(byte_size("++Name++"_UC)):32/?UI,(" ++ Name ++ "_UC)/binary"),
+ MsgSize = "(" ++ integer_to_list(Align*4)++"+byte_size("++Name++"_UC))",
+ {Str++", 0:(((8- (" ++ MsgSize ++" band 16#7)) band 16#7))/unit:8",0};
+marshal_arg(#type{base=string}, Name, Align0) ->
+ {Str,Align} =
+ align(32,Align0, "(byte_size("++Name++"_UC)):32/?UI,(" ++ Name ++ "_UC)/binary"),
+ MsgSize = "(" ++ integer_to_list(Align*4)++"+byte_size("++Name++"_UC))",
+ {Str++", 0:(((8- (" ++ MsgSize ++" band 16#7)) band 16#7))/unit:8",0};
+marshal_arg(#type{name="wxArrayString"}, Name, Align0) ->
+ InnerBin = "<<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>",
+ Outer = "(<< " ++ InnerBin ++ "|| UC_Str <- "++ Name ++"_UCA>>)/binary",
+ Str0 = "(length("++Name++"_UCA)):32/?UI, " ++ Outer,
+ {Str,Align} = align(32,Align0,Str0),
+ MsgSize = "("++integer_to_list(Align*4) ++
+ " + lists:sum([byte_size(S)+4||S<-" ++ Name ++"_UCA]))",
+ AStr = ", 0:(((8- (" ++ MsgSize ++" band 16#7)) band 16#7))/unit:8",
+ {Str ++ AStr, 0};
+marshal_arg(#type{single=true,base={comp,"wxColour",_Comp}}, Name, Align0) ->
+ Str = "(wxe_util:colour_bin(" ++ Name ++ ")):16/binary",
+ {Str,Align0};
+marshal_arg(#type{single=true,base={comp,"wxDateTime",_Comp}}, Name, Align) ->
+ {"(wxe_util:datetime_bin(" ++ Name ++ ")):24/binary", Align};
+marshal_arg(#type{single=true,base={comp,_,Comp}}, Name, Align0) ->
+ case hd(Comp) of
+ {int,_} ->
+ A = [Name++Spec++":32/?UI" || {int,Spec} <- Comp],
+ Str = args(fun(Str) -> Str end, ",", A),
+ {Str,(Align0 + length(Comp)) rem 2};
+ {double,_} ->
+ A = [Name++Spec++":64/float" || {double,Spec} <- Comp],
+ Str = args(fun(Str) -> Str end, ",", A),
+ align(64,Align0,Str)
+ end;
+marshal_arg(#type{base={term,_}}, _Name, Align0) ->
+ {skip,Align0};
+marshal_arg(#type{base=binary}, _Name, Align0) ->
+ {skip,Align0};
+marshal_arg(#type{base=Base, single=Single}, Name, Align0)
+ when Single =/= true ->
+ case Base of
+ int ->
+ Str0 = "(length("++Name++")):32/?UI,\n"
+ " (<< <<C:32/?I>> || C <- "++Name++">>)/binary",
+ {Str,Align} = align(32,Align0, Str0),
+ {Str ++ ", 0:((("++integer_to_list(Align)++"+length("++Name++ ")) rem 2)*32)", 0};
+ {ObjRef,_} when ObjRef =:= class; ObjRef =:= ref ->
+ Str0 = "(length("++Name++")):32/?UI,",
+ Str1 = "\n (<< <<(C#wx_ref.ref):32/?UI>> || C <- "++Name++">>)/binary",
+ {Str2,Align} = align(32, Align0, Str1),
+ AlignStr = ", 0:((("++integer_to_list(Align)++"+length("++Name++ ")) rem 2)*32)",
+ {Str0 ++ Str2 ++ AlignStr, 0};
+ {comp, "wxPoint", _} ->
+ Str0 = "(length("++Name++")):32/?UI,\n"
+ " (<< <<X:32/?I,Y:32/?I>> || {X,Y} <- "++Name++">>)/binary",
+ align(32,Align0, Str0);
+ double ->
+ Str0 = "(length("++Name++")):32/?UI,\n",
+ Str1 = " (<< <<C:64/float>> || C <- "++Name++">>)/binary",
+ {Str,_Align} = align(64,Align0+1, Str1),
+ {Str0 ++ Str, 0};
+ _ ->
+ ?error({unhandled_array_type, Base})
+ end;
+marshal_arg(T=#type{name=_wxString}, Name, _Align) ->
+ ?error({unhandled_type, {Name,T}}).
+
+
+align(32, 0, Str) -> {Str, 1};
+align(32, 1, Str) -> {Str, 0};
+align(64, 0, Str) -> {Str, 0};
+align(64, 1, Str) -> {"0:32," ++ Str,0};
+align(Sz, W, Str) -> align(Sz, W rem 2, Str).
+
+enum_name(Name) ->
+ case string:tokens(Name, ":") of
+ [Name] -> Name;
+ [C,N] -> C ++ "_" ++ N
+ end.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+gen_enums_ints() ->
+ %% open_write("../include/wx.hrl"), opened in gen_event_recs
+ w("~n%% Hardcoded Records ~n", []),
+ w("-record(wxMouseState, {x, y, %% integer() ~n"
+ " leftDown, middleDown, rightDown, %% bool() ~n"
+ " controlDown, shiftDown, altDown, metaDown, cmdDown %% bool()~n"
+ " }).~n", []),
+ w("-record(wxHtmlLinkInfo, { ~n"
+ " href, target %% string() ~n"
+ " }).~n", []),
+ w("~n%% Hardcoded Defines ~n", []),
+ Enums = [E || E = {{enum,_},#enum{as_atom=false}} <- get()],
+ w("-define(wxDefaultSize, {-1,-1}).~n", []),
+ w("-define(wxDefaultPosition, {-1,-1}).~n", []),
+ w("~n%% Global Variables ~n", []),
+ [w("-define(~s, wxe_util:get_const(~s)).~n", [Gvar, Gvar]) ||
+ {Gvar,_,_Id} <- get(gvars)],
+ w("~n%% Enum and defines ~n", []),
+ foldl(fun({{enum,Type},Enum= #enum{as_atom=false}}, Done) ->
+ build_enum_ints(Type,Enum,Done);
+ (_,Done) -> Done
+ end, gb_sets:empty(), lists:sort(Enums)),
+ close().
+
+build_enum_ints(Type,#enum{vals=Vals},Done) ->
+ case Type of
+ [$@|_] -> ok; % anonymous
+ {Class,[$@|_]} when Vals =/= [] -> w("% From class ~s ~n", [Class]);
+ {Class,Enum} when Vals =/= [] -> w("% From ~s::~s ~n", [Class,Enum]);
+ _ when Vals =/= [] -> w("% Type ~s ~n", [Type]);
+ _ -> ok
+ end,
+
+ Format = fun(#const{name=Name,val=Value,is_const=true}) when is_integer(Value) ->
+ w("-define(~s, ~p).~n", [enum_name(Name),Value]);
+ (#const{name=Name,val=Value,is_const=false}) when is_integer(Value) ->
+ w("-define(~s, wxe_util:get_const(~s)).~n", [enum_name(Name),enum_name(Name)]);
+ (#const{name=Name,val={Str,0}}) ->
+ case string:tokens(Str, " |()") of
+ [Token] ->
+ w("-define(~s, ?~s).~n", [enum_name(Name),Token]);
+ Tokens ->
+ Def = args(fun(T) -> [$?|T] end, " bor ", Tokens),
+ w("-define(~s, (~s)).~n", [enum_name(Name),Def])
+ end;
+ (#const{name=Name,val={Str,N}}) ->
+ case string:tokens(Str, " |()") of
+ [Token] ->
+ w("-define(~s, (?~s+~p)).~n", [enum_name(Name),Token,N])
+ end
+ end,
+ Consts = get(consts),
+ Write = fun({Name,_What}, Skip) ->
+ case gb_sets:is_member(Name,Skip) of
+ true ->
+ Skip;
+ false ->
+ case gb_trees:lookup(Name, Consts) of
+ {value, Const} ->
+ Format(Const),
+ gb_sets:add(Name,Skip);
+ none -> Skip
+ end
+ end
+ end,
+ lists:foldl(Write, Done, Vals).
+
+gen_event_recs() ->
+ open_write("../include/wx.hrl"),
+ erl_copyright(),
+ w("", []),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("%% All event messages are encapsulated in a wx record ~n"
+ "%% they contain the widget id and a specialized event record.~n"
+ "%% Each event record may be sent for one or more event types.~n"
+ "%% The mapping to wxWidgets is one record per class.~n~n",[]),
+ w("%% @type wx() = #wx{id=integer(), obj=wx:wxObject(), userData=term(), event=Rec}. Rec is a event record.~n",[]),
+ w("-record(wx, {id, %% Integer Identity of object.~n"
+ " obj, %% Object reference that was used in the connect call.~n"
+ " userData, %% User data specified in the connect call.~n"
+ " event}).%% The event record ~n~n",[]),
+ w("%% Here comes the definitions of all event records.~n"
+ "%% they contain the event type and possible some extra information.~n~n",[]),
+ Types = [build_event_rec(C) || {_,C=#class{event=Evs}} <- get(), Evs =/= false],
+ w("%% @type wxEventType() = ~s.~n",
+ [args(fun(Ev) -> Ev end, " | ", lists:sort(lists:append(Types)))]),
+ %% close(), closed in gen_enums_ints
+ ok.
+
+find_inherited_attr(Param = {PName,_}, Name) ->
+ #class{parent=Parent, attributes=Attrs} = get({class, Name}),
+ case lists:keysearch(atom_to_list(PName), #param.name, Attrs) of
+ {value, P=#param{}} ->
+ P;
+ _ ->
+ find_inherited_attr(Param, Parent)
+ end.
+
+filter_attrs(#class{name=Name, parent=Parent,attributes=Attrs}) ->
+ Attr1 = lists:foldl(fun(#param{acc=skip},Acc) -> Acc;
+ (P=#param{prot=public},Acc) -> [P|Acc];
+ (#param{acc=undefined},Acc) -> Acc;
+ ({inherited, PName},Acc) ->
+ case find_inherited_attr(PName, Parent) of
+ undefined ->
+ io:format("~p:~p: Missing Event Attr ~p in ~p~n",
+ [?MODULE,?LINE, PName, Name]),
+ Acc;
+ P ->
+ [P|Acc]
+ end;
+ (P, Acc) -> [P|Acc]
+ end, [], Attrs),
+ lists:reverse(Attr1).
+
+build_event_rec(Class=#class{name=Name, event=Evs}) ->
+ EvTypes = [event_type_name(Ev) || Ev <- Evs],
+ Str = args(fun(Ev) -> "<em>"++Ev++"</em>" end, ", ", EvTypes),
+ Attr = filter_attrs(Class),
+ Rec = event_rec_name(Name),
+ GetName = fun(#param{name=N}) ->event_attr_name(N) end,
+ GetType = fun(#param{name=N,type=T}) ->
+ event_attr_name(N) ++ "=" ++ doc_arg_type2(T)
+ end,
+ case Attr =:= [] of
+ true ->
+ w("%% @type ~s() = #~s{type=wxEventType()}.~n", [Rec,Rec]),
+ w("%% <dl><dt>EventType:</dt> <dd>~s</dd></dl>~n",[Str]),
+%% case is_command_event(Name) of
+%% true -> w("%% This event skips other event handlers.~n",[]);
+%% false -> w("%% This event will be handled by other handlers~n",[])
+%% end,
+ w("%% Callback event: {@link ~s}~n", [Name]),
+ w("-record(~s, {type}). ~n~n", [Rec]);
+ false ->
+ w("%% @type ~s() = #~s{type=wxEventType(),~s}.~n",
+ [Rec,Rec,args(GetType,",",Attr)]),
+ w("%% <dl><dt>EventType:</dt> <dd>~s</dd></dl>~n",[Str]),
+%% case is_command_event(Name) of
+%% true -> w("%% This event skips other event handlers.~n",[]);
+%% false -> w("%% This event will be handled by other handlers~n",[])
+%% end,
+ w("%% Callback event: {@link ~s}~n", [Name]),
+ w("-record(~s,{type, ~s}). ~n~n", [Rec,args(GetName,",",Attr)])
+ end,
+ EvTypes.
+
+is_command_event(Name) ->
+ case lists:member("wxCommandEvent", parents(Name)) of
+ true -> true;
+ false -> false
+ end.
+
+event_rec_name(Name0 = "wx" ++ _) ->
+ "tnevE" ++ Name1 = reverse(Name0),
+ reverse(Name1).
+
+event_type_name({EvN,_,_}) -> event_type_name(EvN);
+event_type_name({EvN,_}) -> event_type_name(EvN);
+event_type_name(EvN) ->
+ "wxEVT_" ++ Ev = atom_to_list(EvN),
+ lowercase_all(Ev).
+
+event_attr_name("m_" ++ Attr) ->
+ lowercase(Attr);
+event_attr_name(Attr) ->
+ lowercase(Attr).
+
+
+gen_funcnames() ->
+ open_write("../src/gen/wxe_debug.hrl"),
+ erl_copyright(),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("wxdebug_table() -> ~n[~n", []),
+ w(" {0, {wx, internal_batch_start, 0}},~n", []),
+ w(" {1, {wx, internal_batch_end, 0}},~n", []),
+ w(" {4, {wxObject, internal_destroy, 1}},~n", []),
+ Ns = get_unique_names(),
+ [w(" {~p, {~s, ~s, ~p}},~n", [Id,Class,erl_func_name(Name,undefined),A]) || {Class,Name,A,Id} <- Ns],
+ w(" {-1, {mod, func, -1}}~n",[]),
+ w("].~n~n", []),
+ close(),
+ open_write("../src/gen/wxe_funcs.hrl"),
+ erl_copyright(),
+ w("%% This file is generated DO NOT EDIT~n~n", []),
+ w("%% We define each id so we don't get huge diffs when adding new funcs/classes~n~n",[]),
+ [w("-define(~s_~s, ~p).~n", [Class,Name,Id]) || {Class,Name,_,Id} <- Ns],
+ close().
+
+get_unique_name(ID) when is_integer(ID) ->
+ Tree = get(unique_names),
+ {Class,Name, _,_} = gb_trees:get(ID, Tree),
+ Class ++ "_" ++ Name.
+
+get_unique_names() ->
+ Tree = get(unique_names),
+ gb_trees:values(Tree).
+
+gen_unique_names(Defs) ->
+ Names = [ unique_names(Ms, Class) || #class{name=Class, methods=Ms} <- Defs],
+ Data = [{Id, Struct} || Struct = {_,_,_,Id} <- lists:append(Names)],
+ Tree = gb_trees:from_orddict(lists:sort(Data)),
+ put(unique_names, Tree).
+
+unique_names(Ms0, Class) ->
+ Ms1 = [M || M = #method{where = W} <- lists:append(Ms0),
+ W =/= erl_no_opt],
+ Ms2 = lists:keysort(#method.name, Ms1),
+ Ms = split_list(fun(#method{name=N}, M) -> {N =:= M, N} end, undefined, Ms2),
+ unique_names2(Ms,Class).
+%% by Names
+unique_names2([[#method{id=Id, name=Method,alias=Alias, max_arity=A}]|Ms], Class) ->
+ [{Class,uname(alias(Method,Alias),Class),A,Id} | unique_names2(Ms,Class)];
+unique_names2([Ms0|RMs], Class) ->
+ Split = fun(#method{max_arity=A}, P) -> {A =:= P, A} end,
+ Ms = split_list(Split, 0, Ms0),
+ unique_names3(Ms, Class) ++ unique_names2(RMs, Class);
+unique_names2([], _Class) -> [].
+%% by Arity
+unique_names3([[#method{id=Id, name=Method,alias=Alias, max_arity=A}]|Ms], Class) ->
+ [{Class,uname(alias(Method,Alias),Class) ++ "_" ++ integer_to_list(A),A,Id} | unique_names3(Ms,Class)];
+unique_names3([Ms0|RMs], Class) ->
+ unique_names4(Ms0, 0, Class) ++ unique_names3(RMs, Class);
+unique_names3([], _Class) -> [].
+
+unique_names4([#method{id=Id, name=Method,alias=Alias, max_arity=A}|Ms], C, Class) ->
+ [{Class,uname(alias(Method,Alias),Class) ++ "_" ++ integer_to_list(A) ++ "_" ++ integer_to_list(C),A,Id}
+ | unique_names4(Ms,C+1,Class)];
+unique_names4([], _, _Class) -> [].
+
+alias(Method, undefined) -> Method;
+alias(_, Alias) -> Alias.
+
+uname(Class,Class) -> "new";
+uname([$~ | _], _ ) -> "destruct";
+uname(Name, _) -> Name.
+
+split_list(F, Keep, List) ->
+ split_list(F, Keep, List, []).
+
+split_list(F, Keep, [M|Ms], Acc) ->
+ case F(M,Keep) of
+ {true, Test} ->
+ split_list(F, Test, Ms, [M|Acc]);
+ {false, Test} when Acc =:= [] ->
+ split_list(F, Test, Ms, [M]);
+ {false, Test} ->
+ [lists:reverse(Acc)|split_list(F, Test, Ms, [M])]
+ end;
+split_list(_, _, [], []) -> [];
+split_list(_, _, [], Acc) -> [lists:reverse(Acc)].
+
+
diff --git a/lib/wx/api_gen/wx_xml/.gitignore b/lib/wx/api_gen/wx_xml/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/api_gen/wx_xml/.gitignore
diff --git a/lib/wx/api_gen/wxapi.conf b/lib/wx/api_gen/wxapi.conf
new file mode 100644
index 0000000000..df154f0125
--- /dev/null
+++ b/lib/wx/api_gen/wxapi.conf
@@ -0,0 +1,1777 @@
+%% -*- erlang -*-
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%
+%% Api defs file, defines the classes and members we want.
+
+%% {class,wxObject,Options,[Function|{Func,Opt}]}.
+%% {enum, Type, SkipPart}
+
+{const_skip, [wxGenericFindReplaceDialog]}.
+{not_const, [wxHAS_INT64,wxBYTE_ORDER,wxRETAINED,
+ wxFONTENCODING_UTF32,wxFONTENCODING_UTF16,
+ wxDEFAULT_CONTROL_BORDER,wxMOD_CMD,
+ wxMAJOR_VERSION, wxMINOR_VERSION,
+ wxRELEASE_NUMBER,wxSUBRELEASE_NUMBER,wxBETA_NUMBER
+ ]}.
+
+{gvars,
+ [
+ {wxITALIC_FONT, wxFont},
+ {wxNORMAL_FONT, wxFont},
+ {wxSMALL_FONT, wxFont},
+ {wxSWISS_FONT, wxFont},
+
+ {wxBLACK_DASHED_PEN, wxPen},
+ {wxBLACK_PEN, wxPen},
+ {wxCYAN_PEN, wxPen},
+ {wxGREEN_PEN, wxPen},
+ {wxGREY_PEN, wxPen},
+ {wxLIGHT_GREY_PEN, wxPen},
+ {wxMEDIUM_GREY_PEN, wxPen},
+ {wxRED_PEN, wxPen},
+ {wxTRANSPARENT_PEN, wxPen},
+ {wxWHITE_PEN, wxPen},
+
+ {wxBLACK_BRUSH, wxBrush},
+ {wxBLUE_BRUSH, wxBrush},
+ {wxCYAN_BRUSH, wxBrush},
+ {wxGREEN_BRUSH, wxBrush},
+ {wxGREY_BRUSH, wxBrush},
+ {wxLIGHT_GREY_BRUSH, wxBrush},
+ {wxMEDIUM_GREY_BRUSH, wxBrush},
+ {wxRED_BRUSH, wxBrush},
+ {wxTRANSPARENT_BRUSH, wxBrush},
+ {wxWHITE_BRUSH, wxBrush},
+
+ {wxCROSS_CURSOR, wxCursor},
+ {wxHOURGLASS_CURSOR, wxCursor},
+ {wxSTANDARD_CURSOR, wxCursor},
+
+ {wxBLACK, wxColour},
+ {wxBLUE, wxColour},
+ {wxCYAN, wxColour},
+ {wxGREEN, wxColour},
+ {wxLIGHT_GREY, wxColour},
+ {wxRED, wxColour},
+ {wxWHITE, wxColour},
+
+ {wxNullBitmap, {address,wxBitmap}},
+ {wxNullIcon, {address,wxIcon}},
+ {wxNullCursor, {address,wxCursor}},
+ {wxNullPen, {address,wxPen}},
+ {wxNullBrush, {address,wxBrush}},
+ {wxNullPalette, {address,wxPalette}},
+ {wxNullFont, {address,wxFont}}]}.
+{enum, wxBackgroundStyle, "wxBG_STYLE_"}.
+{enum, wxWindowVariant, "wxWINDOW_VARIANT_"}.
+{enum, wxBitmapType, "wxBITMAP_TYPE_"}.
+
+{class, wxeEvtHandler, object, [taylormade, {alias, [{wxeEvtHandler, wxEvtHandler}]}],
+ [{'Connect', [{"eventType",{base,eventType}},{"userData",nowhere}]},
+ {'Disconnect',[{"eventType",{base,eventType}},{"userData",nowhere}]}]
+}.
+
+{class, wxWindowGTK, wxEvtHandler,
+ [{alias, [{wxWindowGTK, wxWindow}]}],
+ [wxWindow,'~wxWindow', %% 'AddChild',
+ 'CacheBestSize','CaptureMouse',
+ 'Center','CenterOnParent','Centre','CentreOnParent','ClearBackground',
+ {'ClientToScreen',[{"x",both},{"y",both}]}, 'Close',
+ 'ConvertDialogToPixels','ConvertPixelsToDialog','Destroy','DestroyChildren',
+ 'Disable',%%'DoGetBestSize','DoUpdateWindowUI', 'DragAcceptFiles',
+ 'Enable',
+ 'FindFocus','FindWindow','FindWindowById','FindWindowByName','FindWindowByLabel',
+ 'Fit','FitInside','Freeze', 'GetAcceleratorTable', % 'GetAccessible',
+ 'GetBackgroundColour','GetBackgroundStyle',
+ 'GetBestSize','GetCaret','GetCapture','GetCharHeight',
+ 'GetCharWidth','GetChildren',
+ %%'GetClassDefaultAttributes','GetConstraints'
+ 'GetClientSize','GetContainingSizer','GetCursor',
+ %%'GetDefaultAttributes',
+ 'GetDropTarget','GetEventHandler','GetExtraStyle','GetFont','GetForegroundColour',
+ 'GetGrandParent',
+ {'GetHandle', [{return, [{type,"wxUIntPtr"}, {ref,pointer}, {base, int}]}]},
+ 'GetHelpText','GetId','GetLabel','GetMaxSize',
+ 'GetMinSize','GetName','GetParent','GetPosition','GetRect',
+ {'GetScreenPosition', [{"x",out},{"y",out}]}, 'GetScreenRect',
+ 'GetScrollPos','GetScrollRange','GetScrollThumb','GetSize','GetSizer',
+ {'GetTextExtent', [{"descent", out}, {"externalLeading", out}]},
+ 'GetToolTip','GetUpdateRegion',%'GetValidator',
+ 'GetVirtualSize','GetWindowStyleFlag','GetWindowVariant','HasCapture','HasScrollbar',
+ 'HasTransparentBackground','Hide','InheritAttributes','InitDialog',
+ 'InvalidateBestSize','IsEnabled','IsExposed','IsRetained','IsShown','IsTopLevel',
+ 'Layout','LineDown','LineUp','Lower','MakeModal','Move','MoveAfterInTabOrder',
+ 'MoveBeforeInTabOrder','Navigate',%'OnInternalIdle',
+ 'PageDown','PageUp',
+ 'PopEventHandler','PopupMenu',%'PushEventHandler',
+ 'Raise', 'Refresh', 'RefreshRect',%'RegisterHotKey',
+ 'ReleaseMouse','RemoveChild',%'RemoveEventHandler',
+ 'Reparent',
+ 'ScreenToClient','ScrollLines','ScrollPages','ScrollWindow','SetAcceleratorTable',
+ %%'SetAccessible',
+ 'SetAutoLayout','SetBackgroundColour','SetBackgroundStyle',
+ 'SetCaret','SetClientSize','SetContainingSizer','SetCursor',
+ %%'SetConstraints','SetInitialBestSize',
+ 'SetMaxSize','SetMinSize',
+ 'SetOwnBackgroundColour','SetOwnFont','SetOwnForegroundColour','SetDropTarget',
+ %%'SetEventHandler',
+ 'SetExtraStyle','SetFocus','SetFocusFromKbd','SetFont',
+ 'SetForegroundColour','SetHelpText','SetId','SetLabel','SetName','SetPalette',
+ 'SetScrollbar','SetScrollPos','SetSize','SetSizeHints','SetSizer','SetSizerAndFit',
+ 'SetThemeEnabled','SetToolTip',%'SetValidator',
+ 'SetVirtualSize',
+ 'SetVirtualSizeHints','SetWindowStyle','SetWindowStyleFlag','SetWindowVariant',
+ 'ShouldInheritColours','Show','Thaw','TransferDataFromWindow',
+ 'TransferDataToWindow',%'UnregisterHotKey',
+ 'Update','UpdateWindowUI','Validate',
+ 'WarpPointer']}.
+
+{class, wxTopLevelWindowGTK, wxWindow,
+ [{alias, [{wxTopLevelWindowGTK, wxTopLevelWindow}]}],
+ ['GetIcon','GetIcons','GetTitle','IsActive','Iconize',
+ 'IsFullScreen','IsIconized','IsMaximized','Maximize',
+ 'RequestUserAttention','SetIcon','SetIcons',
+ 'CenterOnScreen', 'CentreOnScreen',
+ %%'SetLeftMenu', 'SetRightMenu',
+ 'SetShape','SetTitle','ShowFullScreen'
+ ]}.
+
+{class, wxFrame, wxTopLevelWindow, [],
+ ['wxFrame','~wxFrame',%'Centre',
+ 'Create','CreateStatusBar','CreateToolBar',
+ 'GetClientAreaOrigin','GetMenuBar','GetStatusBar','GetStatusBarPane',
+ 'GetToolBar',%'OnCreateStatusBar','OnCreateToolBar',
+ 'ProcessCommand','SendSizeEvent','SetMenuBar','SetStatusBar',
+ 'SetStatusBarPane','SetStatusText',
+ {'SetStatusWidths', [{"n",{c_only,{length,"widths_field"}}}]},
+ 'SetToolBar']}.
+
+{class, wxMiniFrame, wxFrame, [],
+ ['wxMiniFrame','~wxMiniFrame','Create']}.
+
+%% Hmm what do we do with these
+%% {class, wxValidator, root,[],
+%% ['wxValidator','~wxValidator','Clone','GetWindow','SetBellOnError','SetWindow',
+%% 'TransferFromWindow','TransferToWindow','Validate']}.
+%% {class, wxGenericValidator, wxValidator,[],
+%% ['wxGenericValidator','~wxGenericValidator','Clone',
+%% 'TransferFromWindow','TransferToWindow']}.
+%% {class, wxTextValidator, wxValidator,[],
+%% ['wxTextValidator','Clone','GetExcludes','GetIncludes','GetStyle',
+%% 'OnChar','SetExcludes','SetIncludes','SetStyle','TransferFromWindow',
+%% 'TransferToWindow','Validate']}.
+
+{class, wxSplashScreen, wxFrame, [],
+ ['wxSplashScreen','~wxSplashScreen',%'OnCloseWindow',
+ 'GetSplashStyle', %'GetSplashWindow',
+ 'GetTimeout']}.
+
+{class, wxPanel, wxWindow, [],
+ ['wxPanel','~wxPanel',%'Create',
+ %%'GetDefaultItem',
+ 'InitDialog'%,
+ %%'OnSysColourChanged', %'SetDefaultItem','SetFocus','SetFocusIgnoringChildren'
+ ]}.
+
+{class, wxScrolledWindow, wxPanel, [],
+ ['wxScrolledWindow','~wxScrolledWindow',
+ 'CalcScrolledPosition','CalcUnscrolledPosition',%'Create',
+ 'EnableScrolling','GetScrollPixelsPerUnit','GetViewStart',
+ %%'GetVirtualSize','IsRetained',
+ 'DoPrepareDC',%'OnDraw',
+ 'PrepareDC','Scroll','SetScrollbars',
+ 'SetScrollRate',{'SetTargetWindow',[{"pushEventHandler", nowhere}]}]}.
+
+{class, wxSashWindow, wxWindow, [],
+ ['wxSashWindow','~wxSashWindow','GetSashVisible','GetMaximumSizeX',
+ 'GetMaximumSizeY','GetMinimumSizeX','GetMinimumSizeY',
+ 'SetMaximumSizeX','SetMaximumSizeY','SetMinimumSizeX','SetMinimumSizeY',
+ 'SetSashVisible' %% ,'HasBorder', 'SetSashBorder' 2.6 only
+ ]}.
+
+{class, wxSashLayoutWindow, wxSashWindow, [],
+ ['wxSashLayoutWindow','Create','GetAlignment','GetOrientation',
+ %% 'OnCalculateLayout','OnQueryLayoutInfo', Requires events for overloading ?
+ 'SetAlignment','SetDefaultSize','SetOrientation'
+ ]}.
+
+{enum, {"wxGrid","wxGridSelectionModes"}, "wxGrid::wxGrid"}.
+{class, wxGrid, wxScrolledWindow, [],
+ ['wxGrid','~wxGrid','AppendCols','AppendRows','AutoSize',%'AutoSizeColOrRow',
+ 'AutoSizeColumn','AutoSizeColumns','AutoSizeRow','AutoSizeRows','BeginBatch',
+ 'BlockToDeviceRect','CanDragColSize','CanDragRowSize','CanDragGridSize',
+ 'CanEnableCellControl',%'CanHaveAttributes',
+ 'CellToRect','ClearGrid','ClearSelection','CreateGrid',
+ 'DeleteCols','DeleteRows','DisableCellEditControl',
+ 'DisableDragColSize','DisableDragGridSize','DisableDragRowSize',
+ 'EnableCellEditControl','EnableDragColSize','EnableDragGridSize',
+ 'EnableDragRowSize','EnableEditing','EnableGridLines','EndBatch','Fit',
+ 'ForceRefresh','GetBatchCount','GetCellAlignment','GetCellBackgroundColour',
+ 'GetCellEditor','GetCellFont','GetCellRenderer','GetCellTextColour','GetCellValue',
+ %'GetColLeft',
+ 'GetColLabelAlignment','GetColLabelSize','GetColLabelValue',
+ 'GetColMinimalAcceptableWidth',%'GetColMinimalWidth',
+ %'GetColRight','GetColSize',
+ 'GetDefaultCellAlignment','GetDefaultCellBackgroundColour','GetDefaultCellFont',
+ 'GetDefaultCellTextColour','GetDefaultColLabelSize','GetDefaultColSize',
+ 'GetDefaultEditor','GetDefaultEditorForCell','GetDefaultEditorForType',
+ 'GetDefaultRenderer','GetDefaultRendererForCell','GetDefaultRendererForType',
+ 'GetDefaultRowLabelSize','GetDefaultRowSize','GetGridCursorCol','GetGridCursorRow',
+ 'GetGridLineColour','GridLinesEnabled','GetLabelBackgroundColour','GetLabelFont',
+ 'GetLabelTextColour','GetNumberCols','GetNumberRows','GetOrCreateCellAttr',
+ 'GetRowMinimalAcceptableHeight',%'GetRowMinimalHeight',
+ 'GetRowLabelAlignment',
+ 'GetRowLabelSize','GetRowLabelValue','GetRowSize','GetScrollLineX','GetScrollLineY',
+ %'GetSelectionMode',
+ 'GetSelectedCells','GetSelectedCols','GetSelectedRows',
+ 'GetSelectionBackground','GetSelectionBlockTopLeft','GetSelectionBlockBottomRight',
+ 'GetSelectionForeground',%'GetTable',
+ 'GetViewWidth',
+ 'GetGridWindow', 'GetGridRowLabelWindow',
+ 'GetGridColLabelWindow', 'GetGridCornerLabelWindow',
+ 'HideCellEditControl',
+ %'InitColWidths','InitRowHeights',
+ 'InsertCols','InsertRows',
+ 'IsCellEditControlEnabled','IsCurrentCellReadOnly','IsEditable','IsInSelection',
+ 'IsReadOnly','IsSelection','IsVisible','MakeCellVisible','MoveCursorDown',
+ 'MoveCursorLeft','MoveCursorRight','MoveCursorUp','MoveCursorDownBlock',
+ 'MoveCursorLeftBlock','MoveCursorRightBlock','MoveCursorUpBlock','MovePageDown',
+ 'MovePageUp','RegisterDataType','SaveEditControlValue','SelectAll','SelectBlock',
+ 'SelectCol', %'SelectionToDeviceRect',
+ 'SelectRow','SetCellAlignment',
+ 'SetCellBackgroundColour','SetCellEditor','SetCellFont','SetCellRenderer',
+ 'SetCellTextColour','SetCellValue','SetColAttr','SetColFormatBool',
+ 'SetColFormatNumber','SetColFormatFloat','SetColFormatCustom',
+ 'SetColLabelAlignment','SetColLabelSize','SetColLabelValue','SetColMinimalWidth',
+ 'SetColMinimalAcceptableWidth','SetColSize','SetDefaultCellAlignment',
+ 'SetDefaultCellBackgroundColour','SetDefaultCellFont','SetDefaultCellTextColour',
+ 'SetDefaultEditor','SetDefaultRenderer','SetDefaultColSize','SetDefaultRowSize',
+ 'SetGridCursor','SetGridLineColour','SetLabelBackgroundColour','SetLabelFont',
+ 'SetLabelTextColour','SetMargins',%'SetOrCalcColumnSizes','SetOrCalcRowSizes',
+ 'SetReadOnly','SetRowAttr','SetRowLabelAlignment','SetRowLabelSize',
+ 'SetRowLabelValue','SetRowMinimalHeight','SetRowMinimalAcceptableHeight',
+ 'SetRowSize','SetScrollLineX','SetScrollLineY','SetSelectionBackground',
+ 'SetSelectionForeground','SetSelectionMode',%'SetTable',
+ 'ShowCellEditControl','XToCol','XToEdgeOfCol','YToEdgeOfRow','YToRow']}.
+
+{class, wxGridCellRenderer, root, [],
+ ['Draw','GetBestSize']}.
+{class, wxGridCellEditor, root, [],
+ ['Create',
+ 'IsCreated', 'SetSize', 'Show',
+ 'PaintBackground', 'BeginEdit', 'EndEdit', 'Reset', 'StartingKey',
+ 'StartingClick', 'HandleReturn'
+ %'Destroy','Clone','~wxGridCellEditor',
+ ]}.
+
+{class, wxGridCellBoolRenderer, wxGridCellRenderer, [],
+ ['wxGridCellBoolRenderer']}.
+{class, wxGridCellBoolEditor, wxGridCellEditor, [],
+ ['wxGridCellBoolEditor', 'IsTrueValue', 'UseStringValues']}.
+
+{class, wxGridCellFloatRenderer, wxGridCellStringRenderer, [],
+ ['wxGridCellFloatRenderer', 'GetPrecision', 'GetWidth',
+ 'SetParameters', 'SetPrecision', 'SetWidth']}.
+{class, wxGridCellFloatEditor, wxGridCellEditor, [],
+ ['wxGridCellFloatEditor', 'SetParameters' ]}.
+
+{class, wxGridCellStringRenderer, wxGridCellRenderer, [], ['wxGridCellStringRenderer']}.
+{class, wxGridCellTextEditor, wxGridCellEditor, [],
+ ['wxGridCellTextEditor','SetParameters']}.
+{class, wxGridCellChoiceEditor, wxGridCellEditor, [{skip, [{'wxGridCellChoiceEditor', 3}]}],
+ ['wxGridCellChoiceEditor','SetParameters']}.
+
+{class, wxGridCellNumberRenderer, wxGridCellStringRenderer, [],
+ ['wxGridCellNumberRenderer']}.
+{class, wxGridCellNumberEditor, wxGridCellTextEditor, [],
+ ['wxGridCellNumberEditor','GetValue','SetParameters']}.
+
+{class, wxGridCellAttr, root, [],
+ [%'wxGridCellAttr','Clone','IncRef','DecRef',
+ 'SetTextColour','SetBackgroundColour','SetFont','SetAlignment','SetReadOnly',
+ 'SetRenderer','SetEditor','HasTextColour','HasBackgroundColour','HasFont',
+ 'HasAlignment','HasRenderer','HasEditor','GetTextColour','GetBackgroundColour',
+ 'GetFont','GetAlignment','GetRenderer','GetEditor','IsReadOnly','SetDefAttr']}.
+
+{enum, wxDirection, "wx"}.
+{enum, wxLayoutDirection, "wxLayout_"}.
+
+{class, wxDC, object,
+ [{skip, [{'DrawEllipse',5},{'DrawRectangle',5},
+ {'DrawRoundedRectangle',6},{'SetClippingRegion',5}]}],
+ [{'Blit',7},'CalcBoundingBox','Clear','ComputeScaleAndOrigin',{'CrossHair',1},
+ 'DestroyClippingRegion','DeviceToLogicalX','DeviceToLogicalXRel',
+ 'DeviceToLogicalY','DeviceToLogicalYRel',{'DrawArc',3},{'DrawBitmap',3},
+ {'DrawCheckMark',1},{'DrawCircle',2},'DrawEllipse',{'DrawEllipticArc',4},
+ {'DrawIcon',2},{'DrawLabel',4},{'DrawLine',2},
+ {'DrawLines', [{"n",{c_only,{length,"points"}}}]},
+ {'DrawPolygon', [{"n",{c_only,{length,"points"}}}]}, %'DrawPolyPolygon',
+ {'DrawPoint',1},'DrawRectangle',
+ {'DrawRotatedText',3}, 'DrawRoundedRectangle',%'DrawSpline',
+ {'DrawText',2},
+ 'EndDoc','EndPage',{'FloodFill',3},'GetBackground','GetBackgroundMode',
+ 'GetBrush','GetCharHeight','GetCharWidth',{'GetClippingBox',1},'GetFont',
+ 'GetLayoutDirection','GetLogicalFunction','GetMapMode','GetMultiLineTextExtent',
+ 'GetPartialTextExtents','GetPen',{'GetPixel',2},'GetPPI','GetSize','GetSizeMM',
+ 'GetTextBackground','GetTextExtent','GetTextForeground',
+ 'GetUserScale','GradientFillConcentric','GradientFillLinear',
+ 'LogicalToDeviceX','LogicalToDeviceXRel','LogicalToDeviceY','LogicalToDeviceYRel',
+ 'MaxX','MaxY','MinX','MinY','IsOk','ResetBoundingBox','SetAxisOrientation',
+ 'SetBackground','SetBackgroundMode','SetBrush','SetClippingRegion','SetDeviceOrigin',
+ 'SetFont','SetLayoutDirection','SetLogicalFunction','SetMapMode', 'SetPalette',
+ 'SetPen','SetTextBackground','SetTextForeground','SetUserScale','StartDoc','StartPage']}.
+
+{class,wxMirrorDC, wxDC, [], ['wxMirrorDC', '~wxMirrorDC']}.
+{class,wxScreenDC, wxDC, [], ['wxScreenDC', '~wxScreenDC']}.
+{class,wxPostScriptDC,wxDC,[],['wxPostScriptDC','~wxPostScriptDC','SetResolution','GetResolution']}.
+{class,wxWindowDC, wxDC, [], ['wxWindowDC', '~wxWindowDC']}.
+{class,wxClientDC,wxWindowDC,[],['wxClientDC', '~wxClientDC']}.
+{class,wxPaintDC, wxWindowDC, [], ['wxPaintDC', '~wxPaintDC']}.
+%%{class,wxPrinterDC, wxDC, [], ['wxPrinterDC','GetPaperRect']}. Not in GTK
+{class,wxMemoryDC, wxDC, [], ['wxMemoryDC', '~wxMemoryDC','SelectObject','SelectObjectAsSource']}.
+{class,wxBufferedDC,wxMemoryDC,[],['wxBufferedDC','~wxBufferedDC','Init']}.
+{class,wxBufferedPaintDC,wxBufferedDC,[],['wxBufferedPaintDC', '~wxBufferedPaintDC']}.
+%% Only a typedef!
+%%{class,wxAutoBufferedPaintDC,wxBufferedPaintDC,[],['wxAutoBufferedPaintDC']}.
+
+{class, wxGraphicsObject, object, [{ifdef, wxUSE_GRAPHICS_CONTEXT}],
+ ['GetRenderer','IsNull']}.
+{class, wxGraphicsContext, wxGraphicsObject, [{ifdef, wxUSE_GRAPHICS_CONTEXT}],
+ ['Create', %%CreateFromNative CreateFromNativeWindow
+ 'CreatePen','CreateBrush','CreateRadialGradientBrush',
+ 'CreateLinearGradientBrush','CreateFont','CreateMatrix',
+ 'CreatePath','Clip','ResetClip',
+ 'DrawBitmap','DrawEllipse','DrawIcon','DrawLines','DrawPath',
+ 'DrawRectangle','DrawRoundedRectangle','DrawText','FillPath',
+ 'StrokePath','GetNativeContext','GetPartialTextExtents',
+ 'GetTextExtent','Rotate','Scale','Translate',
+ 'GetTransform','SetTransform','ConcatTransform',
+ 'SetBrush','SetFont','SetPen','StrokeLine','StrokeLines']}.
+{class, wxGraphicsMatrix, wxGraphicsObject, [{ifdef, wxUSE_GRAPHICS_CONTEXT}],
+ ['Concat','Get','GetNativeMatrix','Invert','IsEqual','IsIdentity',
+ 'Rotate','Scale','Translate','Set','TransformPoint','TransformDistance']}.
+{class, wxGraphicsPath, wxGraphicsObject, [{ifdef, wxUSE_GRAPHICS_CONTEXT}],
+ ['MoveToPoint','AddArc','AddArcToPoint','AddCircle','AddCurveToPoint',
+ 'AddEllipse','AddLineToPoint','AddPath','AddQuadCurveToPoint',
+ 'AddRectangle','AddRoundedRectangle','CloseSubpath','Contains',
+ 'GetBox','GetCurrentPoint','Transform'
+ %'GetNativePath','UnGetNativePath'
+ ]}.
+{class, wxGraphicsRenderer, object, [{ifdef, wxUSE_GRAPHICS_CONTEXT}],
+ ['GetDefaultRenderer','CreateContext',
+ %%'CreateContextFromNativeContext', 'CreateContextFromNativeWindow',
+ 'CreatePen','CreateBrush',
+ 'CreateLinearGradientBrush','CreateRadialGradientBrush','CreateFont',
+ 'CreateMatrix','CreatePath']}.
+
+{class, wxGraphicsPen, wxGraphicsObject,[{ifdef, wxUSE_GRAPHICS_CONTEXT}], []}.
+{class, wxGraphicsBrush,wxGraphicsObject,[{ifdef, wxUSE_GRAPHICS_CONTEXT}], []}.
+{class, wxGraphicsFont, wxGraphicsObject,[{ifdef, wxUSE_GRAPHICS_CONTEXT}], []}.
+
+{class, wxMenuBar, wxWindow, [{skip, [{wxMenuBar,4}]}],
+ [
+ 'wxMenuBar','~wxMenuBar','Append','Check','Enable','EnableTop',
+ 'FindMenu', 'FindMenuItem',{'FindItem', [{"menu",skip}]},'GetHelpString',
+ 'GetLabel','GetLabelTop','GetMenu','GetMenuCount','Insert','IsChecked',
+ 'IsEnabled',%'Refresh',
+ 'Remove','Replace','SetHelpString',
+ 'SetLabel','SetLabelTop']}.
+
+{class, wxControl, wxWindow, [], [% 'Command','GetLabelText',
+ 'GetLabel','SetLabel']}.
+
+{class, wxControlWithItems, wxControl,
+ [{skip, [{'GetClientObject',1},{'SetClientObject',2}]}],
+ [
+ {'Append',[{"clientData",[{skip_member, void}]},
+ {"strings", [{erl_func, "appendStrings"}]}]},
+ 'Clear','Delete','FindString',
+ %% 'GetClientData','SetClientData',
+ {'GetClientObject', [{"n", [{erl_func, "getClientData"}]}]},
+ {'SetClientObject', [{"n", [{erl_func, "setClientData"}]}]},
+ 'GetCount','GetSelection','GetString','GetStringSelection',
+ {'Insert',[{"clientData",[{skip_member, void}]}]},%'Number',
+ 'IsEmpty','Select','SetSelection','SetString','SetStringSelection'
+ ]}.
+
+{enum, wxItemKind, "wxITEM_"}.
+
+{class, wxMenu, wxEvtHandler, [],
+ ['wxMenu','~wxMenu',{'Append', [{"text",{def,none}}]},
+ 'AppendCheckItem','AppendRadioItem',
+ 'AppendSeparator','Break','Check','Delete','Destroy','Enable',
+ {'FindItem', [{"menu",skip}]},'FindItemByPosition','GetHelpString','GetLabel',
+ 'GetMenuItemCount','GetMenuItems','GetTitle','Insert',
+ 'InsertCheckItem','InsertRadioItem','InsertSeparator','IsChecked',
+ 'IsEnabled','Prepend','PrependCheckItem','PrependRadioItem',
+ 'PrependSeparator','Remove','SetHelpString','SetLabel','SetTitle']}.
+
+{class, wxMenuItem, object, [],
+ [{'wxMenuItem',[{"isCheckable",skip_member}]},
+ '~wxMenuItem','Check','Enable',
+ %%'GetBackgroundColour',
+ 'GetBitmap', %%'GetFont',
+ 'GetHelp','GetId','GetKind','GetLabel','GetLabelFromText',
+ %%'GetMarginWidth','GetTextColour',
+ 'GetMenu',%'GetName', class clash will not compile on windows
+ 'GetText',
+ 'GetSubMenu','IsCheckable','IsChecked','IsEnabled',
+ 'IsSeparator','IsSubMenu',
+ %%'SetBackgroundColour',
+ 'SetBitmap', %%'SetBitmaps',%%'SetFont',
+ 'SetHelp','SetMenu','SetSubMenu','SetText'
+ %%'SetTextColour',%'SetMarginWidth'
+ ]}.
+
+{class, wxToolBar, wxControl, [],
+ ['AddControl','AddSeparator','AddTool','AddCheckTool','AddRadioTool',
+ 'DeleteTool','DeleteToolByPos','EnableTool','FindById','FindControl',
+ 'FindToolForPosition','GetToolSize','GetToolBitmapSize','GetMargins',
+ %%'GetToolClientData' , %%'SetToolClientData',
+ 'GetToolEnabled','GetToolLongHelp','GetToolPacking',
+ 'GetToolPos','GetToolSeparation','GetToolShortHelp','GetToolState',
+ 'InsertControl','InsertSeparator','InsertTool',
+ %%'OnLeftClick','OnMouseEnter','OnRightClick',
+ 'Realize','RemoveTool', %'SetBitmapResource',
+ {'SetMargins',2},'SetToolBitmapSize',
+ 'SetToolLongHelp',
+ 'SetToolPacking','SetToolShortHelp','SetToolSeparation','ToggleTool'
+ ]}.
+
+{class, wxStatusBarGeneric, wxWindow,
+ [{alias, [{wxStatusBarGeneric, wxStatusBar}]}],
+ [{'wxStatusBar',[{"size", skip_member}]},
+ '~wxStatusBar',
+ {'Create',[{"size", skip_member}]},
+ 'GetFieldRect','GetFieldsCount','GetStatusText','PopStatusText',
+ 'PushStatusText',
+ {'SetFieldsCount', [{"number", {def,none}},
+ {"widths", [{single, array}, {def, "(int *) NULL"}]}]},
+ 'SetMinHeight','SetStatusText',
+ {'SetStatusWidths', [{"n",{c_only,{length,"widths_field"}}}]},
+ {'SetStatusStyles', [{"n",{c_only,{length,"styles"}}}]}
+ ]}.
+
+{class, wxBitmap, object,[],
+ [{'wxBitmap',[{"bits",[in,{base,binary}, {single,true}]},{{1,"bits"},skip_member}]},
+ '~wxBitmap',%'AddHandler','CleanUpHandlers',
+ 'ConvertToImage',
+ 'CopyFromIcon','Create',%'FindHandler',
+ 'GetDepth','GetHeight',%'GetHandlers',
+ 'GetPalette',
+ 'GetMask','GetWidth','GetSubBitmap',
+ %%'InitStandardHandlers','InsertHandler','RemoveHandler',
+ 'LoadFile','Ok','SaveFile','SetDepth',
+ 'SetHeight','SetMask','SetPalette',
+ 'SetWidth']}.
+
+{class, wxIcon, wxBitmap,[],
+ [%%{'wxIcon',[{"bits",[in,{base,binary}]}]},
+ {'wxIcon',[{"bits",skip_member}]}, %% bits is char** in gtk and char[] in mac!!!
+ 'CopyFromBitmap','~wxIcon']}.
+
+{class, wxIconBundle, root, [],
+ ['wxIconBundle','~wxIconBundle','AddIcon','GetIcon']}.
+
+{class, wxCursor, wxBitmap,[],
+ [{'wxCursor',[{"bits",[in,{base,binary},{single,true}]},
+ {"maskBits",nowhere},{"fg",nowhere},{"bg",nowhere}]},
+ '~wxCursor','Ok']}.
+
+{class, wxMask, object, [], ['wxMask','~wxMask','Create']}.
+
+{class, wxImage, object, [{doc,"All (default) image handlers are initialized."}],
+ [{'wxImage',[{"xpmData",skip_member},
+ {"data",[in,{base,binary}]},
+ {"alpha",[in,{base,binary}]},
+ {{4,pre_hook},
+ "if(!static_data) {"
+ "data = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ "memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);}"},
+ {{5,pre_hook},
+ "if(!static_data) {"
+ " data = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ " alpha = (unsigned char *) malloc(Ecmd.bin[1]->size);"
+ " memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);"
+ " memcpy(alpha,Ecmd.bin[1]->base,Ecmd.bin[1]->size);}"}
+ ]},
+ '~wxImage',%'AddHandler',
+ 'Blur','BlurHorizontal','BlurVertical',
+ %'CleanUpHandlers',%'ComputeHistogram',
+ 'ConvertAlphaToMask','ConvertToGreyscale',
+ 'ConvertToMono','Copy',
+ {'Create',[{"xpmData",skip_member},
+ {"data",[in,{base,binary}]},
+ {"alpha",[in,{base,binary}]},
+ {{4,pre_hook},
+ "if(!static_data) {"
+ "data = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ "memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);}"},
+ {{5,pre_hook},
+ "if(!static_data) {"
+ " data = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ " alpha = (unsigned char *) malloc(Ecmd.bin[1]->size);"
+ " memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);"
+ " memcpy(alpha,Ecmd.bin[1]->base,Ecmd.bin[1]->size);}"}
+ ]},
+ 'Destroy','FindFirstUnusedColour', % 'FindHandler',
+ 'GetImageExtWildcard',
+ {'GetAlpha',[{{0,return},{base,{binary,"(This->GetWidth()*This->GetHeight())"}}}]},
+ 'GetBlue',
+ {'GetData', [{return,{base,{binary,"(This->GetWidth()*This->GetHeight()*3)"}}}]},
+ 'GetGreen', 'GetImageCount', %'GetHandlers',
+ 'GetHeight','GetMaskBlue','GetMaskGreen',
+ 'GetMaskRed','GetOrFindMaskColour','GetPalette',
+ 'GetRed','GetSubImage', 'GetWidth',%%':HSVValue', 'HSVtoRGB',
+ 'HasAlpha','HasMask','GetOption','GetOptionInt','HasOption',
+ 'InitAlpha','InitStandardHandlers',%'InsertHandler',
+ 'IsTransparent', 'LoadFile','Ok',%%RGBValue 'RGBtoHSV',
+ 'RemoveHandler','Mirror','Replace','Rescale','Resize',
+ 'Rotate', 'RotateHue',
+ 'Rotate90','SaveFile','Scale','Size',
+ {'SetAlpha', [{{2,"alpha"},[in,{base,binary}, {def, none}]},
+ {{2,pre_hook},
+ "if(!static_data) {"
+ "alpha = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ "memcpy(alpha,Ecmd.bin[0]->base,Ecmd.bin[0]->size);}"}
+ ]},
+ {'SetData', [{"data",[in,{base,binary}]},
+ {pre_hook,
+ "if(!static_data) {"
+ "data = (unsigned char *) malloc(Ecmd.bin[0]->size);"
+ "memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);}"}
+ ]},
+ 'SetMask','SetMaskColour','SetMaskFromImage','SetOption',
+ 'SetPalette',
+ 'SetRGB']}.
+
+{class, wxBrush, object, [],
+ ['wxBrush','~wxBrush','GetColour','GetStipple','GetStyle',
+ 'IsHatch','IsOk','SetColour','SetStipple','SetStyle']}.
+
+{class, wxPen, object, [],
+ ['wxPen','~wxPen','GetCap','GetColour',
+ %%'GetDashes', %'GetStipple',
+ 'GetJoin', 'GetStyle','GetWidth','IsOk','SetCap','SetColour',
+ %%'SetDashes', %'SetStipple',
+ 'SetJoin', 'SetStyle','SetWidth']}.
+
+{enum, wxRegionContain, "wx"}.
+
+{class, wxRegion, object,
+ [{skip, [{wxRegion,3}]}], % Hmm compiler can't handle that
+ [{'wxRegion',[{"region", [skip_member]}]},
+ '~wxRegion','Clear','Contains','ConvertToBitmap',
+ {'GetBox',0},'Intersect','IsEmpty','Subtract','Offset',
+ 'Union','Xor']}.
+
+{class, wxAcceleratorTable, object,
+ [{skip, [{wxAcceleratorTable,1}]}],
+ ['wxAcceleratorTable','~wxAcceleratorTable','Ok']}.
+
+{class, wxAcceleratorEntry, root, [],
+ ['wxAcceleratorEntry','GetCommand','GetFlags','GetKeyCode','Set']}.
+
+{class, wxCaret, root,
+ [{skip, [{wxCaret,0}]}],
+ ['wxCaret','~wxCaret','Create','GetBlinkTime','GetPosition','GetSize','GetWindow','Hide','IsOk',
+ 'IsVisible','Move','SetBlinkTime','SetSize','Show']}.
+
+{enum, wxFlexSizerGrowMode, "wxFLEX_GROWMODE_"}.
+
+{class, wxSizer, object, [],
+ [{'Add',[{"item", skip_member}]},
+ 'AddSpacer','AddStretchSpacer','CalcMin','Clear','Detach','Fit','FitInside',
+ 'GetChildren',%'GetContainingWindow',
+ 'GetItem','GetSize','GetPosition','GetMinSize',
+ 'Hide','Insert','InsertSpacer','InsertStretchSpacer','IsShown','Layout','Prepend',
+ 'PrependSpacer','PrependStretchSpacer','RecalcSizes','Remove', 'Replace',
+ 'SetDimension','SetMinSize','SetItemMinSize','SetSizeHints',
+ 'SetVirtualSizeHints','Show']}.
+
+{class, wxSizerFlags, root, [],
+ ['wxSizerFlags','Align','Border','Center','Centre',%'DoubleBorder','DoubleHorzBorder',
+ 'Expand',%'GetDefaultBorder',
+ 'Left','Proportion','Right'%,'TripleBorder'
+ ]}.
+
+{class, wxSizerItem, object, [],
+ ['wxSizerItem','~wxSizerItem','CalcMin','DeleteWindows','DetachSizer','GetBorder',
+ 'GetFlag','GetMinSize','GetPosition','GetProportion','GetRatio','GetRect','GetSize',
+ 'GetSizer','GetSpacer','GetUserData','GetWindow','IsSizer','IsShown','IsSpacer',
+ 'IsWindow','SetBorder','SetDimension','SetFlag','SetInitSize','SetMinSize',
+ 'SetProportion','SetRatio','SetSizer','SetSpacer','SetWindow','Show']}.
+
+{class,wxBoxSizer,wxSizer,[],['wxBoxSizer','GetOrientation']}.
+{class,wxStaticBoxSizer,wxBoxSizer,[],['wxStaticBoxSizer','GetStaticBox']}.
+
+{class,wxGridSizer,wxSizer,[],
+ ['wxGridSizer','GetCols','GetHGap','GetRows','GetVGap','SetCols','SetHGap',
+ 'SetRows','SetVGap']}.
+
+{class,wxFlexGridSizer,wxGridSizer,[],
+ ['wxFlexGridSizer','AddGrowableCol','AddGrowableRow','GetFlexibleDirection',
+ 'GetNonFlexibleGrowMode','RemoveGrowableCol','RemoveGrowableRow',
+ 'SetFlexibleDirection','SetNonFlexibleGrowMode']}.
+
+{class,wxGridBagSizer,wxFlexGridSizer,[],
+ ['wxGridBagSizer','Add','CalcMin','CheckForIntersection','FindItem',
+ 'FindItemAtPoint','FindItemAtPosition','FindItemWithData','GetCellSize',
+ 'GetEmptyCellSize','GetItemPosition','GetItemSpan',
+ 'SetEmptyCellSize','SetItemPosition','SetItemSpan']}.
+
+{class,wxGBSizerItem,wxSizerItem,[],[]}.
+%% [{skip, [{'GetEndPos',3},{'GetPos',3},{'GetSpan',3}]}],
+%% ['wxGBSizerItem','GetEndPos','GetPos','GetSpan','Intersects','SetPos','SetSpan']}.
+
+{class,wxStdDialogButtonSizer,wxBoxSizer,[],
+ ['wxStdDialogButtonSizer','~wxStdDialogButtonSizer','AddButton','Realize',
+ 'SetAffirmativeButton','SetCancelButton','SetNegativeButton']}.
+
+{enum, wxFontFamily, "wxFONTFAMILY_"}.
+{enum, wxFontStyle, "wxFONTSTYLE_"}.
+{enum, wxFontEncoding,"wxFONTENCODING_"}.
+
+{class, wxFont, object, [],
+ [{'wxFont',[{"info", [skip_member]},{"family",{base,{enum,"wxFontFamily"}}},
+ {"style",{base,{enum,"wxFontStyle"}}}]},
+ '~wxFont','IsFixedWidth','GetDefaultEncoding','GetFaceName',
+ {'GetFamily',[{return, {base,{enum,"wxFontFamily"}}}]},
+ 'GetNativeFontInfoDesc','GetNativeFontInfoUserDesc','GetPointSize',
+ {'GetStyle',[{return, {base,{enum,"wxFontStyle"}}}]},
+ 'GetUnderlined','GetWeight',%% {'New',[{"nativeFontDesc", [skip_member]}]},
+ 'Ok','SetDefaultEncoding','SetFaceName',
+ {'SetFamily',[{"family", {base,{enum,"wxFontFamily"}}}]},
+ %%'SetNativeFontInfo','SetNativeFontInfoUserDesc',
+ 'SetPointSize',
+ {'SetStyle', [{"style", {base,{enum,"wxFontStyle"}}}]},
+ 'SetUnderlined','SetWeight']}.
+
+{class, wxToolTip, object, [],
+ ['Enable','SetDelay','wxToolTip','SetTip','GetTip','GetWindow']}.
+{class, wxButton, wxControl, [],
+ ['wxButton','~wxButton','Create',%'GetLabel',
+ 'GetDefaultSize', 'SetDefault','SetLabel']}.
+{class, wxBitmapButton, wxButton, [],
+ ['wxBitmapButton','~wxBitmapButton','Create','GetBitmapDisabled',
+ 'GetBitmapFocus','GetBitmapLabel','GetBitmapSelected',
+ 'SetBitmapDisabled','SetBitmapFocus','SetBitmapLabel','SetBitmapSelected']}.
+{class, wxToggleButton, wxControl, [],
+ ['wxToggleButton','~wxToggleButton','Create','GetValue','SetValue']}.
+
+%%{enum, {"wxDateTime", "WeekDay"}, "wxDateTime::WeekDay"}.
+{class, wxDateTime, root, [ignore], []}. %% Only for ifdefs and enums
+
+{class, wxCalendarCtrl, wxControl, [],
+ ['wxCalendarCtrl','Create','~wxCalendarCtrl','SetDate','GetDate',
+ 'EnableYearChange','EnableMonthChange','EnableHolidayDisplay',
+ 'SetHeaderColours','GetHeaderColourFg','GetHeaderColourBg',
+ 'SetHighlightColours','GetHighlightColourFg','GetHighlightColourBg',
+ 'SetHolidayColours','GetHolidayColourFg','GetHolidayColourBg',
+ 'GetAttr','SetAttr','SetHoliday','ResetAttr',
+ {'HitTest', [{"date", [out]}, {"wd", [out]}]}
+ ]}.
+
+{class, wxCalendarDateAttr, root, [],
+ ['wxCalendarDateAttr',
+ 'SetTextColour','SetBackgroundColour','SetBorderColour',
+ 'SetFont','SetBorder','SetHoliday',
+ 'HasTextColour','HasBackgroundColour','HasBorderColour',
+ 'HasFont','HasBorder','IsHoliday','GetTextColour',
+ 'GetBackgroundColour','GetBorderColour','GetFont','GetBorder']}.
+
+{enum, wxCheckBoxState, "wxCHK_"}.
+
+{class, wxCheckBox, wxControl, [],
+ ['wxCheckBox','~wxCheckBox','Create','GetValue','Get3StateValue',
+ 'Is3rdStateAllowedForUser','Is3State','IsChecked','SetValue',
+ 'Set3StateValue']}.
+{class, wxCheckListBox, wxListBox, [{skip,[{wxCheckListBox,8}]}],
+ [{'wxCheckListBox',[{"pos",{def, "wxDefaultPosition"}},
+ {"size",{def, "wxDefaultSize"}},
+ {"choices",{def, ""}}]},
+ '~wxCheckListBox','Check','IsChecked']}.
+{class, wxChoice, wxControlWithItems, [{skip,[{wxChoice,8}, {'Create',9}]}],
+ [{'wxChoice', [{"pos",{def, "wxDefaultPosition"}},
+ {"size",{def, "wxDefaultSize"}},
+ {"choices",{def, ""}}]},
+ '~wxChoice','Create','Delete','GetColumns',
+ %%'GetCurrentSelection',
+ 'SetColumns']}.
+{class, wxComboBox, wxControlWithItems, [{skip,[{wxComboBox,9},{'Create',10}]}],
+ [{'wxComboBox',
+ [{"pos",{def, "wxDefaultPosition"}},
+ {"size",{def, "wxDefaultSize"}},
+ {"value", {def, "wxEmptyString"}},
+ {"choices",{def, ""}}]},
+ '~wxComboBox','Create','CanCopy','CanCut','CanPaste',
+ 'CanRedo','CanUndo','Copy','Cut','GetInsertionPoint','GetLastPosition',
+ 'GetValue','Paste','Redo','Replace','Remove','SetInsertionPoint',
+ 'SetInsertionPointEnd','SetSelection','SetValue','Undo']}.
+{class, wxGauge, wxControl, [],
+ ['wxGauge','~wxGauge','Create','GetBezelFace','GetRange','GetShadowWidth',
+ 'GetValue','IsVertical','SetBezelFace','SetRange','SetShadowWidth','SetValue',
+ 'Pulse']}.
+{class, wxGenericDirCtrl, wxControl, [],
+ ['wxGenericDirCtrl','~wxGenericDirCtrl','Create','Init','CollapseTree',
+ 'ExpandPath','GetDefaultPath','GetPath','GetFilePath', 'GetFilter',
+ 'GetFilterIndex',%'GetFilterListCtrl',
+ 'GetRootId','GetTreeCtrl',
+ 'ReCreateTree','SetDefaultPath','SetFilter','SetFilterIndex','SetPath']}.
+%% {class, wxHtmlListBox, wxControl, [], []}.
+{class, wxStaticBox, wxControl, [], ['wxStaticBox','~wxStaticBox','Create']}.
+{class, wxStaticLine, wxControl, [], ['wxStaticLine','~wxStaticLine','Create',
+ 'IsVertical', 'GetDefaultSize']}.
+
+{enum, wxListColumnFormat, "wxLIST_"}.
+
+{class, wxListBox, wxControlWithItems,
+ [{skip,[{wxListBox,8}, {'Create',9}, {'Set',4}]}],
+ [{'wxListBox',[{"pos",{def, "wxDefaultPosition"}},
+ {"size",{def, "wxDefaultSize"}},
+ {"choices",{def, ""}}]},
+ '~wxListBox','Create','Deselect',{'GetSelections',[{"aSelections", [out]}]},
+ {'InsertItems',2},'IsSelected',{'Set',[{"clientData",[skip]}]},
+ 'HitTest',
+ 'SetFirstItem']}.
+
+{class, wxListCtrl, wxControl, [],
+ ['wxListCtrl','~wxListCtrl','Arrange','AssignImageList','ClearAll','Create',
+ 'DeleteAllItems','DeleteColumn','DeleteItem',
+ {'EditLabel',[{"textControlClass",nowhere}]},
+ 'EnsureVisible',
+ {'FindItem',3},'GetColumn','GetColumnCount','GetColumnWidth','GetCountPerPage',
+ %%'GetEditControl',
+ 'GetImageList','GetItem','GetItemBackgroundColour',
+ 'GetItemCount',{'GetItemData', [{return, {base,int}}]},
+ 'GetItemFont','GetItemPosition','GetItemRect',
+ 'GetItemSpacing','GetItemState','GetItemText','GetItemTextColour',
+ 'GetNextItem','GetSelectedItemCount','GetTextColour','GetTopItem',
+ 'GetViewRect',{'HitTest',[{"pSubItem",nowhere}]},'InsertColumn','InsertItem',
+ %%'OnGetItemAttr', 'OnGetItemImage','OnGetItemText',
+ 'RefreshItem','RefreshItems','ScrollList',
+ 'SetBackgroundColour','SetColumn','SetColumnWidth','SetImageList','SetItem',
+ 'SetItemBackgroundColour','SetItemCount','SetItemData','SetItemFont',
+ 'SetItemImage','SetItemColumnImage','SetItemPosition','SetItemState',
+ 'SetItemText','SetItemTextColour','SetSingleStyle','SetTextColour',
+ 'SetWindowStyleFlag',{'SortItems', [{where, taylormade}]}
+ ]}.
+{class, wxListView, wxControl, [],
+ ['ClearColumnImage','Focus','GetFirstSelected','GetFocusedItem',
+ 'GetNextSelected','IsSelected','Select','SetColumnImage']}.
+
+{class, wxListItem, object, [],
+ ['wxListItem','~wxListItem','Clear','GetAlign','GetBackgroundColour','GetColumn', %'GetData',
+ 'GetFont','GetId','GetImage','GetMask','GetState',
+ 'GetText','GetTextColour','GetWidth','SetAlign','SetBackgroundColour',
+ 'SetColumn',%'SetData',
+ 'SetFont','SetId','SetImage','SetMask','SetState',
+ 'SetStateMask','SetText','SetTextColour','SetWidth']}.
+
+{class, wxImageList, object, [{skip, [{'Create',1}]}], %% No create/0 on windows
+ ['wxImageList','~wxImageList','Add','Create','Draw','GetBitmap','GetIcon','GetImageCount',
+ 'GetSize','Remove','RemoveAll','Replace']}.
+
+{enum, wxTextAttrAlignment, "wxTEXT_ALIGNMENT_"}.
+
+{class, wxTextAttr, root, [],
+ ['wxTextAttr','GetAlignment','GetBackgroundColour','GetFont','GetLeftIndent',
+ 'GetLeftSubIndent','GetRightIndent','GetTabs','GetTextColour',
+ 'HasBackgroundColour','HasFont','HasTextColour','GetFlags','IsDefault',
+ 'SetAlignment','SetBackgroundColour','SetFlags','SetFont','SetLeftIndent',
+ 'SetRightIndent','SetTabs','SetTextColour']}.
+
+{class, wxTextCtrl, wxControl, [],
+ ['wxTextCtrl','~wxTextCtrl','AppendText','CanCopy','CanCut','CanPaste',
+ 'CanRedo','CanUndo','Clear','Copy','Create','Cut','DiscardEdits',
+ 'EmulateKeyPress','GetDefaultStyle','GetInsertionPoint','GetLastPosition',
+ 'GetLineLength','GetLineText','GetNumberOfLines','GetRange','GetSelection',
+ 'GetStringSelection','GetStyle','GetValue',%'HitTest', %no Mac
+ 'IsEditable',
+ 'IsModified','IsMultiLine','IsSingleLine','LoadFile','MarkDirty',
+ %%'OnDropFiles',
+ 'Paste','PositionToXY','Redo','Remove','Replace',
+ 'SaveFile','SetDefaultStyle','SetEditable','SetInsertionPoint',
+ 'SetInsertionPointEnd','SetMaxLength','SetSelection','SetStyle',
+ 'SetValue','ShowPosition','Undo','WriteText','XYToPosition']}.
+
+{class,wxNotebook, wxControl, [],
+ ['wxNotebook','~wxNotebook','AddPage','AdvanceSelection',
+ 'AssignImageList','Create','DeleteAllPages',
+ %% Remove 'page' only defined for motif
+ {'DeletePage', [{"page", skip_member}]}, {'RemovePage', [{"page", skip_member}]},
+ 'GetCurrentPage','GetImageList','GetPage','GetPageCount',
+ 'GetPageImage','GetPageText','GetRowCount','GetSelection',
+ 'GetThemeBackgroundColour',
+ 'HitTest',
+ 'InsertPage',
+ %%'OnSelChange', callback
+ 'SetImageList','SetPadding','SetPageSize',
+ 'SetPageImage','SetPageText','SetSelection','ChangeSelection']}.
+
+{class,wxChoicebook, wxControl, [],
+ ['wxChoicebook','~wxChoicebook','AddPage','AdvanceSelection',
+ 'AssignImageList','Create','DeleteAllPages',
+ %% Remove 'page' only defined for motif
+ {'DeletePage', [{"page", skip_member}]}, {'RemovePage', [{"page", skip_member}]},
+ 'GetCurrentPage','GetImageList','GetPage','GetPageCount',
+ 'GetPageImage','GetPageText',
+ %% NOTEBOOK ONLY? 'GetRowCount', 'GetThemeBackgroundColour','SetPadding'
+ 'GetSelection',
+ 'HitTest',
+ 'InsertPage',
+ %%'OnSelChange', callback
+ 'SetImageList','SetPageSize',
+ 'SetPageImage','SetPageText','SetSelection','ChangeSelection']}.
+
+{class,wxToolbook, wxControl, [],
+ ['wxToolbook','~wxToolbook','AddPage','AdvanceSelection',
+ 'AssignImageList','Create','DeleteAllPages',
+ %% Remove 'page' only defined for motif
+ {'DeletePage', [{"page", skip_member}]}, {'RemovePage', [{"page", skip_member}]},
+ 'GetCurrentPage','GetImageList','GetPage','GetPageCount',
+ 'GetPageImage','GetPageText',
+ %% NOTEBOOK ONLY? 'GetRowCount', 'GetThemeBackgroundColour','SetPadding'
+ 'GetSelection',
+ 'HitTest',
+ 'InsertPage',
+ %%'OnSelChange', callback
+ 'SetImageList','SetPageSize',
+ 'SetPageImage','SetPageText','SetSelection','ChangeSelection']}.
+
+{class,wxListbook, wxControl, [],
+ ['wxListbook','~wxListbook','AddPage','AdvanceSelection',
+ 'AssignImageList','Create','DeleteAllPages',
+ %% Remove 'page' only defined for motif
+ {'DeletePage', [{"page", skip_member}]}, {'RemovePage', [{"page", skip_member}]},
+ 'GetCurrentPage','GetImageList','GetPage','GetPageCount',
+ 'GetPageImage','GetPageText',
+ %% NOTEBOOK ONLY? 'GetRowCount', 'GetThemeBackgroundColour','SetPadding'
+ 'GetSelection',
+ 'HitTest',
+ 'InsertPage',
+ %%'OnSelChange', callback
+ 'SetImageList','SetPageSize',
+ 'SetPageImage','SetPageText','SetSelection','ChangeSelection']}.
+
+{class,wxTreebook, wxControl, [],
+ ['wxTreebook','~wxTreebook','AddPage','AdvanceSelection',
+ 'AssignImageList','Create','DeleteAllPages',
+ %% Remove 'page' only defined for motif
+ {'DeletePage', [{"page", skip_member}]}, {'RemovePage', [{"page", skip_member}]},
+ 'GetCurrentPage','GetImageList','GetPage','GetPageCount',
+ 'GetPageImage','GetPageText',
+ %% NOTEBOOK ONLY? 'GetRowCount', 'GetThemeBackgroundColour','SetPadding'
+ 'GetSelection',
+ 'ExpandNode', 'IsNodeExpanded',
+ 'HitTest',
+ 'InsertPage','InsertSubPage',
+ %%'OnSelChange', callback
+ 'SetImageList','SetPageSize',
+ 'SetPageImage','SetPageText','SetSelection','ChangeSelection']}.
+
+
+{enum, wxTreeItemIcon, "wxTreeItemIcon_"}.
+
+{class, wxTreeCtrl, wxControl, [],
+ ['wxTreeCtrl','~wxTreeCtrl','AddRoot','AppendItem',
+ %% Not on Windows 'AssignButtonsImageList','GetButtonsImageList','SetButtonsImageList'
+ 'AssignImageList','AssignStateImageList','Collapse','CollapseAndReset',
+ 'Create','Delete','DeleteAllItems','DeleteChildren',{'EditLabel',1},
+ %'EndEditLabel',
+ 'EnsureVisible','Expand','GetBoundingRect',
+ 'GetChildrenCount','GetCount','GetEditControl',
+ %'GetFirstChild',
+ 'GetFirstVisibleItem',{'GetImageList',0},'GetIndent',
+ 'GetItemBackgroundColour','GetItemData','GetItemFont','GetItemImage',
+ 'GetItemText','GetItemTextColour','GetLastChild', % 'GetNextChild',
+ 'GetNextSibling','GetNextVisible','GetItemParent',%'GetParent',
+ 'GetPrevSibling','GetPrevVisible','GetRootItem',
+ 'GetSelection',{'GetSelections', [{return, nowhere},{"val",out}]},
+ 'GetStateImageList',{'HitTest', 1},
+ {'InsertItem',[{"insertAfter", skip_member}]},
+ 'IsBold','IsExpanded','IsSelected','IsVisible','ItemHasChildren',
+ %%'OnCompareItems',
+ 'PrependItem','ScrollTo','SelectItem',
+ 'SetIndent',{'SetImageList',1},'SetItemBackgroundColour',
+ 'SetItemBold','SetItemData','SetItemDropHighlight','SetItemFont',
+ 'SetItemHasChildren','SetItemImage','SetItemText',
+ 'SetItemTextColour','SetStateImageList','SetWindowStyle',{'SortChildren',1},
+ 'Toggle','ToggleItemSelection','Unselect','UnselectAll','UnselectItem']}.
+
+{class, wxScrollBar, wxControl, [],
+ ['wxScrollBar','~wxScrollBar','Create','GetRange','GetPageSize',
+ 'GetThumbPosition','GetThumbSize','SetThumbPosition','SetScrollbar']}.
+{class, wxSpinButton, wxControl, [],
+ ['wxSpinButton','~wxSpinButton','Create','GetMax','GetMin','GetValue','SetRange','SetValue']}.
+{class, wxSpinCtrl, wxControl, [],
+ ['wxSpinCtrl','Create','SetValue','GetValue','SetRange','SetSelection','GetMin','GetMax']}.
+
+{class, wxStaticText, wxControl, [],
+ ['wxStaticText','Create','GetLabel','SetLabel','Wrap']}.
+{class, wxStaticBitmap, wxControl, [],
+ ['wxStaticBitmap','Create','GetBitmap','SetBitmap'
+ %%wxStaticIcon::GetIcon wxStaticIcon::SetIcon
+ ]}.
+{class, wxRadioBox, wxControl, [],
+ [{'wxRadioBox',9},'~wxRadioBox',{'Create',9},'Enable',
+ 'GetSelection','GetString', 'SetSelection','Show',
+ 'GetColumnCount','GetItemHelpText','GetItemToolTip','GetItemFromPoint',
+ 'GetRowCount', 'IsItemEnabled','IsItemShown','SetItemHelpText','SetItemToolTip'
+ ]}.
+{class, wxRadioButton, wxControl, [],
+ ['wxRadioButton','~wxRadioButton','Create','GetValue','SetValue']}.
+
+{class, wxSlider, wxControl, [],
+ ['wxSlider','~wxSlider', %'ClearSel','ClearTicks',
+ 'Create','GetLineSize','GetMax','GetMin',
+ 'GetPageSize',%'GetSelEnd','GetSelStart',
+ 'GetThumbLength',%'GetTickFreq',
+ 'GetValue',
+ 'SetLineSize','SetPageSize','SetRange',%'SetSelection',
+ 'SetThumbLength',%'SetTick', 'SetTickFreq',
+ 'SetValue']}.
+
+{class, wxDialog, wxTopLevelWindow, [],
+ ['wxDialog','~wxDialog',%'Centre',
+ 'Create','CreateButtonSizer',
+ 'CreateStdDialogButtonSizer',%'DoOK',
+ 'EndModal','GetAffirmativeId',
+ 'GetReturnCode', %'GetTitle','GetToolBar','Iconize','IsIconized',
+ 'IsModal',
+ %%'OnApply','OnCancel','OnOK', 'OnSysColourChanged',
+ 'SetAffirmativeId', %'SetIcon','SetIcons','SetTitle',
+ %% 'SetModal', Deprecated
+ 'SetReturnCode','Show','ShowModal']}.
+
+{class, wxColourDialog, wxDialog, [],
+ ['wxColourDialog','~wxColourDialog','Create','GetColourData']}.
+
+{class, wxColourData, object, [],
+ ['wxColourData','~wxColourData','GetChooseFull','GetColour','GetCustomColour',
+ 'SetChooseFull','SetColour','SetCustomColour']}.
+
+{class, wxPalette, object, [],
+ [{'wxPalette',[{"n", {c_only,{size,0}}},{"red",[in,{base,binary}]},
+ {"green", [in,{base,binary}]},{"blue", [in,{base,binary}]}]},
+ '~wxPalette',
+ {'Create', [{"n", {c_only,{size,0}}},{"red",[in,{base,binary}]},
+ {"green", [in,{base,binary}]},{"blue", [in,{base,binary}]}]},
+ 'GetColoursCount','GetPixel',
+ 'GetRGB',
+ 'IsOk']}.
+
+{class, wxGenericDirDialog, wxDialog,
+ [{alias, [{wxGenericDirDialog,wxDirDialog}]}, {skip, [{wxDirDialog,0}]}],
+ ['wxDirDialog','~wxDirDialog','GetPath','GetMessage','SetMessage',
+ 'SetPath']}.
+
+{class, wxFileDialog, wxDialog, [{skip, [{wxFileDialog,0}]}],
+ ['wxFileDialog','~wxFileDialog','GetDirectory','GetFilename',
+ {'GetFilenames',[{"files", out}]},
+ 'GetFilterIndex','GetMessage','GetPath','GetPaths','GetWildcard',
+ 'SetDirectory','SetFilename','SetFilterIndex','SetMessage','SetPath',
+ 'SetWildcard']}.
+
+%% {class, wxGenericFileDialog, wxDialog, [],
+%% ['wxFileDialog','~wxFileDialog','GetDirectory','GetFilename','GetFilenames',
+%% 'GetFilterIndex','GetMessage','GetPath','GetPaths','GetStyle','GetWildcard',
+%% 'SetDirectory','SetFilename','SetFilterIndex','SetMessage','SetPath','SetStyle',
+%% 'SetWildcard']}.
+
+{class, wxPickerBase, wxControl, [],
+ ['SetInternalMargin','GetInternalMargin','SetTextCtrlProportion',
+ 'SetPickerCtrlProportion','GetTextCtrlProportion','GetPickerCtrlProportion',
+ 'HasTextCtrl','GetTextCtrl','IsTextCtrlGrowable','SetPickerCtrlGrowable',
+ 'SetTextCtrlGrowable','IsPickerCtrlGrowable']}.
+
+{class, wxFilePickerCtrl, wxPickerBase, [],
+ ['wxFilePickerCtrl','Create','GetPath','SetPath']}.
+
+{class, wxDirPickerCtrl, wxPickerBase, [],
+ ['wxDirPickerCtrl','Create','GetPath','SetPath']}.
+
+{class, wxColourPickerCtrl, wxPickerBase, [],
+ ['wxColourPickerCtrl','Create','GetColour','SetColour']}.
+
+{class, wxDatePickerCtrl, wxPickerBase, [],
+ ['wxDatePickerCtrl', %'Create',
+ 'GetRange', 'GetValue', %'SetFormat', Not always available
+ 'SetRange', 'SetValue']}.
+
+{class, wxFontPickerCtrl, wxPickerBase, [],
+ ['wxFontPickerCtrl','Create','GetSelectedFont','SetSelectedFont',
+ 'GetMaxPointSize','SetMaxPointSize']}.
+
+{class, wxGenericFindReplaceDialog, wxDialog,
+ [{alias, [{wxGenericFindReplaceDialog,wxFindReplaceDialog}]}],
+ ['wxFindReplaceDialog','~wxFindReplaceDialog','Create','GetData']}.
+
+{class, wxFindReplaceData, object, [],
+ ['wxFindReplaceData','~wxFindReplaceData','GetFindString','GetReplaceString',
+ 'GetFlags','SetFlags','SetFindString','SetReplaceString']}.
+
+{class, wxMultiChoiceDialog, wxDialog, [{skip, [{wxMultiChoiceDialog, 7}]}],
+ ['wxMultiChoiceDialog','GetSelections','SetSelections']}.
+{class, wxSingleChoiceDialog, wxDialog, [{skip, [{wxSingleChoiceDialog, 8}]}],
+ [{'wxSingleChoiceDialog', [{"clientData", [skip,in]}]},
+ 'GetSelection', %% 'GetSelectionClientData', obsolete
+ 'GetStringSelection','SetSelection']}.
+
+{class, wxTextEntryDialog, wxDialog, [],
+ ['wxTextEntryDialog','~wxTextEntryDialog','GetValue','SetValue']}.
+
+{class, wxPasswordEntryDialog, wxTextEntryDialog, [], ['wxPasswordEntryDialog']}.
+
+{class, wxFontData, object, [],
+ ['wxFontData','~wxFontData',
+ 'EnableEffects','GetAllowSymbols','GetColour','GetChosenFont',
+ 'GetEnableEffects','GetInitialFont','GetShowHelp','SetAllowSymbols',
+ 'SetChosenFont','SetColour','SetInitialFont','SetRange','SetShowHelp']}.
+
+{class, wxFontDialog, wxDialog,
+ [{skip, [{'wxFontDialog',1}, {'Create',2}]}], %% Not available on Mac!!
+ ['wxFontDialog','Create','GetFontData']}.
+
+{class, wxProgressDialog, wxDialog, [],
+ ['wxProgressDialog','~wxProgressDialog','Resume',{'Update', [{"skip", nowhere}]}]}.
+{class, wxMessageDialog, wxDialog, [],
+ ['wxMessageDialog', '~wxMessageDialog']}.
+
+{enum, wxPrintBin, "wxPRINTBIN_"}.
+{enum, wxDuplexMode, "wxDUPLEX_"}.
+{enum, wxPrintMode, "wxPRINT_MODE_"}.
+%%{enum, wxPaperSize,"wxPAPER_"}.
+
+{class, wxPageSetupDialog, object, [],
+ ['wxPageSetupDialog','~wxPageSetupDialog','GetPageSetupData', 'ShowModal']}.
+
+{class, wxPageSetupDialogData, object, [],
+ ['wxPageSetupDialogData','~wxPageSetupDialogData','EnableHelp','EnableMargins',
+ 'EnableOrientation','EnablePaper','EnablePrinter','GetDefaultMinMargins',
+ 'GetEnableMargins','GetEnableOrientation','GetEnablePaper','GetEnablePrinter',
+ 'GetEnableHelp','GetDefaultInfo','GetMarginTopLeft','GetMarginBottomRight',
+ 'GetMinMarginTopLeft','GetMinMarginBottomRight','GetPaperId','GetPaperSize',
+ 'GetPrintData','IsOk','SetDefaultInfo','SetDefaultMinMargins','SetMarginTopLeft',
+ 'SetMarginBottomRight','SetMinMarginTopLeft','SetMinMarginBottomRight',
+ 'SetPaperId','SetPaperSize','SetPrintData']}.
+{class, wxPrintDialog, wxDialog, [],
+ ['wxPrintDialog','~wxPrintDialog','GetPrintDialogData','GetPrintDC']}.
+{class,wxPrintDialogData, object, [],
+ ['wxPrintDialogData','~wxPrintDialogData','EnableHelp','EnablePageNumbers',
+ 'EnablePrintToFile','EnableSelection','GetAllPages','GetCollate','GetFromPage',
+ 'GetMaxPage','GetMinPage','GetNoCopies','GetPrintData','GetPrintToFile',
+ 'GetSelection','GetToPage','IsOk','SetCollate','SetFromPage','SetMaxPage',
+ 'SetMinPage','SetNoCopies','SetPrintData','SetPrintToFile','SetSelection',
+ %%'SetSetupDialog', not found
+ 'SetToPage']}.
+
+{class, wxPrintData, object, [],
+ ['wxPrintData','~wxPrintData','GetCollate','GetBin','GetColour',
+ 'GetDuplex','GetNoCopies','GetOrientation','GetPaperId','GetPrinterName',
+ 'GetQuality','IsOk','SetBin','SetCollate','SetColour','SetDuplex','SetNoCopies',
+ 'SetOrientation','SetPaperId','SetPrinterName','SetQuality']}.
+
+{class, wxPrintPreview, object, [],
+ ['wxPrintPreview','~wxPrintPreview','GetCanvas','GetCurrentPage',
+ 'GetFrame','GetMaxPage','GetMinPage','GetPrintout','GetPrintoutForPrinting',
+ 'IsOk','PaintPage','Print','RenderPage','SetCanvas','SetCurrentPage',
+ 'SetFrame','SetPrintout','SetZoom']}.
+
+{class, wxPreviewFrame, wxFrame, [],
+ ['wxPreviewFrame','~wxPreviewFrame','CreateControlBar','CreateCanvas',
+ 'Initialize','OnCloseWindow']}.
+
+{class, wxPreviewControlBar, wxPanel, [],
+['wxPreviewControlBar','~wxPreviewControlBar','CreateButtons','GetPrintPreview',
+ 'GetZoomControl','SetZoomControl']}.
+
+{class, wxPreviewCanvas, wxScrolledWindow, [], []}.
+
+{class, wxPrinter, object, [],
+ ['wxPrinter','CreateAbortWindow','GetAbort','GetLastError',
+ 'GetPrintDialogData','Print','PrintDialog','ReportError','Setup']}.
+
+{class, wxXmlResource, object, [],
+ ['wxXmlResource', '~wxXmlResource',
+ %%'AddHandler', removed wxXmlResourceHandler is not implemented yet
+ 'AttachUnknownControl',
+ 'ClearHandlers', 'CompareVersion',
+ 'Get', 'GetFlags', 'GetVersion',
+ {'GetXRCID', [{"str_id", [{single, array}]}]},
+ 'InitAllHandlers', 'Load',
+ 'LoadBitmap', 'LoadDialog', 'LoadFrame', 'LoadIcon', 'LoadMenu', 'LoadMenuBar', 'LoadPanel',
+ 'LoadToolBar', 'Set', 'SetFlags', 'Unload',
+ {xrcctrl,[{where, taylormade}]}
+ %,{'GetDomain', [{return, [{single, array}]}]}, 'SetDomain'
+ ]}.
+
+{class, wxHtmlEasyPrinting, object, [],
+ ['wxHtmlEasyPrinting','~wxHtmlEasyPrinting',
+ %'GetParentWindow', Not found
+ 'GetPrintData','GetPageSetupData','PreviewFile',
+ 'PreviewText','PrintFile','PrintText','PageSetup',
+ {'SetFonts',[{"sizes", [{single, array}, {def, "(int *) NULL"}]}]},
+ 'SetHeader','SetFooter'%,'SetParentWindow'
+ ]}.
+
+%%{class, wxVListBox, wxControl, [], []}.
+
+{class, wxGLCanvas, wxWindow,
+ [{skip, [{'SetCurrent', 2}]}], %% NA MAC
+ [{'wxGLCanvas', [{"attribList", [in, {single,array}]}]},
+ 'GetContext',
+ {'SetCurrent', [{post_hook,"if(This->GetContext()) setActiveGL(Ecmd.caller,This)"}]},
+ %%{'SetColour', [{"colour", [in, {single,array}]}]},
+ 'SwapBuffers']}.
+
+%% {class, wxGLContext, wxWindow, [], %% NA MAC or rather looks different on mac FIXME
+%% ['wxGLContext','SetCurrent']}.
+
+{class, wxAuiManager, wxEvtHandler, [{ifdef, wxUSE_AUI}],
+ ['wxAuiManager','~wxAuiManager','AddPane','DetachPane','GetAllPanes',
+ 'GetArtProvider','GetDockSizeConstraint','GetFlags','GetManagedWindow',
+ 'GetManager','GetPane','HideHint','InsertPane','LoadPaneInfo',
+ 'LoadPerspective',%'ProcessDockResult', Protected can be derived
+ 'SavePaneInfo','SavePerspective',
+ 'SetArtProvider','SetDockSizeConstraint','SetFlags','SetManagedWindow',
+ 'ShowHint','UnInit','Update']}.
+
+{class, wxAuiPaneInfo, root, [{ifdef, wxUSE_AUI}],
+ [
+ wxAuiPaneInfo,'~wxAuiPaneInfo',
+ 'BestSize','Bottom','BottomDockable','Caption','CaptionVisible',
+ 'Centre','CentrePane','CloseButton','DefaultPane','DestroyOnClose',
+ 'Direction','Dock',%'DockFixed',
+ 'Dockable','Fixed','Float',
+ 'Floatable','FloatingPosition','FloatingSize','Gripper','GripperTop',
+ 'HasBorder','HasCaption','HasCloseButton','HasFlag',
+ 'HasGripper','HasGripperTop','HasMaximizeButton','HasMinimizeButton',
+ 'HasPinButton','Hide','IsBottomDockable','IsDocked','IsFixed',
+ 'IsFloatable','IsFloating','IsLeftDockable','IsMovable','IsOk',
+ 'IsResizable','IsRightDockable','IsShown','IsToolbar','IsTopDockable',
+ 'Layer','Left','LeftDockable','MaxSize','MaximizeButton',
+ 'MinSize','MinimizeButton','Movable','Name',
+ 'PaneBorder','PinButton','Position','Resizable','Right',
+ 'RightDockable','Row','SafeSet','SetFlag','Show','ToolbarPane',
+ 'Top','TopDockable','Window']}.
+
+{class, wxAuiNotebook, wxControl, [{ifdef, wxUSE_AUI}],
+ ['wxAuiNotebook','AddPage',%'AdvanceSelection',
+ 'Create','DeletePage',
+ 'GetArtProvider',%%'GetHeightForPageHeight','GetTabCtrlHeight', not found
+ 'GetPage','GetPageBitmap',
+ 'GetPageCount','GetPageIndex','GetPageText','GetSelection',
+ 'InsertPage','RemovePage','SetArtProvider',
+ 'SetFont',%'SetNormalFont','SetSelectedFont','SetMeasuringFont',not found
+ 'SetPageBitmap','SetPageText','SetSelection','SetTabCtrlHeight',
+ 'SetUniformBitmapSize'%,'ShowWindowMenu'
+ ]}.
+
+{class,wxAuiTabArt, root, [{ifdef, wxUSE_AUI}],
+ [% Pure virtual funcs
+ %'Clone','DrawBackground','DrawButton','DrawTab','GetBestTabCtrlSize',
+ %'GetIndentSize','GetTabSize','SetFlags','SetMeasuringFont',
+ %'SetNormalFont','SetSelectedFont','SetSizingInfo'%,'ShowWindowList'
+ ]}.
+
+{class,wxAuiDockArt, root, [{ifdef, wxUSE_AUI}],
+ [%% 'wxAuiDockArt','~wxAuiDockArt' %,
+ %%'DrawBackground','DrawBorder','DrawCaption', %% Pure virtual funcs
+ %%'DrawGripper','DrawPaneButton','DrawSash',
+ %%'GetColor','GetColour','GetFont','GetMetric','SetColor','SetColour','SetFont','SetMetric'
+ ]}.
+
+{class, wxMDIParentFrame, wxFrame, [],
+ [
+ 'wxMDIParentFrame', '~wxMDIParentFrame', 'ActivateNext', 'ActivatePrevious',
+ 'ArrangeIcons', 'Cascade', 'Create',
+ %%'GetClientSize', 'GetToolBar', 'SetToolBar', defined in parent
+ 'GetActiveChild', 'GetClientWindow',
+ %% 'GetWindowMenu', 'SetWindowMenu', windows only
+ %%'OnCreateClient',
+ 'Tile']}.
+
+{class, wxMDIChildFrame, wxFrame, [],
+ ['wxMDIChildFrame','~wxMDIChildFrame','Activate','Create','Maximize','Restore']}.
+
+{class, wxMDIClientWindow, wxWindow, [],
+ ['wxMDIClientWindow','~wxMDIClientWindow','CreateClient']}.
+
+{class, wxLayoutAlgorithm, object, [],
+ ['wxLayoutAlgorithm', '~wxLayoutAlgorithm',
+ 'LayoutFrame', 'LayoutMDIFrame', 'LayoutWindow']}.
+
+%%%% EVENT's
+
+{class, wxEvent, object, [],
+ [%%'wxEvent','m','propagationLevel','Clone','GetEventObject','GetEventType',
+ 'GetId','GetSkipped',
+ {'GetTimestamp', [{return, [{mod,[unsigned]}]}]},
+ 'IsCommandEvent','ResumePropagation',
+ %% 'SetEventObject','SetEventType','SetId','SetTimestamp',
+ 'ShouldPropagate','Skip','StopPropagation'
+ ]}.
+
+{class, wxCommandEvent, wxEvent,
+ [{acc, [{m_cmdString, "GetString()"},
+ {m_commandInt, "GetInt()"}, {m_extraLong,"GetExtraLong()"}]},
+ {event,
+ [wxEVT_COMMAND_BUTTON_CLICKED,wxEVT_COMMAND_CHECKBOX_CLICKED,
+ wxEVT_COMMAND_CHOICE_SELECTED,wxEVT_COMMAND_LISTBOX_SELECTED,
+ wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,wxEVT_COMMAND_TEXT_UPDATED,
+ wxEVT_COMMAND_TEXT_ENTER,wxEVT_COMMAND_MENU_SELECTED,
+ wxEVT_COMMAND_SLIDER_UPDATED,wxEVT_COMMAND_RADIOBOX_SELECTED,
+ wxEVT_COMMAND_RADIOBUTTON_SELECTED,wxEVT_COMMAND_SCROLLBAR_UPDATED,
+ wxEVT_COMMAND_VLBOX_SELECTED,wxEVT_COMMAND_COMBOBOX_SELECTED,
+ %% wxEVT_COMMAND_TOOL_CLICKED, This the exactly the same as command_menu_selected
+ %% I can't differ them
+ wxEVT_COMMAND_TOOL_RCLICKED,
+ wxEVT_COMMAND_TOOL_ENTER, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
+ wxEVT_COMMAND_TOGGLEBUTTON_CLICKED,
+ wxEVT_COMMAND_LEFT_CLICK,wxEVT_COMMAND_LEFT_DCLICK,wxEVT_COMMAND_RIGHT_CLICK,
+ wxEVT_COMMAND_SET_FOCUS, wxEVT_COMMAND_KILL_FOCUS,
+ wxEVT_COMMAND_ENTER
+ ]}],
+ [{'GetClientObject',[{erl_func, "getClientData"}]},
+ 'GetExtraLong','GetInt','GetSelection','GetString','IsChecked',
+ 'IsSelection',%'SetClientData','SetClientObject','SetExtraLong',
+ 'SetInt','SetString'
+ ]}.
+
+{class, wxScrollEvent, wxCommandEvent,
+ [{acc, [{m_commandInt, "GetPosition()"}, {m_extraLong, "GetOrientation()"}]},
+ {mixed_event, wxSpinEvent},
+ {event,
+ [wxEVT_SCROLL_TOP,wxEVT_SCROLL_BOTTOM,wxEVT_SCROLL_LINEUP,
+ wxEVT_SCROLL_LINEDOWN,wxEVT_SCROLL_PAGEUP,
+ wxEVT_SCROLL_PAGEDOWN,wxEVT_SCROLL_THUMBTRACK,
+ wxEVT_SCROLL_THUMBRELEASE,wxEVT_SCROLL_CHANGED]}],
+ ['GetOrientation','GetPosition']}.
+{class, wxScrollWinEvent,wxEvent,
+ [{event,
+ [wxEVT_SCROLLWIN_TOP,wxEVT_SCROLLWIN_BOTTOM,wxEVT_SCROLLWIN_LINEUP,
+ wxEVT_SCROLLWIN_LINEDOWN,wxEVT_SCROLLWIN_PAGEUP,
+ wxEVT_SCROLLWIN_PAGEDOWN,wxEVT_SCROLLWIN_THUMBTRACK,
+ wxEVT_SCROLLWIN_THUMBRELEASE]}],
+ ['GetOrientation','GetPosition']}.
+
+{class, wxMouseEvent, wxEvent,
+ [{event,
+ [wxEVT_LEFT_DOWN,wxEVT_LEFT_UP,wxEVT_MIDDLE_DOWN,wxEVT_MIDDLE_UP,
+ wxEVT_RIGHT_DOWN,wxEVT_RIGHT_UP,wxEVT_MOTION,wxEVT_ENTER_WINDOW,
+ wxEVT_LEAVE_WINDOW,wxEVT_LEFT_DCLICK,wxEVT_MIDDLE_DCLICK,
+ wxEVT_RIGHT_DCLICK,wxEVT_MOUSEWHEEL,
+ wxEVT_NC_LEFT_DOWN,wxEVT_NC_LEFT_UP,
+ wxEVT_NC_MIDDLE_DOWN,wxEVT_NC_MIDDLE_UP,wxEVT_NC_RIGHT_DOWN,
+ wxEVT_NC_RIGHT_UP,wxEVT_NC_MOTION,wxEVT_NC_ENTER_WINDOW,
+ wxEVT_NC_LEAVE_WINDOW,wxEVT_NC_LEFT_DCLICK,wxEVT_NC_MIDDLE_DCLICK,
+ wxEVT_NC_RIGHT_DCLICK]}],
+ ['AltDown','Button','ButtonDClick','ButtonDown','ButtonUp','CmdDown','ControlDown',
+ 'Dragging', 'Entering', 'GetButton', 'GetPosition', 'GetLogicalPosition',
+ 'GetLinesPerAction', 'GetWheelRotation', 'GetWheelDelta', 'GetX', 'GetY',
+ 'IsButton', 'IsPageScroll', 'Leaving',
+ 'LeftDClick', 'LeftDown', 'LeftIsDown', 'LeftUp',
+ 'MetaDown',
+ 'MiddleDClick', 'MiddleDown', 'MiddleIsDown', 'MiddleUp',
+ 'Moving',
+ 'RightDClick', 'RightDown', 'RightIsDown', 'RightUp',
+ 'ShiftDown'
+ ]}.
+
+{class, wxSetCursorEvent, wxEvent, [{event,[wxEVT_SET_CURSOR]}],
+ ['GetCursor','GetX','GetY','HasCursor','SetCursor']}.
+
+{class, wxKeyEvent, wxEvent,
+ [{event,[wxEVT_CHAR,wxEVT_CHAR_HOOK,
+ wxEVT_KEY_DOWN,wxEVT_KEY_UP %,wxEVT_HOTKEY
+ ]}],
+ ['AltDown','CmdDown','ControlDown','GetKeyCode',
+ 'GetModifiers','GetPosition','GetRawKeyCode','GetRawKeyFlags',
+ 'GetUnicodeKey','GetX','GetY','HasModifiers','MetaDown',
+ 'ShiftDown'
+ ]}.
+
+{class, wxSizeEvent, wxEvent, [{event,[wxEVT_SIZE]}],
+ ['GetSize']}.
+{class, wxMoveEvent, wxEvent, [{event,[wxEVT_MOVE]}],
+ ['GetPosition']}.
+{class, wxPaintEvent, wxEvent, [{event,[wxEVT_PAINT,wxEVT_PAINT_ICON]}],[]}.
+{class, wxNcPaintEvent, wxEvent, [{event,[wxEVT_NC_PAINT]}],[]}.
+{class, wxEraseEvent, wxEvent,
+ [{acc, [{m_dc, "GetDC()"}]},
+ {event, [wxEVT_ERASE_BACKGROUND]}],
+ ['GetDC']}.
+{class, wxFocusEvent, wxEvent,
+ [{event,[wxEVT_SET_FOCUS,wxEVT_KILL_FOCUS]}],
+ ['GetWindow']}.
+{class,wxChildFocusEvent,wxCommandEvent,
+ [{event,[wxEVT_CHILD_FOCUS]}],
+ ['GetWindow']}.
+
+%% {class, wxActivateEvent, wxEvent, [{event,
+%% [wxEVT_ACTIVATE,wxEVT_ACTIVATE_APP,wxEVT_HIBERNATE]}],[]}.
+
+%%{class, wxInitDialogEvent, wxEvent, [{event, []}],[]}.
+
+{class, wxMenuEvent, wxEvent,
+ [{event, [wxEVT_MENU_OPEN,wxEVT_MENU_CLOSE,wxEVT_MENU_HIGHLIGHT]}],
+ ['GetMenu','GetMenuId','IsPopup']}.
+{class, wxCloseEvent, wxEvent,
+ [{event, [wxEVT_CLOSE_WINDOW,wxEVT_END_SESSION,wxEVT_QUERY_END_SESSION]}],
+ ['CanVeto','GetLoggingOff','SetCanVeto','SetLoggingOff','Veto']}.
+{class, wxShowEvent, wxEvent, [{event,[wxEVT_SHOW]}],['SetShow','GetShow']}.
+{class, wxIconizeEvent, wxEvent, [{event,[wxEVT_ICONIZE]}],['Iconized']}.
+{class, wxMaximizeEvent, wxEvent, [{event,[wxEVT_MAXIMIZE]}],[]}.
+{class, wxJoystickEvent, wxEvent,
+ [{event,[wxEVT_JOY_BUTTON_DOWN,wxEVT_JOY_BUTTON_UP,
+ wxEVT_JOY_MOVE,wxEVT_JOY_ZMOVE]}],
+ ['ButtonDown','ButtonIsDown','ButtonUp','GetButtonChange','GetButtonState',
+ 'GetJoystick','GetPosition','GetZPosition','IsButton','IsMove','IsZMove']}.
+
+%% {class, wxDropFilesEvent, wxEvent, [{event,[wxEVT_DROP_FILES]}],[]}. %FIXME
+
+{enum, wxUpdateUIMode, "wxUPDATE_UI_"}.
+
+{class, wxUpdateUIEvent, wxCommandEvent,
+ [{event,[wxEVT_UPDATE_UI]}],
+ ['CanUpdate','Check','Enable','Show','GetChecked','GetEnabled','GetShown',
+ 'GetSetChecked','GetSetEnabled','GetSetShown','GetSetText','GetText',
+ 'GetMode','GetUpdateInterval','ResetUpdateTime','SetMode','SetText',
+ 'SetUpdateInterval']}.
+{class, wxSysColourChangedEvent, wxEvent,
+ [{event,[wxEVT_SYS_COLOUR_CHANGED]}],[]}.
+{class, wxMouseCaptureChangedEvent, wxEvent,
+ [{event,[wxEVT_MOUSE_CAPTURE_CHANGED]}],['GetCapturedWindow']}.
+{class, wxDisplayChangedEvent, wxEvent, [{event,[wxEVT_DISPLAY_CHANGED]}],[]}.
+{class, wxPaletteChangedEvent, wxEvent,
+ [{event,[wxEVT_PALETTE_CHANGED]}],['SetChangedWindow','GetChangedWindow']}.
+{class, wxQueryNewPaletteEvent, wxEvent,
+ [{event,[wxEVT_QUERY_NEW_PALETTE]}],['SetPaletteRealized','GetPaletteRealized']}.
+{class, wxNavigationKeyEvent, wxEvent, [{event,[wxEVT_NAVIGATION_KEY]}],
+ ['GetDirection','SetDirection','IsWindowChange','SetWindowChange',
+ 'IsFromTab','SetFromTab','GetCurrentFocus','SetCurrentFocus']}.
+{class, wxWindowCreateEvent, wxCommandEvent, [{event,[wxEVT_CREATE]}],[]}.
+{class, wxWindowDestroyEvent, wxCommandEvent, [{event,[wxEVT_DESTROY]}],[]}.
+{enum, {"wxHelpEvent","Origin"}, "wxHelpEvent::Origin_"}.
+{class, wxHelpEvent, wxEvent, [{event,[wxEVT_HELP,wxEVT_DETAILED_HELP]}],
+ [%%{'GetOrigin', [{return, [{type,"wxHelpEvent::Origin"}]}]},
+ 'GetOrigin',
+ 'GetPosition',
+ %%{'SetOrigin', [{"origin", [{type,"wxHelpEvent::Origin"}]}]},
+ 'SetOrigin',
+ 'SetPosition']}.
+
+{class, wxContextMenuEvent, wxCommandEvent, [{event,[wxEVT_CONTEXT_MENU]}],
+ ['GetPosition','SetPosition']}.
+{enum, wxIdleMode, "wxIDLE_"}.
+{class, wxIdleEvent, wxEvent, [{event,[wxEVT_IDLE]}],
+ ['CanSend','GetMode','RequestMore','MoreRequested','SetMode']}.
+{class, wxGridEvent, wxNotifyEvent,
+ [{acc, [{m_row, "GetRow()"}, {m_col, "GetCol()"}, {m_x, "GetPosition().x"},{m_y, "GetPosition().y"},
+ {m_selecting, "Selecting()"},{m_control,"ControlDown()"},
+ {m_meta, "MetaDown()"}, {m_shift, "ShiftDown()"},{m_alt,"AltDown()"}]},
+ {event,[wxEVT_GRID_CELL_LEFT_CLICK, wxEVT_GRID_CELL_RIGHT_CLICK, wxEVT_GRID_CELL_LEFT_DCLICK,
+ wxEVT_GRID_CELL_RIGHT_DCLICK, wxEVT_GRID_LABEL_LEFT_CLICK, wxEVT_GRID_LABEL_RIGHT_CLICK,
+ wxEVT_GRID_LABEL_LEFT_DCLICK, wxEVT_GRID_LABEL_RIGHT_DCLICK, wxEVT_GRID_ROW_SIZE,
+ wxEVT_GRID_COL_SIZE, wxEVT_GRID_RANGE_SELECT, wxEVT_GRID_CELL_CHANGE, wxEVT_GRID_SELECT_CELL,
+ wxEVT_GRID_EDITOR_SHOWN, wxEVT_GRID_EDITOR_HIDDEN, wxEVT_GRID_EDITOR_CREATED,
+ wxEVT_GRID_CELL_BEGIN_DRAG]}],
+ ['AltDown','ControlDown','GetCol','GetPosition','GetRow','MetaDown','Selecting','ShiftDown']}.
+
+{class, wxNotifyEvent, wxCommandEvent, [], ['Allow','IsAllowed','Veto']}.
+
+{enum, wxSashDragStatus, ""}.
+{enum, wxSashEdgePosition, ""}.
+{class, wxSashEvent, wxCommandEvent,
+ [{acc, [{m_edge, "GetEdge()"}, {m_dragStatus,"GetDragStatus()"}, {m_dragRect,"GetDragRect()"}]},
+ {event,[wxEVT_SASH_DRAGGED
+ %% , wxEVT_SASH_DRAGGED_RANGE Non exitent use connect with id, lastId
+ ]}],
+ ['GetEdge','GetDragRect','GetDragStatus']}.
+
+{class, wxListEvent, wxNotifyEvent,
+ [{acc, [{m_itemIndex, "GetIndex()"}, {m_code, "GetKeyCode()"},
+ {m_pointDrag, "GetPoint()"}, {m_item, skip}]},
+ {event, [wxEVT_COMMAND_LIST_BEGIN_DRAG,wxEVT_COMMAND_LIST_BEGIN_RDRAG,
+ wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,wxEVT_COMMAND_LIST_END_LABEL_EDIT,
+ wxEVT_COMMAND_LIST_DELETE_ITEM,wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
+ wxEVT_COMMAND_LIST_KEY_DOWN,
+ wxEVT_COMMAND_LIST_INSERT_ITEM,
+ wxEVT_COMMAND_LIST_COL_CLICK,wxEVT_COMMAND_LIST_COL_RIGHT_CLICK,
+ wxEVT_COMMAND_LIST_COL_BEGIN_DRAG,wxEVT_COMMAND_LIST_COL_DRAGGING,
+ wxEVT_COMMAND_LIST_COL_END_DRAG,
+
+ wxEVT_COMMAND_LIST_ITEM_SELECTED,wxEVT_COMMAND_LIST_ITEM_DESELECTED,
+ wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK,wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
+ wxEVT_COMMAND_LIST_ITEM_ACTIVATED,wxEVT_COMMAND_LIST_ITEM_FOCUSED,
+
+ wxEVT_COMMAND_LIST_CACHE_HINT]}],
+ [
+ 'GetCacheFrom','GetCacheTo','GetKeyCode','GetIndex','GetColumn',
+ 'GetPoint','GetLabel','GetText','GetImage','GetData','GetMask','GetItem',
+ 'IsEditCancelled'
+ ]}.
+
+{class, wxDateEvent, wxCommandEvent,
+ [{acc, [{m_date, "GetDate()"}]}, {event,[wxEVT_DATE_CHANGED]}],
+ [
+ 'GetDate'
+ ]}.
+
+{class, wxCalendarEvent, wxDateEvent,
+ [{event,[wxEVT_CALENDAR_SEL_CHANGED, wxEVT_CALENDAR_DAY_CHANGED,
+ wxEVT_CALENDAR_MONTH_CHANGED, wxEVT_CALENDAR_YEAR_CHANGED,
+ wxEVT_CALENDAR_DOUBLECLICKED, wxEVT_CALENDAR_WEEKDAY_CLICKED]}],
+ [
+ 'GetWeekDay'
+ ]}.
+
+{class, wxFileDirPickerEvent, wxCommandEvent,
+ [{event, [wxEVT_COMMAND_FILEPICKER_CHANGED, wxEVT_COMMAND_DIRPICKER_CHANGED]},
+ {acc, [{m_path, "GetPath()"}]}],
+ ['GetPath']}.
+
+{class, wxColourPickerEvent, wxCommandEvent,
+ [{event, [wxEVT_COMMAND_COLOURPICKER_CHANGED]},
+ {acc, [{m_colour, "GetColour()"}]}],
+ ['GetColour']}.
+
+{class, wxFontPickerEvent, wxCommandEvent,
+ [{event, [wxEVT_COMMAND_FONTPICKER_CHANGED]},
+ {acc, [{m_font, "GetFont()"}]}],
+ ['GetFont']}.
+
+{class, wxStyledTextEvent, wxCommandEvent,
+ [{event, [wxEVT_STC_CHANGE, wxEVT_STC_STYLENEEDED, wxEVT_STC_CHARADDED,
+ wxEVT_STC_SAVEPOINTREACHED, wxEVT_STC_SAVEPOINTLEFT, wxEVT_STC_ROMODIFYATTEMPT,
+ wxEVT_STC_KEY,wxEVT_STC_DOUBLECLICK,wxEVT_STC_UPDATEUI,wxEVT_STC_MODIFIED,
+ wxEVT_STC_MACRORECORD,wxEVT_STC_MARGINCLICK,wxEVT_STC_NEEDSHOWN,wxEVT_STC_PAINTED,
+ wxEVT_STC_USERLISTSELECTION,wxEVT_STC_URIDROPPED,wxEVT_STC_DWELLSTART,
+ wxEVT_STC_DWELLEND,wxEVT_STC_START_DRAG,wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP,
+ wxEVT_STC_ZOOM,wxEVT_STC_HOTSPOT_CLICK,wxEVT_STC_HOTSPOT_DCLICK,
+ wxEVT_STC_CALLTIP_CLICK,wxEVT_STC_AUTOCOMP_SELECTION]},
+ {acc, [{m_position,"GetPosition()"},{m_key,"GetKey()"}, {m_modifiers,"GetModifiers()"},
+ {m_modificationType,"GetModificationType()"},{m_text,"GetText()"},
+ {m_length,"GetLength()"},{m_linesAdded,"GetLinesAdded()"},{m_line,"GetLine()"},
+ {m_foldLevelNow,"GetFoldLevelNow()"}, {m_foldLevelPrev,"GetFoldLevelPrev()"},
+ {m_margin,"GetMargin()"}, {m_message,"GetMessage()"}, {m_wParam,"GetWParam()"},
+ {m_lParam,"GetLParam()"}, {m_listType,"GetListType()"},{m_x,"GetX()"},
+ {m_y,"GetY()"}, {m_dragText,"GetDragText()"}, {m_dragAllowMove,"GetDragAllowMove()"},
+ {m_dragResult,"GetDragResult()"}]}],
+ ['GetPosition','GetKey','GetModifiers','GetModificationType','GetText','GetLength',
+ 'GetLinesAdded','GetLine','GetFoldLevelNow','GetFoldLevelPrev','GetMargin',
+ 'GetMessage','GetWParam','GetLParam','GetListType','GetX','GetY',
+ 'GetDragText','GetDragAllowMove','GetDragResult','GetShift','GetControl','GetAlt']}.
+
+%%{class, , wxEvent, [{event,[]}],[]}.
+
+
+%% Testing generation on static classless funcs
+{class, utils, static, [],
+ ['wxGetKeyState', 'wxGetMousePosition', 'wxGetMouseState',
+ 'wxSetDetectableAutoRepeat',
+ 'wxBell',
+ 'wxFindMenuItemId', 'wxGenericFindWindowAtPoint', 'wxFindWindowAtPoint',
+ 'wxBeginBusyCursor', 'wxEndBusyCursor', 'wxIsBusy',
+ 'wxShutdown', {'wxShell', 1}, 'wxLaunchDefaultBrowser',
+ {'wxGetEmailAddress',0}, {'wxGetUserId',0}, {'wxGetHomeDir',0},
+ 'wxNewId', 'wxRegisterId', 'wxGetCurrentId',
+ 'wxGetOsDescription', 'wxIsPlatformLittleEndian', 'wxIsPlatform64Bit'
+ ]}.
+
+{class, wxPrintout, object, [{alias, [{wxePrintout, wxePrintout}]}],
+ [{'wxPrintout', [{where, taylormade}]},'~wxPrintout',
+ 'GetDC', %% 'GetPageInfo',Callback
+ 'GetPageSizeMM','GetPageSizePixels','GetPaperRectPixels',
+ 'GetPPIPrinter','GetPPIScreen','GetTitle', %% 'HasPage', Callback
+ 'IsPreview',
+ 'FitThisSizeToPaper','FitThisSizeToPage','FitThisSizeToPageMargins',
+ 'MapScreenSizeToPaper','MapScreenSizeToPage','MapScreenSizeToPageMargins','MapScreenSizeToDevice',
+ 'GetLogicalPaperRect','GetLogicalPageRect','GetLogicalPageMarginsRect','SetLogicalOrigin',
+ 'OffsetLogicalOrigin']}.
+
+%%%%%%%%%%%%%%%%
+%% Test requires stc
+{class, wxStyledTextCtrl, wxControl, [],
+ ['wxStyledTextCtrl','~wxStyledTextCtrl','Create', 'AddText', 'AddStyledText', 'InsertText',
+ 'ClearAll', 'ClearDocumentStyle', 'GetLength', 'GetCharAt', 'GetCurrentPos', 'GetAnchor',
+ 'GetStyleAt', 'Redo', 'SetUndoCollection', 'SelectAll', 'SetSavePoint', 'GetStyledText',
+ 'CanRedo', 'MarkerLineFromHandle', 'MarkerDeleteHandle', 'GetUndoCollection',
+ 'GetViewWhiteSpace', 'SetViewWhiteSpace',
+ 'PositionFromPoint', 'PositionFromPointClose', 'GotoLine', 'GotoPos', 'SetAnchor',
+ {'GetCurLine', [{"linePos", [out]}]}, 'GetEndStyled', 'ConvertEOLs', 'GetEOLMode', 'SetEOLMode',
+ 'StartStyling', 'SetStyling', 'GetBufferedDraw', 'SetBufferedDraw', 'SetTabWidth', 'GetTabWidth',
+ 'SetCodePage', 'MarkerDefine', 'MarkerSetForeground', 'MarkerSetBackground', 'MarkerAdd', 'MarkerDelete',
+ 'MarkerDeleteAll', 'MarkerGet', 'MarkerNext', 'MarkerPrevious', 'MarkerDefineBitmap', 'MarkerAddSet',
+ 'MarkerSetAlpha', 'SetMarginType', 'GetMarginType', 'SetMarginWidth', 'GetMarginWidth', 'SetMarginMask',
+ 'GetMarginMask', 'SetMarginSensitive', 'GetMarginSensitive', 'StyleClearAll', 'StyleSetForeground',
+ 'StyleSetBackground', 'StyleSetBold', 'StyleSetItalic', 'StyleSetSize', 'StyleSetFaceName',
+ 'StyleSetEOLFilled', 'StyleResetDefault', 'StyleSetUnderline', 'StyleSetCase', 'StyleSetHotSpot',
+ 'SetSelForeground', 'SetSelBackground', 'GetSelAlpha', 'SetSelAlpha', 'SetCaretForeground',
+ 'CmdKeyAssign', 'CmdKeyClear', 'CmdKeyClearAll', 'SetStyleBytes', 'StyleSetVisible', 'GetCaretPeriod',
+ 'SetCaretPeriod', 'SetWordChars', 'BeginUndoAction', 'EndUndoAction', 'IndicatorSetStyle',
+ 'IndicatorGetStyle', 'IndicatorSetForeground', 'IndicatorGetForeground', 'SetWhitespaceForeground',
+ 'SetWhitespaceBackground', 'GetStyleBits', 'SetLineState', 'GetLineState', 'GetMaxLineState',
+ 'GetCaretLineVisible', 'SetCaretLineVisible', 'GetCaretLineBackground', 'SetCaretLineBackground',
+ 'AutoCompShow', 'AutoCompCancel', 'AutoCompActive', 'AutoCompPosStart', 'AutoCompComplete',
+ 'AutoCompStops', 'AutoCompSetSeparator', 'AutoCompGetSeparator', 'AutoCompSelect',
+ 'AutoCompSetCancelAtStart', 'AutoCompGetCancelAtStart', 'AutoCompSetFillUps', 'AutoCompSetChooseSingle',
+ 'AutoCompGetChooseSingle', 'AutoCompSetIgnoreCase', 'AutoCompGetIgnoreCase', 'UserListShow',
+ 'AutoCompSetAutoHide', 'AutoCompGetAutoHide', 'AutoCompSetDropRestOfWord', 'AutoCompGetDropRestOfWord',
+ 'RegisterImage', 'ClearRegisteredImages', 'AutoCompGetTypeSeparator', 'AutoCompSetTypeSeparator',
+ 'AutoCompSetMaxWidth', 'AutoCompGetMaxWidth', 'AutoCompSetMaxHeight', 'AutoCompGetMaxHeight',
+ 'SetIndent', 'GetIndent', 'SetUseTabs', 'GetUseTabs', 'SetLineIndentation', 'GetLineIndentation',
+ 'GetLineIndentPosition', 'GetColumn', 'SetUseHorizontalScrollBar', 'GetUseHorizontalScrollBar',
+ 'SetIndentationGuides', 'GetIndentationGuides', 'SetHighlightGuide', 'GetHighlightGuide',
+ 'GetLineEndPosition', 'GetCodePage', 'GetCaretForeground', 'GetReadOnly', 'SetCurrentPos',
+ 'SetSelectionStart', 'GetSelectionStart', 'SetSelectionEnd', 'GetSelectionEnd', 'SetPrintMagnification',
+ 'GetPrintMagnification', 'SetPrintColourMode', 'GetPrintColourMode', 'FindText', 'FormatRange',
+ 'GetFirstVisibleLine', 'GetLine', 'GetLineCount', 'SetMarginLeft', 'GetMarginLeft', 'SetMarginRight',
+ 'GetMarginRight', 'GetModify', 'SetSelection', 'GetSelectedText', 'GetTextRange', 'HideSelection',
+ 'LineFromPosition', 'PositionFromLine', 'LineScroll', 'EnsureCaretVisible', 'ReplaceSelection',
+ 'SetReadOnly', 'CanPaste', 'CanUndo', 'EmptyUndoBuffer', 'Undo', 'Cut', 'Copy', 'Paste', 'Clear',
+ 'SetText', 'GetText', 'GetTextLength', 'GetOvertype', 'SetCaretWidth', 'GetCaretWidth',
+ 'SetTargetStart', 'GetTargetStart', 'SetTargetEnd', 'GetTargetEnd', 'ReplaceTarget', 'SearchInTarget',
+ 'SetSearchFlags', 'GetSearchFlags', 'CallTipShow', 'CallTipCancel', 'CallTipActive', 'CallTipPosAtStart',
+ 'CallTipSetHighlight', 'CallTipSetBackground', 'CallTipSetForeground', 'CallTipSetForegroundHighlight',
+ 'CallTipUseStyle', 'VisibleFromDocLine', 'DocLineFromVisible', 'WrapCount', 'SetFoldLevel', 'GetFoldLevel',
+ 'GetLastChild', 'GetFoldParent', 'ShowLines', 'HideLines', 'GetLineVisible', 'SetFoldExpanded',
+ 'GetFoldExpanded', 'ToggleFold', 'EnsureVisible', 'SetFoldFlags', 'EnsureVisibleEnforcePolicy',
+ 'SetTabIndents', 'GetTabIndents', 'SetBackSpaceUnIndents', 'GetBackSpaceUnIndents', 'SetMouseDwellTime',
+ 'GetMouseDwellTime', 'WordStartPosition', 'WordEndPosition', 'SetWrapMode', 'GetWrapMode',
+ 'SetWrapVisualFlags', 'GetWrapVisualFlags', 'SetWrapVisualFlagsLocation', 'GetWrapVisualFlagsLocation',
+ 'SetWrapStartIndent', 'GetWrapStartIndent', 'SetLayoutCache', 'GetLayoutCache', 'SetScrollWidth',
+ 'GetScrollWidth', 'TextWidth', 'GetEndAtLastLine', 'TextHeight', 'SetUseVerticalScrollBar',
+ 'GetUseVerticalScrollBar', 'AppendText', 'GetTwoPhaseDraw', 'SetTwoPhaseDraw', 'TargetFromSelection',
+ 'LinesJoin', 'LinesSplit', 'SetFoldMarginColour', 'SetFoldMarginHiColour', 'LineDown', 'LineDownExtend',
+ 'LineUp', 'LineUpExtend', 'CharLeft', 'CharLeftExtend', 'CharRight', 'CharRightExtend', 'WordLeft',
+ 'WordLeftExtend', 'WordRight', 'WordRightExtend', 'Home', 'HomeExtend', 'LineEnd', 'LineEndExtend',
+ 'DocumentStart', 'DocumentStartExtend', 'DocumentEnd', 'DocumentEndExtend', 'PageUp', 'PageUpExtend',
+ 'PageDown', 'PageDownExtend', 'EditToggleOvertype', 'Cancel', 'DeleteBack', 'Tab', 'BackTab', 'NewLine',
+ 'FormFeed', 'VCHome', 'VCHomeExtend', 'ZoomIn', 'ZoomOut', 'DelWordLeft', 'DelWordRight', 'LineCut',
+ 'LineDelete', 'LineTranspose', 'LineDuplicate', 'LowerCase', 'UpperCase', 'LineScrollDown', 'LineScrollUp',
+ 'DeleteBackNotLine', 'HomeDisplay', 'HomeDisplayExtend', 'LineEndDisplay', 'LineEndDisplayExtend',
+ 'HomeWrapExtend', 'LineEndWrap', 'LineEndWrapExtend', 'VCHomeWrap', 'VCHomeWrapExtend', 'LineCopy',
+ 'MoveCaretInsideView', 'LineLength', 'BraceHighlight', 'BraceBadLight', 'BraceMatch', 'GetViewEOL',
+ 'SetViewEOL', %'GetDocPointer', 'SetDocPointer', Hmm void pointers
+ 'SetModEventMask', 'GetEdgeColumn', 'SetEdgeColumn',
+ 'GetEdgeMode', 'GetEdgeColour', 'SetEdgeColour', 'SearchAnchor', 'SearchNext',
+ 'SearchPrev', 'LinesOnScreen',
+ 'UsePopUp', 'SelectionIsRectangle', 'SetZoom', 'GetZoom',
+ %%'CreateDocument', 'AddRefDocument', 'ReleaseDocument', Hmm void pointers
+ 'GetModEventMask', 'SetSTCFocus', 'GetSTCFocus', 'SetStatus', 'GetStatus',
+ 'SetMouseDownCaptures', 'GetMouseDownCaptures', 'SetSTCCursor', 'GetSTCCursor',
+ 'SetControlCharSymbol', 'GetControlCharSymbol', 'WordPartLeft',
+ 'WordPartLeftExtend', 'WordPartRight', 'WordPartRightExtend',
+ 'SetVisiblePolicy', 'DelLineLeft', 'DelLineRight',
+ 'GetXOffset', 'ChooseCaretX', 'SetXCaretPolicy',
+ 'SetYCaretPolicy', 'GetPrintWrapMode',
+ 'SetHotspotActiveForeground', 'SetHotspotActiveBackground',
+ 'SetHotspotActiveUnderline', 'SetHotspotSingleLine',
+ 'ParaDownExtend', 'ParaUp', 'ParaUpExtend',
+ 'PositionBefore', 'PositionAfter', 'CopyRange', 'CopyText',
+ 'SetSelectionMode', 'GetSelectionMode', 'LineDownRectExtend',
+ 'LineUpRectExtend', 'CharLeftRectExtend', 'CharRightRectExtend',
+ 'HomeRectExtend', 'VCHomeRectExtend',
+ 'LineEndRectExtend', 'PageUpRectExtend', 'PageDownRectExtend',
+ 'StutteredPageUp', 'StutteredPageUpExtend', 'StutteredPageDown', 'StutteredPageDownExtend',
+ 'WordLeftEnd', 'WordLeftEndExtend', 'WordRightEnd',
+ 'WordRightEndExtend', 'SetWhitespaceChars', 'SetCharsDefault', 'AutoCompGetCurrent', 'Allocate',
+ 'FindColumn', 'GetCaretSticky', 'SetCaretSticky', 'ToggleCaretSticky', 'SetPasteConvertEndings',
+ 'GetPasteConvertEndings', 'SelectionDuplicate', 'SetCaretLineBackAlpha', 'GetCaretLineBackAlpha',
+ 'StartRecord', 'StopRecord', 'SetLexer', 'GetLexer', 'Colourise', 'SetProperty', 'SetKeyWords',
+ 'SetLexerLanguage', 'GetProperty', 'GetStyleBitsNeeded', 'GetCurrentLine', 'StyleSetSpec',
+ 'StyleSetFont', 'StyleSetFontAttr', 'StyleSetCharacterSet', 'StyleSetFontEncoding',
+ 'CmdKeyExecute',
+ 'SetMargins', {'GetSelection', [{"startPos", [out]}, {"endPos",[out]}]},
+ 'PointFromPosition', 'ScrollToLine', 'ScrollToColumn', 'SendMsg',
+ 'SetVScrollBar', 'SetHScrollBar', 'GetLastKeydownProcessed', 'SetLastKeydownProcessed',
+ 'SaveFile', 'LoadFile', 'DoDragOver', 'DoDropText', 'GetUseAntiAliasing',
+ {'AddTextRaw', [{"text", [in, {base, binary}]}]},
+ {'InsertTextRaw', [{"text", [in, {base, binary}]}]},
+ {'GetCurLineRaw', [{return,{base,{binary,"strlen(Result)"}}}, {"linePos", [out]}]},
+ {'GetLineRaw',[{return,{base,{binary,"strlen(Result)"}}}]},
+ {'GetSelectedTextRaw', [{return,{base,{binary,"strlen(Result)"}}}]},
+ {'GetTextRangeRaw', [{return,{base,{binary,"strlen(Result)"}}}]},
+ {'SetTextRaw', [{"text", [in, {base, binary}]}]},
+ {'GetTextRaw', [{return,{base,{binary,"strlen(Result)"}}}]},
+ {'AppendTextRaw', [{"text", [in, {base, binary}]}]}]}.
+
+{class, wxArtProvider, object, [],
+ [{'GetBitmap', [{"client", {def,"wxART_OTHER"}}]},
+ {'GetIcon', [{"client", {def,"wxART_OTHER"}}]}]}.
+
+{class, wxTreeEvent, wxNotifyEvent,
+ [{acc, [{m_item, "GetItem()"}, {m_itemOld, "GetOldItem()"},
+ {m_pointDrag, "GetPoint()"}]},
+ {event, [wxEVT_COMMAND_TREE_BEGIN_DRAG, wxEVT_COMMAND_TREE_BEGIN_RDRAG,
+ wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, wxEVT_COMMAND_TREE_END_LABEL_EDIT,
+ wxEVT_COMMAND_TREE_DELETE_ITEM, wxEVT_COMMAND_TREE_GET_INFO,
+ wxEVT_COMMAND_TREE_SET_INFO, wxEVT_COMMAND_TREE_ITEM_EXPANDED,
+ wxEVT_COMMAND_TREE_ITEM_EXPANDING, wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
+ wxEVT_COMMAND_TREE_ITEM_COLLAPSING, wxEVT_COMMAND_TREE_SEL_CHANGED,
+ wxEVT_COMMAND_TREE_SEL_CHANGING, wxEVT_COMMAND_TREE_KEY_DOWN,
+ wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
+ wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, wxEVT_COMMAND_TREE_END_DRAG,
+ wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP,
+ wxEVT_COMMAND_TREE_ITEM_MENU]}
+ ],
+ ['GetKeyCode','GetItem','GetKeyEvent','GetLabel','GetOldItem','GetPoint',
+ 'IsEditCancelled','SetToolTip']}.
+
+{class, wxNotebookEvent, wxNotifyEvent,
+ [{event, [wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+ wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING]}],
+ ['GetOldSelection','GetSelection','SetOldSelection','SetSelection']}.
+
+
+{class, wxDataObject, root, [], []}.
+
+{class, wxFileDataObject, wxDataObject, [],
+ ['wxFileDataObject', 'AddFile','GetFilenames']}.
+{class, wxTextDataObject, wxDataObject, [],
+ ['wxTextDataObject', 'GetTextLength', 'GetText', 'SetText']}.
+{class, wxBitmapDataObject, wxDataObject, [],
+ [{'wxBitmapDataObject',1}, 'GetBitmap','SetBitmap']}.
+
+{class, wxClipboard, object, [],
+ ['wxClipboard','~wxClipboard','AddData','Clear','Close',
+ 'Flush','GetData','IsOpened',
+ 'Open','SetData','UsePrimarySelection'
+ , {'IsSupported', [{"format", [{type, "wxDataFormatId"}, {single,true}]}]},
+ 'Get'
+ ]}.
+
+{class, wxSpinEvent, wxNotifyEvent,
+ [{acc, [{m_commandInt, "GetPosition()"}]},
+ {event, [wxEVT_COMMAND_SPINCTRL_UPDATED,
+ {wxEVT_SPIN_UP, wxEVT_SCROLL_LINEUP, wxScrollEvent},
+ {wxEVT_SPIN_DOWN, wxEVT_SCROLL_LINEDOWN, wxScrollEvent},
+ {wxEVT_SPIN, wxEVT_SCROLL_THUMBTRACK, wxScrollEvent}
+ ]}],
+ ['GetPosition', 'SetPosition']}.
+
+{class, wxSplitterWindow, wxWindow, [],
+ [
+ 'wxSplitterWindow', '~wxSplitterWindow', 'Create', 'GetMinimumPaneSize', 'GetSashGravity',
+ 'GetSashPosition', 'GetSplitMode', 'GetWindow1', 'GetWindow2', 'Initialize', 'IsSplit',
+ %% 'OnDoubleClickSash', 'OnUnsplit', 'OnSashPositionChange',
+ 'ReplaceWindow', 'SetSashGravity', 'SetSashPosition', 'SetSashSize', 'SetMinimumPaneSize',
+ 'SetSplitMode', 'SplitHorizontally', 'SplitVertically', 'Unsplit', 'UpdateSize'
+ ]}.
+
+
+{class, wxSplitterEvent, wxNotifyEvent,
+ [
+ {event,
+ [wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
+ wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
+ wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
+ wxEVT_COMMAND_SPLITTER_UNSPLIT
+ ]}],
+ ['GetSashPosition', 'GetX', 'GetY',
+ 'GetWindowBeingRemoved', 'SetSashPosition'
+ ]}.
+
+
+{class, wxHtmlWindow, wxScrolledWindow, [],
+ [
+ 'wxHtmlWindow',%'AddFilter',
+ 'AppendToPage',
+ %%'GetInternalRepresentation',
+ 'GetOpenedAnchor',
+ 'GetOpenedPage','GetOpenedPageTitle','GetRelatedFrame',
+ 'HistoryBack', 'HistoryCanBack','HistoryCanForward','HistoryClear','HistoryForward',
+ 'LoadFile','LoadPage',
+ %%'OnCellClicked','OnCellMouseHover','OnLinkClicked',OnOpeningURL, OnSetTitle
+ %'ReadCustomization',
+ 'SelectAll','SelectionToText','SelectLine','SelectWord',
+ 'SetBorders','SetFonts','SetPage','SetRelatedFrame','SetRelatedStatusBar',
+ 'ToText'
+ %%'WriteCustomization'
+ ]}.
+
+
+{class, wxHtmlLinkEvent, wxCommandEvent,
+ [{acc, [{m_linkInfo, "GetLinkInfo()"}]},
+ {event, [wxEVT_COMMAND_HTML_LINK_CLICKED]}],
+ ['GetLinkInfo']}.
+
+%% New No wxAuiToolBar yet..add when documentation exists
+%% {class, wxAuiToolBarEvent, wxNotifyEvent,
+%% [{acc, [{is_dropdown_clicked, "IsDropDownClicked()"},
+%% {click_pt, "GetClickPoint()"},
+%% {rect, "GetItemRect()"},
+%% {tool_id, "GetToolId()"}]},
+%% {event, [wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN,
+%% wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK,
+%% wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK,
+%% wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG
+%% ]}],
+%% ['IsDropDownClicked', 'SetDropDownClicked', 'SetClickPoint',
+%% 'GetItemRect', 'SetItemRect', 'GetToolId', 'SetToolId'
+%% ]}.
+
+{class, wxAuiNotebookEvent, wxNotifyEvent,
+ [{acc, [{old_selection, "GetOldSelection()"},
+ {selection, "GetSelection()"},
+ {drag_source, "GetDragSource()"}]},
+ {event, [wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE,
+ wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED,
+ wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING,
+ wxEVT_COMMAND_AUINOTEBOOK_BUTTON,
+ wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG,
+ wxEVT_COMMAND_AUINOTEBOOK_END_DRAG,
+ wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION,
+ wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND,
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE, {test_if, "wxCHECK_VERSION(2,8,5)"}},
+ {wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, {test_if, "wxCHECK_VERSION(2,8,5)"}}
+ ]}],
+ ['SetSelection', 'GetSelection', 'SetOldSelection', 'GetOldSelection',
+ 'SetDragSource', 'GetDragSource'
+ ]}.
+
+
+{class, wxAuiManagerEvent, wxEvent,
+ [{acc, [{button, "GetButton()"},
+ {dc, "GetDC()"},
+ {pane, "GetPane()"},
+ {manager, "GetManager()"}
+ ]},
+ {event, [wxEVT_AUI_PANE_BUTTON,
+ wxEVT_AUI_PANE_CLOSE,
+ wxEVT_AUI_PANE_MAXIMIZE,
+ wxEVT_AUI_PANE_RESTORE,
+ wxEVT_AUI_RENDER,
+ wxEVT_AUI_FIND_MANAGER
+ ]}],
+ [
+ 'SetManager', 'GetManager','SetPane','GetPane','SetButton','GetButton',
+ 'SetDC', 'GetDC', 'Veto', 'GetVeto', 'SetCanVeto', 'CanVeto'
+ ]}.
+
+{class, wxLogNull, root, [],
+ [wxLogNull, '~wxLogNull']}.
+
diff --git a/lib/wx/autoconf/config.guess b/lib/wx/autoconf/config.guess
new file mode 100755
index 0000000000..ec46d18caf
--- /dev/null
+++ b/lib/wx/autoconf/config.guess
@@ -0,0 +1,1498 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+# Inc.
+
+timestamp='2006-02-27'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner <[email protected]>.
+# Please send patches to <[email protected]>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <[email protected]>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# ([email protected] 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep __ELF__ >/dev/null
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # [email protected] (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:SunOS:5.*:*)
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[45])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ i*:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:MSYS_NT-*:*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ x86:Interix*:[345]*)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T:Interix*:[345]*)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ arm*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips
+ #undef mipsel
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mips64el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit ;;
+ coff-i386)
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ exit ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^LIBC/{
+ s: ::g
+ p
+ }'`"
+ test x"${LIBC}" != x && {
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit
+ }
+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i386.
+ echo i386-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <[email protected]>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
+and
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <[email protected]> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/lib/wx/autoconf/config.sub b/lib/wx/autoconf/config.sub
new file mode 100755
index 0000000000..9772e87d24
--- /dev/null
+++ b/lib/wx/autoconf/config.sub
@@ -0,0 +1,1489 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+timestamp='2003-02-22'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Please send patches to <[email protected]>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <[email protected]>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit 0 ;;
+ --version | -v )
+ echo "$version" ; exit 0 ;;
+ --help | --h* | -h )
+ echo "$usage"; exit 0 ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit 0;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis)
+ os=
+ basic_machine=$1
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+ | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k \
+ | m32r | m68000 | m68k | m88k | mcore \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64vr | mips64vrel \
+ | mips64orion | mips64orionel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | msp430 \
+ | ns16k | ns32k \
+ | openrisc | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
+ | strongarm \
+ | tahoe | thumb | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xscale | xstormy16 | xtensa \
+ | z8k)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* \
+ | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* \
+ | m32r-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | mcore-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | msp430-* \
+ | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+ | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
+ | xtensa-* \
+ | ymp-* \
+ | z8k-*)
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ mmix*)
+ basic_machine=mmix-knuth
+ os=-mmixware
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nv1)
+ basic_machine=nv1-cray
+ os=-unicosmp
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ or32 | or32-*)
+ basic_machine=or32-unknown
+ os=-coff
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2)
+ basic_machine=i686-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic4x | c4x*)
+ basic_machine=tic4x-unknown
+ os=-coff
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparc | sparcv9 | sparcv9b)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/lib/wx/autoconf/install-sh b/lib/wx/autoconf/install-sh
new file mode 100755
index 0000000000..f694552bc2
--- /dev/null
+++ b/lib/wx/autoconf/install-sh
@@ -0,0 +1,258 @@
+#! /bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+#
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+transformbasename=""
+transform_arg=""
+instcmd="$mvprog"
+chmodcmd="$chmodprog 0755"
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=""
+srcxtra=""
+dst=""
+dir_arg=""
+
+while [ x"$1" != x ]; do
+ case $1 in
+ -c) instcmd="$cpprog"
+ shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -m) chmodcmd="$chmodprog $2"
+ shift
+ shift
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd="$stripprog"
+ shift
+ continue;;
+
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+ shift
+ continue;;
+
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+ shift
+ continue;;
+
+ *) if [ x"$src" = x ]
+ then
+ src=$1
+ else
+ # this colon is to work around a 386BSD /bin/sh bug
+ :
+ dst=$1
+ if [ $# -ne 1 ]; then
+ srcxtra="$srcxtra $1"
+ fi
+ fi
+ shift
+ continue;;
+ esac
+done
+
+if [ x"$src" = x ]
+then
+ echo "install: no input file specified"
+ exit 1
+else
+ true
+fi
+
+srcxtra="$src $srcxtra"
+src=""
+dstsave=$dst
+
+if [ x"$dir_arg" != x ]; then
+ srcxtra="$srcxtra $dst"
+fi
+
+# Now loop over $srcxtra
+
+for src in $srcxtra ; do
+
+dst=$dstsave
+
+if [ x"$dir_arg" != x ]; then
+ dst=$src
+ src=""
+
+ if [ -d $dst ]; then
+ instcmd=:
+ else
+ instcmd=mkdir
+ fi
+else
+
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+# might cause directories to be created, which would be especially bad
+# if $src (and thus $dsttmp) contains '*'.
+
+ if [ -f $src -o -d $src ]
+ then
+ true
+ else
+ echo "install: $src does not exist"
+ exit 1
+ fi
+
+ if [ x"$dst" = x ]
+ then
+ echo "install: no destination specified"
+ exit 1
+ else
+ true
+ fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+ if [ -d $dst ]
+ then
+ dst="$dst"/`basename $src`
+ else
+ true
+ fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+# this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
+defaultIFS='
+'
+IFS="${IFS-${defaultIFS}}"
+
+oIFS="${IFS}"
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS="${oIFS}"
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+ pathcomp="${pathcomp}${1}"
+ shift
+
+ if [ ! -d "${pathcomp}" ] ;
+ then
+ $mkdirprog "${pathcomp}"
+ else
+ true
+ fi
+
+ pathcomp="${pathcomp}/"
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+ $doit $instcmd $dst &&
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+ if [ x"$transformarg" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ dstfile=`basename $dst $transformbasename |
+ sed $transformarg`$transformbasename
+ fi
+
+# don't allow the sed command to completely eliminate the filename
+
+ if [ x"$dstfile" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ true
+ fi
+
+# Make a temp file name in the proper directory.
+
+ dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+ $doit $instcmd $src $dsttmp &&
+
+ trap "rm -f ${dsttmp}" 0 &&
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing. If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above "$doit $instcmd $src $dsttmp" command.
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
+
+# Now rename the file to the real destination.
+
+ $doit $rmcmd -f $dstdir/$dstfile &&
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
+
+fi
+
+done &&
+
+
+exit 0
diff --git a/lib/wx/c_src/Makefile.in b/lib/wx/c_src/Makefile.in
new file mode 100644
index 0000000000..2f04b1dbf6
--- /dev/null
+++ b/lib/wx/c_src/Makefile.in
@@ -0,0 +1,177 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../vsn.mk
+include ../config.mk
+
+# Darwin os have debug default install of wxWidgets
+FORCED_DEBUG = @FORCED_DEBUG_BUILD@
+ifeq ($(FORCED_DEBUG),debug)
+override TYPE=debug
+endif
+
+ifneq ($(TYPE),debug)
+override TYPE=opt
+endif
+
+SO_EXT = @SO_EXT@
+
+GENERAL = wxe_driver wxe_ps_init wxe_impl wxePrintout wxe_return
+GENERAL_H = wxe_driver.h wxe_impl.h wxe_return.h
+
+GENERATED_F = wxe_funcs wxe_events wxe_init
+GENERATED_H = gen/wxe_macros.h gen/glu_finit.h gen/gl_finit.h gen/gl_fdefs.h
+
+HAVE_OPENGL = true
+OPENGL_F = gl_funcs wxe_gl
+
+ifneq ($(INSIDE_ERLSRC),true)
+
+ERL_DIR = @ERLANG_ROOT_DIR@
+ERL_INCS = -I$(ERL_DIR)/usr/include
+
+else
+ERLANG_OSTYPE = @WXERL_SYS_TYPE@
+
+ERL_INCS= -I$(ERL_TOP)/erts/emulator/beam \
+ -I$(ERL_TOP)/erts/emulator/sys/$(ERLANG_OSTYPE) \
+ -I$(ERL_TOP)/erts/include/internal \
+ -I$(ERL_TOP)/erts/include/internal/$(ERLANG_OSTYPE) \
+ -I$(ERL_TOP)/erts/include \
+ -I$(ERL_TOP)/erts/include/$(ERLANG_OSTYPE)
+
+endif
+
+SYS_TYPE = @WXERL_SYS_TYPE@
+
+GENERAL_O = $(GENERAL:%=$(SYS_TYPE)/%.o)
+GENERATED_O = $(GENERATED_F:%=$(SYS_TYPE)/%.o)
+ifeq ($(HAVE_OPENGL), true)
+ OPENGL_O = $(OPENGL_F:%=$(SYS_TYPE)/%.o)
+else
+ OPENGL_O =
+endif
+
+RC_FILE_EXT = @RC_FILE_TYPE@
+ifeq ($(SYS_TYPE),win32)
+RC_FILE = $(SYS_TYPE)/wxe_win32.$(RC_FILE_EXT)
+else
+RC_FILE =
+endif
+
+OBJECTS = $(GENERAL_O) $(GENERATED_O) $(OPENGL_O) $(RC_FILE)
+
+TARGET_API = wxe_driver
+TARGET_DIR = ../priv/$(SYS_TYPE)
+
+# -O2 -funroll-loops -ffast-math -fomit-frame-pointer
+
+COMMON_CFLAGS = @DEFS@ $(ERL_INCS)
+
+CC = @CC@
+CPP = @CXX@
+LD = $(CPP)
+LDFLAGS = @LDFLAGS@
+RESCOMP = @WX_RESCOMP@
+
+
+ifeq (@WX_HAVE_STATIC_LIBS@,true)
+WX_LIBS = @WX_LIBS_STATIC@
+DEBUG_WX_LIBS = @DEBUG_WX_LIBS_STATIC@
+else
+WX_LIBS = @WX_LIBS@
+DEBUG_WX_LIBS = @DEBUG_WX_LIBS@
+endif
+
+ifeq ($(TYPE),debug)
+CFLAGS = @DEBUG_WX_CFLAGS@ @DEBUG_CFLAGS@
+CPP_FLAGS = @DEBUG_WX_CXXFLAGS@ @DEBUG_CXXFLAGS@
+LIBS = $(DEBUG_WX_LIBS)
+else
+CFLAGS = @WX_CFLAGS@ @CFLAGS@
+CPP_FLAGS = @WX_CXXFLAGS@ @CXXFLAGS@
+LIBS = $(WX_LIBS)
+endif
+
+CC_O = $(CC) -c $(CFLAGS) $(COMMON_CFLAGS)
+CPP_O = $(CPP) -c $(CPP_FLAGS) $(COMMON_CFLAGS)
+
+# Targets
+
+opt: $(TARGET_DIR)/$(TARGET_API)$(SO_EXT)
+
+debug:
+ @${MAKE} TYPE=debug
+
+clean:
+ rm -f $(OBJECTS)
+ rm -f ../priv/$(TARGET_DIR)/$(TARGET_API)$(SO_EXT)
+ rm -f *~ erl_crash.dump
+
+complete_clean:
+ rm -f $(OBJECTS)
+ rm -f $(GENERATED_F:%=gen/%.cpp)
+ rm -f gen/gl_funcs.cpp
+ rm -f $(GENERATED_H)
+ rm -f ../priv/*/*
+ rm -f *~ erl_crash.dump
+ rm -f Makefile
+
+docs:
+
+
+$(SYS_TYPE)/%.o: %.cpp $(GENERATED_H) $(GENERAL_H)
+ mkdir -p $(SYS_TYPE)
+ $(CPP_O) $< -o $@
+
+$(SYS_TYPE)/%.o: %.c $(GENERATED_H) $(GENERAL_H)
+ mkdir -p $(SYS_TYPE)
+ $(CC_O) $< -o $@
+
+$(SYS_TYPE)/%.o: gen/%.cpp $(GENERATED_H) $(GENERAL_H)
+ mkdir -p $(SYS_TYPE)
+ $(CPP_O) $< -o $@
+
+$(SYS_TYPE)/%.o: gen/%.c $(GENERATED_H) $(GENERAL_H)
+ mkdir -p $(SYS_TYPE)
+ $(CC_O) $< -o $@
+
+$(SYS_TYPE)/wxe_win32.$(RC_FILE_EXT): wxe_win32.rc
+ mkdir -p $(SYS_TYPE)
+ $(RESCOMP) -o $@ $<
+
+$(TARGET_DIR)/$(TARGET_API)$(SO_EXT): $(OBJECTS)
+ mkdir -p $(TARGET_DIR)
+ $(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
+
+
+# ----------------------------------------------------
+# Release Target
+# ----------------------------------------------------
+ifeq ($(INSIDE_ERLSRC),true)
+include $(ERL_TOP)/make/otp_release_targets.mk
+release_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)/priv/$(SYS_TYPE)
+ $(INSTALL_DATA) ../priv/erlang-logo32.png $(RELSYSDIR)/priv/
+ $(INSTALL_DATA) ../priv/erlang-logo64.png $(RELSYSDIR)/priv/
+ $(INSTALL_DATA) $(TARGET_DIR)/$(TARGET_API)$(SO_EXT) $(RELSYSDIR)/priv/$(SYS_TYPE)
+
+release_docs_spec:
+
+endif
diff --git a/lib/wx/c_src/gen/gl_fdefs.h b/lib/wx/c_src/gen/gl_fdefs.h
new file mode 100644
index 0000000000..5fcd2d8e9b
--- /dev/null
+++ b/lib/wx/c_src/gen/gl_fdefs.h
@@ -0,0 +1,1302 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+/***** This file is generated do not edit ****/
+
+#ifdef WX_DEF_EXTS
+# define WXE_EXTERN
+#else
+# define WXE_EXTERN extern
+#endif
+
+typedef void (APIENTRY * WXEGLACCUM)(GLenum,GLfloat);
+WXE_EXTERN WXEGLACCUM weglAccum;
+typedef void (APIENTRY * WXEGLALPHAFUNC)(GLenum,GLclampf);
+WXE_EXTERN WXEGLALPHAFUNC weglAlphaFunc;
+typedef GLboolean (APIENTRY * WXEGLARETEXTURESRESIDENT)(GLsizei,const GLuint *,GLboolean *);
+WXE_EXTERN WXEGLARETEXTURESRESIDENT weglAreTexturesResident;
+typedef void (APIENTRY * WXEGLARRAYELEMENT)(GLint);
+WXE_EXTERN WXEGLARRAYELEMENT weglArrayElement;
+typedef void (APIENTRY * WXEGLBEGIN)(GLenum);
+WXE_EXTERN WXEGLBEGIN weglBegin;
+typedef void (APIENTRY * WXEGLBINDTEXTURE)(GLenum,GLuint);
+WXE_EXTERN WXEGLBINDTEXTURE weglBindTexture;
+typedef void (APIENTRY * WXEGLBITMAP)(GLsizei,GLsizei,GLfloat,GLfloat,GLfloat,GLfloat,const GLubyte *);
+WXE_EXTERN WXEGLBITMAP weglBitmap;
+typedef void (APIENTRY * WXEGLBLENDFUNC)(GLenum,GLenum);
+WXE_EXTERN WXEGLBLENDFUNC weglBlendFunc;
+typedef void (APIENTRY * WXEGLCALLLIST)(GLuint);
+WXE_EXTERN WXEGLCALLLIST weglCallList;
+typedef void (APIENTRY * WXEGLCALLLISTS)(GLsizei,GLenum,const GLuint *);
+WXE_EXTERN WXEGLCALLLISTS weglCallLists;
+typedef void (APIENTRY * WXEGLCLEAR)(GLbitfield);
+WXE_EXTERN WXEGLCLEAR weglClear;
+typedef void (APIENTRY * WXEGLCLEARACCUM)(GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLCLEARACCUM weglClearAccum;
+typedef void (APIENTRY * WXEGLCLEARCOLOR)(GLclampf,GLclampf,GLclampf,GLclampf);
+WXE_EXTERN WXEGLCLEARCOLOR weglClearColor;
+typedef void (APIENTRY * WXEGLCLEARDEPTH)(GLclampd);
+WXE_EXTERN WXEGLCLEARDEPTH weglClearDepth;
+typedef void (APIENTRY * WXEGLCLEARINDEX)(GLfloat);
+WXE_EXTERN WXEGLCLEARINDEX weglClearIndex;
+typedef void (APIENTRY * WXEGLCLEARSTENCIL)(GLint);
+WXE_EXTERN WXEGLCLEARSTENCIL weglClearStencil;
+typedef void (APIENTRY * WXEGLCLIPPLANE)(GLenum,const GLdouble *);
+WXE_EXTERN WXEGLCLIPPLANE weglClipPlane;
+typedef void (APIENTRY * WXEGLCOLOR3BV)(const GLbyte *);
+WXE_EXTERN WXEGLCOLOR3BV weglColor3bv;
+typedef void (APIENTRY * WXEGLCOLOR3DV)(const GLdouble *);
+WXE_EXTERN WXEGLCOLOR3DV weglColor3dv;
+typedef void (APIENTRY * WXEGLCOLOR3FV)(const GLfloat *);
+WXE_EXTERN WXEGLCOLOR3FV weglColor3fv;
+typedef void (APIENTRY * WXEGLCOLOR3IV)(const GLint *);
+WXE_EXTERN WXEGLCOLOR3IV weglColor3iv;
+typedef void (APIENTRY * WXEGLCOLOR3SV)(const GLshort *);
+WXE_EXTERN WXEGLCOLOR3SV weglColor3sv;
+typedef void (APIENTRY * WXEGLCOLOR3UBV)(const GLubyte *);
+WXE_EXTERN WXEGLCOLOR3UBV weglColor3ubv;
+typedef void (APIENTRY * WXEGLCOLOR3UIV)(const GLuint *);
+WXE_EXTERN WXEGLCOLOR3UIV weglColor3uiv;
+typedef void (APIENTRY * WXEGLCOLOR3USV)(const GLushort *);
+WXE_EXTERN WXEGLCOLOR3USV weglColor3usv;
+typedef void (APIENTRY * WXEGLCOLOR4BV)(const GLbyte *);
+WXE_EXTERN WXEGLCOLOR4BV weglColor4bv;
+typedef void (APIENTRY * WXEGLCOLOR4DV)(const GLdouble *);
+WXE_EXTERN WXEGLCOLOR4DV weglColor4dv;
+typedef void (APIENTRY * WXEGLCOLOR4FV)(const GLfloat *);
+WXE_EXTERN WXEGLCOLOR4FV weglColor4fv;
+typedef void (APIENTRY * WXEGLCOLOR4IV)(const GLint *);
+WXE_EXTERN WXEGLCOLOR4IV weglColor4iv;
+typedef void (APIENTRY * WXEGLCOLOR4SV)(const GLshort *);
+WXE_EXTERN WXEGLCOLOR4SV weglColor4sv;
+typedef void (APIENTRY * WXEGLCOLOR4UBV)(const GLubyte *);
+WXE_EXTERN WXEGLCOLOR4UBV weglColor4ubv;
+typedef void (APIENTRY * WXEGLCOLOR4UIV)(const GLuint *);
+WXE_EXTERN WXEGLCOLOR4UIV weglColor4uiv;
+typedef void (APIENTRY * WXEGLCOLOR4USV)(const GLushort *);
+WXE_EXTERN WXEGLCOLOR4USV weglColor4usv;
+typedef void (APIENTRY * WXEGLCOLORMASK)(GLboolean,GLboolean,GLboolean,GLboolean);
+WXE_EXTERN WXEGLCOLORMASK weglColorMask;
+typedef void (APIENTRY * WXEGLCOLORMATERIAL)(GLenum,GLenum);
+WXE_EXTERN WXEGLCOLORMATERIAL weglColorMaterial;
+typedef void (APIENTRY * WXEGLCOLORPOINTER)(GLint,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOLORPOINTER weglColorPointer;
+typedef void (APIENTRY * WXEGLCOPYPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum);
+WXE_EXTERN WXEGLCOPYPIXELS weglCopyPixels;
+typedef void (APIENTRY * WXEGLCOPYTEXIMAGE1D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLint);
+WXE_EXTERN WXEGLCOPYTEXIMAGE1D weglCopyTexImage1D;
+typedef void (APIENTRY * WXEGLCOPYTEXIMAGE2D)(GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLsizei,GLint);
+WXE_EXTERN WXEGLCOPYTEXIMAGE2D weglCopyTexImage2D;
+typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLint,GLint,GLsizei);
+WXE_EXTERN WXEGLCOPYTEXSUBIMAGE1D weglCopyTexSubImage1D;
+typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLint,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLCOPYTEXSUBIMAGE2D weglCopyTexSubImage2D;
+typedef void (APIENTRY * WXEGLCULLFACE)(GLenum);
+WXE_EXTERN WXEGLCULLFACE weglCullFace;
+typedef void (APIENTRY * WXEGLDELETELISTS)(GLuint,GLsizei);
+WXE_EXTERN WXEGLDELETELISTS weglDeleteLists;
+typedef void (APIENTRY * WXEGLDELETETEXTURES)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETETEXTURES weglDeleteTextures;
+typedef void (APIENTRY * WXEGLDEPTHFUNC)(GLenum);
+WXE_EXTERN WXEGLDEPTHFUNC weglDepthFunc;
+typedef void (APIENTRY * WXEGLDEPTHMASK)(GLboolean);
+WXE_EXTERN WXEGLDEPTHMASK weglDepthMask;
+typedef void (APIENTRY * WXEGLDEPTHRANGE)(GLclampd,GLclampd);
+WXE_EXTERN WXEGLDEPTHRANGE weglDepthRange;
+typedef void (APIENTRY * WXEGLDISABLE)(GLenum);
+WXE_EXTERN WXEGLDISABLE weglDisable;
+typedef void (APIENTRY * WXEGLDISABLECLIENTSTATE)(GLenum);
+WXE_EXTERN WXEGLDISABLECLIENTSTATE weglDisableClientState;
+typedef void (APIENTRY * WXEGLDRAWARRAYS)(GLenum,GLint,GLsizei);
+WXE_EXTERN WXEGLDRAWARRAYS weglDrawArrays;
+typedef void (APIENTRY * WXEGLDRAWBUFFER)(GLenum);
+WXE_EXTERN WXEGLDRAWBUFFER weglDrawBuffer;
+typedef void (APIENTRY * WXEGLDRAWELEMENTS)(GLenum,GLsizei,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLDRAWELEMENTS weglDrawElements;
+typedef void (APIENTRY * WXEGLDRAWPIXELS)(GLsizei,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLDRAWPIXELS weglDrawPixels;
+typedef void (APIENTRY * WXEGLEDGEFLAGV)(const GLboolean *);
+WXE_EXTERN WXEGLEDGEFLAGV weglEdgeFlagv;
+typedef void (APIENTRY * WXEGLEDGEFLAGPOINTER)(GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLEDGEFLAGPOINTER weglEdgeFlagPointer;
+typedef void (APIENTRY * WXEGLENABLE)(GLenum);
+WXE_EXTERN WXEGLENABLE weglEnable;
+typedef void (APIENTRY * WXEGLENABLECLIENTSTATE)(GLenum);
+WXE_EXTERN WXEGLENABLECLIENTSTATE weglEnableClientState;
+typedef void (APIENTRY * WXEGLEND)();
+WXE_EXTERN WXEGLEND weglEnd;
+typedef void (APIENTRY * WXEGLENDLIST)();
+WXE_EXTERN WXEGLENDLIST weglEndList;
+typedef void (APIENTRY * WXEGLEVALCOORD1DV)(const GLdouble *);
+WXE_EXTERN WXEGLEVALCOORD1DV weglEvalCoord1dv;
+typedef void (APIENTRY * WXEGLEVALCOORD1FV)(const GLfloat *);
+WXE_EXTERN WXEGLEVALCOORD1FV weglEvalCoord1fv;
+typedef void (APIENTRY * WXEGLEVALCOORD2DV)(const GLdouble *);
+WXE_EXTERN WXEGLEVALCOORD2DV weglEvalCoord2dv;
+typedef void (APIENTRY * WXEGLEVALCOORD2FV)(const GLfloat *);
+WXE_EXTERN WXEGLEVALCOORD2FV weglEvalCoord2fv;
+typedef void (APIENTRY * WXEGLEVALMESH1)(GLenum,GLint,GLint);
+WXE_EXTERN WXEGLEVALMESH1 weglEvalMesh1;
+typedef void (APIENTRY * WXEGLEVALMESH2)(GLenum,GLint,GLint,GLint,GLint);
+WXE_EXTERN WXEGLEVALMESH2 weglEvalMesh2;
+typedef void (APIENTRY * WXEGLEVALPOINT1)(GLint);
+WXE_EXTERN WXEGLEVALPOINT1 weglEvalPoint1;
+typedef void (APIENTRY * WXEGLEVALPOINT2)(GLint,GLint);
+WXE_EXTERN WXEGLEVALPOINT2 weglEvalPoint2;
+typedef void (APIENTRY * WXEGLFEEDBACKBUFFER)(GLsizei,GLenum,GLfloat *);
+WXE_EXTERN WXEGLFEEDBACKBUFFER weglFeedbackBuffer;
+typedef void (APIENTRY * WXEGLFINISH)();
+WXE_EXTERN WXEGLFINISH weglFinish;
+typedef void (APIENTRY * WXEGLFLUSH)();
+WXE_EXTERN WXEGLFLUSH weglFlush;
+typedef void (APIENTRY * WXEGLFOGF)(GLenum,GLfloat);
+WXE_EXTERN WXEGLFOGF weglFogf;
+typedef void (APIENTRY * WXEGLFOGFV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLFOGFV weglFogfv;
+typedef void (APIENTRY * WXEGLFOGI)(GLenum,GLint);
+WXE_EXTERN WXEGLFOGI weglFogi;
+typedef void (APIENTRY * WXEGLFOGIV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLFOGIV weglFogiv;
+typedef void (APIENTRY * WXEGLFRONTFACE)(GLenum);
+WXE_EXTERN WXEGLFRONTFACE weglFrontFace;
+typedef void (APIENTRY * WXEGLFRUSTUM)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLFRUSTUM weglFrustum;
+typedef GLuint (APIENTRY * WXEGLGENLISTS)(GLsizei);
+WXE_EXTERN WXEGLGENLISTS weglGenLists;
+typedef void (APIENTRY * WXEGLGENTEXTURES)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENTEXTURES weglGenTextures;
+typedef void (APIENTRY * WXEGLGETBOOLEANV)(GLenum,GLboolean *);
+WXE_EXTERN WXEGLGETBOOLEANV weglGetBooleanv;
+typedef void (APIENTRY * WXEGLGETCLIPPLANE)(GLenum,GLdouble *);
+WXE_EXTERN WXEGLGETCLIPPLANE weglGetClipPlane;
+typedef void (APIENTRY * WXEGLGETDOUBLEV)(GLenum,GLdouble *);
+WXE_EXTERN WXEGLGETDOUBLEV weglGetDoublev;
+typedef GLenum (APIENTRY * WXEGLGETERROR)();
+WXE_EXTERN WXEGLGETERROR weglGetError;
+typedef void (APIENTRY * WXEGLGETFLOATV)(GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETFLOATV weglGetFloatv;
+typedef void (APIENTRY * WXEGLGETINTEGERV)(GLenum,GLint *);
+WXE_EXTERN WXEGLGETINTEGERV weglGetIntegerv;
+typedef void (APIENTRY * WXEGLGETLIGHTFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETLIGHTFV weglGetLightfv;
+typedef void (APIENTRY * WXEGLGETLIGHTIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETLIGHTIV weglGetLightiv;
+typedef void (APIENTRY * WXEGLGETMAPDV)(GLenum,GLenum,GLdouble *);
+WXE_EXTERN WXEGLGETMAPDV weglGetMapdv;
+typedef void (APIENTRY * WXEGLGETMAPFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETMAPFV weglGetMapfv;
+typedef void (APIENTRY * WXEGLGETMAPIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETMAPIV weglGetMapiv;
+typedef void (APIENTRY * WXEGLGETMATERIALFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETMATERIALFV weglGetMaterialfv;
+typedef void (APIENTRY * WXEGLGETMATERIALIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETMATERIALIV weglGetMaterialiv;
+typedef void (APIENTRY * WXEGLGETPIXELMAPFV)(GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETPIXELMAPFV weglGetPixelMapfv;
+typedef void (APIENTRY * WXEGLGETPIXELMAPUIV)(GLenum,GLuint *);
+WXE_EXTERN WXEGLGETPIXELMAPUIV weglGetPixelMapuiv;
+typedef void (APIENTRY * WXEGLGETPIXELMAPUSV)(GLenum,GLushort *);
+WXE_EXTERN WXEGLGETPIXELMAPUSV weglGetPixelMapusv;
+typedef void (APIENTRY * WXEGLGETPOLYGONSTIPPLE)(GLubyte *);
+WXE_EXTERN WXEGLGETPOLYGONSTIPPLE weglGetPolygonStipple;
+typedef const GLubyte * (APIENTRY * WXEGLGETSTRING)(GLenum);
+WXE_EXTERN WXEGLGETSTRING weglGetString;
+typedef void (APIENTRY * WXEGLGETTEXENVFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETTEXENVFV weglGetTexEnvfv;
+typedef void (APIENTRY * WXEGLGETTEXENVIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETTEXENVIV weglGetTexEnviv;
+typedef void (APIENTRY * WXEGLGETTEXGENDV)(GLenum,GLenum,GLdouble *);
+WXE_EXTERN WXEGLGETTEXGENDV weglGetTexGendv;
+typedef void (APIENTRY * WXEGLGETTEXGENFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETTEXGENFV weglGetTexGenfv;
+typedef void (APIENTRY * WXEGLGETTEXGENIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETTEXGENIV weglGetTexGeniv;
+typedef void (APIENTRY * WXEGLGETTEXIMAGE)(GLenum,GLint,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETTEXIMAGE weglGetTexImage;
+typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERFV)(GLenum,GLint,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETTEXLEVELPARAMETERFV weglGetTexLevelParameterfv;
+typedef void (APIENTRY * WXEGLGETTEXLEVELPARAMETERIV)(GLenum,GLint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETTEXLEVELPARAMETERIV weglGetTexLevelParameteriv;
+typedef void (APIENTRY * WXEGLGETTEXPARAMETERFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETTEXPARAMETERFV weglGetTexParameterfv;
+typedef void (APIENTRY * WXEGLGETTEXPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETTEXPARAMETERIV weglGetTexParameteriv;
+typedef void (APIENTRY * WXEGLHINT)(GLenum,GLenum);
+WXE_EXTERN WXEGLHINT weglHint;
+typedef void (APIENTRY * WXEGLINDEXMASK)(GLuint);
+WXE_EXTERN WXEGLINDEXMASK weglIndexMask;
+typedef void (APIENTRY * WXEGLINDEXPOINTER)(GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLINDEXPOINTER weglIndexPointer;
+typedef void (APIENTRY * WXEGLINDEXDV)(const GLdouble *);
+WXE_EXTERN WXEGLINDEXDV weglIndexdv;
+typedef void (APIENTRY * WXEGLINDEXFV)(const GLfloat *);
+WXE_EXTERN WXEGLINDEXFV weglIndexfv;
+typedef void (APIENTRY * WXEGLINDEXIV)(const GLint *);
+WXE_EXTERN WXEGLINDEXIV weglIndexiv;
+typedef void (APIENTRY * WXEGLINDEXSV)(const GLshort *);
+WXE_EXTERN WXEGLINDEXSV weglIndexsv;
+typedef void (APIENTRY * WXEGLINDEXUBV)(const GLubyte *);
+WXE_EXTERN WXEGLINDEXUBV weglIndexubv;
+typedef void (APIENTRY * WXEGLINITNAMES)();
+WXE_EXTERN WXEGLINITNAMES weglInitNames;
+typedef void (APIENTRY * WXEGLINTERLEAVEDARRAYS)(GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLINTERLEAVEDARRAYS weglInterleavedArrays;
+typedef GLboolean (APIENTRY * WXEGLISENABLED)(GLenum);
+WXE_EXTERN WXEGLISENABLED weglIsEnabled;
+typedef GLboolean (APIENTRY * WXEGLISLIST)(GLuint);
+WXE_EXTERN WXEGLISLIST weglIsList;
+typedef GLboolean (APIENTRY * WXEGLISTEXTURE)(GLuint);
+WXE_EXTERN WXEGLISTEXTURE weglIsTexture;
+typedef void (APIENTRY * WXEGLLIGHTMODELF)(GLenum,GLfloat);
+WXE_EXTERN WXEGLLIGHTMODELF weglLightModelf;
+typedef void (APIENTRY * WXEGLLIGHTMODELFV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLLIGHTMODELFV weglLightModelfv;
+typedef void (APIENTRY * WXEGLLIGHTMODELI)(GLenum,GLint);
+WXE_EXTERN WXEGLLIGHTMODELI weglLightModeli;
+typedef void (APIENTRY * WXEGLLIGHTMODELIV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLLIGHTMODELIV weglLightModeliv;
+typedef void (APIENTRY * WXEGLLIGHTF)(GLenum,GLenum,GLfloat);
+WXE_EXTERN WXEGLLIGHTF weglLightf;
+typedef void (APIENTRY * WXEGLLIGHTFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLLIGHTFV weglLightfv;
+typedef void (APIENTRY * WXEGLLIGHTI)(GLenum,GLenum,GLint);
+WXE_EXTERN WXEGLLIGHTI weglLighti;
+typedef void (APIENTRY * WXEGLLIGHTIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLLIGHTIV weglLightiv;
+typedef void (APIENTRY * WXEGLLINESTIPPLE)(GLint,GLushort);
+WXE_EXTERN WXEGLLINESTIPPLE weglLineStipple;
+typedef void (APIENTRY * WXEGLLINEWIDTH)(GLfloat);
+WXE_EXTERN WXEGLLINEWIDTH weglLineWidth;
+typedef void (APIENTRY * WXEGLLISTBASE)(GLuint);
+WXE_EXTERN WXEGLLISTBASE weglListBase;
+typedef void (APIENTRY * WXEGLLOADIDENTITY)();
+WXE_EXTERN WXEGLLOADIDENTITY weglLoadIdentity;
+typedef void (APIENTRY * WXEGLLOADMATRIXD)(const GLdouble *);
+WXE_EXTERN WXEGLLOADMATRIXD weglLoadMatrixd;
+typedef void (APIENTRY * WXEGLLOADMATRIXF)(const GLfloat *);
+WXE_EXTERN WXEGLLOADMATRIXF weglLoadMatrixf;
+typedef void (APIENTRY * WXEGLLOADNAME)(GLuint);
+WXE_EXTERN WXEGLLOADNAME weglLoadName;
+typedef void (APIENTRY * WXEGLLOGICOP)(GLenum);
+WXE_EXTERN WXEGLLOGICOP weglLogicOp;
+typedef void (APIENTRY * WXEGLMAP1D)(GLenum,GLdouble,GLdouble,GLint,GLint,const GLdouble *);
+WXE_EXTERN WXEGLMAP1D weglMap1d;
+typedef void (APIENTRY * WXEGLMAP1F)(GLenum,GLfloat,GLfloat,GLint,GLint,const GLfloat *);
+WXE_EXTERN WXEGLMAP1F weglMap1f;
+typedef void (APIENTRY * WXEGLMAP2D)(GLenum,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble,GLint,GLint,const GLdouble *);
+WXE_EXTERN WXEGLMAP2D weglMap2d;
+typedef void (APIENTRY * WXEGLMAP2F)(GLenum,GLfloat,GLfloat,GLint,GLint,GLfloat,GLfloat,GLint,GLint,const GLfloat *);
+WXE_EXTERN WXEGLMAP2F weglMap2f;
+typedef void (APIENTRY * WXEGLMAPGRID1D)(GLint,GLdouble,GLdouble);
+WXE_EXTERN WXEGLMAPGRID1D weglMapGrid1d;
+typedef void (APIENTRY * WXEGLMAPGRID1F)(GLint,GLfloat,GLfloat);
+WXE_EXTERN WXEGLMAPGRID1F weglMapGrid1f;
+typedef void (APIENTRY * WXEGLMAPGRID2D)(GLint,GLdouble,GLdouble,GLint,GLdouble,GLdouble);
+WXE_EXTERN WXEGLMAPGRID2D weglMapGrid2d;
+typedef void (APIENTRY * WXEGLMAPGRID2F)(GLint,GLfloat,GLfloat,GLint,GLfloat,GLfloat);
+WXE_EXTERN WXEGLMAPGRID2F weglMapGrid2f;
+typedef void (APIENTRY * WXEGLMATERIALF)(GLenum,GLenum,GLfloat);
+WXE_EXTERN WXEGLMATERIALF weglMaterialf;
+typedef void (APIENTRY * WXEGLMATERIALFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLMATERIALFV weglMaterialfv;
+typedef void (APIENTRY * WXEGLMATERIALI)(GLenum,GLenum,GLint);
+WXE_EXTERN WXEGLMATERIALI weglMateriali;
+typedef void (APIENTRY * WXEGLMATERIALIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLMATERIALIV weglMaterialiv;
+typedef void (APIENTRY * WXEGLMATRIXMODE)(GLenum);
+WXE_EXTERN WXEGLMATRIXMODE weglMatrixMode;
+typedef void (APIENTRY * WXEGLMULTMATRIXD)(const GLdouble *);
+WXE_EXTERN WXEGLMULTMATRIXD weglMultMatrixd;
+typedef void (APIENTRY * WXEGLMULTMATRIXF)(const GLfloat *);
+WXE_EXTERN WXEGLMULTMATRIXF weglMultMatrixf;
+typedef void (APIENTRY * WXEGLNEWLIST)(GLuint,GLenum);
+WXE_EXTERN WXEGLNEWLIST weglNewList;
+typedef void (APIENTRY * WXEGLNORMAL3BV)(const GLbyte *);
+WXE_EXTERN WXEGLNORMAL3BV weglNormal3bv;
+typedef void (APIENTRY * WXEGLNORMAL3DV)(const GLdouble *);
+WXE_EXTERN WXEGLNORMAL3DV weglNormal3dv;
+typedef void (APIENTRY * WXEGLNORMAL3FV)(const GLfloat *);
+WXE_EXTERN WXEGLNORMAL3FV weglNormal3fv;
+typedef void (APIENTRY * WXEGLNORMAL3IV)(const GLint *);
+WXE_EXTERN WXEGLNORMAL3IV weglNormal3iv;
+typedef void (APIENTRY * WXEGLNORMAL3SV)(const GLshort *);
+WXE_EXTERN WXEGLNORMAL3SV weglNormal3sv;
+typedef void (APIENTRY * WXEGLNORMALPOINTER)(GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLNORMALPOINTER weglNormalPointer;
+typedef void (APIENTRY * WXEGLORTHO)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLORTHO weglOrtho;
+typedef void (APIENTRY * WXEGLPASSTHROUGH)(GLfloat);
+WXE_EXTERN WXEGLPASSTHROUGH weglPassThrough;
+typedef void (APIENTRY * WXEGLPIXELMAPFV)(GLenum,GLsizei,const GLfloat *);
+WXE_EXTERN WXEGLPIXELMAPFV weglPixelMapfv;
+typedef void (APIENTRY * WXEGLPIXELMAPUIV)(GLenum,GLsizei,const GLuint *);
+WXE_EXTERN WXEGLPIXELMAPUIV weglPixelMapuiv;
+typedef void (APIENTRY * WXEGLPIXELMAPUSV)(GLenum,GLsizei,const GLushort *);
+WXE_EXTERN WXEGLPIXELMAPUSV weglPixelMapusv;
+typedef void (APIENTRY * WXEGLPIXELSTOREF)(GLenum,GLfloat);
+WXE_EXTERN WXEGLPIXELSTOREF weglPixelStoref;
+typedef void (APIENTRY * WXEGLPIXELSTOREI)(GLenum,GLint);
+WXE_EXTERN WXEGLPIXELSTOREI weglPixelStorei;
+typedef void (APIENTRY * WXEGLPIXELTRANSFERF)(GLenum,GLfloat);
+WXE_EXTERN WXEGLPIXELTRANSFERF weglPixelTransferf;
+typedef void (APIENTRY * WXEGLPIXELTRANSFERI)(GLenum,GLint);
+WXE_EXTERN WXEGLPIXELTRANSFERI weglPixelTransferi;
+typedef void (APIENTRY * WXEGLPIXELZOOM)(GLfloat,GLfloat);
+WXE_EXTERN WXEGLPIXELZOOM weglPixelZoom;
+typedef void (APIENTRY * WXEGLPOINTSIZE)(GLfloat);
+WXE_EXTERN WXEGLPOINTSIZE weglPointSize;
+typedef void (APIENTRY * WXEGLPOLYGONMODE)(GLenum,GLenum);
+WXE_EXTERN WXEGLPOLYGONMODE weglPolygonMode;
+typedef void (APIENTRY * WXEGLPOLYGONOFFSET)(GLfloat,GLfloat);
+WXE_EXTERN WXEGLPOLYGONOFFSET weglPolygonOffset;
+typedef void (APIENTRY * WXEGLPOLYGONSTIPPLE)(const GLubyte *);
+WXE_EXTERN WXEGLPOLYGONSTIPPLE weglPolygonStipple;
+typedef void (APIENTRY * WXEGLPOPATTRIB)();
+WXE_EXTERN WXEGLPOPATTRIB weglPopAttrib;
+typedef void (APIENTRY * WXEGLPOPCLIENTATTRIB)();
+WXE_EXTERN WXEGLPOPCLIENTATTRIB weglPopClientAttrib;
+typedef void (APIENTRY * WXEGLPOPMATRIX)();
+WXE_EXTERN WXEGLPOPMATRIX weglPopMatrix;
+typedef void (APIENTRY * WXEGLPOPNAME)();
+WXE_EXTERN WXEGLPOPNAME weglPopName;
+typedef void (APIENTRY * WXEGLPRIORITIZETEXTURES)(GLsizei,const GLuint *,const GLclampf *);
+WXE_EXTERN WXEGLPRIORITIZETEXTURES weglPrioritizeTextures;
+typedef void (APIENTRY * WXEGLPUSHATTRIB)(GLbitfield);
+WXE_EXTERN WXEGLPUSHATTRIB weglPushAttrib;
+typedef void (APIENTRY * WXEGLPUSHCLIENTATTRIB)(GLbitfield);
+WXE_EXTERN WXEGLPUSHCLIENTATTRIB weglPushClientAttrib;
+typedef void (APIENTRY * WXEGLPUSHMATRIX)();
+WXE_EXTERN WXEGLPUSHMATRIX weglPushMatrix;
+typedef void (APIENTRY * WXEGLPUSHNAME)(GLuint);
+WXE_EXTERN WXEGLPUSHNAME weglPushName;
+typedef void (APIENTRY * WXEGLRASTERPOS2DV)(const GLdouble *);
+WXE_EXTERN WXEGLRASTERPOS2DV weglRasterPos2dv;
+typedef void (APIENTRY * WXEGLRASTERPOS2FV)(const GLfloat *);
+WXE_EXTERN WXEGLRASTERPOS2FV weglRasterPos2fv;
+typedef void (APIENTRY * WXEGLRASTERPOS2IV)(const GLint *);
+WXE_EXTERN WXEGLRASTERPOS2IV weglRasterPos2iv;
+typedef void (APIENTRY * WXEGLRASTERPOS2SV)(const GLshort *);
+WXE_EXTERN WXEGLRASTERPOS2SV weglRasterPos2sv;
+typedef void (APIENTRY * WXEGLRASTERPOS3DV)(const GLdouble *);
+WXE_EXTERN WXEGLRASTERPOS3DV weglRasterPos3dv;
+typedef void (APIENTRY * WXEGLRASTERPOS3FV)(const GLfloat *);
+WXE_EXTERN WXEGLRASTERPOS3FV weglRasterPos3fv;
+typedef void (APIENTRY * WXEGLRASTERPOS3IV)(const GLint *);
+WXE_EXTERN WXEGLRASTERPOS3IV weglRasterPos3iv;
+typedef void (APIENTRY * WXEGLRASTERPOS3SV)(const GLshort *);
+WXE_EXTERN WXEGLRASTERPOS3SV weglRasterPos3sv;
+typedef void (APIENTRY * WXEGLRASTERPOS4DV)(const GLdouble *);
+WXE_EXTERN WXEGLRASTERPOS4DV weglRasterPos4dv;
+typedef void (APIENTRY * WXEGLRASTERPOS4FV)(const GLfloat *);
+WXE_EXTERN WXEGLRASTERPOS4FV weglRasterPos4fv;
+typedef void (APIENTRY * WXEGLRASTERPOS4IV)(const GLint *);
+WXE_EXTERN WXEGLRASTERPOS4IV weglRasterPos4iv;
+typedef void (APIENTRY * WXEGLRASTERPOS4SV)(const GLshort *);
+WXE_EXTERN WXEGLRASTERPOS4SV weglRasterPos4sv;
+typedef void (APIENTRY * WXEGLREADBUFFER)(GLenum);
+WXE_EXTERN WXEGLREADBUFFER weglReadBuffer;
+typedef void (APIENTRY * WXEGLREADPIXELS)(GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLREADPIXELS weglReadPixels;
+typedef void (APIENTRY * WXEGLRECTD)(GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLRECTD weglRectd;
+typedef void (APIENTRY * WXEGLRECTDV)(const GLdouble *,const GLdouble *);
+WXE_EXTERN WXEGLRECTDV weglRectdv;
+typedef void (APIENTRY * WXEGLRECTF)(GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLRECTF weglRectf;
+typedef void (APIENTRY * WXEGLRECTFV)(const GLfloat *,const GLfloat *);
+WXE_EXTERN WXEGLRECTFV weglRectfv;
+typedef void (APIENTRY * WXEGLRECTI)(GLint,GLint,GLint,GLint);
+WXE_EXTERN WXEGLRECTI weglRecti;
+typedef void (APIENTRY * WXEGLRECTIV)(const GLint *,const GLint *);
+WXE_EXTERN WXEGLRECTIV weglRectiv;
+typedef void (APIENTRY * WXEGLRECTS)(GLshort,GLshort,GLshort,GLshort);
+WXE_EXTERN WXEGLRECTS weglRects;
+typedef void (APIENTRY * WXEGLRECTSV)(const GLshort *,const GLshort *);
+WXE_EXTERN WXEGLRECTSV weglRectsv;
+typedef GLint (APIENTRY * WXEGLRENDERMODE)(GLenum);
+WXE_EXTERN WXEGLRENDERMODE weglRenderMode;
+typedef void (APIENTRY * WXEGLROTATED)(GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLROTATED weglRotated;
+typedef void (APIENTRY * WXEGLROTATEF)(GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLROTATEF weglRotatef;
+typedef void (APIENTRY * WXEGLSCALED)(GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLSCALED weglScaled;
+typedef void (APIENTRY * WXEGLSCALEF)(GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLSCALEF weglScalef;
+typedef void (APIENTRY * WXEGLSCISSOR)(GLint,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLSCISSOR weglScissor;
+typedef void (APIENTRY * WXEGLSELECTBUFFER)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLSELECTBUFFER weglSelectBuffer;
+typedef void (APIENTRY * WXEGLSHADEMODEL)(GLenum);
+WXE_EXTERN WXEGLSHADEMODEL weglShadeModel;
+typedef void (APIENTRY * WXEGLSTENCILFUNC)(GLenum,GLint,GLuint);
+WXE_EXTERN WXEGLSTENCILFUNC weglStencilFunc;
+typedef void (APIENTRY * WXEGLSTENCILMASK)(GLuint);
+WXE_EXTERN WXEGLSTENCILMASK weglStencilMask;
+typedef void (APIENTRY * WXEGLSTENCILOP)(GLenum,GLenum,GLenum);
+WXE_EXTERN WXEGLSTENCILOP weglStencilOp;
+typedef void (APIENTRY * WXEGLTEXCOORD1DV)(const GLdouble *);
+WXE_EXTERN WXEGLTEXCOORD1DV weglTexCoord1dv;
+typedef void (APIENTRY * WXEGLTEXCOORD1FV)(const GLfloat *);
+WXE_EXTERN WXEGLTEXCOORD1FV weglTexCoord1fv;
+typedef void (APIENTRY * WXEGLTEXCOORD1IV)(const GLint *);
+WXE_EXTERN WXEGLTEXCOORD1IV weglTexCoord1iv;
+typedef void (APIENTRY * WXEGLTEXCOORD1SV)(const GLshort *);
+WXE_EXTERN WXEGLTEXCOORD1SV weglTexCoord1sv;
+typedef void (APIENTRY * WXEGLTEXCOORD2DV)(const GLdouble *);
+WXE_EXTERN WXEGLTEXCOORD2DV weglTexCoord2dv;
+typedef void (APIENTRY * WXEGLTEXCOORD2FV)(const GLfloat *);
+WXE_EXTERN WXEGLTEXCOORD2FV weglTexCoord2fv;
+typedef void (APIENTRY * WXEGLTEXCOORD2IV)(const GLint *);
+WXE_EXTERN WXEGLTEXCOORD2IV weglTexCoord2iv;
+typedef void (APIENTRY * WXEGLTEXCOORD2SV)(const GLshort *);
+WXE_EXTERN WXEGLTEXCOORD2SV weglTexCoord2sv;
+typedef void (APIENTRY * WXEGLTEXCOORD3DV)(const GLdouble *);
+WXE_EXTERN WXEGLTEXCOORD3DV weglTexCoord3dv;
+typedef void (APIENTRY * WXEGLTEXCOORD3FV)(const GLfloat *);
+WXE_EXTERN WXEGLTEXCOORD3FV weglTexCoord3fv;
+typedef void (APIENTRY * WXEGLTEXCOORD3IV)(const GLint *);
+WXE_EXTERN WXEGLTEXCOORD3IV weglTexCoord3iv;
+typedef void (APIENTRY * WXEGLTEXCOORD3SV)(const GLshort *);
+WXE_EXTERN WXEGLTEXCOORD3SV weglTexCoord3sv;
+typedef void (APIENTRY * WXEGLTEXCOORD4DV)(const GLdouble *);
+WXE_EXTERN WXEGLTEXCOORD4DV weglTexCoord4dv;
+typedef void (APIENTRY * WXEGLTEXCOORD4FV)(const GLfloat *);
+WXE_EXTERN WXEGLTEXCOORD4FV weglTexCoord4fv;
+typedef void (APIENTRY * WXEGLTEXCOORD4IV)(const GLint *);
+WXE_EXTERN WXEGLTEXCOORD4IV weglTexCoord4iv;
+typedef void (APIENTRY * WXEGLTEXCOORD4SV)(const GLshort *);
+WXE_EXTERN WXEGLTEXCOORD4SV weglTexCoord4sv;
+typedef void (APIENTRY * WXEGLTEXCOORDPOINTER)(GLint,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLTEXCOORDPOINTER weglTexCoordPointer;
+typedef void (APIENTRY * WXEGLTEXENVF)(GLenum,GLenum,GLfloat);
+WXE_EXTERN WXEGLTEXENVF weglTexEnvf;
+typedef void (APIENTRY * WXEGLTEXENVFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLTEXENVFV weglTexEnvfv;
+typedef void (APIENTRY * WXEGLTEXENVI)(GLenum,GLenum,GLint);
+WXE_EXTERN WXEGLTEXENVI weglTexEnvi;
+typedef void (APIENTRY * WXEGLTEXENVIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLTEXENVIV weglTexEnviv;
+typedef void (APIENTRY * WXEGLTEXGEND)(GLenum,GLenum,GLdouble);
+WXE_EXTERN WXEGLTEXGEND weglTexGend;
+typedef void (APIENTRY * WXEGLTEXGENDV)(GLenum,GLenum,const GLdouble *);
+WXE_EXTERN WXEGLTEXGENDV weglTexGendv;
+typedef void (APIENTRY * WXEGLTEXGENF)(GLenum,GLenum,GLfloat);
+WXE_EXTERN WXEGLTEXGENF weglTexGenf;
+typedef void (APIENTRY * WXEGLTEXGENFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLTEXGENFV weglTexGenfv;
+typedef void (APIENTRY * WXEGLTEXGENI)(GLenum,GLenum,GLint);
+WXE_EXTERN WXEGLTEXGENI weglTexGeni;
+typedef void (APIENTRY * WXEGLTEXGENIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLTEXGENIV weglTexGeniv;
+typedef void (APIENTRY * WXEGLTEXIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLint,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXIMAGE1D weglTexImage1D;
+typedef void (APIENTRY * WXEGLTEXIMAGE2D)(GLenum,GLint,GLint,GLsizei,GLsizei,GLint,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXIMAGE2D weglTexImage2D;
+typedef void (APIENTRY * WXEGLTEXPARAMETERF)(GLenum,GLenum,GLfloat);
+WXE_EXTERN WXEGLTEXPARAMETERF weglTexParameterf;
+typedef void (APIENTRY * WXEGLTEXPARAMETERFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLTEXPARAMETERFV weglTexParameterfv;
+typedef void (APIENTRY * WXEGLTEXPARAMETERI)(GLenum,GLenum,GLint);
+WXE_EXTERN WXEGLTEXPARAMETERI weglTexParameteri;
+typedef void (APIENTRY * WXEGLTEXPARAMETERIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLTEXPARAMETERIV weglTexParameteriv;
+typedef void (APIENTRY * WXEGLTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXSUBIMAGE1D weglTexSubImage1D;
+typedef void (APIENTRY * WXEGLTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXSUBIMAGE2D weglTexSubImage2D;
+typedef void (APIENTRY * WXEGLTRANSLATED)(GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLTRANSLATED weglTranslated;
+typedef void (APIENTRY * WXEGLTRANSLATEF)(GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLTRANSLATEF weglTranslatef;
+typedef void (APIENTRY * WXEGLVERTEX2DV)(const GLdouble *);
+WXE_EXTERN WXEGLVERTEX2DV weglVertex2dv;
+typedef void (APIENTRY * WXEGLVERTEX2FV)(const GLfloat *);
+WXE_EXTERN WXEGLVERTEX2FV weglVertex2fv;
+typedef void (APIENTRY * WXEGLVERTEX2IV)(const GLint *);
+WXE_EXTERN WXEGLVERTEX2IV weglVertex2iv;
+typedef void (APIENTRY * WXEGLVERTEX2SV)(const GLshort *);
+WXE_EXTERN WXEGLVERTEX2SV weglVertex2sv;
+typedef void (APIENTRY * WXEGLVERTEX3DV)(const GLdouble *);
+WXE_EXTERN WXEGLVERTEX3DV weglVertex3dv;
+typedef void (APIENTRY * WXEGLVERTEX3FV)(const GLfloat *);
+WXE_EXTERN WXEGLVERTEX3FV weglVertex3fv;
+typedef void (APIENTRY * WXEGLVERTEX3IV)(const GLint *);
+WXE_EXTERN WXEGLVERTEX3IV weglVertex3iv;
+typedef void (APIENTRY * WXEGLVERTEX3SV)(const GLshort *);
+WXE_EXTERN WXEGLVERTEX3SV weglVertex3sv;
+typedef void (APIENTRY * WXEGLVERTEX4DV)(const GLdouble *);
+WXE_EXTERN WXEGLVERTEX4DV weglVertex4dv;
+typedef void (APIENTRY * WXEGLVERTEX4FV)(const GLfloat *);
+WXE_EXTERN WXEGLVERTEX4FV weglVertex4fv;
+typedef void (APIENTRY * WXEGLVERTEX4IV)(const GLint *);
+WXE_EXTERN WXEGLVERTEX4IV weglVertex4iv;
+typedef void (APIENTRY * WXEGLVERTEX4SV)(const GLshort *);
+WXE_EXTERN WXEGLVERTEX4SV weglVertex4sv;
+typedef void (APIENTRY * WXEGLVERTEXPOINTER)(GLint,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLVERTEXPOINTER weglVertexPointer;
+typedef void (APIENTRY * WXEGLVIEWPORT)(GLint,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLVIEWPORT weglViewport;
+typedef void (APIENTRY * WXEGLBLENDCOLOR)(GLclampf,GLclampf,GLclampf,GLclampf);
+WXE_EXTERN WXEGLBLENDCOLOR weglBlendColor;
+typedef void (APIENTRY * WXEGLBLENDEQUATION)(GLenum);
+WXE_EXTERN WXEGLBLENDEQUATION weglBlendEquation;
+typedef void (APIENTRY * WXEGLDRAWRANGEELEMENTS)(GLenum,GLuint,GLuint,GLsizei,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLDRAWRANGEELEMENTS weglDrawRangeElements;
+typedef void (APIENTRY * WXEGLTEXIMAGE3D)(GLenum,GLint,GLint,GLsizei,GLsizei,GLsizei,GLint,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXIMAGE3D weglTexImage3D;
+typedef void (APIENTRY * WXEGLTEXSUBIMAGE3D)(GLenum,GLint,GLint,GLint,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLTEXSUBIMAGE3D weglTexSubImage3D;
+typedef void (APIENTRY * WXEGLCOPYTEXSUBIMAGE3D)(GLenum,GLint,GLint,GLint,GLint,GLint,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLCOPYTEXSUBIMAGE3D weglCopyTexSubImage3D;
+typedef void (APIENTRY * WXEGLCOLORTABLE)(GLenum,GLenum,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLCOLORTABLE weglColorTable;
+typedef void (APIENTRY * WXEGLCOLORTABLEPARAMETERFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLCOLORTABLEPARAMETERFV weglColorTableParameterfv;
+typedef void (APIENTRY * WXEGLCOLORTABLEPARAMETERIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLCOLORTABLEPARAMETERIV weglColorTableParameteriv;
+typedef void (APIENTRY * WXEGLCOPYCOLORTABLE)(GLenum,GLenum,GLint,GLint,GLsizei);
+WXE_EXTERN WXEGLCOPYCOLORTABLE weglCopyColorTable;
+typedef void (APIENTRY * WXEGLGETCOLORTABLE)(GLenum,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETCOLORTABLE weglGetColorTable;
+typedef void (APIENTRY * WXEGLGETCOLORTABLEPARAMETERFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETCOLORTABLEPARAMETERFV weglGetColorTableParameterfv;
+typedef void (APIENTRY * WXEGLGETCOLORTABLEPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETCOLORTABLEPARAMETERIV weglGetColorTableParameteriv;
+typedef void (APIENTRY * WXEGLCOLORSUBTABLE)(GLenum,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLCOLORSUBTABLE weglColorSubTable;
+typedef void (APIENTRY * WXEGLCOPYCOLORSUBTABLE)(GLenum,GLsizei,GLint,GLint,GLsizei);
+WXE_EXTERN WXEGLCOPYCOLORSUBTABLE weglCopyColorSubTable;
+typedef void (APIENTRY * WXEGLCONVOLUTIONFILTER1D)(GLenum,GLenum,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLCONVOLUTIONFILTER1D weglConvolutionFilter1D;
+typedef void (APIENTRY * WXEGLCONVOLUTIONFILTER2D)(GLenum,GLenum,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *);
+WXE_EXTERN WXEGLCONVOLUTIONFILTER2D weglConvolutionFilter2D;
+typedef void (APIENTRY * WXEGLCONVOLUTIONPARAMETERFV)(GLenum,GLenum,const GLfloat *);
+WXE_EXTERN WXEGLCONVOLUTIONPARAMETERFV weglConvolutionParameterfv;
+typedef void (APIENTRY * WXEGLCONVOLUTIONPARAMETERIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLCONVOLUTIONPARAMETERIV weglConvolutionParameteriv;
+typedef void (APIENTRY * WXEGLCOPYCONVOLUTIONFILTER1D)(GLenum,GLenum,GLint,GLint,GLsizei);
+WXE_EXTERN WXEGLCOPYCONVOLUTIONFILTER1D weglCopyConvolutionFilter1D;
+typedef void (APIENTRY * WXEGLCOPYCONVOLUTIONFILTER2D)(GLenum,GLenum,GLint,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLCOPYCONVOLUTIONFILTER2D weglCopyConvolutionFilter2D;
+typedef void (APIENTRY * WXEGLGETCONVOLUTIONFILTER)(GLenum,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETCONVOLUTIONFILTER weglGetConvolutionFilter;
+typedef void (APIENTRY * WXEGLGETCONVOLUTIONPARAMETERFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETCONVOLUTIONPARAMETERFV weglGetConvolutionParameterfv;
+typedef void (APIENTRY * WXEGLGETCONVOLUTIONPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETCONVOLUTIONPARAMETERIV weglGetConvolutionParameteriv;
+typedef void (APIENTRY * WXEGLSEPARABLEFILTER2D)(GLenum,GLenum,GLsizei,GLsizei,GLenum,GLenum,const GLvoid *,const GLvoid *);
+WXE_EXTERN WXEGLSEPARABLEFILTER2D weglSeparableFilter2D;
+typedef void (APIENTRY * WXEGLGETHISTOGRAM)(GLenum,GLboolean,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETHISTOGRAM weglGetHistogram;
+typedef void (APIENTRY * WXEGLGETHISTOGRAMPARAMETERFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETHISTOGRAMPARAMETERFV weglGetHistogramParameterfv;
+typedef void (APIENTRY * WXEGLGETHISTOGRAMPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETHISTOGRAMPARAMETERIV weglGetHistogramParameteriv;
+typedef void (APIENTRY * WXEGLGETMINMAX)(GLenum,GLboolean,GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETMINMAX weglGetMinmax;
+typedef void (APIENTRY * WXEGLGETMINMAXPARAMETERFV)(GLenum,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETMINMAXPARAMETERFV weglGetMinmaxParameterfv;
+typedef void (APIENTRY * WXEGLGETMINMAXPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETMINMAXPARAMETERIV weglGetMinmaxParameteriv;
+typedef void (APIENTRY * WXEGLHISTOGRAM)(GLenum,GLsizei,GLenum,GLboolean);
+WXE_EXTERN WXEGLHISTOGRAM weglHistogram;
+typedef void (APIENTRY * WXEGLMINMAX)(GLenum,GLenum,GLboolean);
+WXE_EXTERN WXEGLMINMAX weglMinmax;
+typedef void (APIENTRY * WXEGLRESETHISTOGRAM)(GLenum);
+WXE_EXTERN WXEGLRESETHISTOGRAM weglResetHistogram;
+typedef void (APIENTRY * WXEGLRESETMINMAX)(GLenum);
+WXE_EXTERN WXEGLRESETMINMAX weglResetMinmax;
+typedef void (APIENTRY * WXEGLACTIVETEXTURE)(GLenum);
+WXE_EXTERN WXEGLACTIVETEXTURE weglActiveTexture;
+typedef void (APIENTRY * WXEGLSAMPLECOVERAGE)(GLclampf,GLboolean);
+WXE_EXTERN WXEGLSAMPLECOVERAGE weglSampleCoverage;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXIMAGE3D)(GLenum,GLint,GLenum,GLsizei,GLsizei,GLsizei,GLint,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXIMAGE3D weglCompressedTexImage3D;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXIMAGE2D)(GLenum,GLint,GLenum,GLsizei,GLsizei,GLint,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXIMAGE2D weglCompressedTexImage2D;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXIMAGE1D)(GLenum,GLint,GLenum,GLsizei,GLint,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXIMAGE1D weglCompressedTexImage1D;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXSUBIMAGE3D)(GLenum,GLint,GLint,GLint,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXSUBIMAGE3D weglCompressedTexSubImage3D;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXSUBIMAGE2D)(GLenum,GLint,GLint,GLint,GLsizei,GLsizei,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXSUBIMAGE2D weglCompressedTexSubImage2D;
+typedef void (APIENTRY * WXEGLCOMPRESSEDTEXSUBIMAGE1D)(GLenum,GLint,GLint,GLsizei,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLCOMPRESSEDTEXSUBIMAGE1D weglCompressedTexSubImage1D;
+typedef void (APIENTRY * WXEGLGETCOMPRESSEDTEXIMAGE)(GLenum,GLint,GLvoid *);
+WXE_EXTERN WXEGLGETCOMPRESSEDTEXIMAGE weglGetCompressedTexImage;
+typedef void (APIENTRY * WXEGLCLIENTACTIVETEXTURE)(GLenum);
+WXE_EXTERN WXEGLCLIENTACTIVETEXTURE weglClientActiveTexture;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD1DV)(GLenum,const GLdouble *);
+WXE_EXTERN WXEGLMULTITEXCOORD1DV weglMultiTexCoord1dv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD1FV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLMULTITEXCOORD1FV weglMultiTexCoord1fv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD1IV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLMULTITEXCOORD1IV weglMultiTexCoord1iv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD1SV)(GLenum,const GLshort *);
+WXE_EXTERN WXEGLMULTITEXCOORD1SV weglMultiTexCoord1sv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD2DV)(GLenum,const GLdouble *);
+WXE_EXTERN WXEGLMULTITEXCOORD2DV weglMultiTexCoord2dv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD2FV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLMULTITEXCOORD2FV weglMultiTexCoord2fv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD2IV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLMULTITEXCOORD2IV weglMultiTexCoord2iv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD2SV)(GLenum,const GLshort *);
+WXE_EXTERN WXEGLMULTITEXCOORD2SV weglMultiTexCoord2sv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD3DV)(GLenum,const GLdouble *);
+WXE_EXTERN WXEGLMULTITEXCOORD3DV weglMultiTexCoord3dv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD3FV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLMULTITEXCOORD3FV weglMultiTexCoord3fv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD3IV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLMULTITEXCOORD3IV weglMultiTexCoord3iv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD3SV)(GLenum,const GLshort *);
+WXE_EXTERN WXEGLMULTITEXCOORD3SV weglMultiTexCoord3sv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD4DV)(GLenum,const GLdouble *);
+WXE_EXTERN WXEGLMULTITEXCOORD4DV weglMultiTexCoord4dv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD4FV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLMULTITEXCOORD4FV weglMultiTexCoord4fv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD4IV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLMULTITEXCOORD4IV weglMultiTexCoord4iv;
+typedef void (APIENTRY * WXEGLMULTITEXCOORD4SV)(GLenum,const GLshort *);
+WXE_EXTERN WXEGLMULTITEXCOORD4SV weglMultiTexCoord4sv;
+typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXF)(const GLfloat *);
+WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXF weglLoadTransposeMatrixf;
+typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXD)(const GLdouble *);
+WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXD weglLoadTransposeMatrixd;
+typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXF)(const GLfloat *);
+WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXF weglMultTransposeMatrixf;
+typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXD)(const GLdouble *);
+WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXD weglMultTransposeMatrixd;
+typedef void (APIENTRY * WXEGLBLENDFUNCSEPARATE)(GLenum,GLenum,GLenum,GLenum);
+WXE_EXTERN WXEGLBLENDFUNCSEPARATE weglBlendFuncSeparate;
+typedef void (APIENTRY * WXEGLMULTIDRAWARRAYS)(GLenum,GLint *,GLsizei *,GLsizei);
+WXE_EXTERN WXEGLMULTIDRAWARRAYS weglMultiDrawArrays;
+typedef void (APIENTRY * WXEGLPOINTPARAMETERF)(GLenum,GLfloat);
+WXE_EXTERN WXEGLPOINTPARAMETERF weglPointParameterf;
+typedef void (APIENTRY * WXEGLPOINTPARAMETERFV)(GLenum,const GLfloat *);
+WXE_EXTERN WXEGLPOINTPARAMETERFV weglPointParameterfv;
+typedef void (APIENTRY * WXEGLPOINTPARAMETERI)(GLenum,GLint);
+WXE_EXTERN WXEGLPOINTPARAMETERI weglPointParameteri;
+typedef void (APIENTRY * WXEGLPOINTPARAMETERIV)(GLenum,const GLint *);
+WXE_EXTERN WXEGLPOINTPARAMETERIV weglPointParameteriv;
+typedef void (APIENTRY * WXEGLFOGCOORDFV)(const GLfloat *);
+WXE_EXTERN WXEGLFOGCOORDFV weglFogCoordfv;
+typedef void (APIENTRY * WXEGLFOGCOORDDV)(const GLdouble *);
+WXE_EXTERN WXEGLFOGCOORDDV weglFogCoorddv;
+typedef void (APIENTRY * WXEGLFOGCOORDPOINTER)(GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLFOGCOORDPOINTER weglFogCoordPointer;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3BV)(const GLbyte *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3BV weglSecondaryColor3bv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3DV)(const GLdouble *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3DV weglSecondaryColor3dv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3FV)(const GLfloat *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3FV weglSecondaryColor3fv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3IV)(const GLint *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3IV weglSecondaryColor3iv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3SV)(const GLshort *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3SV weglSecondaryColor3sv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3UBV)(const GLubyte *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3UBV weglSecondaryColor3ubv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3UIV)(const GLuint *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3UIV weglSecondaryColor3uiv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLOR3USV)(const GLushort *);
+WXE_EXTERN WXEGLSECONDARYCOLOR3USV weglSecondaryColor3usv;
+typedef void (APIENTRY * WXEGLSECONDARYCOLORPOINTER)(GLint,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLSECONDARYCOLORPOINTER weglSecondaryColorPointer;
+typedef void (APIENTRY * WXEGLWINDOWPOS2DV)(const GLdouble *);
+WXE_EXTERN WXEGLWINDOWPOS2DV weglWindowPos2dv;
+typedef void (APIENTRY * WXEGLWINDOWPOS2FV)(const GLfloat *);
+WXE_EXTERN WXEGLWINDOWPOS2FV weglWindowPos2fv;
+typedef void (APIENTRY * WXEGLWINDOWPOS2IV)(const GLint *);
+WXE_EXTERN WXEGLWINDOWPOS2IV weglWindowPos2iv;
+typedef void (APIENTRY * WXEGLWINDOWPOS2SV)(const GLshort *);
+WXE_EXTERN WXEGLWINDOWPOS2SV weglWindowPos2sv;
+typedef void (APIENTRY * WXEGLWINDOWPOS3DV)(const GLdouble *);
+WXE_EXTERN WXEGLWINDOWPOS3DV weglWindowPos3dv;
+typedef void (APIENTRY * WXEGLWINDOWPOS3FV)(const GLfloat *);
+WXE_EXTERN WXEGLWINDOWPOS3FV weglWindowPos3fv;
+typedef void (APIENTRY * WXEGLWINDOWPOS3IV)(const GLint *);
+WXE_EXTERN WXEGLWINDOWPOS3IV weglWindowPos3iv;
+typedef void (APIENTRY * WXEGLWINDOWPOS3SV)(const GLshort *);
+WXE_EXTERN WXEGLWINDOWPOS3SV weglWindowPos3sv;
+typedef void (APIENTRY * WXEGLGENQUERIES)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENQUERIES weglGenQueries;
+typedef void (APIENTRY * WXEGLDELETEQUERIES)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETEQUERIES weglDeleteQueries;
+typedef GLboolean (APIENTRY * WXEGLISQUERY)(GLuint);
+WXE_EXTERN WXEGLISQUERY weglIsQuery;
+typedef void (APIENTRY * WXEGLBEGINQUERY)(GLenum,GLuint);
+WXE_EXTERN WXEGLBEGINQUERY weglBeginQuery;
+typedef void (APIENTRY * WXEGLENDQUERY)(GLenum);
+WXE_EXTERN WXEGLENDQUERY weglEndQuery;
+typedef void (APIENTRY * WXEGLGETQUERYIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETQUERYIV weglGetQueryiv;
+typedef void (APIENTRY * WXEGLGETQUERYOBJECTIV)(GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETQUERYOBJECTIV weglGetQueryObjectiv;
+typedef void (APIENTRY * WXEGLGETQUERYOBJECTUIV)(GLuint,GLenum,GLuint *);
+WXE_EXTERN WXEGLGETQUERYOBJECTUIV weglGetQueryObjectuiv;
+typedef void (APIENTRY * WXEGLBINDBUFFER)(GLenum,GLuint);
+WXE_EXTERN WXEGLBINDBUFFER weglBindBuffer;
+typedef void (APIENTRY * WXEGLDELETEBUFFERS)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETEBUFFERS weglDeleteBuffers;
+typedef void (APIENTRY * WXEGLGENBUFFERS)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENBUFFERS weglGenBuffers;
+typedef GLboolean (APIENTRY * WXEGLISBUFFER)(GLuint);
+WXE_EXTERN WXEGLISBUFFER weglIsBuffer;
+typedef void (APIENTRY * WXEGLBUFFERDATA)(GLenum,GLsizeiptr,const GLvoid *,GLenum);
+WXE_EXTERN WXEGLBUFFERDATA weglBufferData;
+typedef void (APIENTRY * WXEGLBUFFERSUBDATA)(GLenum,GLintptr,GLsizeiptr,const GLvoid *);
+WXE_EXTERN WXEGLBUFFERSUBDATA weglBufferSubData;
+typedef void (APIENTRY * WXEGLGETBUFFERSUBDATA)(GLenum,GLintptr,GLsizeiptr,GLvoid *);
+WXE_EXTERN WXEGLGETBUFFERSUBDATA weglGetBufferSubData;
+typedef void (APIENTRY * WXEGLGETBUFFERPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETBUFFERPARAMETERIV weglGetBufferParameteriv;
+typedef void (APIENTRY * WXEGLBLENDEQUATIONSEPARATE)(GLenum,GLenum);
+WXE_EXTERN WXEGLBLENDEQUATIONSEPARATE weglBlendEquationSeparate;
+typedef void (APIENTRY * WXEGLDRAWBUFFERS)(GLsizei,const GLenum *);
+WXE_EXTERN WXEGLDRAWBUFFERS weglDrawBuffers;
+typedef void (APIENTRY * WXEGLSTENCILOPSEPARATE)(GLenum,GLenum,GLenum,GLenum);
+WXE_EXTERN WXEGLSTENCILOPSEPARATE weglStencilOpSeparate;
+typedef void (APIENTRY * WXEGLSTENCILFUNCSEPARATE)(GLenum,GLenum,GLint,GLuint);
+WXE_EXTERN WXEGLSTENCILFUNCSEPARATE weglStencilFuncSeparate;
+typedef void (APIENTRY * WXEGLSTENCILMASKSEPARATE)(GLenum,GLuint);
+WXE_EXTERN WXEGLSTENCILMASKSEPARATE weglStencilMaskSeparate;
+typedef void (APIENTRY * WXEGLATTACHSHADER)(GLuint,GLuint);
+WXE_EXTERN WXEGLATTACHSHADER weglAttachShader;
+typedef void (APIENTRY * WXEGLBINDATTRIBLOCATION)(GLuint,GLuint,const GLchar *);
+WXE_EXTERN WXEGLBINDATTRIBLOCATION weglBindAttribLocation;
+typedef void (APIENTRY * WXEGLCOMPILESHADER)(GLuint);
+WXE_EXTERN WXEGLCOMPILESHADER weglCompileShader;
+typedef GLuint (APIENTRY * WXEGLCREATEPROGRAM)();
+WXE_EXTERN WXEGLCREATEPROGRAM weglCreateProgram;
+typedef GLuint (APIENTRY * WXEGLCREATESHADER)(GLenum);
+WXE_EXTERN WXEGLCREATESHADER weglCreateShader;
+typedef void (APIENTRY * WXEGLDELETEPROGRAM)(GLuint);
+WXE_EXTERN WXEGLDELETEPROGRAM weglDeleteProgram;
+typedef void (APIENTRY * WXEGLDELETESHADER)(GLuint);
+WXE_EXTERN WXEGLDELETESHADER weglDeleteShader;
+typedef void (APIENTRY * WXEGLDETACHSHADER)(GLuint,GLuint);
+WXE_EXTERN WXEGLDETACHSHADER weglDetachShader;
+typedef void (APIENTRY * WXEGLDISABLEVERTEXATTRIBARRAY)(GLuint);
+WXE_EXTERN WXEGLDISABLEVERTEXATTRIBARRAY weglDisableVertexAttribArray;
+typedef void (APIENTRY * WXEGLENABLEVERTEXATTRIBARRAY)(GLuint);
+WXE_EXTERN WXEGLENABLEVERTEXATTRIBARRAY weglEnableVertexAttribArray;
+typedef void (APIENTRY * WXEGLGETACTIVEATTRIB)(GLuint,GLuint,GLsizei,GLsizei *,GLint *,GLenum *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEATTRIB weglGetActiveAttrib;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORM)(GLuint,GLuint,GLsizei,GLsizei *,GLint *,GLenum *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORM weglGetActiveUniform;
+typedef void (APIENTRY * WXEGLGETATTACHEDSHADERS)(GLuint,GLsizei,GLsizei *,GLuint *);
+WXE_EXTERN WXEGLGETATTACHEDSHADERS weglGetAttachedShaders;
+typedef GLint (APIENTRY * WXEGLGETATTRIBLOCATION)(GLuint,const GLchar *);
+WXE_EXTERN WXEGLGETATTRIBLOCATION weglGetAttribLocation;
+typedef void (APIENTRY * WXEGLGETPROGRAMIV)(GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETPROGRAMIV weglGetProgramiv;
+typedef void (APIENTRY * WXEGLGETPROGRAMINFOLOG)(GLuint,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETPROGRAMINFOLOG weglGetProgramInfoLog;
+typedef void (APIENTRY * WXEGLGETSHADERIV)(GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETSHADERIV weglGetShaderiv;
+typedef void (APIENTRY * WXEGLGETSHADERINFOLOG)(GLuint,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETSHADERINFOLOG weglGetShaderInfoLog;
+typedef void (APIENTRY * WXEGLGETSHADERSOURCE)(GLuint,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETSHADERSOURCE weglGetShaderSource;
+typedef GLint (APIENTRY * WXEGLGETUNIFORMLOCATION)(GLuint,const GLchar *);
+WXE_EXTERN WXEGLGETUNIFORMLOCATION weglGetUniformLocation;
+typedef void (APIENTRY * WXEGLGETUNIFORMFV)(GLuint,GLint,GLfloat *);
+WXE_EXTERN WXEGLGETUNIFORMFV weglGetUniformfv;
+typedef void (APIENTRY * WXEGLGETUNIFORMIV)(GLuint,GLint,GLint *);
+WXE_EXTERN WXEGLGETUNIFORMIV weglGetUniformiv;
+typedef void (APIENTRY * WXEGLGETVERTEXATTRIBDV)(GLuint,GLenum,GLdouble *);
+WXE_EXTERN WXEGLGETVERTEXATTRIBDV weglGetVertexAttribdv;
+typedef void (APIENTRY * WXEGLGETVERTEXATTRIBFV)(GLuint,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETVERTEXATTRIBFV weglGetVertexAttribfv;
+typedef void (APIENTRY * WXEGLGETVERTEXATTRIBIV)(GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETVERTEXATTRIBIV weglGetVertexAttribiv;
+typedef GLboolean (APIENTRY * WXEGLISPROGRAM)(GLuint);
+WXE_EXTERN WXEGLISPROGRAM weglIsProgram;
+typedef GLboolean (APIENTRY * WXEGLISSHADER)(GLuint);
+WXE_EXTERN WXEGLISSHADER weglIsShader;
+typedef void (APIENTRY * WXEGLLINKPROGRAM)(GLuint);
+WXE_EXTERN WXEGLLINKPROGRAM weglLinkProgram;
+typedef void (APIENTRY * WXEGLSHADERSOURCE)(GLuint,GLsizei,const GLchar **,const GLint *);
+WXE_EXTERN WXEGLSHADERSOURCE weglShaderSource;
+typedef void (APIENTRY * WXEGLUSEPROGRAM)(GLuint);
+WXE_EXTERN WXEGLUSEPROGRAM weglUseProgram;
+typedef void (APIENTRY * WXEGLUNIFORM1F)(GLint,GLfloat);
+WXE_EXTERN WXEGLUNIFORM1F weglUniform1f;
+typedef void (APIENTRY * WXEGLUNIFORM2F)(GLint,GLfloat,GLfloat);
+WXE_EXTERN WXEGLUNIFORM2F weglUniform2f;
+typedef void (APIENTRY * WXEGLUNIFORM3F)(GLint,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLUNIFORM3F weglUniform3f;
+typedef void (APIENTRY * WXEGLUNIFORM4F)(GLint,GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLUNIFORM4F weglUniform4f;
+typedef void (APIENTRY * WXEGLUNIFORM1I)(GLint,GLint);
+WXE_EXTERN WXEGLUNIFORM1I weglUniform1i;
+typedef void (APIENTRY * WXEGLUNIFORM2I)(GLint,GLint,GLint);
+WXE_EXTERN WXEGLUNIFORM2I weglUniform2i;
+typedef void (APIENTRY * WXEGLUNIFORM3I)(GLint,GLint,GLint,GLint);
+WXE_EXTERN WXEGLUNIFORM3I weglUniform3i;
+typedef void (APIENTRY * WXEGLUNIFORM4I)(GLint,GLint,GLint,GLint,GLint);
+WXE_EXTERN WXEGLUNIFORM4I weglUniform4i;
+typedef void (APIENTRY * WXEGLUNIFORM1FV)(GLint,GLsizei,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORM1FV weglUniform1fv;
+typedef void (APIENTRY * WXEGLUNIFORM2FV)(GLint,GLsizei,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORM2FV weglUniform2fv;
+typedef void (APIENTRY * WXEGLUNIFORM3FV)(GLint,GLsizei,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORM3FV weglUniform3fv;
+typedef void (APIENTRY * WXEGLUNIFORM4FV)(GLint,GLsizei,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORM4FV weglUniform4fv;
+typedef void (APIENTRY * WXEGLUNIFORM1IV)(GLint,GLsizei,const GLint *);
+WXE_EXTERN WXEGLUNIFORM1IV weglUniform1iv;
+typedef void (APIENTRY * WXEGLUNIFORM2IV)(GLint,GLsizei,const GLint *);
+WXE_EXTERN WXEGLUNIFORM2IV weglUniform2iv;
+typedef void (APIENTRY * WXEGLUNIFORM3IV)(GLint,GLsizei,const GLint *);
+WXE_EXTERN WXEGLUNIFORM3IV weglUniform3iv;
+typedef void (APIENTRY * WXEGLUNIFORM4IV)(GLint,GLsizei,const GLint *);
+WXE_EXTERN WXEGLUNIFORM4IV weglUniform4iv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX2FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX2FV weglUniformMatrix2fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX3FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX3FV weglUniformMatrix3fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX4FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX4FV weglUniformMatrix4fv;
+typedef void (APIENTRY * WXEGLVALIDATEPROGRAM)(GLuint);
+WXE_EXTERN WXEGLVALIDATEPROGRAM weglValidateProgram;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB1DV)(GLuint,const GLdouble *);
+WXE_EXTERN WXEGLVERTEXATTRIB1DV weglVertexAttrib1dv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB1FV)(GLuint,const GLfloat *);
+WXE_EXTERN WXEGLVERTEXATTRIB1FV weglVertexAttrib1fv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB1SV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIB1SV weglVertexAttrib1sv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB2DV)(GLuint,const GLdouble *);
+WXE_EXTERN WXEGLVERTEXATTRIB2DV weglVertexAttrib2dv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB2FV)(GLuint,const GLfloat *);
+WXE_EXTERN WXEGLVERTEXATTRIB2FV weglVertexAttrib2fv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB2SV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIB2SV weglVertexAttrib2sv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB3DV)(GLuint,const GLdouble *);
+WXE_EXTERN WXEGLVERTEXATTRIB3DV weglVertexAttrib3dv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB3FV)(GLuint,const GLfloat *);
+WXE_EXTERN WXEGLVERTEXATTRIB3FV weglVertexAttrib3fv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB3SV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIB3SV weglVertexAttrib3sv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NBV)(GLuint,const GLbyte *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NBV weglVertexAttrib4Nbv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NIV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NIV weglVertexAttrib4Niv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NSV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NSV weglVertexAttrib4Nsv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NUBV)(GLuint,const GLubyte *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NUBV weglVertexAttrib4Nubv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NUIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NUIV weglVertexAttrib4Nuiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4NUSV)(GLuint,const GLushort *);
+WXE_EXTERN WXEGLVERTEXATTRIB4NUSV weglVertexAttrib4Nusv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4BV)(GLuint,const GLbyte *);
+WXE_EXTERN WXEGLVERTEXATTRIB4BV weglVertexAttrib4bv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4DV)(GLuint,const GLdouble *);
+WXE_EXTERN WXEGLVERTEXATTRIB4DV weglVertexAttrib4dv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4FV)(GLuint,const GLfloat *);
+WXE_EXTERN WXEGLVERTEXATTRIB4FV weglVertexAttrib4fv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4IV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIB4IV weglVertexAttrib4iv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4SV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIB4SV weglVertexAttrib4sv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4UBV)(GLuint,const GLubyte *);
+WXE_EXTERN WXEGLVERTEXATTRIB4UBV weglVertexAttrib4ubv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4UIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIB4UIV weglVertexAttrib4uiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIB4USV)(GLuint,const GLushort *);
+WXE_EXTERN WXEGLVERTEXATTRIB4USV weglVertexAttrib4usv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBPOINTER)(GLuint,GLint,GLenum,GLboolean,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLVERTEXATTRIBPOINTER weglVertexAttribPointer;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX2X3FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX2X3FV weglUniformMatrix2x3fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX3X2FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX3X2FV weglUniformMatrix3x2fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX2X4FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX2X4FV weglUniformMatrix2x4fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX4X2FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX4X2FV weglUniformMatrix4x2fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX3X4FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX3X4FV weglUniformMatrix3x4fv;
+typedef void (APIENTRY * WXEGLUNIFORMMATRIX4X3FV)(GLint,GLsizei,GLboolean,const GLfloat *);
+WXE_EXTERN WXEGLUNIFORMMATRIX4X3FV weglUniformMatrix4x3fv;
+typedef void (APIENTRY * WXEGLCOLORMASKI)(GLuint,GLboolean,GLboolean,GLboolean,GLboolean);
+WXE_EXTERN WXEGLCOLORMASKI weglColorMaski;
+typedef void (APIENTRY * WXEGLGETBOOLEANI_V)(GLenum,GLuint,GLboolean *);
+WXE_EXTERN WXEGLGETBOOLEANI_V weglGetBooleani_v;
+typedef void (APIENTRY * WXEGLGETINTEGERI_V)(GLenum,GLuint,GLint *);
+WXE_EXTERN WXEGLGETINTEGERI_V weglGetIntegeri_v;
+typedef void (APIENTRY * WXEGLENABLEI)(GLenum,GLuint);
+WXE_EXTERN WXEGLENABLEI weglEnablei;
+typedef void (APIENTRY * WXEGLDISABLEI)(GLenum,GLuint);
+WXE_EXTERN WXEGLDISABLEI weglDisablei;
+typedef GLboolean (APIENTRY * WXEGLISENABLEDI)(GLenum,GLuint);
+WXE_EXTERN WXEGLISENABLEDI weglIsEnabledi;
+typedef void (APIENTRY * WXEGLBEGINTRANSFORMFEEDBACK)(GLenum);
+WXE_EXTERN WXEGLBEGINTRANSFORMFEEDBACK weglBeginTransformFeedback;
+typedef void (APIENTRY * WXEGLENDTRANSFORMFEEDBACK)();
+WXE_EXTERN WXEGLENDTRANSFORMFEEDBACK weglEndTransformFeedback;
+typedef void (APIENTRY * WXEGLBINDBUFFERRANGE)(GLenum,GLuint,GLuint,GLintptr,GLsizeiptr);
+WXE_EXTERN WXEGLBINDBUFFERRANGE weglBindBufferRange;
+typedef void (APIENTRY * WXEGLBINDBUFFERBASE)(GLenum,GLuint,GLuint);
+WXE_EXTERN WXEGLBINDBUFFERBASE weglBindBufferBase;
+typedef void (APIENTRY * WXEGLTRANSFORMFEEDBACKVARYINGS)(GLuint,GLsizei,const GLchar **,GLenum);
+WXE_EXTERN WXEGLTRANSFORMFEEDBACKVARYINGS weglTransformFeedbackVaryings;
+typedef void (APIENTRY * WXEGLGETTRANSFORMFEEDBACKVARYING)(GLuint,GLuint,GLsizei,GLsizei *,GLsizei *,GLenum *,GLchar *);
+WXE_EXTERN WXEGLGETTRANSFORMFEEDBACKVARYING weglGetTransformFeedbackVarying;
+typedef void (APIENTRY * WXEGLCLAMPCOLOR)(GLenum,GLenum);
+WXE_EXTERN WXEGLCLAMPCOLOR weglClampColor;
+typedef void (APIENTRY * WXEGLBEGINCONDITIONALRENDER)(GLuint,GLenum);
+WXE_EXTERN WXEGLBEGINCONDITIONALRENDER weglBeginConditionalRender;
+typedef void (APIENTRY * WXEGLENDCONDITIONALRENDER)();
+WXE_EXTERN WXEGLENDCONDITIONALRENDER weglEndConditionalRender;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBIPOINTER)(GLuint,GLint,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLVERTEXATTRIBIPOINTER weglVertexAttribIPointer;
+typedef void (APIENTRY * WXEGLGETVERTEXATTRIBIIV)(GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETVERTEXATTRIBIIV weglGetVertexAttribIiv;
+typedef void (APIENTRY * WXEGLGETVERTEXATTRIBIUIV)(GLuint,GLenum,GLuint *);
+WXE_EXTERN WXEGLGETVERTEXATTRIBIUIV weglGetVertexAttribIuiv;
+typedef void (APIENTRY * WXEGLGETUNIFORMUIV)(GLuint,GLint,GLuint *);
+WXE_EXTERN WXEGLGETUNIFORMUIV weglGetUniformuiv;
+typedef void (APIENTRY * WXEGLBINDFRAGDATALOCATION)(GLuint,GLuint,const GLchar *);
+WXE_EXTERN WXEGLBINDFRAGDATALOCATION weglBindFragDataLocation;
+typedef GLint (APIENTRY * WXEGLGETFRAGDATALOCATION)(GLuint,const GLchar *);
+WXE_EXTERN WXEGLGETFRAGDATALOCATION weglGetFragDataLocation;
+typedef void (APIENTRY * WXEGLUNIFORM1UI)(GLint,GLuint);
+WXE_EXTERN WXEGLUNIFORM1UI weglUniform1ui;
+typedef void (APIENTRY * WXEGLUNIFORM2UI)(GLint,GLuint,GLuint);
+WXE_EXTERN WXEGLUNIFORM2UI weglUniform2ui;
+typedef void (APIENTRY * WXEGLUNIFORM3UI)(GLint,GLuint,GLuint,GLuint);
+WXE_EXTERN WXEGLUNIFORM3UI weglUniform3ui;
+typedef void (APIENTRY * WXEGLUNIFORM4UI)(GLint,GLuint,GLuint,GLuint,GLuint);
+WXE_EXTERN WXEGLUNIFORM4UI weglUniform4ui;
+typedef void (APIENTRY * WXEGLUNIFORM1UIV)(GLint,GLsizei,const GLuint *);
+WXE_EXTERN WXEGLUNIFORM1UIV weglUniform1uiv;
+typedef void (APIENTRY * WXEGLUNIFORM2UIV)(GLint,GLsizei,const GLuint *);
+WXE_EXTERN WXEGLUNIFORM2UIV weglUniform2uiv;
+typedef void (APIENTRY * WXEGLUNIFORM3UIV)(GLint,GLsizei,const GLuint *);
+WXE_EXTERN WXEGLUNIFORM3UIV weglUniform3uiv;
+typedef void (APIENTRY * WXEGLUNIFORM4UIV)(GLint,GLsizei,const GLuint *);
+WXE_EXTERN WXEGLUNIFORM4UIV weglUniform4uiv;
+typedef void (APIENTRY * WXEGLTEXPARAMETERIIV)(GLenum,GLenum,const GLint *);
+WXE_EXTERN WXEGLTEXPARAMETERIIV weglTexParameterIiv;
+typedef void (APIENTRY * WXEGLTEXPARAMETERIUIV)(GLenum,GLenum,const GLuint *);
+WXE_EXTERN WXEGLTEXPARAMETERIUIV weglTexParameterIuiv;
+typedef void (APIENTRY * WXEGLGETTEXPARAMETERIIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETTEXPARAMETERIIV weglGetTexParameterIiv;
+typedef void (APIENTRY * WXEGLGETTEXPARAMETERIUIV)(GLenum,GLenum,GLuint *);
+WXE_EXTERN WXEGLGETTEXPARAMETERIUIV weglGetTexParameterIuiv;
+typedef void (APIENTRY * WXEGLCLEARBUFFERIV)(GLenum,GLint,const GLint *);
+WXE_EXTERN WXEGLCLEARBUFFERIV weglClearBufferiv;
+typedef void (APIENTRY * WXEGLCLEARBUFFERUIV)(GLenum,GLint,const GLuint *);
+WXE_EXTERN WXEGLCLEARBUFFERUIV weglClearBufferuiv;
+typedef void (APIENTRY * WXEGLCLEARBUFFERFV)(GLenum,GLint,const GLfloat *);
+WXE_EXTERN WXEGLCLEARBUFFERFV weglClearBufferfv;
+typedef void (APIENTRY * WXEGLCLEARBUFFERFI)(GLenum,GLint,GLfloat,GLint);
+WXE_EXTERN WXEGLCLEARBUFFERFI weglClearBufferfi;
+typedef const GLubyte * (APIENTRY * WXEGLGETSTRINGI)(GLenum,GLuint);
+WXE_EXTERN WXEGLGETSTRINGI weglGetStringi;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI1IV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI1IV weglVertexAttribI1iv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI2IV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI2IV weglVertexAttribI2iv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI3IV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI3IV weglVertexAttribI3iv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4IV)(GLuint,const GLint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4IV weglVertexAttribI4iv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI1UIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI1UIV weglVertexAttribI1uiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI2UIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI2UIV weglVertexAttribI2uiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI3UIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI3UIV weglVertexAttribI3uiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4UIV)(GLuint,const GLuint *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4UIV weglVertexAttribI4uiv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4BV)(GLuint,const GLbyte *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4BV weglVertexAttribI4bv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4SV)(GLuint,const GLshort *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4SV weglVertexAttribI4sv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4UBV)(GLuint,const GLubyte *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4UBV weglVertexAttribI4ubv;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBI4USV)(GLuint,const GLushort *);
+WXE_EXTERN WXEGLVERTEXATTRIBI4USV weglVertexAttribI4usv;
+typedef void (APIENTRY * WXEGLDRAWARRAYSINSTANCED)(GLenum,GLint,GLsizei,GLsizei);
+WXE_EXTERN WXEGLDRAWARRAYSINSTANCED weglDrawArraysInstanced;
+typedef void (APIENTRY * WXEGLDRAWELEMENTSINSTANCED)(GLenum,GLsizei,GLenum,const GLvoid *,GLsizei);
+WXE_EXTERN WXEGLDRAWELEMENTSINSTANCED weglDrawElementsInstanced;
+typedef void (APIENTRY * WXEGLTEXBUFFER)(GLenum,GLenum,GLuint);
+WXE_EXTERN WXEGLTEXBUFFER weglTexBuffer;
+typedef void (APIENTRY * WXEGLPRIMITIVERESTARTINDEX)(GLuint);
+WXE_EXTERN WXEGLPRIMITIVERESTARTINDEX weglPrimitiveRestartIndex;
+typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXFARB)(const GLfloat *);
+WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXFARB weglLoadTransposeMatrixfARB;
+typedef void (APIENTRY * WXEGLLOADTRANSPOSEMATRIXDARB)(const GLdouble *);
+WXE_EXTERN WXEGLLOADTRANSPOSEMATRIXDARB weglLoadTransposeMatrixdARB;
+typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXFARB)(const GLfloat *);
+WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXFARB weglMultTransposeMatrixfARB;
+typedef void (APIENTRY * WXEGLMULTTRANSPOSEMATRIXDARB)(const GLdouble *);
+WXE_EXTERN WXEGLMULTTRANSPOSEMATRIXDARB weglMultTransposeMatrixdARB;
+typedef void (APIENTRY * WXEGLWEIGHTBVARB)(GLint,const GLbyte *);
+WXE_EXTERN WXEGLWEIGHTBVARB weglWeightbvARB;
+typedef void (APIENTRY * WXEGLWEIGHTSVARB)(GLint,const GLshort *);
+WXE_EXTERN WXEGLWEIGHTSVARB weglWeightsvARB;
+typedef void (APIENTRY * WXEGLWEIGHTIVARB)(GLint,const GLint *);
+WXE_EXTERN WXEGLWEIGHTIVARB weglWeightivARB;
+typedef void (APIENTRY * WXEGLWEIGHTFVARB)(GLint,const GLfloat *);
+WXE_EXTERN WXEGLWEIGHTFVARB weglWeightfvARB;
+typedef void (APIENTRY * WXEGLWEIGHTDVARB)(GLint,const GLdouble *);
+WXE_EXTERN WXEGLWEIGHTDVARB weglWeightdvARB;
+typedef void (APIENTRY * WXEGLWEIGHTUBVARB)(GLint,const GLubyte *);
+WXE_EXTERN WXEGLWEIGHTUBVARB weglWeightubvARB;
+typedef void (APIENTRY * WXEGLWEIGHTUSVARB)(GLint,const GLushort *);
+WXE_EXTERN WXEGLWEIGHTUSVARB weglWeightusvARB;
+typedef void (APIENTRY * WXEGLWEIGHTUIVARB)(GLint,const GLuint *);
+WXE_EXTERN WXEGLWEIGHTUIVARB weglWeightuivARB;
+typedef void (APIENTRY * WXEGLVERTEXBLENDARB)(GLint);
+WXE_EXTERN WXEGLVERTEXBLENDARB weglVertexBlendARB;
+typedef void (APIENTRY * WXEGLCURRENTPALETTEMATRIXARB)(GLint);
+WXE_EXTERN WXEGLCURRENTPALETTEMATRIXARB weglCurrentPaletteMatrixARB;
+typedef void (APIENTRY * WXEGLMATRIXINDEXUBVARB)(GLint,const GLubyte *);
+WXE_EXTERN WXEGLMATRIXINDEXUBVARB weglMatrixIndexubvARB;
+typedef void (APIENTRY * WXEGLMATRIXINDEXUSVARB)(GLint,const GLushort *);
+WXE_EXTERN WXEGLMATRIXINDEXUSVARB weglMatrixIndexusvARB;
+typedef void (APIENTRY * WXEGLMATRIXINDEXUIVARB)(GLint,const GLuint *);
+WXE_EXTERN WXEGLMATRIXINDEXUIVARB weglMatrixIndexuivARB;
+typedef void (APIENTRY * WXEGLPROGRAMSTRINGARB)(GLenum,GLenum,GLsizei,const GLvoid *);
+WXE_EXTERN WXEGLPROGRAMSTRINGARB weglProgramStringARB;
+typedef void (APIENTRY * WXEGLBINDPROGRAMARB)(GLenum,GLuint);
+WXE_EXTERN WXEGLBINDPROGRAMARB weglBindProgramARB;
+typedef void (APIENTRY * WXEGLDELETEPROGRAMSARB)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETEPROGRAMSARB weglDeleteProgramsARB;
+typedef void (APIENTRY * WXEGLGENPROGRAMSARB)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENPROGRAMSARB weglGenProgramsARB;
+typedef void (APIENTRY * WXEGLPROGRAMENVPARAMETER4DARB)(GLenum,GLuint,GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLPROGRAMENVPARAMETER4DARB weglProgramEnvParameter4dARB;
+typedef void (APIENTRY * WXEGLPROGRAMENVPARAMETER4DVARB)(GLenum,GLuint,const GLdouble *);
+WXE_EXTERN WXEGLPROGRAMENVPARAMETER4DVARB weglProgramEnvParameter4dvARB;
+typedef void (APIENTRY * WXEGLPROGRAMENVPARAMETER4FARB)(GLenum,GLuint,GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLPROGRAMENVPARAMETER4FARB weglProgramEnvParameter4fARB;
+typedef void (APIENTRY * WXEGLPROGRAMENVPARAMETER4FVARB)(GLenum,GLuint,const GLfloat *);
+WXE_EXTERN WXEGLPROGRAMENVPARAMETER4FVARB weglProgramEnvParameter4fvARB;
+typedef void (APIENTRY * WXEGLPROGRAMLOCALPARAMETER4DARB)(GLenum,GLuint,GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLPROGRAMLOCALPARAMETER4DARB weglProgramLocalParameter4dARB;
+typedef void (APIENTRY * WXEGLPROGRAMLOCALPARAMETER4DVARB)(GLenum,GLuint,const GLdouble *);
+WXE_EXTERN WXEGLPROGRAMLOCALPARAMETER4DVARB weglProgramLocalParameter4dvARB;
+typedef void (APIENTRY * WXEGLPROGRAMLOCALPARAMETER4FARB)(GLenum,GLuint,GLfloat,GLfloat,GLfloat,GLfloat);
+WXE_EXTERN WXEGLPROGRAMLOCALPARAMETER4FARB weglProgramLocalParameter4fARB;
+typedef void (APIENTRY * WXEGLPROGRAMLOCALPARAMETER4FVARB)(GLenum,GLuint,const GLfloat *);
+WXE_EXTERN WXEGLPROGRAMLOCALPARAMETER4FVARB weglProgramLocalParameter4fvARB;
+typedef void (APIENTRY * WXEGLGETPROGRAMENVPARAMETERDVARB)(GLenum,GLuint,GLdouble *);
+WXE_EXTERN WXEGLGETPROGRAMENVPARAMETERDVARB weglGetProgramEnvParameterdvARB;
+typedef void (APIENTRY * WXEGLGETPROGRAMENVPARAMETERFVARB)(GLenum,GLuint,GLfloat *);
+WXE_EXTERN WXEGLGETPROGRAMENVPARAMETERFVARB weglGetProgramEnvParameterfvARB;
+typedef void (APIENTRY * WXEGLGETPROGRAMLOCALPARAMETERDVARB)(GLenum,GLuint,GLdouble *);
+WXE_EXTERN WXEGLGETPROGRAMLOCALPARAMETERDVARB weglGetProgramLocalParameterdvARB;
+typedef void (APIENTRY * WXEGLGETPROGRAMLOCALPARAMETERFVARB)(GLenum,GLuint,GLfloat *);
+WXE_EXTERN WXEGLGETPROGRAMLOCALPARAMETERFVARB weglGetProgramLocalParameterfvARB;
+typedef void (APIENTRY * WXEGLGETPROGRAMSTRINGARB)(GLenum,GLenum,GLvoid *);
+WXE_EXTERN WXEGLGETPROGRAMSTRINGARB weglGetProgramStringARB;
+typedef void (APIENTRY * WXEGLDELETEOBJECTARB)(GLhandleARB);
+WXE_EXTERN WXEGLDELETEOBJECTARB weglDeleteObjectARB;
+typedef GLhandleARB (APIENTRY * WXEGLGETHANDLEARB)(GLenum);
+WXE_EXTERN WXEGLGETHANDLEARB weglGetHandleARB;
+typedef void (APIENTRY * WXEGLDETACHOBJECTARB)(GLhandleARB,GLhandleARB);
+WXE_EXTERN WXEGLDETACHOBJECTARB weglDetachObjectARB;
+typedef GLhandleARB (APIENTRY * WXEGLCREATESHADEROBJECTARB)(GLenum);
+WXE_EXTERN WXEGLCREATESHADEROBJECTARB weglCreateShaderObjectARB;
+typedef void (APIENTRY * WXEGLSHADERSOURCEARB)(GLhandleARB,GLsizei,const GLchar **,const GLint *);
+WXE_EXTERN WXEGLSHADERSOURCEARB weglShaderSourceARB;
+typedef void (APIENTRY * WXEGLCOMPILESHADERARB)(GLhandleARB);
+WXE_EXTERN WXEGLCOMPILESHADERARB weglCompileShaderARB;
+typedef GLhandleARB (APIENTRY * WXEGLCREATEPROGRAMOBJECTARB)();
+WXE_EXTERN WXEGLCREATEPROGRAMOBJECTARB weglCreateProgramObjectARB;
+typedef void (APIENTRY * WXEGLATTACHOBJECTARB)(GLhandleARB,GLhandleARB);
+WXE_EXTERN WXEGLATTACHOBJECTARB weglAttachObjectARB;
+typedef void (APIENTRY * WXEGLLINKPROGRAMARB)(GLhandleARB);
+WXE_EXTERN WXEGLLINKPROGRAMARB weglLinkProgramARB;
+typedef void (APIENTRY * WXEGLUSEPROGRAMOBJECTARB)(GLhandleARB);
+WXE_EXTERN WXEGLUSEPROGRAMOBJECTARB weglUseProgramObjectARB;
+typedef void (APIENTRY * WXEGLVALIDATEPROGRAMARB)(GLhandleARB);
+WXE_EXTERN WXEGLVALIDATEPROGRAMARB weglValidateProgramARB;
+typedef void (APIENTRY * WXEGLGETOBJECTPARAMETERFVARB)(GLhandleARB,GLenum,GLfloat *);
+WXE_EXTERN WXEGLGETOBJECTPARAMETERFVARB weglGetObjectParameterfvARB;
+typedef void (APIENTRY * WXEGLGETOBJECTPARAMETERIVARB)(GLhandleARB,GLenum,GLint *);
+WXE_EXTERN WXEGLGETOBJECTPARAMETERIVARB weglGetObjectParameterivARB;
+typedef void (APIENTRY * WXEGLGETINFOLOGARB)(GLhandleARB,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETINFOLOGARB weglGetInfoLogARB;
+typedef void (APIENTRY * WXEGLGETATTACHEDOBJECTSARB)(GLhandleARB,GLsizei,GLsizei *,GLhandleARB *);
+WXE_EXTERN WXEGLGETATTACHEDOBJECTSARB weglGetAttachedObjectsARB;
+typedef GLint (APIENTRY * WXEGLGETUNIFORMLOCATIONARB)(GLhandleARB,const GLchar *);
+WXE_EXTERN WXEGLGETUNIFORMLOCATIONARB weglGetUniformLocationARB;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORMARB)(GLhandleARB,GLuint,GLsizei,GLsizei *,GLint *,GLenum *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORMARB weglGetActiveUniformARB;
+typedef void (APIENTRY * WXEGLGETUNIFORMFVARB)(GLhandleARB,GLint,GLfloat *);
+WXE_EXTERN WXEGLGETUNIFORMFVARB weglGetUniformfvARB;
+typedef void (APIENTRY * WXEGLGETUNIFORMIVARB)(GLhandleARB,GLint,GLint *);
+WXE_EXTERN WXEGLGETUNIFORMIVARB weglGetUniformivARB;
+typedef void (APIENTRY * WXEGLGETSHADERSOURCEARB)(GLhandleARB,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETSHADERSOURCEARB weglGetShaderSourceARB;
+typedef void (APIENTRY * WXEGLBINDATTRIBLOCATIONARB)(GLhandleARB,GLuint,const GLchar *);
+WXE_EXTERN WXEGLBINDATTRIBLOCATIONARB weglBindAttribLocationARB;
+typedef void (APIENTRY * WXEGLGETACTIVEATTRIBARB)(GLhandleARB,GLuint,GLsizei,GLsizei *,GLint *,GLenum *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEATTRIBARB weglGetActiveAttribARB;
+typedef GLint (APIENTRY * WXEGLGETATTRIBLOCATIONARB)(GLhandleARB,const GLchar *);
+WXE_EXTERN WXEGLGETATTRIBLOCATIONARB weglGetAttribLocationARB;
+typedef GLboolean (APIENTRY * WXEGLISRENDERBUFFER)(GLuint);
+WXE_EXTERN WXEGLISRENDERBUFFER weglIsRenderbuffer;
+typedef void (APIENTRY * WXEGLBINDRENDERBUFFER)(GLenum,GLuint);
+WXE_EXTERN WXEGLBINDRENDERBUFFER weglBindRenderbuffer;
+typedef void (APIENTRY * WXEGLDELETERENDERBUFFERS)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETERENDERBUFFERS weglDeleteRenderbuffers;
+typedef void (APIENTRY * WXEGLGENRENDERBUFFERS)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENRENDERBUFFERS weglGenRenderbuffers;
+typedef void (APIENTRY * WXEGLRENDERBUFFERSTORAGE)(GLenum,GLenum,GLsizei,GLsizei);
+WXE_EXTERN WXEGLRENDERBUFFERSTORAGE weglRenderbufferStorage;
+typedef void (APIENTRY * WXEGLGETRENDERBUFFERPARAMETERIV)(GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETRENDERBUFFERPARAMETERIV weglGetRenderbufferParameteriv;
+typedef GLboolean (APIENTRY * WXEGLISFRAMEBUFFER)(GLuint);
+WXE_EXTERN WXEGLISFRAMEBUFFER weglIsFramebuffer;
+typedef void (APIENTRY * WXEGLBINDFRAMEBUFFER)(GLenum,GLuint);
+WXE_EXTERN WXEGLBINDFRAMEBUFFER weglBindFramebuffer;
+typedef void (APIENTRY * WXEGLDELETEFRAMEBUFFERS)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETEFRAMEBUFFERS weglDeleteFramebuffers;
+typedef void (APIENTRY * WXEGLGENFRAMEBUFFERS)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENFRAMEBUFFERS weglGenFramebuffers;
+typedef GLenum (APIENTRY * WXEGLCHECKFRAMEBUFFERSTATUS)(GLenum);
+WXE_EXTERN WXEGLCHECKFRAMEBUFFERSTATUS weglCheckFramebufferStatus;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTURE1D)(GLenum,GLenum,GLenum,GLuint,GLint);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTURE1D weglFramebufferTexture1D;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTURE2D)(GLenum,GLenum,GLenum,GLuint,GLint);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTURE2D weglFramebufferTexture2D;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTURE3D)(GLenum,GLenum,GLenum,GLuint,GLint,GLint);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTURE3D weglFramebufferTexture3D;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERRENDERBUFFER)(GLenum,GLenum,GLenum,GLuint);
+WXE_EXTERN WXEGLFRAMEBUFFERRENDERBUFFER weglFramebufferRenderbuffer;
+typedef void (APIENTRY * WXEGLGETFRAMEBUFFERATTACHMENTPARAMETERIV)(GLenum,GLenum,GLenum,GLint *);
+WXE_EXTERN WXEGLGETFRAMEBUFFERATTACHMENTPARAMETERIV weglGetFramebufferAttachmentParameteriv;
+typedef void (APIENTRY * WXEGLGENERATEMIPMAP)(GLenum);
+WXE_EXTERN WXEGLGENERATEMIPMAP weglGenerateMipmap;
+typedef void (APIENTRY * WXEGLBLITFRAMEBUFFER)(GLint,GLint,GLint,GLint,GLint,GLint,GLint,GLint,GLbitfield,GLenum);
+WXE_EXTERN WXEGLBLITFRAMEBUFFER weglBlitFramebuffer;
+typedef void (APIENTRY * WXEGLRENDERBUFFERSTORAGEMULTISAMPLE)(GLenum,GLsizei,GLenum,GLsizei,GLsizei);
+WXE_EXTERN WXEGLRENDERBUFFERSTORAGEMULTISAMPLE weglRenderbufferStorageMultisample;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTURELAYER)(GLenum,GLenum,GLuint,GLint,GLint);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTURELAYER weglFramebufferTextureLayer;
+typedef void (APIENTRY * WXEGLPROGRAMPARAMETERIARB)(GLuint,GLenum,GLint);
+WXE_EXTERN WXEGLPROGRAMPARAMETERIARB weglProgramParameteriARB;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTUREARB)(GLenum,GLenum,GLuint,GLint);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTUREARB weglFramebufferTextureARB;
+typedef void (APIENTRY * WXEGLFRAMEBUFFERTEXTUREFACEARB)(GLenum,GLenum,GLuint,GLint,GLenum);
+WXE_EXTERN WXEGLFRAMEBUFFERTEXTUREFACEARB weglFramebufferTextureFaceARB;
+typedef void (APIENTRY * WXEGLVERTEXATTRIBDIVISORARB)(GLuint,GLuint);
+WXE_EXTERN WXEGLVERTEXATTRIBDIVISORARB weglVertexAttribDivisorARB;
+typedef void (APIENTRY * WXEGLFLUSHMAPPEDBUFFERRANGE)(GLenum,GLintptr,GLsizeiptr);
+WXE_EXTERN WXEGLFLUSHMAPPEDBUFFERRANGE weglFlushMappedBufferRange;
+typedef void (APIENTRY * WXEGLBINDVERTEXARRAY)(GLuint);
+WXE_EXTERN WXEGLBINDVERTEXARRAY weglBindVertexArray;
+typedef void (APIENTRY * WXEGLDELETEVERTEXARRAYS)(GLsizei,const GLuint *);
+WXE_EXTERN WXEGLDELETEVERTEXARRAYS weglDeleteVertexArrays;
+typedef void (APIENTRY * WXEGLGENVERTEXARRAYS)(GLsizei,GLuint *);
+WXE_EXTERN WXEGLGENVERTEXARRAYS weglGenVertexArrays;
+typedef GLboolean (APIENTRY * WXEGLISVERTEXARRAY)(GLuint);
+WXE_EXTERN WXEGLISVERTEXARRAY weglIsVertexArray;
+typedef void (APIENTRY * WXEGLGETUNIFORMINDICES)(GLuint,GLsizei,const GLchar **,GLuint *);
+WXE_EXTERN WXEGLGETUNIFORMINDICES weglGetUniformIndices;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORMSIV)(GLuint,GLsizei,const GLuint *,GLenum,GLint *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORMSIV weglGetActiveUniformsiv;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORMNAME)(GLuint,GLuint,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORMNAME weglGetActiveUniformName;
+typedef GLuint (APIENTRY * WXEGLGETUNIFORMBLOCKINDEX)(GLuint,const GLchar *);
+WXE_EXTERN WXEGLGETUNIFORMBLOCKINDEX weglGetUniformBlockIndex;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORMBLOCKIV)(GLuint,GLuint,GLenum,GLint *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORMBLOCKIV weglGetActiveUniformBlockiv;
+typedef void (APIENTRY * WXEGLGETACTIVEUNIFORMBLOCKNAME)(GLuint,GLuint,GLsizei,GLsizei *,GLchar *);
+WXE_EXTERN WXEGLGETACTIVEUNIFORMBLOCKNAME weglGetActiveUniformBlockName;
+typedef void (APIENTRY * WXEGLUNIFORMBLOCKBINDING)(GLuint,GLuint,GLuint);
+WXE_EXTERN WXEGLUNIFORMBLOCKBINDING weglUniformBlockBinding;
+typedef void (APIENTRY * WXEGLCOPYBUFFERSUBDATA)(GLenum,GLenum,GLintptr,GLintptr,GLsizeiptr);
+WXE_EXTERN WXEGLCOPYBUFFERSUBDATA weglCopyBufferSubData;
+typedef void (APIENTRY * WXEGLRESIZEBUFFERSMESA)();
+WXE_EXTERN WXEGLRESIZEBUFFERSMESA weglResizeBuffersMESA;
+typedef void (APIENTRY * WXEGLWINDOWPOS4DVMESA)(const GLdouble *);
+WXE_EXTERN WXEGLWINDOWPOS4DVMESA weglWindowPos4dvMESA;
+typedef void (APIENTRY * WXEGLWINDOWPOS4FVMESA)(const GLfloat *);
+WXE_EXTERN WXEGLWINDOWPOS4FVMESA weglWindowPos4fvMESA;
+typedef void (APIENTRY * WXEGLWINDOWPOS4IVMESA)(const GLint *);
+WXE_EXTERN WXEGLWINDOWPOS4IVMESA weglWindowPos4ivMESA;
+typedef void (APIENTRY * WXEGLWINDOWPOS4SVMESA)(const GLshort *);
+WXE_EXTERN WXEGLWINDOWPOS4SVMESA weglWindowPos4svMESA;
+typedef void (APIENTRY * WXEGLDEPTHBOUNDSEXT)(GLclampd,GLclampd);
+WXE_EXTERN WXEGLDEPTHBOUNDSEXT weglDepthBoundsEXT;
+typedef void (APIENTRY * WXEGLSTENCILCLEARTAGEXT)(GLsizei,GLuint);
+WXE_EXTERN WXEGLSTENCILCLEARTAGEXT weglStencilClearTagEXT;
+typedef GLint (APIENTRY * WXEGLUBUILD1DMIPMAPLEVELS)(GLenum,GLint,GLsizei,GLenum,GLenum,GLint,GLint,GLint,const void *);
+WXE_EXTERN WXEGLUBUILD1DMIPMAPLEVELS wegluBuild1DMipmapLevels;
+typedef GLint (APIENTRY * WXEGLUBUILD1DMIPMAPS)(GLenum,GLint,GLsizei,GLenum,GLenum,const void *);
+WXE_EXTERN WXEGLUBUILD1DMIPMAPS wegluBuild1DMipmaps;
+typedef GLint (APIENTRY * WXEGLUBUILD2DMIPMAPLEVELS)(GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,const void *);
+WXE_EXTERN WXEGLUBUILD2DMIPMAPLEVELS wegluBuild2DMipmapLevels;
+typedef GLint (APIENTRY * WXEGLUBUILD2DMIPMAPS)(GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,const void *);
+WXE_EXTERN WXEGLUBUILD2DMIPMAPS wegluBuild2DMipmaps;
+typedef GLint (APIENTRY * WXEGLUBUILD3DMIPMAPLEVELS)(GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,const void *);
+WXE_EXTERN WXEGLUBUILD3DMIPMAPLEVELS wegluBuild3DMipmapLevels;
+typedef GLint (APIENTRY * WXEGLUBUILD3DMIPMAPS)(GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,const void *);
+WXE_EXTERN WXEGLUBUILD3DMIPMAPS wegluBuild3DMipmaps;
+typedef GLboolean (APIENTRY * WXEGLUCHECKEXTENSION)(const GLubyte *,const GLubyte *);
+WXE_EXTERN WXEGLUCHECKEXTENSION wegluCheckExtension;
+typedef void (APIENTRY * WXEGLUCYLINDER)(GLUquadric *,GLdouble,GLdouble,GLdouble,GLint,GLint);
+WXE_EXTERN WXEGLUCYLINDER wegluCylinder;
+typedef void (APIENTRY * WXEGLUDELETEQUADRIC)(GLUquadric *);
+WXE_EXTERN WXEGLUDELETEQUADRIC wegluDeleteQuadric;
+typedef void (APIENTRY * WXEGLUDISK)(GLUquadric *,GLdouble,GLdouble,GLint,GLint);
+WXE_EXTERN WXEGLUDISK wegluDisk;
+typedef const GLubyte * (APIENTRY * WXEGLUERRORSTRING)(GLenum);
+WXE_EXTERN WXEGLUERRORSTRING wegluErrorString;
+typedef const GLubyte * (APIENTRY * WXEGLUGETSTRING)(GLenum);
+WXE_EXTERN WXEGLUGETSTRING wegluGetString;
+typedef void (APIENTRY * WXEGLULOOKAT)(GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLULOOKAT wegluLookAt;
+typedef GLUquadric * (APIENTRY * WXEGLUNEWQUADRIC)();
+WXE_EXTERN WXEGLUNEWQUADRIC wegluNewQuadric;
+typedef void (APIENTRY * WXEGLUORTHO2D)(GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLUORTHO2D wegluOrtho2D;
+typedef void (APIENTRY * WXEGLUPARTIALDISK)(GLUquadric *,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble);
+WXE_EXTERN WXEGLUPARTIALDISK wegluPartialDisk;
+typedef void (APIENTRY * WXEGLUPERSPECTIVE)(GLdouble,GLdouble,GLdouble,GLdouble);
+WXE_EXTERN WXEGLUPERSPECTIVE wegluPerspective;
+typedef void (APIENTRY * WXEGLUPICKMATRIX)(GLdouble,GLdouble,GLdouble,GLdouble,GLint *);
+WXE_EXTERN WXEGLUPICKMATRIX wegluPickMatrix;
+typedef GLint (APIENTRY * WXEGLUPROJECT)(GLdouble,GLdouble,GLdouble,const GLdouble *,const GLdouble *,const GLint *,GLdouble *,GLdouble *,GLdouble *);
+WXE_EXTERN WXEGLUPROJECT wegluProject;
+typedef void (APIENTRY * WXEGLUQUADRICDRAWSTYLE)(GLUquadric *,GLenum);
+WXE_EXTERN WXEGLUQUADRICDRAWSTYLE wegluQuadricDrawStyle;
+typedef void (APIENTRY * WXEGLUQUADRICNORMALS)(GLUquadric *,GLenum);
+WXE_EXTERN WXEGLUQUADRICNORMALS wegluQuadricNormals;
+typedef void (APIENTRY * WXEGLUQUADRICORIENTATION)(GLUquadric *,GLenum);
+WXE_EXTERN WXEGLUQUADRICORIENTATION wegluQuadricOrientation;
+typedef void (APIENTRY * WXEGLUQUADRICTEXTURE)(GLUquadric *,GLboolean);
+WXE_EXTERN WXEGLUQUADRICTEXTURE wegluQuadricTexture;
+typedef GLint (APIENTRY * WXEGLUSCALEIMAGE)(GLenum,GLsizei,GLsizei,GLenum,const void *,GLsizei,GLsizei,GLenum,GLvoid *);
+WXE_EXTERN WXEGLUSCALEIMAGE wegluScaleImage;
+typedef void (APIENTRY * WXEGLUSPHERE)(GLUquadric *,GLdouble,GLint,GLint);
+WXE_EXTERN WXEGLUSPHERE wegluSphere;
+typedef GLint (APIENTRY * WXEGLUUNPROJECT)(GLdouble,GLdouble,GLdouble,const GLdouble *,const GLdouble *,const GLint *,GLdouble *,GLdouble *,GLdouble *);
+WXE_EXTERN WXEGLUUNPROJECT wegluUnProject;
+typedef GLint (APIENTRY * WXEGLUUNPROJECT4)(GLdouble,GLdouble,GLdouble,GLdouble,const GLdouble *,const GLdouble *,const GLint *,GLdouble,GLdouble,GLdouble *,GLdouble *,GLdouble *,GLdouble *);
+WXE_EXTERN WXEGLUUNPROJECT4 wegluUnProject4;
diff --git a/lib/wx/c_src/gen/gl_finit.h b/lib/wx/c_src/gen/gl_finit.h
new file mode 100644
index 0000000000..dac74ca7b6
--- /dev/null
+++ b/lib/wx/c_src/gen/gl_finit.h
@@ -0,0 +1,638 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+/***** This file is generated do not edit ****/
+
+static struct {
+ const char * name;
+ const char * alt;
+ void * func;
+} gl_fns[] =
+{
+ {"glAccum", NULL, &weglAccum},
+ {"glAlphaFunc", NULL, &weglAlphaFunc},
+ {"glAreTexturesResident", NULL, &weglAreTexturesResident},
+ {"glArrayElement", NULL, &weglArrayElement},
+ {"glBegin", NULL, &weglBegin},
+ {"glBindTexture", NULL, &weglBindTexture},
+ {"glBitmap", NULL, &weglBitmap},
+ {"glBlendFunc", NULL, &weglBlendFunc},
+ {"glCallList", NULL, &weglCallList},
+ {"glCallLists", NULL, &weglCallLists},
+ {"glClear", NULL, &weglClear},
+ {"glClearAccum", NULL, &weglClearAccum},
+ {"glClearColor", NULL, &weglClearColor},
+ {"glClearDepth", NULL, &weglClearDepth},
+ {"glClearIndex", NULL, &weglClearIndex},
+ {"glClearStencil", NULL, &weglClearStencil},
+ {"glClipPlane", NULL, &weglClipPlane},
+ {"glColor3bv", NULL, &weglColor3bv},
+ {"glColor3dv", NULL, &weglColor3dv},
+ {"glColor3fv", NULL, &weglColor3fv},
+ {"glColor3iv", NULL, &weglColor3iv},
+ {"glColor3sv", NULL, &weglColor3sv},
+ {"glColor3ubv", NULL, &weglColor3ubv},
+ {"glColor3uiv", NULL, &weglColor3uiv},
+ {"glColor3usv", NULL, &weglColor3usv},
+ {"glColor4bv", NULL, &weglColor4bv},
+ {"glColor4dv", NULL, &weglColor4dv},
+ {"glColor4fv", NULL, &weglColor4fv},
+ {"glColor4iv", NULL, &weglColor4iv},
+ {"glColor4sv", NULL, &weglColor4sv},
+ {"glColor4ubv", NULL, &weglColor4ubv},
+ {"glColor4uiv", NULL, &weglColor4uiv},
+ {"glColor4usv", NULL, &weglColor4usv},
+ {"glColorMask", NULL, &weglColorMask},
+ {"glColorMaterial", NULL, &weglColorMaterial},
+ {"glColorPointer", NULL, &weglColorPointer},
+ {"glCopyPixels", NULL, &weglCopyPixels},
+ {"glCopyTexImage1D", NULL, &weglCopyTexImage1D},
+ {"glCopyTexImage2D", NULL, &weglCopyTexImage2D},
+ {"glCopyTexSubImage1D", NULL, &weglCopyTexSubImage1D},
+ {"glCopyTexSubImage2D", NULL, &weglCopyTexSubImage2D},
+ {"glCullFace", NULL, &weglCullFace},
+ {"glDeleteLists", NULL, &weglDeleteLists},
+ {"glDeleteTextures", NULL, &weglDeleteTextures},
+ {"glDepthFunc", NULL, &weglDepthFunc},
+ {"glDepthMask", NULL, &weglDepthMask},
+ {"glDepthRange", NULL, &weglDepthRange},
+ {"glDisable", NULL, &weglDisable},
+ {"glDisableClientState", NULL, &weglDisableClientState},
+ {"glDrawArrays", NULL, &weglDrawArrays},
+ {"glDrawBuffer", NULL, &weglDrawBuffer},
+ {"glDrawElements", NULL, &weglDrawElements},
+ {"glDrawPixels", NULL, &weglDrawPixels},
+ {"glEdgeFlagv", NULL, &weglEdgeFlagv},
+ {"glEdgeFlagPointer", NULL, &weglEdgeFlagPointer},
+ {"glEnable", NULL, &weglEnable},
+ {"glEnableClientState", NULL, &weglEnableClientState},
+ {"glEnd", NULL, &weglEnd},
+ {"glEndList", NULL, &weglEndList},
+ {"glEvalCoord1dv", NULL, &weglEvalCoord1dv},
+ {"glEvalCoord1fv", NULL, &weglEvalCoord1fv},
+ {"glEvalCoord2dv", NULL, &weglEvalCoord2dv},
+ {"glEvalCoord2fv", NULL, &weglEvalCoord2fv},
+ {"glEvalMesh1", NULL, &weglEvalMesh1},
+ {"glEvalMesh2", NULL, &weglEvalMesh2},
+ {"glEvalPoint1", NULL, &weglEvalPoint1},
+ {"glEvalPoint2", NULL, &weglEvalPoint2},
+ {"glFeedbackBuffer", NULL, &weglFeedbackBuffer},
+ {"glFinish", NULL, &weglFinish},
+ {"glFlush", NULL, &weglFlush},
+ {"glFogf", NULL, &weglFogf},
+ {"glFogfv", NULL, &weglFogfv},
+ {"glFogi", NULL, &weglFogi},
+ {"glFogiv", NULL, &weglFogiv},
+ {"glFrontFace", NULL, &weglFrontFace},
+ {"glFrustum", NULL, &weglFrustum},
+ {"glGenLists", NULL, &weglGenLists},
+ {"glGenTextures", NULL, &weglGenTextures},
+ {"glGetBooleanv", NULL, &weglGetBooleanv},
+ {"glGetClipPlane", NULL, &weglGetClipPlane},
+ {"glGetDoublev", NULL, &weglGetDoublev},
+ {"glGetError", NULL, &weglGetError},
+ {"glGetFloatv", NULL, &weglGetFloatv},
+ {"glGetIntegerv", NULL, &weglGetIntegerv},
+ {"glGetLightfv", NULL, &weglGetLightfv},
+ {"glGetLightiv", NULL, &weglGetLightiv},
+ {"glGetMapdv", NULL, &weglGetMapdv},
+ {"glGetMapfv", NULL, &weglGetMapfv},
+ {"glGetMapiv", NULL, &weglGetMapiv},
+ {"glGetMaterialfv", NULL, &weglGetMaterialfv},
+ {"glGetMaterialiv", NULL, &weglGetMaterialiv},
+ {"glGetPixelMapfv", NULL, &weglGetPixelMapfv},
+ {"glGetPixelMapuiv", NULL, &weglGetPixelMapuiv},
+ {"glGetPixelMapusv", NULL, &weglGetPixelMapusv},
+ {"glGetPolygonStipple", NULL, &weglGetPolygonStipple},
+ {"glGetString", NULL, &weglGetString},
+ {"glGetTexEnvfv", NULL, &weglGetTexEnvfv},
+ {"glGetTexEnviv", NULL, &weglGetTexEnviv},
+ {"glGetTexGendv", NULL, &weglGetTexGendv},
+ {"glGetTexGenfv", NULL, &weglGetTexGenfv},
+ {"glGetTexGeniv", NULL, &weglGetTexGeniv},
+ {"glGetTexImage", NULL, &weglGetTexImage},
+ {"glGetTexLevelParameterfv", NULL, &weglGetTexLevelParameterfv},
+ {"glGetTexLevelParameteriv", NULL, &weglGetTexLevelParameteriv},
+ {"glGetTexParameterfv", NULL, &weglGetTexParameterfv},
+ {"glGetTexParameteriv", NULL, &weglGetTexParameteriv},
+ {"glHint", NULL, &weglHint},
+ {"glIndexMask", NULL, &weglIndexMask},
+ {"glIndexPointer", NULL, &weglIndexPointer},
+ {"glIndexdv", NULL, &weglIndexdv},
+ {"glIndexfv", NULL, &weglIndexfv},
+ {"glIndexiv", NULL, &weglIndexiv},
+ {"glIndexsv", NULL, &weglIndexsv},
+ {"glIndexubv", NULL, &weglIndexubv},
+ {"glInitNames", NULL, &weglInitNames},
+ {"glInterleavedArrays", NULL, &weglInterleavedArrays},
+ {"glIsEnabled", NULL, &weglIsEnabled},
+ {"glIsList", NULL, &weglIsList},
+ {"glIsTexture", NULL, &weglIsTexture},
+ {"glLightModelf", NULL, &weglLightModelf},
+ {"glLightModelfv", NULL, &weglLightModelfv},
+ {"glLightModeli", NULL, &weglLightModeli},
+ {"glLightModeliv", NULL, &weglLightModeliv},
+ {"glLightf", NULL, &weglLightf},
+ {"glLightfv", NULL, &weglLightfv},
+ {"glLighti", NULL, &weglLighti},
+ {"glLightiv", NULL, &weglLightiv},
+ {"glLineStipple", NULL, &weglLineStipple},
+ {"glLineWidth", NULL, &weglLineWidth},
+ {"glListBase", NULL, &weglListBase},
+ {"glLoadIdentity", NULL, &weglLoadIdentity},
+ {"glLoadMatrixd", NULL, &weglLoadMatrixd},
+ {"glLoadMatrixf", NULL, &weglLoadMatrixf},
+ {"glLoadName", NULL, &weglLoadName},
+ {"glLogicOp", NULL, &weglLogicOp},
+ {"glMap1d", NULL, &weglMap1d},
+ {"glMap1f", NULL, &weglMap1f},
+ {"glMap2d", NULL, &weglMap2d},
+ {"glMap2f", NULL, &weglMap2f},
+ {"glMapGrid1d", NULL, &weglMapGrid1d},
+ {"glMapGrid1f", NULL, &weglMapGrid1f},
+ {"glMapGrid2d", NULL, &weglMapGrid2d},
+ {"glMapGrid2f", NULL, &weglMapGrid2f},
+ {"glMaterialf", NULL, &weglMaterialf},
+ {"glMaterialfv", NULL, &weglMaterialfv},
+ {"glMateriali", NULL, &weglMateriali},
+ {"glMaterialiv", NULL, &weglMaterialiv},
+ {"glMatrixMode", NULL, &weglMatrixMode},
+ {"glMultMatrixd", NULL, &weglMultMatrixd},
+ {"glMultMatrixf", NULL, &weglMultMatrixf},
+ {"glNewList", NULL, &weglNewList},
+ {"glNormal3bv", NULL, &weglNormal3bv},
+ {"glNormal3dv", NULL, &weglNormal3dv},
+ {"glNormal3fv", NULL, &weglNormal3fv},
+ {"glNormal3iv", NULL, &weglNormal3iv},
+ {"glNormal3sv", NULL, &weglNormal3sv},
+ {"glNormalPointer", NULL, &weglNormalPointer},
+ {"glOrtho", NULL, &weglOrtho},
+ {"glPassThrough", NULL, &weglPassThrough},
+ {"glPixelMapfv", NULL, &weglPixelMapfv},
+ {"glPixelMapuiv", NULL, &weglPixelMapuiv},
+ {"glPixelMapusv", NULL, &weglPixelMapusv},
+ {"glPixelStoref", NULL, &weglPixelStoref},
+ {"glPixelStorei", NULL, &weglPixelStorei},
+ {"glPixelTransferf", NULL, &weglPixelTransferf},
+ {"glPixelTransferi", NULL, &weglPixelTransferi},
+ {"glPixelZoom", NULL, &weglPixelZoom},
+ {"glPointSize", NULL, &weglPointSize},
+ {"glPolygonMode", NULL, &weglPolygonMode},
+ {"glPolygonOffset", NULL, &weglPolygonOffset},
+ {"glPolygonStipple", NULL, &weglPolygonStipple},
+ {"glPopAttrib", NULL, &weglPopAttrib},
+ {"glPopClientAttrib", NULL, &weglPopClientAttrib},
+ {"glPopMatrix", NULL, &weglPopMatrix},
+ {"glPopName", NULL, &weglPopName},
+ {"glPrioritizeTextures", NULL, &weglPrioritizeTextures},
+ {"glPushAttrib", NULL, &weglPushAttrib},
+ {"glPushClientAttrib", NULL, &weglPushClientAttrib},
+ {"glPushMatrix", NULL, &weglPushMatrix},
+ {"glPushName", NULL, &weglPushName},
+ {"glRasterPos2dv", NULL, &weglRasterPos2dv},
+ {"glRasterPos2fv", NULL, &weglRasterPos2fv},
+ {"glRasterPos2iv", NULL, &weglRasterPos2iv},
+ {"glRasterPos2sv", NULL, &weglRasterPos2sv},
+ {"glRasterPos3dv", NULL, &weglRasterPos3dv},
+ {"glRasterPos3fv", NULL, &weglRasterPos3fv},
+ {"glRasterPos3iv", NULL, &weglRasterPos3iv},
+ {"glRasterPos3sv", NULL, &weglRasterPos3sv},
+ {"glRasterPos4dv", NULL, &weglRasterPos4dv},
+ {"glRasterPos4fv", NULL, &weglRasterPos4fv},
+ {"glRasterPos4iv", NULL, &weglRasterPos4iv},
+ {"glRasterPos4sv", NULL, &weglRasterPos4sv},
+ {"glReadBuffer", NULL, &weglReadBuffer},
+ {"glReadPixels", NULL, &weglReadPixels},
+ {"glRectd", NULL, &weglRectd},
+ {"glRectdv", NULL, &weglRectdv},
+ {"glRectf", NULL, &weglRectf},
+ {"glRectfv", NULL, &weglRectfv},
+ {"glRecti", NULL, &weglRecti},
+ {"glRectiv", NULL, &weglRectiv},
+ {"glRects", NULL, &weglRects},
+ {"glRectsv", NULL, &weglRectsv},
+ {"glRenderMode", NULL, &weglRenderMode},
+ {"glRotated", NULL, &weglRotated},
+ {"glRotatef", NULL, &weglRotatef},
+ {"glScaled", NULL, &weglScaled},
+ {"glScalef", NULL, &weglScalef},
+ {"glScissor", NULL, &weglScissor},
+ {"glSelectBuffer", NULL, &weglSelectBuffer},
+ {"glShadeModel", NULL, &weglShadeModel},
+ {"glStencilFunc", NULL, &weglStencilFunc},
+ {"glStencilMask", NULL, &weglStencilMask},
+ {"glStencilOp", NULL, &weglStencilOp},
+ {"glTexCoord1dv", NULL, &weglTexCoord1dv},
+ {"glTexCoord1fv", NULL, &weglTexCoord1fv},
+ {"glTexCoord1iv", NULL, &weglTexCoord1iv},
+ {"glTexCoord1sv", NULL, &weglTexCoord1sv},
+ {"glTexCoord2dv", NULL, &weglTexCoord2dv},
+ {"glTexCoord2fv", NULL, &weglTexCoord2fv},
+ {"glTexCoord2iv", NULL, &weglTexCoord2iv},
+ {"glTexCoord2sv", NULL, &weglTexCoord2sv},
+ {"glTexCoord3dv", NULL, &weglTexCoord3dv},
+ {"glTexCoord3fv", NULL, &weglTexCoord3fv},
+ {"glTexCoord3iv", NULL, &weglTexCoord3iv},
+ {"glTexCoord3sv", NULL, &weglTexCoord3sv},
+ {"glTexCoord4dv", NULL, &weglTexCoord4dv},
+ {"glTexCoord4fv", NULL, &weglTexCoord4fv},
+ {"glTexCoord4iv", NULL, &weglTexCoord4iv},
+ {"glTexCoord4sv", NULL, &weglTexCoord4sv},
+ {"glTexCoordPointer", NULL, &weglTexCoordPointer},
+ {"glTexEnvf", NULL, &weglTexEnvf},
+ {"glTexEnvfv", NULL, &weglTexEnvfv},
+ {"glTexEnvi", NULL, &weglTexEnvi},
+ {"glTexEnviv", NULL, &weglTexEnviv},
+ {"glTexGend", NULL, &weglTexGend},
+ {"glTexGendv", NULL, &weglTexGendv},
+ {"glTexGenf", NULL, &weglTexGenf},
+ {"glTexGenfv", NULL, &weglTexGenfv},
+ {"glTexGeni", NULL, &weglTexGeni},
+ {"glTexGeniv", NULL, &weglTexGeniv},
+ {"glTexImage1D", NULL, &weglTexImage1D},
+ {"glTexImage2D", NULL, &weglTexImage2D},
+ {"glTexParameterf", NULL, &weglTexParameterf},
+ {"glTexParameterfv", NULL, &weglTexParameterfv},
+ {"glTexParameteri", NULL, &weglTexParameteri},
+ {"glTexParameteriv", NULL, &weglTexParameteriv},
+ {"glTexSubImage1D", NULL, &weglTexSubImage1D},
+ {"glTexSubImage2D", NULL, &weglTexSubImage2D},
+ {"glTranslated", NULL, &weglTranslated},
+ {"glTranslatef", NULL, &weglTranslatef},
+ {"glVertex2dv", NULL, &weglVertex2dv},
+ {"glVertex2fv", NULL, &weglVertex2fv},
+ {"glVertex2iv", NULL, &weglVertex2iv},
+ {"glVertex2sv", NULL, &weglVertex2sv},
+ {"glVertex3dv", NULL, &weglVertex3dv},
+ {"glVertex3fv", NULL, &weglVertex3fv},
+ {"glVertex3iv", NULL, &weglVertex3iv},
+ {"glVertex3sv", NULL, &weglVertex3sv},
+ {"glVertex4dv", NULL, &weglVertex4dv},
+ {"glVertex4fv", NULL, &weglVertex4fv},
+ {"glVertex4iv", NULL, &weglVertex4iv},
+ {"glVertex4sv", NULL, &weglVertex4sv},
+ {"glVertexPointer", NULL, &weglVertexPointer},
+ {"glViewport", NULL, &weglViewport},
+ {"glBlendColor", NULL, &weglBlendColor},
+ {"glBlendEquation", NULL, &weglBlendEquation},
+ {"glDrawRangeElements", NULL, &weglDrawRangeElements},
+ {"glTexImage3D", NULL, &weglTexImage3D},
+ {"glTexSubImage3D", NULL, &weglTexSubImage3D},
+ {"glCopyTexSubImage3D", NULL, &weglCopyTexSubImage3D},
+ {"glColorTable", "glColorTableSGI", &weglColorTable},
+ {"glColorTableParameterfv", "glColorTableParameterfvSGI", &weglColorTableParameterfv},
+ {"glColorTableParameteriv", "glColorTableParameterivSGI", &weglColorTableParameteriv},
+ {"glCopyColorTable", "glCopyColorTableSGI", &weglCopyColorTable},
+ {"glGetColorTable", "glGetColorTableSGI", &weglGetColorTable},
+ {"glGetColorTableParameterfv", "glGetColorTableParameterfvSGI", &weglGetColorTableParameterfv},
+ {"glGetColorTableParameteriv", "glGetColorTableParameterivSGI", &weglGetColorTableParameteriv},
+ {"glColorSubTable", NULL, &weglColorSubTable},
+ {"glCopyColorSubTable", NULL, &weglCopyColorSubTable},
+ {"glConvolutionFilter1D", NULL, &weglConvolutionFilter1D},
+ {"glConvolutionFilter2D", NULL, &weglConvolutionFilter2D},
+ {"glConvolutionParameterfv", NULL, &weglConvolutionParameterfv},
+ {"glConvolutionParameteriv", NULL, &weglConvolutionParameteriv},
+ {"glCopyConvolutionFilter1D", NULL, &weglCopyConvolutionFilter1D},
+ {"glCopyConvolutionFilter2D", NULL, &weglCopyConvolutionFilter2D},
+ {"glGetConvolutionFilter", NULL, &weglGetConvolutionFilter},
+ {"glGetConvolutionParameterfv", NULL, &weglGetConvolutionParameterfv},
+ {"glGetConvolutionParameteriv", NULL, &weglGetConvolutionParameteriv},
+ {"glSeparableFilter2D", NULL, &weglSeparableFilter2D},
+ {"glGetHistogram", NULL, &weglGetHistogram},
+ {"glGetHistogramParameterfv", NULL, &weglGetHistogramParameterfv},
+ {"glGetHistogramParameteriv", NULL, &weglGetHistogramParameteriv},
+ {"glGetMinmax", NULL, &weglGetMinmax},
+ {"glGetMinmaxParameterfv", NULL, &weglGetMinmaxParameterfv},
+ {"glGetMinmaxParameteriv", NULL, &weglGetMinmaxParameteriv},
+ {"glHistogram", NULL, &weglHistogram},
+ {"glMinmax", NULL, &weglMinmax},
+ {"glResetHistogram", NULL, &weglResetHistogram},
+ {"glResetMinmax", NULL, &weglResetMinmax},
+ {"glActiveTexture", "glActiveTextureARB", &weglActiveTexture},
+ {"glSampleCoverage", "glSampleCoverageARB", &weglSampleCoverage},
+ {"glCompressedTexImage3D", "glCompressedTexImage3DARB", &weglCompressedTexImage3D},
+ {"glCompressedTexImage2D", "glCompressedTexImage2DARB", &weglCompressedTexImage2D},
+ {"glCompressedTexImage1D", "glCompressedTexImage1DARB", &weglCompressedTexImage1D},
+ {"glCompressedTexSubImage3D", "glCompressedTexSubImage3DARB", &weglCompressedTexSubImage3D},
+ {"glCompressedTexSubImage2D", "glCompressedTexSubImage2DARB", &weglCompressedTexSubImage2D},
+ {"glCompressedTexSubImage1D", "glCompressedTexSubImage1DARB", &weglCompressedTexSubImage1D},
+ {"glGetCompressedTexImage", "glGetCompressedTexImageARB", &weglGetCompressedTexImage},
+ {"glClientActiveTexture", "glClientActiveTextureARB", &weglClientActiveTexture},
+ {"glMultiTexCoord1dv", "glMultiTexCoord1dvARB", &weglMultiTexCoord1dv},
+ {"glMultiTexCoord1fv", "glMultiTexCoord1fvARB", &weglMultiTexCoord1fv},
+ {"glMultiTexCoord1iv", "glMultiTexCoord1ivARB", &weglMultiTexCoord1iv},
+ {"glMultiTexCoord1sv", "glMultiTexCoord1svARB", &weglMultiTexCoord1sv},
+ {"glMultiTexCoord2dv", "glMultiTexCoord2dvARB", &weglMultiTexCoord2dv},
+ {"glMultiTexCoord2fv", "glMultiTexCoord2fvARB", &weglMultiTexCoord2fv},
+ {"glMultiTexCoord2iv", "glMultiTexCoord2ivARB", &weglMultiTexCoord2iv},
+ {"glMultiTexCoord2sv", "glMultiTexCoord2svARB", &weglMultiTexCoord2sv},
+ {"glMultiTexCoord3dv", "glMultiTexCoord3dvARB", &weglMultiTexCoord3dv},
+ {"glMultiTexCoord3fv", "glMultiTexCoord3fvARB", &weglMultiTexCoord3fv},
+ {"glMultiTexCoord3iv", "glMultiTexCoord3ivARB", &weglMultiTexCoord3iv},
+ {"glMultiTexCoord3sv", "glMultiTexCoord3svARB", &weglMultiTexCoord3sv},
+ {"glMultiTexCoord4dv", "glMultiTexCoord4dvARB", &weglMultiTexCoord4dv},
+ {"glMultiTexCoord4fv", "glMultiTexCoord4fvARB", &weglMultiTexCoord4fv},
+ {"glMultiTexCoord4iv", "glMultiTexCoord4ivARB", &weglMultiTexCoord4iv},
+ {"glMultiTexCoord4sv", "glMultiTexCoord4svARB", &weglMultiTexCoord4sv},
+ {"glLoadTransposeMatrixf", NULL, &weglLoadTransposeMatrixf},
+ {"glLoadTransposeMatrixd", NULL, &weglLoadTransposeMatrixd},
+ {"glMultTransposeMatrixf", NULL, &weglMultTransposeMatrixf},
+ {"glMultTransposeMatrixd", NULL, &weglMultTransposeMatrixd},
+ {"glBlendFuncSeparate", "glBlendFuncSeparateINGR", &weglBlendFuncSeparate},
+ {"glMultiDrawArrays", NULL, &weglMultiDrawArrays},
+ {"glPointParameterf", "glPointParameterfARB", &weglPointParameterf},
+ {"glPointParameterfv", "glPointParameterfvARB", &weglPointParameterfv},
+ {"glPointParameteri", NULL, &weglPointParameteri},
+ {"glPointParameteriv", NULL, &weglPointParameteriv},
+ {"glFogCoordfv", NULL, &weglFogCoordfv},
+ {"glFogCoorddv", NULL, &weglFogCoorddv},
+ {"glFogCoordPointer", NULL, &weglFogCoordPointer},
+ {"glSecondaryColor3bv", NULL, &weglSecondaryColor3bv},
+ {"glSecondaryColor3dv", NULL, &weglSecondaryColor3dv},
+ {"glSecondaryColor3fv", NULL, &weglSecondaryColor3fv},
+ {"glSecondaryColor3iv", NULL, &weglSecondaryColor3iv},
+ {"glSecondaryColor3sv", NULL, &weglSecondaryColor3sv},
+ {"glSecondaryColor3ubv", NULL, &weglSecondaryColor3ubv},
+ {"glSecondaryColor3uiv", NULL, &weglSecondaryColor3uiv},
+ {"glSecondaryColor3usv", NULL, &weglSecondaryColor3usv},
+ {"glSecondaryColorPointer", NULL, &weglSecondaryColorPointer},
+ {"glWindowPos2dv", "glWindowPos2dvMESA", &weglWindowPos2dv},
+ {"glWindowPos2fv", "glWindowPos2fvMESA", &weglWindowPos2fv},
+ {"glWindowPos2iv", "glWindowPos2ivMESA", &weglWindowPos2iv},
+ {"glWindowPos2sv", "glWindowPos2svMESA", &weglWindowPos2sv},
+ {"glWindowPos3dv", "glWindowPos3dvMESA", &weglWindowPos3dv},
+ {"glWindowPos3fv", "glWindowPos3fvMESA", &weglWindowPos3fv},
+ {"glWindowPos3iv", "glWindowPos3ivMESA", &weglWindowPos3iv},
+ {"glWindowPos3sv", "glWindowPos3svMESA", &weglWindowPos3sv},
+ {"glGenQueries", "glGenQueriesARB", &weglGenQueries},
+ {"glDeleteQueries", "glDeleteQueriesARB", &weglDeleteQueries},
+ {"glIsQuery", "glIsQueryARB", &weglIsQuery},
+ {"glBeginQuery", "glBeginQueryARB", &weglBeginQuery},
+ {"glEndQuery", "glEndQueryARB", &weglEndQuery},
+ {"glGetQueryiv", "glGetQueryivARB", &weglGetQueryiv},
+ {"glGetQueryObjectiv", "glGetQueryObjectivARB", &weglGetQueryObjectiv},
+ {"glGetQueryObjectuiv", "glGetQueryObjectuivARB", &weglGetQueryObjectuiv},
+ {"glBindBuffer", "glBindBufferARB", &weglBindBuffer},
+ {"glDeleteBuffers", "glDeleteBuffersARB", &weglDeleteBuffers},
+ {"glGenBuffers", "glGenBuffersARB", &weglGenBuffers},
+ {"glIsBuffer", "glIsBufferARB", &weglIsBuffer},
+ {"glBufferData", "glBufferDataARB", &weglBufferData},
+ {"glBufferSubData", "glBufferSubDataARB", &weglBufferSubData},
+ {"glGetBufferSubData", "glGetBufferSubDataARB", &weglGetBufferSubData},
+ {"glGetBufferParameteriv", "glGetBufferParameterivARB", &weglGetBufferParameteriv},
+ {"glBlendEquationSeparate", "glBlendEquationSeparateEXT", &weglBlendEquationSeparate},
+ {"glDrawBuffers", "glDrawBuffersARB", &weglDrawBuffers},
+ {"glStencilOpSeparate", "glStencilOpSeparateATI", &weglStencilOpSeparate},
+ {"glStencilFuncSeparate", "glStencilFuncSeparateATI", &weglStencilFuncSeparate},
+ {"glStencilMaskSeparate", NULL, &weglStencilMaskSeparate},
+ {"glAttachShader", NULL, &weglAttachShader},
+ {"glBindAttribLocation", NULL, &weglBindAttribLocation},
+ {"glCompileShader", NULL, &weglCompileShader},
+ {"glCreateProgram", NULL, &weglCreateProgram},
+ {"glCreateShader", NULL, &weglCreateShader},
+ {"glDeleteProgram", NULL, &weglDeleteProgram},
+ {"glDeleteShader", NULL, &weglDeleteShader},
+ {"glDetachShader", NULL, &weglDetachShader},
+ {"glDisableVertexAttribArray", "glDisableVertexAttribArrayARB", &weglDisableVertexAttribArray},
+ {"glEnableVertexAttribArray", "glEnableVertexAttribArrayARB", &weglEnableVertexAttribArray},
+ {"glGetActiveAttrib", NULL, &weglGetActiveAttrib},
+ {"glGetActiveUniform", NULL, &weglGetActiveUniform},
+ {"glGetAttachedShaders", NULL, &weglGetAttachedShaders},
+ {"glGetAttribLocation", NULL, &weglGetAttribLocation},
+ {"glGetProgramiv", "glGetProgramivARB", &weglGetProgramiv},
+ {"glGetProgramInfoLog", NULL, &weglGetProgramInfoLog},
+ {"glGetShaderiv", NULL, &weglGetShaderiv},
+ {"glGetShaderInfoLog", NULL, &weglGetShaderInfoLog},
+ {"glGetShaderSource", NULL, &weglGetShaderSource},
+ {"glGetUniformLocation", NULL, &weglGetUniformLocation},
+ {"glGetUniformfv", NULL, &weglGetUniformfv},
+ {"glGetUniformiv", NULL, &weglGetUniformiv},
+ {"glGetVertexAttribdv", "glGetVertexAttribdvARB", &weglGetVertexAttribdv},
+ {"glGetVertexAttribfv", "glGetVertexAttribfvARB", &weglGetVertexAttribfv},
+ {"glGetVertexAttribiv", "glGetVertexAttribivARB", &weglGetVertexAttribiv},
+ {"glIsProgram", "glIsProgramARB", &weglIsProgram},
+ {"glIsShader", NULL, &weglIsShader},
+ {"glLinkProgram", NULL, &weglLinkProgram},
+ {"glShaderSource", NULL, &weglShaderSource},
+ {"glUseProgram", NULL, &weglUseProgram},
+ {"glUniform1f", "glUniform1fARB", &weglUniform1f},
+ {"glUniform2f", "glUniform2fARB", &weglUniform2f},
+ {"glUniform3f", "glUniform3fARB", &weglUniform3f},
+ {"glUniform4f", "glUniform4fARB", &weglUniform4f},
+ {"glUniform1i", "glUniform1iARB", &weglUniform1i},
+ {"glUniform2i", "glUniform2iARB", &weglUniform2i},
+ {"glUniform3i", "glUniform3iARB", &weglUniform3i},
+ {"glUniform4i", "glUniform4iARB", &weglUniform4i},
+ {"glUniform1fv", "glUniform1fvARB", &weglUniform1fv},
+ {"glUniform2fv", "glUniform2fvARB", &weglUniform2fv},
+ {"glUniform3fv", "glUniform3fvARB", &weglUniform3fv},
+ {"glUniform4fv", "glUniform4fvARB", &weglUniform4fv},
+ {"glUniform1iv", "glUniform1ivARB", &weglUniform1iv},
+ {"glUniform2iv", "glUniform2ivARB", &weglUniform2iv},
+ {"glUniform3iv", "glUniform3ivARB", &weglUniform3iv},
+ {"glUniform4iv", "glUniform4ivARB", &weglUniform4iv},
+ {"glUniformMatrix2fv", "glUniformMatrix2fvARB", &weglUniformMatrix2fv},
+ {"glUniformMatrix3fv", "glUniformMatrix3fvARB", &weglUniformMatrix3fv},
+ {"glUniformMatrix4fv", "glUniformMatrix4fvARB", &weglUniformMatrix4fv},
+ {"glValidateProgram", NULL, &weglValidateProgram},
+ {"glVertexAttrib1dv", "glVertexAttrib1dvARB", &weglVertexAttrib1dv},
+ {"glVertexAttrib1fv", "glVertexAttrib1fvARB", &weglVertexAttrib1fv},
+ {"glVertexAttrib1sv", "glVertexAttrib1svARB", &weglVertexAttrib1sv},
+ {"glVertexAttrib2dv", "glVertexAttrib2dvARB", &weglVertexAttrib2dv},
+ {"glVertexAttrib2fv", "glVertexAttrib2fvARB", &weglVertexAttrib2fv},
+ {"glVertexAttrib2sv", "glVertexAttrib2svARB", &weglVertexAttrib2sv},
+ {"glVertexAttrib3dv", "glVertexAttrib3dvARB", &weglVertexAttrib3dv},
+ {"glVertexAttrib3fv", "glVertexAttrib3fvARB", &weglVertexAttrib3fv},
+ {"glVertexAttrib3sv", "glVertexAttrib3svARB", &weglVertexAttrib3sv},
+ {"glVertexAttrib4Nbv", "glVertexAttrib4NbvARB", &weglVertexAttrib4Nbv},
+ {"glVertexAttrib4Niv", "glVertexAttrib4NivARB", &weglVertexAttrib4Niv},
+ {"glVertexAttrib4Nsv", "glVertexAttrib4NsvARB", &weglVertexAttrib4Nsv},
+ {"glVertexAttrib4Nubv", "glVertexAttrib4NubvARB", &weglVertexAttrib4Nubv},
+ {"glVertexAttrib4Nuiv", "glVertexAttrib4NuivARB", &weglVertexAttrib4Nuiv},
+ {"glVertexAttrib4Nusv", "glVertexAttrib4NusvARB", &weglVertexAttrib4Nusv},
+ {"glVertexAttrib4bv", "glVertexAttrib4bvARB", &weglVertexAttrib4bv},
+ {"glVertexAttrib4dv", "glVertexAttrib4dvARB", &weglVertexAttrib4dv},
+ {"glVertexAttrib4fv", "glVertexAttrib4fvARB", &weglVertexAttrib4fv},
+ {"glVertexAttrib4iv", "glVertexAttrib4ivARB", &weglVertexAttrib4iv},
+ {"glVertexAttrib4sv", "glVertexAttrib4svARB", &weglVertexAttrib4sv},
+ {"glVertexAttrib4ubv", "glVertexAttrib4ubvARB", &weglVertexAttrib4ubv},
+ {"glVertexAttrib4uiv", "glVertexAttrib4uivARB", &weglVertexAttrib4uiv},
+ {"glVertexAttrib4usv", "glVertexAttrib4usvARB", &weglVertexAttrib4usv},
+ {"glVertexAttribPointer", "glVertexAttribPointerARB", &weglVertexAttribPointer},
+ {"glUniformMatrix2x3fv", NULL, &weglUniformMatrix2x3fv},
+ {"glUniformMatrix3x2fv", NULL, &weglUniformMatrix3x2fv},
+ {"glUniformMatrix2x4fv", NULL, &weglUniformMatrix2x4fv},
+ {"glUniformMatrix4x2fv", NULL, &weglUniformMatrix4x2fv},
+ {"glUniformMatrix3x4fv", NULL, &weglUniformMatrix3x4fv},
+ {"glUniformMatrix4x3fv", NULL, &weglUniformMatrix4x3fv},
+ {"glColorMaski", NULL, &weglColorMaski},
+ {"glGetBooleani_v", NULL, &weglGetBooleani_v},
+ {"glGetIntegeri_v", NULL, &weglGetIntegeri_v},
+ {"glEnablei", NULL, &weglEnablei},
+ {"glDisablei", NULL, &weglDisablei},
+ {"glIsEnabledi", NULL, &weglIsEnabledi},
+ {"glBeginTransformFeedback", NULL, &weglBeginTransformFeedback},
+ {"glEndTransformFeedback", NULL, &weglEndTransformFeedback},
+ {"glBindBufferRange", NULL, &weglBindBufferRange},
+ {"glBindBufferBase", NULL, &weglBindBufferBase},
+ {"glTransformFeedbackVaryings", NULL, &weglTransformFeedbackVaryings},
+ {"glGetTransformFeedbackVarying", NULL, &weglGetTransformFeedbackVarying},
+ {"glClampColor", "glClampColorARB", &weglClampColor},
+ {"glBeginConditionalRender", NULL, &weglBeginConditionalRender},
+ {"glEndConditionalRender", NULL, &weglEndConditionalRender},
+ {"glVertexAttribIPointer", NULL, &weglVertexAttribIPointer},
+ {"glGetVertexAttribIiv", NULL, &weglGetVertexAttribIiv},
+ {"glGetVertexAttribIuiv", NULL, &weglGetVertexAttribIuiv},
+ {"glGetUniformuiv", NULL, &weglGetUniformuiv},
+ {"glBindFragDataLocation", NULL, &weglBindFragDataLocation},
+ {"glGetFragDataLocation", NULL, &weglGetFragDataLocation},
+ {"glUniform1ui", NULL, &weglUniform1ui},
+ {"glUniform2ui", NULL, &weglUniform2ui},
+ {"glUniform3ui", NULL, &weglUniform3ui},
+ {"glUniform4ui", NULL, &weglUniform4ui},
+ {"glUniform1uiv", NULL, &weglUniform1uiv},
+ {"glUniform2uiv", NULL, &weglUniform2uiv},
+ {"glUniform3uiv", NULL, &weglUniform3uiv},
+ {"glUniform4uiv", NULL, &weglUniform4uiv},
+ {"glTexParameterIiv", NULL, &weglTexParameterIiv},
+ {"glTexParameterIuiv", NULL, &weglTexParameterIuiv},
+ {"glGetTexParameterIiv", NULL, &weglGetTexParameterIiv},
+ {"glGetTexParameterIuiv", NULL, &weglGetTexParameterIuiv},
+ {"glClearBufferiv", NULL, &weglClearBufferiv},
+ {"glClearBufferuiv", NULL, &weglClearBufferuiv},
+ {"glClearBufferfv", NULL, &weglClearBufferfv},
+ {"glClearBufferfi", NULL, &weglClearBufferfi},
+ {"glGetStringi", NULL, &weglGetStringi},
+ {"glVertexAttribI1iv", NULL, &weglVertexAttribI1iv},
+ {"glVertexAttribI2iv", NULL, &weglVertexAttribI2iv},
+ {"glVertexAttribI3iv", NULL, &weglVertexAttribI3iv},
+ {"glVertexAttribI4iv", NULL, &weglVertexAttribI4iv},
+ {"glVertexAttribI1uiv", NULL, &weglVertexAttribI1uiv},
+ {"glVertexAttribI2uiv", NULL, &weglVertexAttribI2uiv},
+ {"glVertexAttribI3uiv", NULL, &weglVertexAttribI3uiv},
+ {"glVertexAttribI4uiv", NULL, &weglVertexAttribI4uiv},
+ {"glVertexAttribI4bv", NULL, &weglVertexAttribI4bv},
+ {"glVertexAttribI4sv", NULL, &weglVertexAttribI4sv},
+ {"glVertexAttribI4ubv", NULL, &weglVertexAttribI4ubv},
+ {"glVertexAttribI4usv", NULL, &weglVertexAttribI4usv},
+ {"glDrawArraysInstanced", "glDrawArraysInstancedARB", &weglDrawArraysInstanced},
+ {"glDrawElementsInstanced", "glDrawElementsInstancedARB", &weglDrawElementsInstanced},
+ {"glTexBuffer", "glTexBufferARB", &weglTexBuffer},
+ {"glPrimitiveRestartIndex", NULL, &weglPrimitiveRestartIndex},
+ {"glLoadTransposeMatrixfARB", NULL, &weglLoadTransposeMatrixfARB},
+ {"glLoadTransposeMatrixdARB", NULL, &weglLoadTransposeMatrixdARB},
+ {"glMultTransposeMatrixfARB", NULL, &weglMultTransposeMatrixfARB},
+ {"glMultTransposeMatrixdARB", NULL, &weglMultTransposeMatrixdARB},
+ {"glWeightbvARB", NULL, &weglWeightbvARB},
+ {"glWeightsvARB", NULL, &weglWeightsvARB},
+ {"glWeightivARB", NULL, &weglWeightivARB},
+ {"glWeightfvARB", NULL, &weglWeightfvARB},
+ {"glWeightdvARB", NULL, &weglWeightdvARB},
+ {"glWeightubvARB", NULL, &weglWeightubvARB},
+ {"glWeightusvARB", NULL, &weglWeightusvARB},
+ {"glWeightuivARB", NULL, &weglWeightuivARB},
+ {"glVertexBlendARB", NULL, &weglVertexBlendARB},
+ {"glCurrentPaletteMatrixARB", NULL, &weglCurrentPaletteMatrixARB},
+ {"glMatrixIndexubvARB", NULL, &weglMatrixIndexubvARB},
+ {"glMatrixIndexusvARB", NULL, &weglMatrixIndexusvARB},
+ {"glMatrixIndexuivARB", NULL, &weglMatrixIndexuivARB},
+ {"glProgramStringARB", NULL, &weglProgramStringARB},
+ {"glBindProgramARB", NULL, &weglBindProgramARB},
+ {"glDeleteProgramsARB", NULL, &weglDeleteProgramsARB},
+ {"glGenProgramsARB", NULL, &weglGenProgramsARB},
+ {"glProgramEnvParameter4dARB", NULL, &weglProgramEnvParameter4dARB},
+ {"glProgramEnvParameter4dvARB", NULL, &weglProgramEnvParameter4dvARB},
+ {"glProgramEnvParameter4fARB", NULL, &weglProgramEnvParameter4fARB},
+ {"glProgramEnvParameter4fvARB", NULL, &weglProgramEnvParameter4fvARB},
+ {"glProgramLocalParameter4dARB", NULL, &weglProgramLocalParameter4dARB},
+ {"glProgramLocalParameter4dvARB", NULL, &weglProgramLocalParameter4dvARB},
+ {"glProgramLocalParameter4fARB", NULL, &weglProgramLocalParameter4fARB},
+ {"glProgramLocalParameter4fvARB", NULL, &weglProgramLocalParameter4fvARB},
+ {"glGetProgramEnvParameterdvARB", NULL, &weglGetProgramEnvParameterdvARB},
+ {"glGetProgramEnvParameterfvARB", NULL, &weglGetProgramEnvParameterfvARB},
+ {"glGetProgramLocalParameterdvARB", NULL, &weglGetProgramLocalParameterdvARB},
+ {"glGetProgramLocalParameterfvARB", NULL, &weglGetProgramLocalParameterfvARB},
+ {"glGetProgramStringARB", NULL, &weglGetProgramStringARB},
+ {"glDeleteObjectARB", NULL, &weglDeleteObjectARB},
+ {"glGetHandleARB", NULL, &weglGetHandleARB},
+ {"glDetachObjectARB", NULL, &weglDetachObjectARB},
+ {"glCreateShaderObjectARB", NULL, &weglCreateShaderObjectARB},
+ {"glShaderSourceARB", NULL, &weglShaderSourceARB},
+ {"glCompileShaderARB", NULL, &weglCompileShaderARB},
+ {"glCreateProgramObjectARB", NULL, &weglCreateProgramObjectARB},
+ {"glAttachObjectARB", NULL, &weglAttachObjectARB},
+ {"glLinkProgramARB", NULL, &weglLinkProgramARB},
+ {"glUseProgramObjectARB", NULL, &weglUseProgramObjectARB},
+ {"glValidateProgramARB", NULL, &weglValidateProgramARB},
+ {"glGetObjectParameterfvARB", NULL, &weglGetObjectParameterfvARB},
+ {"glGetObjectParameterivARB", NULL, &weglGetObjectParameterivARB},
+ {"glGetInfoLogARB", NULL, &weglGetInfoLogARB},
+ {"glGetAttachedObjectsARB", NULL, &weglGetAttachedObjectsARB},
+ {"glGetUniformLocationARB", NULL, &weglGetUniformLocationARB},
+ {"glGetActiveUniformARB", NULL, &weglGetActiveUniformARB},
+ {"glGetUniformfvARB", NULL, &weglGetUniformfvARB},
+ {"glGetUniformivARB", NULL, &weglGetUniformivARB},
+ {"glGetShaderSourceARB", NULL, &weglGetShaderSourceARB},
+ {"glBindAttribLocationARB", NULL, &weglBindAttribLocationARB},
+ {"glGetActiveAttribARB", NULL, &weglGetActiveAttribARB},
+ {"glGetAttribLocationARB", NULL, &weglGetAttribLocationARB},
+ {"glIsRenderbuffer", "glIsRenderbufferEXT", &weglIsRenderbuffer},
+ {"glBindRenderbuffer", "glBindRenderbufferEXT", &weglBindRenderbuffer},
+ {"glDeleteRenderbuffers", "glDeleteRenderbuffersEXT", &weglDeleteRenderbuffers},
+ {"glGenRenderbuffers", "glGenRenderbuffersEXT", &weglGenRenderbuffers},
+ {"glRenderbufferStorage", "glRenderbufferStorageEXT", &weglRenderbufferStorage},
+ {"glGetRenderbufferParameteriv", "glGetRenderbufferParameterivEXT", &weglGetRenderbufferParameteriv},
+ {"glIsFramebuffer", "glIsFramebufferEXT", &weglIsFramebuffer},
+ {"glBindFramebuffer", "glBindFramebufferEXT", &weglBindFramebuffer},
+ {"glDeleteFramebuffers", "glDeleteFramebuffersEXT", &weglDeleteFramebuffers},
+ {"glGenFramebuffers", "glGenFramebuffersEXT", &weglGenFramebuffers},
+ {"glCheckFramebufferStatus", "glCheckFramebufferStatusEXT", &weglCheckFramebufferStatus},
+ {"glFramebufferTexture1D", "glFramebufferTexture1DEXT", &weglFramebufferTexture1D},
+ {"glFramebufferTexture2D", "glFramebufferTexture2DEXT", &weglFramebufferTexture2D},
+ {"glFramebufferTexture3D", "glFramebufferTexture3DEXT", &weglFramebufferTexture3D},
+ {"glFramebufferRenderbuffer", "glFramebufferRenderbufferEXT", &weglFramebufferRenderbuffer},
+ {"glGetFramebufferAttachmentParameteriv", "glGetFramebufferAttachmentParameterivEXT", &weglGetFramebufferAttachmentParameteriv},
+ {"glGenerateMipmap", "glGenerateMipmapEXT", &weglGenerateMipmap},
+ {"glBlitFramebuffer", "glBlitFramebufferEXT", &weglBlitFramebuffer},
+ {"glRenderbufferStorageMultisample", "glRenderbufferStorageMultisampleEXT", &weglRenderbufferStorageMultisample},
+ {"glFramebufferTextureLayer", "glFramebufferTextureLayerARB", &weglFramebufferTextureLayer},
+ {"glProgramParameteriARB", NULL, &weglProgramParameteriARB},
+ {"glFramebufferTextureARB", NULL, &weglFramebufferTextureARB},
+ {"glFramebufferTextureFaceARB", NULL, &weglFramebufferTextureFaceARB},
+ {"glVertexAttribDivisorARB", NULL, &weglVertexAttribDivisorARB},
+ {"glFlushMappedBufferRange", NULL, &weglFlushMappedBufferRange},
+ {"glBindVertexArray", NULL, &weglBindVertexArray},
+ {"glDeleteVertexArrays", NULL, &weglDeleteVertexArrays},
+ {"glGenVertexArrays", NULL, &weglGenVertexArrays},
+ {"glIsVertexArray", NULL, &weglIsVertexArray},
+ {"glGetUniformIndices", NULL, &weglGetUniformIndices},
+ {"glGetActiveUniformsiv", NULL, &weglGetActiveUniformsiv},
+ {"glGetActiveUniformName", NULL, &weglGetActiveUniformName},
+ {"glGetUniformBlockIndex", NULL, &weglGetUniformBlockIndex},
+ {"glGetActiveUniformBlockiv", NULL, &weglGetActiveUniformBlockiv},
+ {"glGetActiveUniformBlockName", NULL, &weglGetActiveUniformBlockName},
+ {"glUniformBlockBinding", NULL, &weglUniformBlockBinding},
+ {"glCopyBufferSubData", NULL, &weglCopyBufferSubData},
+ {"glResizeBuffersMESA", NULL, &weglResizeBuffersMESA},
+ {"glWindowPos4dvMESA", NULL, &weglWindowPos4dvMESA},
+ {"glWindowPos4fvMESA", NULL, &weglWindowPos4fvMESA},
+ {"glWindowPos4ivMESA", NULL, &weglWindowPos4ivMESA},
+ {"glWindowPos4svMESA", NULL, &weglWindowPos4svMESA},
+ {"glDepthBoundsEXT", NULL, &weglDepthBoundsEXT},
+ {"glStencilClearTagEXT", NULL, &weglStencilClearTagEXT},
+ { NULL, NULL, NULL}};
diff --git a/lib/wx/c_src/gen/gl_funcs.cpp b/lib/wx/c_src/gen/gl_funcs.cpp
new file mode 100644
index 0000000000..784731f02c
--- /dev/null
+++ b/lib/wx/c_src/gen/gl_funcs.cpp
@@ -0,0 +1,5406 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+/***** This file is generated do not edit ****/
+
+#include <stdio.h>
+#include <string.h>
+#include "../wxe_impl.h"
+#include "../wxe_gl.h"
+#include "gl_fdefs.h"
+
+int gl_error_op;
+void gl_dispatch(int op, char *bp,ErlDrvTermData caller,WXEBinRef *bins[]){
+ gl_error_op = op;
+ if(caller != gl_active) {
+ wxGLCanvas * current = glc[caller];
+ if(current) { gl_active = caller; current->SetCurrent();}
+ else {
+ ErlDrvTermData rt[] = // Error msg
+ {ERL_DRV_ATOM, driver_mk_atom((char *) "_wxe_error_"),
+ ERL_DRV_INT, op,
+ ERL_DRV_ATOM, driver_mk_atom((char *) "no_gl_context"),
+ ERL_DRV_TUPLE,3};
+ driver_send_term(WXE_DRV_PORT,caller,rt,8);
+ return ;
+ }
+ };
+
+ switch(op)
+{
+ case 5000:
+ wxe_tess_impl(bp, caller);
+ break;
+ case WXE_BIN_INCR:
+ driver_binary_inc_refc(bins[0]->bin);
+ break;
+ case WXE_BIN_DECR:
+ driver_binary_dec_refc(bins[0]->bin);
+ break;
+case 5010: { // gluBuild1DMipmapLevels
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *base = (GLint *) bp; bp += 4;
+ GLint *max = (GLint *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild1DMipmapLevels(*target,*internalFormat,*width,*format,*type,*level,*base,*max,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5011: { // gluBuild1DMipmaps
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild1DMipmaps(*target,*internalFormat,*width,*format,*type,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5012: { // gluBuild2DMipmapLevels
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *base = (GLint *) bp; bp += 4;
+ GLint *max = (GLint *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild2DMipmapLevels(*target,*internalFormat,*width,*height,*format,*type,*level,*base,*max,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5013: { // gluBuild2DMipmaps
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild2DMipmaps(*target,*internalFormat,*width,*height,*format,*type,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5014: { // gluBuild3DMipmapLevels
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *base = (GLint *) bp; bp += 4;
+ GLint *max = (GLint *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild3DMipmapLevels(*target,*internalFormat,*width,*height,*depth,*format,*type,*level,*base,*max,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5015: { // gluBuild3DMipmaps
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *internalFormat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ void *data = (void *) bins[0]->base;
+ GLint result = wegluBuild3DMipmaps(*target,*internalFormat,*width,*height,*depth,*format,*type,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5016: { // gluCheckExtension
+ int * extNameLen = (int *) bp; bp += 4;
+ GLubyte * extName = (GLubyte *) bp; bp += (8-((*extNameLen*1+4)%8))%8;
+ int * extStringLen = (int *) bp; bp += 4;
+ GLubyte * extString = (GLubyte *) bp; bp += (8-((*extStringLen*1+4)%8))%8;
+ GLboolean result = wegluCheckExtension(extName,extString);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5017: { // gluCylinder
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLdouble *base = (GLdouble *) bp; bp += 8;
+ GLdouble *top = (GLdouble *) bp; bp += 8;
+ GLdouble *height = (GLdouble *) bp; bp += 8;
+ GLint *slices = (GLint *) bp; bp += 4;
+ GLint *stacks = (GLint *) bp; bp += 4;
+ wegluCylinder(quad,*base,*top,*height,*slices,*stacks);
+}; break;
+case 5018: { // gluDeleteQuadric
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ wegluDeleteQuadric(quad);
+}; break;
+case 5019: { // gluDisk
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLdouble *inner = (GLdouble *) bp; bp += 8;
+ GLdouble *outer = (GLdouble *) bp; bp += 8;
+ GLint *slices = (GLint *) bp; bp += 4;
+ GLint *loops = (GLint *) bp; bp += 4;
+ wegluDisk(quad,*inner,*outer,*slices,*loops);
+}; break;
+case 5020: { // gluErrorString
+ GLenum *error = (GLenum *) bp; bp += 4;
+ const GLubyte * result = wegluErrorString(*error);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) result; rt[AP++] = strlen((char *) result);
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5021: { // gluGetString
+ GLenum *name = (GLenum *) bp; bp += 4;
+ const GLubyte * result = wegluGetString(*name);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) result; rt[AP++] = strlen((char *) result);
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5022: { // gluLookAt
+ GLdouble *eyeX = (GLdouble *) bp; bp += 8;
+ GLdouble *eyeY = (GLdouble *) bp; bp += 8;
+ GLdouble *eyeZ = (GLdouble *) bp; bp += 8;
+ GLdouble *centerX = (GLdouble *) bp; bp += 8;
+ GLdouble *centerY = (GLdouble *) bp; bp += 8;
+ GLdouble *centerZ = (GLdouble *) bp; bp += 8;
+ GLdouble *upX = (GLdouble *) bp; bp += 8;
+ GLdouble *upY = (GLdouble *) bp; bp += 8;
+ GLdouble *upZ = (GLdouble *) bp; bp += 8;
+ wegluLookAt(*eyeX,*eyeY,*eyeZ,*centerX,*centerY,*centerZ,*upX,*upY,*upZ);
+}; break;
+case 5023: { // gluNewQuadric
+ GLUquadric * result = wegluNewQuadric();
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5024: { // gluOrtho2D
+ GLdouble *left = (GLdouble *) bp; bp += 8;
+ GLdouble *right = (GLdouble *) bp; bp += 8;
+ GLdouble *bottom = (GLdouble *) bp; bp += 8;
+ GLdouble *top = (GLdouble *) bp; bp += 8;
+ wegluOrtho2D(*left,*right,*bottom,*top);
+}; break;
+case 5025: { // gluPartialDisk
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLdouble *inner = (GLdouble *) bp; bp += 8;
+ GLdouble *outer = (GLdouble *) bp; bp += 8;
+ GLint *slices = (GLint *) bp; bp += 4;
+ GLint *loops = (GLint *) bp; bp += 4;
+ GLdouble *start = (GLdouble *) bp; bp += 8;
+ GLdouble *sweep = (GLdouble *) bp; bp += 8;
+ wegluPartialDisk(quad,*inner,*outer,*slices,*loops,*start,*sweep);
+}; break;
+case 5026: { // gluPerspective
+ GLdouble *fovy = (GLdouble *) bp; bp += 8;
+ GLdouble *aspect = (GLdouble *) bp; bp += 8;
+ GLdouble *zNear = (GLdouble *) bp; bp += 8;
+ GLdouble *zFar = (GLdouble *) bp; bp += 8;
+ wegluPerspective(*fovy,*aspect,*zNear,*zFar);
+}; break;
+case 5027: { // gluPickMatrix
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *delX = (GLdouble *) bp; bp += 8;
+ GLdouble *delY = (GLdouble *) bp; bp += 8;
+ GLint * viewport = (GLint *) bp; bp += 16;
+ wegluPickMatrix(*x,*y,*delX,*delY,viewport);
+}; break;
+case 5028: { // gluProject
+ GLdouble *objX = (GLdouble *) bp; bp += 8;
+ GLdouble *objY = (GLdouble *) bp; bp += 8;
+ GLdouble *objZ = (GLdouble *) bp; bp += 8;
+ GLdouble * model = (GLdouble *) bp; bp += 128;
+ GLdouble * proj = (GLdouble *) bp; bp += 128;
+ GLint * view = (GLint *) bp; bp += 16;
+ GLdouble winX[1] = {0.0};
+ GLdouble winY[1] = {0.0};
+ GLdouble winZ[1] = {0.0};
+ GLint result = wegluProject(*objX,*objY,*objZ,model,proj,view,winX,winY,winZ);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) winX;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) winY;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) winZ;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5029: { // gluQuadricDrawStyle
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLenum *draw = (GLenum *) bp; bp += 4;
+ wegluQuadricDrawStyle(quad,*draw);
+}; break;
+case 5030: { // gluQuadricNormals
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLenum *normal = (GLenum *) bp; bp += 4;
+ wegluQuadricNormals(quad,*normal);
+}; break;
+case 5031: { // gluQuadricOrientation
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLenum *orientation = (GLenum *) bp; bp += 4;
+ wegluQuadricOrientation(quad,*orientation);
+}; break;
+case 5032: { // gluQuadricTexture
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLboolean *texture = (GLboolean *) bp; bp += 1;
+ wegluQuadricTexture(quad,*texture);
+}; break;
+case 5033: { // gluScaleImage
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *wIn = (GLsizei *) bp; bp += 4;
+ GLsizei *hIn = (GLsizei *) bp; bp += 4;
+ GLenum *typeIn = (GLenum *) bp; bp += 4;
+ void *dataIn = (void *) bins[0]->base;
+ GLsizei *wOut = (GLsizei *) bp; bp += 4;
+ GLsizei *hOut = (GLsizei *) bp; bp += 4;
+ GLenum *typeOut = (GLenum *) bp; bp += 4;
+ GLvoid *dataOut = (GLvoid *) bins[1]->base;
+ GLint result = wegluScaleImage(*format,*wIn,*hIn,*typeIn,dataIn,*wOut,*hOut,*typeOut,dataOut);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5034: { // gluSphere
+ GLUquadric * quad = (GLUquadric *) * (GLuint64EXT *) bp; bp += 8;
+ GLdouble *radius = (GLdouble *) bp; bp += 8;
+ GLint *slices = (GLint *) bp; bp += 4;
+ GLint *stacks = (GLint *) bp; bp += 4;
+ wegluSphere(quad,*radius,*slices,*stacks);
+}; break;
+case 5035: { // gluUnProject
+ GLdouble *winX = (GLdouble *) bp; bp += 8;
+ GLdouble *winY = (GLdouble *) bp; bp += 8;
+ GLdouble *winZ = (GLdouble *) bp; bp += 8;
+ GLdouble * model = (GLdouble *) bp; bp += 128;
+ GLdouble * proj = (GLdouble *) bp; bp += 128;
+ GLint * view = (GLint *) bp; bp += 16;
+ GLdouble objX[1] = {0.0};
+ GLdouble objY[1] = {0.0};
+ GLdouble objZ[1] = {0.0};
+ GLint result = wegluUnProject(*winX,*winY,*winZ,model,proj,view,objX,objY,objZ);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objX;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objY;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objZ;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5036: { // gluUnProject4
+ GLdouble *winX = (GLdouble *) bp; bp += 8;
+ GLdouble *winY = (GLdouble *) bp; bp += 8;
+ GLdouble *winZ = (GLdouble *) bp; bp += 8;
+ GLdouble *clipW = (GLdouble *) bp; bp += 8;
+ GLdouble * model = (GLdouble *) bp; bp += 128;
+ GLdouble * proj = (GLdouble *) bp; bp += 128;
+ GLint * view = (GLint *) bp; bp += 16;
+ GLdouble *nearVal = (GLdouble *) bp; bp += 8;
+ GLdouble *farVal = (GLdouble *) bp; bp += 8;
+ GLdouble objX[1] = {0.0};
+ GLdouble objY[1] = {0.0};
+ GLdouble objZ[1] = {0.0};
+ GLdouble objW[1] = {0.0};
+ GLint result = wegluUnProject4(*winX,*winY,*winZ,*clipW,model,proj,view,*nearVal,*farVal,objX,objY,objZ,objW);
+ int AP = 0; ErlDrvTermData rt[16];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objX;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objY;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objZ;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) objW;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 5;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 16 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,16);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5037: { // glAccum
+ GLenum *op = (GLenum *) bp; bp += 4;
+ GLfloat *value = (GLfloat *) bp; bp += 4;
+ weglAccum(*op,*value);
+}; break;
+case 5038: { // glAlphaFunc
+ GLenum *func = (GLenum *) bp; bp += 4;
+ GLclampf *ref = (GLclampf *) bp; bp += 4;
+ weglAlphaFunc(*func,*ref);
+}; break;
+case 5039: { // glAreTexturesResident
+ int * texturesLen = (int *) bp; bp += 4;
+ GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8;
+ GLboolean *residences;
+ residences = (GLboolean *) driver_alloc(sizeof(GLboolean) * *texturesLen);
+ GLboolean result = weglAreTexturesResident(*texturesLen,textures,residences);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(11 + (*texturesLen)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ for(int i=0; i < *texturesLen; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) residences[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*texturesLen)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 11 + (*texturesLen)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,11 + (*texturesLen)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(residences);
+}; break;
+case 5040: { // glArrayElement
+ GLint *i = (GLint *) bp; bp += 4;
+ weglArrayElement(*i);
+}; break;
+case 5041: { // glBegin
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglBegin(*mode);
+}; break;
+case 5042: { // glBindTexture
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ weglBindTexture(*target,*texture);
+}; break;
+case 5043: { // glBitmap
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLfloat *xorig = (GLfloat *) bp; bp += 4;
+ GLfloat *yorig = (GLfloat *) bp; bp += 4;
+ GLfloat *xmove = (GLfloat *) bp; bp += 4;
+ GLfloat *ymove = (GLfloat *) bp; bp += 4;
+ GLubyte *bitmap = (GLubyte *) * (int *) bp; bp += 4;
+ weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap);
+}; break;
+case 5044: { // glBitmap
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLfloat *xorig = (GLfloat *) bp; bp += 4;
+ GLfloat *yorig = (GLfloat *) bp; bp += 4;
+ GLfloat *xmove = (GLfloat *) bp; bp += 4;
+ GLfloat *ymove = (GLfloat *) bp; bp += 4;
+ GLubyte *bitmap = (GLubyte *) bins[0]->base;
+ weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap);
+}; break;
+case 5045: { // glBlendFunc
+ GLenum *sfactor = (GLenum *) bp; bp += 4;
+ GLenum *dfactor = (GLenum *) bp; bp += 4;
+ weglBlendFunc(*sfactor,*dfactor);
+}; break;
+case 5046: { // glCallList
+ GLuint *list = (GLuint *) bp; bp += 4;
+ weglCallList(*list);
+}; break;
+case 5047: { // glCallLists
+ int * listsLen = (int *) bp; bp += 4;
+ GLuint * lists = (GLuint *) bp; bp += (8-((*listsLen*4+4)%8))%8;
+ weglCallLists(*listsLen,GL_UNSIGNED_INT,lists);
+}; break;
+case 5048: { // glClear
+ GLbitfield *mask = (GLbitfield *) bp; bp += 4;
+ weglClear(*mask);
+}; break;
+case 5049: { // glClearAccum
+ GLfloat *red = (GLfloat *) bp; bp += 4;
+ GLfloat *green = (GLfloat *) bp; bp += 4;
+ GLfloat *blue = (GLfloat *) bp; bp += 4;
+ GLfloat *alpha = (GLfloat *) bp; bp += 4;
+ weglClearAccum(*red,*green,*blue,*alpha);
+}; break;
+case 5050: { // glClearColor
+ GLclampf *red = (GLclampf *) bp; bp += 4;
+ GLclampf *green = (GLclampf *) bp; bp += 4;
+ GLclampf *blue = (GLclampf *) bp; bp += 4;
+ GLclampf *alpha = (GLclampf *) bp; bp += 4;
+ weglClearColor(*red,*green,*blue,*alpha);
+}; break;
+case 5051: { // glClearDepth
+ GLclampd *depth = (GLclampd *) bp; bp += 8;
+ weglClearDepth(*depth);
+}; break;
+case 5052: { // glClearIndex
+ GLfloat *c = (GLfloat *) bp; bp += 4;
+ weglClearIndex(*c);
+}; break;
+case 5053: { // glClearStencil
+ GLint *s = (GLint *) bp; bp += 4;
+ weglClearStencil(*s);
+}; break;
+case 5054: { // glClipPlane
+ GLenum *plane = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble * equation = (GLdouble *) bp; bp += 32;
+ weglClipPlane(*plane,equation);
+}; break;
+case 5055: { // glColor3bv
+ GLbyte *v = (GLbyte *) bp; bp += 1;
+ weglColor3bv(v);
+}; break;
+case 5056: { // glColor3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglColor3dv(v);
+}; break;
+case 5057: { // glColor3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglColor3fv(v);
+}; break;
+case 5058: { // glColor3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglColor3iv(v);
+}; break;
+case 5059: { // glColor3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglColor3sv(v);
+}; break;
+case 5060: { // glColor3ubv
+ GLubyte *v = (GLubyte *) bp; bp += 1;
+ weglColor3ubv(v);
+}; break;
+case 5061: { // glColor3uiv
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglColor3uiv(v);
+}; break;
+case 5062: { // glColor3usv
+ GLushort *v = (GLushort *) bp; bp += 2;
+ weglColor3usv(v);
+}; break;
+case 5063: { // glColor4bv
+ GLbyte *v = (GLbyte *) bp; bp += 1;
+ weglColor4bv(v);
+}; break;
+case 5064: { // glColor4dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglColor4dv(v);
+}; break;
+case 5065: { // glColor4fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglColor4fv(v);
+}; break;
+case 5066: { // glColor4iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglColor4iv(v);
+}; break;
+case 5067: { // glColor4sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglColor4sv(v);
+}; break;
+case 5068: { // glColor4ubv
+ GLubyte *v = (GLubyte *) bp; bp += 1;
+ weglColor4ubv(v);
+}; break;
+case 5069: { // glColor4uiv
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglColor4uiv(v);
+}; break;
+case 5070: { // glColor4usv
+ GLushort *v = (GLushort *) bp; bp += 2;
+ weglColor4usv(v);
+}; break;
+case 5071: { // glColorMask
+ GLboolean *red = (GLboolean *) bp; bp += 1;
+ GLboolean *green = (GLboolean *) bp; bp += 1;
+ GLboolean *blue = (GLboolean *) bp; bp += 1;
+ GLboolean *alpha = (GLboolean *) bp; bp += 1;
+ weglColorMask(*red,*green,*blue,*alpha);
+}; break;
+case 5072: { // glColorMaterial
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglColorMaterial(*face,*mode);
+}; break;
+case 5073: { // glColorPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglColorPointer(*size,*type,*stride,pointer);
+}; break;
+case 5074: { // glColorPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglColorPointer(*size,*type,*stride,pointer);
+}; break;
+case 5075: { // glCopyPixels
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ weglCopyPixels(*x,*y,*width,*height,*type);
+}; break;
+case 5076: { // glCopyTexImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalFormat = (GLenum *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ weglCopyTexImage1D(*target,*level,*internalFormat,*x,*y,*width,*border);
+}; break;
+case 5077: { // glCopyTexImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalFormat = (GLenum *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ weglCopyTexImage2D(*target,*level,*internalFormat,*x,*y,*width,*height,*border);
+}; break;
+case 5078: { // glCopyTexSubImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ weglCopyTexSubImage1D(*target,*level,*xoffset,*x,*y,*width);
+}; break;
+case 5079: { // glCopyTexSubImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglCopyTexSubImage2D(*target,*level,*xoffset,*yoffset,*x,*y,*width,*height);
+}; break;
+case 5080: { // glCullFace
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglCullFace(*mode);
+}; break;
+case 5081: { // glDeleteLists
+ GLuint *list = (GLuint *) bp; bp += 4;
+ GLsizei *range = (GLsizei *) bp; bp += 4;
+ weglDeleteLists(*list,*range);
+}; break;
+case 5082: { // glDeleteTextures
+ int * texturesLen = (int *) bp; bp += 4;
+ GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8;
+ weglDeleteTextures(*texturesLen,textures);
+}; break;
+case 5083: { // glDepthFunc
+ GLenum *func = (GLenum *) bp; bp += 4;
+ weglDepthFunc(*func);
+}; break;
+case 5084: { // glDepthMask
+ GLboolean *flag = (GLboolean *) bp; bp += 1;
+ weglDepthMask(*flag);
+}; break;
+case 5085: { // glDepthRange
+ GLclampd *zNear = (GLclampd *) bp; bp += 8;
+ GLclampd *zFar = (GLclampd *) bp; bp += 8;
+ weglDepthRange(*zNear,*zFar);
+}; break;
+case 5086: { // glDisable
+ GLenum *cap = (GLenum *) bp; bp += 4;
+ weglDisable(*cap);
+}; break;
+case 5087: { // glDisableClientState
+ GLenum *array = (GLenum *) bp; bp += 4;
+ weglDisableClientState(*array);
+}; break;
+case 5088: { // glDrawArrays
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLint *first = (GLint *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ weglDrawArrays(*mode,*first,*count);
+}; break;
+case 5089: { // glDrawBuffer
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglDrawBuffer(*mode);
+}; break;
+case 5090: { // glDrawElements
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
+ weglDrawElements(*mode,*count,*type,indices);
+}; break;
+case 5091: { // glDrawElements
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) bins[0]->base;
+ weglDrawElements(*mode,*count,*type,indices);
+}; break;
+case 5092: { // glDrawPixels
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglDrawPixels(*width,*height,*format,*type,pixels);
+}; break;
+case 5093: { // glDrawPixels
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglDrawPixels(*width,*height,*format,*type,pixels);
+}; break;
+case 5094: { // glEdgeFlagv
+ GLboolean *flag = (GLboolean *) bp; bp += 1;
+ weglEdgeFlagv(flag);
+}; break;
+case 5095: { // glEdgeFlagPointer
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglEdgeFlagPointer(*stride,pointer);
+}; break;
+case 5096: { // glEdgeFlagPointer
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglEdgeFlagPointer(*stride,pointer);
+}; break;
+case 5097: { // glEnable
+ GLenum *cap = (GLenum *) bp; bp += 4;
+ weglEnable(*cap);
+}; break;
+case 5098: { // glEnableClientState
+ GLenum *array = (GLenum *) bp; bp += 4;
+ weglEnableClientState(*array);
+}; break;
+case 5099: { // glEnd
+ weglEnd();
+}; break;
+case 5100: { // glEndList
+ weglEndList();
+}; break;
+case 5101: { // glEvalCoord1dv
+ GLdouble *u = (GLdouble *) bp; bp += 8;
+ weglEvalCoord1dv(u);
+}; break;
+case 5102: { // glEvalCoord1fv
+ GLfloat *u = (GLfloat *) bp; bp += 4;
+ weglEvalCoord1fv(u);
+}; break;
+case 5103: { // glEvalCoord2dv
+ GLdouble *u = (GLdouble *) bp; bp += 8;
+ weglEvalCoord2dv(u);
+}; break;
+case 5104: { // glEvalCoord2fv
+ GLfloat *u = (GLfloat *) bp; bp += 4;
+ weglEvalCoord2fv(u);
+}; break;
+case 5105: { // glEvalMesh1
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLint *i1 = (GLint *) bp; bp += 4;
+ GLint *i2 = (GLint *) bp; bp += 4;
+ weglEvalMesh1(*mode,*i1,*i2);
+}; break;
+case 5106: { // glEvalMesh2
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLint *i1 = (GLint *) bp; bp += 4;
+ GLint *i2 = (GLint *) bp; bp += 4;
+ GLint *j1 = (GLint *) bp; bp += 4;
+ GLint *j2 = (GLint *) bp; bp += 4;
+ weglEvalMesh2(*mode,*i1,*i2,*j1,*j2);
+}; break;
+case 5107: { // glEvalPoint1
+ GLint *i = (GLint *) bp; bp += 4;
+ weglEvalPoint1(*i);
+}; break;
+case 5108: { // glEvalPoint2
+ GLint *i = (GLint *) bp; bp += 4;
+ GLint *j = (GLint *) bp; bp += 4;
+ weglEvalPoint2(*i,*j);
+}; break;
+case 5109: { // glFeedbackBuffer
+ GLsizei *size = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLfloat *buffer = (GLfloat *) bins[0]->base;
+ weglFeedbackBuffer(*size,*type,buffer);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5110: { // glFinish
+ weglFinish();
+}; break;
+case 5111: { // glFlush
+ weglFlush();
+}; break;
+case 5112: { // glFogf
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglFogf(*pname,*param);
+}; break;
+case 5113: { // glFogfv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglFogfv(*pname,params);
+}; break;
+case 5114: { // glFogi
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglFogi(*pname,*param);
+}; break;
+case 5115: { // glFogiv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglFogiv(*pname,params);
+}; break;
+case 5116: { // glFrontFace
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglFrontFace(*mode);
+}; break;
+case 5117: { // glFrustum
+ GLdouble *left = (GLdouble *) bp; bp += 8;
+ GLdouble *right = (GLdouble *) bp; bp += 8;
+ GLdouble *bottom = (GLdouble *) bp; bp += 8;
+ GLdouble *top = (GLdouble *) bp; bp += 8;
+ GLdouble *zNear = (GLdouble *) bp; bp += 8;
+ GLdouble *zFar = (GLdouble *) bp; bp += 8;
+ weglFrustum(*left,*right,*bottom,*top,*zNear,*zFar);
+}; break;
+case 5118: { // glGenLists
+ GLsizei *range = (GLsizei *) bp; bp += 4;
+ GLuint result = weglGenLists(*range);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5119: { // glGenTextures
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *textures;
+ textures = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenTextures(*n,textures);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) textures[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(textures);
+}; break;
+case 5120: { // glGetBooleanv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLboolean params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetBooleanv(*pname,params);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLboolean *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5121: { // glGetClipPlane
+ GLenum *plane = (GLenum *) bp; bp += 4;
+ GLdouble equation[4] = {0.0,0.0,0.0,0.0};
+ weglGetClipPlane(*plane,equation);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *equationTmp = equation;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) equationTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5122: { // glGetDoublev
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLdouble params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
+ weglGetDoublev(*pname,params);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *paramsTmp = params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5123: { // glGetError
+ GLenum result = weglGetError();
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5124: { // glGetFloatv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
+ weglGetFloatv(*pname,params);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[16], *paramsTmp = paramsConv;
+ for(int i=0; i < 16; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5125: { // glGetIntegerv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetIntegerv(*pname,params);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5126: { // glGetLightfv
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetLightfv(*light,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5127: { // glGetLightiv
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetLightiv(*light,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5128: { // glGetMapdv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *query = (GLenum *) bp; bp += 4;
+ GLdouble *v = (GLdouble *) bins[0]->base;
+ weglGetMapdv(*target,*query,v);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5129: { // glGetMapfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *query = (GLenum *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bins[0]->base;
+ weglGetMapfv(*target,*query,v);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5130: { // glGetMapiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *query = (GLenum *) bp; bp += 4;
+ GLint *v = (GLint *) bins[0]->base;
+ weglGetMapiv(*target,*query,v);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5131: { // glGetMaterialfv
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetMaterialfv(*face,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5132: { // glGetMaterialiv
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetMaterialiv(*face,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5133: { // glGetPixelMapfv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLfloat *values = (GLfloat *) bins[0]->base;
+ weglGetPixelMapfv(*map,values);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5134: { // glGetPixelMapuiv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLuint *values = (GLuint *) bins[0]->base;
+ weglGetPixelMapuiv(*map,values);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5135: { // glGetPixelMapusv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLushort *values = (GLushort *) bins[0]->base;
+ weglGetPixelMapusv(*map,values);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5136: { // glGetPolygonStipple
+ GLubyte mask[128];
+ weglGetPolygonStipple(mask);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ ErlDrvBinary * BinCopy = driver_alloc_binary(128);
+ memcpy(BinCopy->orig_bytes, mask, 128);
+ rt[AP++] = ERL_DRV_BINARY; rt[AP++] = (ErlDrvTermData) BinCopy; rt[AP++] = 128; rt[AP++] = 0;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free_binary(BinCopy);
+}; break;
+case 5137: { // glGetString
+ GLenum *name = (GLenum *) bp; bp += 4;
+ const GLubyte * result = weglGetString(*name);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) result; rt[AP++] = strlen((char *) result);
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5138: { // glGetTexEnvfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetTexEnvfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5139: { // glGetTexEnviv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetTexEnviv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5140: { // glGetTexGendv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLdouble params[4] = {0.0,0.0,0.0,0.0};
+ weglGetTexGendv(*coord,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *paramsTmp = params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5141: { // glGetTexGenfv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetTexGenfv(*coord,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5142: { // glGetTexGeniv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetTexGeniv(*coord,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5143: { // glGetTexImage
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglGetTexImage(*target,*level,*format,*type,pixels);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5144: { // glGetTexLevelParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[1] = {0.0};
+ weglGetTexLevelParameterfv(*target,*level,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[1], *paramsTmp = paramsConv;
+ for(int i=0; i < 1; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5145: { // glGetTexLevelParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetTexLevelParameteriv(*target,*level,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5146: { // glGetTexParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetTexParameterfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5147: { // glGetTexParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetTexParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5148: { // glHint
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglHint(*target,*mode);
+}; break;
+case 5149: { // glIndexMask
+ GLuint *mask = (GLuint *) bp; bp += 4;
+ weglIndexMask(*mask);
+}; break;
+case 5150: { // glIndexPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglIndexPointer(*type,*stride,pointer);
+}; break;
+case 5151: { // glIndexPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglIndexPointer(*type,*stride,pointer);
+}; break;
+case 5152: { // glIndexdv
+ GLdouble *c = (GLdouble *) bp; bp += 8;
+ weglIndexdv(c);
+}; break;
+case 5153: { // glIndexfv
+ GLfloat *c = (GLfloat *) bp; bp += 4;
+ weglIndexfv(c);
+}; break;
+case 5154: { // glIndexiv
+ GLint *c = (GLint *) bp; bp += 4;
+ weglIndexiv(c);
+}; break;
+case 5155: { // glIndexsv
+ GLshort *c = (GLshort *) bp; bp += 2;
+ weglIndexsv(c);
+}; break;
+case 5156: { // glIndexubv
+ GLubyte *c = (GLubyte *) bp; bp += 1;
+ weglIndexubv(c);
+}; break;
+case 5157: { // glInitNames
+ weglInitNames();
+}; break;
+case 5158: { // glInterleavedArrays
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglInterleavedArrays(*format,*stride,pointer);
+}; break;
+case 5159: { // glInterleavedArrays
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglInterleavedArrays(*format,*stride,pointer);
+}; break;
+case 5160: { // glIsEnabled
+ GLenum *cap = (GLenum *) bp; bp += 4;
+ GLboolean result = weglIsEnabled(*cap);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5161: { // glIsList
+ GLuint *list = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsList(*list);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5162: { // glIsTexture
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsTexture(*texture);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5163: { // glLightModelf
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglLightModelf(*pname,*param);
+}; break;
+case 5164: { // glLightModelfv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglLightModelfv(*pname,params);
+}; break;
+case 5165: { // glLightModeli
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglLightModeli(*pname,*param);
+}; break;
+case 5166: { // glLightModeliv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglLightModeliv(*pname,params);
+}; break;
+case 5167: { // glLightf
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglLightf(*light,*pname,*param);
+}; break;
+case 5168: { // glLightfv
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglLightfv(*light,*pname,params);
+}; break;
+case 5169: { // glLighti
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglLighti(*light,*pname,*param);
+}; break;
+case 5170: { // glLightiv
+ GLenum *light = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglLightiv(*light,*pname,params);
+}; break;
+case 5171: { // glLineStipple
+ GLint *factor = (GLint *) bp; bp += 4;
+ GLushort *pattern = (GLushort *) bp; bp += 2;
+ weglLineStipple(*factor,*pattern);
+}; break;
+case 5172: { // glLineWidth
+ GLfloat *width = (GLfloat *) bp; bp += 4;
+ weglLineWidth(*width);
+}; break;
+case 5173: { // glListBase
+ GLuint *base = (GLuint *) bp; bp += 4;
+ weglListBase(*base);
+}; break;
+case 5174: { // glLoadIdentity
+ weglLoadIdentity();
+}; break;
+case 5175: { // glLoadMatrixd
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglLoadMatrixd(m);
+}; break;
+case 5176: { // glLoadMatrixf
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglLoadMatrixf(m);
+}; break;
+case 5177: { // glLoadName
+ GLuint *name = (GLuint *) bp; bp += 4;
+ weglLoadName(*name);
+}; break;
+case 5178: { // glLogicOp
+ GLenum *opcode = (GLenum *) bp; bp += 4;
+ weglLogicOp(*opcode);
+}; break;
+case 5179: { // glMap1d
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *u1 = (GLdouble *) bp; bp += 8;
+ GLdouble *u2 = (GLdouble *) bp; bp += 8;
+ GLint *stride = (GLint *) bp; bp += 4;
+ GLint *order = (GLint *) bp; bp += 4;
+ GLdouble *points = (GLdouble *) bins[0]->base;
+ weglMap1d(*target,*u1,*u2,*stride,*order,points);
+}; break;
+case 5180: { // glMap1f
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *u1 = (GLfloat *) bp; bp += 4;
+ GLfloat *u2 = (GLfloat *) bp; bp += 4;
+ GLint *stride = (GLint *) bp; bp += 4;
+ GLint *order = (GLint *) bp; bp += 4;
+ GLfloat *points = (GLfloat *) bins[0]->base;
+ weglMap1f(*target,*u1,*u2,*stride,*order,points);
+}; break;
+case 5181: { // glMap2d
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *u1 = (GLdouble *) bp; bp += 8;
+ GLdouble *u2 = (GLdouble *) bp; bp += 8;
+ GLint *ustride = (GLint *) bp; bp += 4;
+ GLint *uorder = (GLint *) bp; bp += 4;
+ GLdouble *v1 = (GLdouble *) bp; bp += 8;
+ GLdouble *v2 = (GLdouble *) bp; bp += 8;
+ GLint *vstride = (GLint *) bp; bp += 4;
+ GLint *vorder = (GLint *) bp; bp += 4;
+ GLdouble *points = (GLdouble *) bins[0]->base;
+ weglMap2d(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points);
+}; break;
+case 5182: { // glMap2f
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *u1 = (GLfloat *) bp; bp += 4;
+ GLfloat *u2 = (GLfloat *) bp; bp += 4;
+ GLint *ustride = (GLint *) bp; bp += 4;
+ GLint *uorder = (GLint *) bp; bp += 4;
+ GLfloat *v1 = (GLfloat *) bp; bp += 4;
+ GLfloat *v2 = (GLfloat *) bp; bp += 4;
+ GLint *vstride = (GLint *) bp; bp += 4;
+ GLint *vorder = (GLint *) bp; bp += 4;
+ GLfloat *points = (GLfloat *) bins[0]->base;
+ weglMap2f(*target,*u1,*u2,*ustride,*uorder,*v1,*v2,*vstride,*vorder,points);
+}; break;
+case 5183: { // glMapGrid1d
+ GLint *un = (GLint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *u1 = (GLdouble *) bp; bp += 8;
+ GLdouble *u2 = (GLdouble *) bp; bp += 8;
+ weglMapGrid1d(*un,*u1,*u2);
+}; break;
+case 5184: { // glMapGrid1f
+ GLint *un = (GLint *) bp; bp += 4;
+ GLfloat *u1 = (GLfloat *) bp; bp += 4;
+ GLfloat *u2 = (GLfloat *) bp; bp += 4;
+ weglMapGrid1f(*un,*u1,*u2);
+}; break;
+case 5185: { // glMapGrid2d
+ GLint *un = (GLint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *u1 = (GLdouble *) bp; bp += 8;
+ GLdouble *u2 = (GLdouble *) bp; bp += 8;
+ GLint *vn = (GLint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v1 = (GLdouble *) bp; bp += 8;
+ GLdouble *v2 = (GLdouble *) bp; bp += 8;
+ weglMapGrid2d(*un,*u1,*u2,*vn,*v1,*v2);
+}; break;
+case 5186: { // glMapGrid2f
+ GLint *un = (GLint *) bp; bp += 4;
+ GLfloat *u1 = (GLfloat *) bp; bp += 4;
+ GLfloat *u2 = (GLfloat *) bp; bp += 4;
+ GLint *vn = (GLint *) bp; bp += 4;
+ GLfloat *v1 = (GLfloat *) bp; bp += 4;
+ GLfloat *v2 = (GLfloat *) bp; bp += 4;
+ weglMapGrid2f(*un,*u1,*u2,*vn,*v1,*v2);
+}; break;
+case 5187: { // glMaterialf
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglMaterialf(*face,*pname,*param);
+}; break;
+case 5188: { // glMaterialfv
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglMaterialfv(*face,*pname,params);
+}; break;
+case 5189: { // glMateriali
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglMateriali(*face,*pname,*param);
+}; break;
+case 5190: { // glMaterialiv
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglMaterialiv(*face,*pname,params);
+}; break;
+case 5191: { // glMatrixMode
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglMatrixMode(*mode);
+}; break;
+case 5192: { // glMultMatrixd
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglMultMatrixd(m);
+}; break;
+case 5193: { // glMultMatrixf
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglMultMatrixf(m);
+}; break;
+case 5194: { // glNewList
+ GLuint *list = (GLuint *) bp; bp += 4;
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglNewList(*list,*mode);
+}; break;
+case 5195: { // glNormal3bv
+ GLbyte *v = (GLbyte *) bp; bp += 1;
+ weglNormal3bv(v);
+}; break;
+case 5196: { // glNormal3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglNormal3dv(v);
+}; break;
+case 5197: { // glNormal3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglNormal3fv(v);
+}; break;
+case 5198: { // glNormal3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglNormal3iv(v);
+}; break;
+case 5199: { // glNormal3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglNormal3sv(v);
+}; break;
+case 5200: { // glNormalPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglNormalPointer(*type,*stride,pointer);
+}; break;
+case 5201: { // glNormalPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglNormalPointer(*type,*stride,pointer);
+}; break;
+case 5202: { // glOrtho
+ GLdouble *left = (GLdouble *) bp; bp += 8;
+ GLdouble *right = (GLdouble *) bp; bp += 8;
+ GLdouble *bottom = (GLdouble *) bp; bp += 8;
+ GLdouble *top = (GLdouble *) bp; bp += 8;
+ GLdouble *zNear = (GLdouble *) bp; bp += 8;
+ GLdouble *zFar = (GLdouble *) bp; bp += 8;
+ weglOrtho(*left,*right,*bottom,*top,*zNear,*zFar);
+}; break;
+case 5203: { // glPassThrough
+ GLfloat *token = (GLfloat *) bp; bp += 4;
+ weglPassThrough(*token);
+}; break;
+case 5204: { // glPixelMapfv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLsizei *mapsize = (GLsizei *) bp; bp += 4;
+ GLfloat *values = (GLfloat *) bins[0]->base;
+ weglPixelMapfv(*map,*mapsize,values);
+}; break;
+case 5205: { // glPixelMapuiv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLsizei *mapsize = (GLsizei *) bp; bp += 4;
+ GLuint *values = (GLuint *) bins[0]->base;
+ weglPixelMapuiv(*map,*mapsize,values);
+}; break;
+case 5206: { // glPixelMapusv
+ GLenum *map = (GLenum *) bp; bp += 4;
+ GLsizei *mapsize = (GLsizei *) bp; bp += 4;
+ GLushort *values = (GLushort *) bins[0]->base;
+ weglPixelMapusv(*map,*mapsize,values);
+}; break;
+case 5207: { // glPixelStoref
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglPixelStoref(*pname,*param);
+}; break;
+case 5208: { // glPixelStorei
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglPixelStorei(*pname,*param);
+}; break;
+case 5209: { // glPixelTransferf
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglPixelTransferf(*pname,*param);
+}; break;
+case 5210: { // glPixelTransferi
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglPixelTransferi(*pname,*param);
+}; break;
+case 5211: { // glPixelZoom
+ GLfloat *xfactor = (GLfloat *) bp; bp += 4;
+ GLfloat *yfactor = (GLfloat *) bp; bp += 4;
+ weglPixelZoom(*xfactor,*yfactor);
+}; break;
+case 5212: { // glPointSize
+ GLfloat *size = (GLfloat *) bp; bp += 4;
+ weglPointSize(*size);
+}; break;
+case 5213: { // glPolygonMode
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglPolygonMode(*face,*mode);
+}; break;
+case 5214: { // glPolygonOffset
+ GLfloat *factor = (GLfloat *) bp; bp += 4;
+ GLfloat *units = (GLfloat *) bp; bp += 4;
+ weglPolygonOffset(*factor,*units);
+}; break;
+case 5215: { // glPolygonStipple
+ GLubyte *mask = (GLubyte *) bins[0]->base;
+ weglPolygonStipple(mask);
+}; break;
+case 5216: { // glPopAttrib
+ weglPopAttrib();
+}; break;
+case 5217: { // glPopClientAttrib
+ weglPopClientAttrib();
+}; break;
+case 5218: { // glPopMatrix
+ weglPopMatrix();
+}; break;
+case 5219: { // glPopName
+ weglPopName();
+}; break;
+case 5220: { // glPrioritizeTextures
+ int * texturesLen = (int *) bp; bp += 4;
+ GLuint * textures = (GLuint *) bp; bp += (8-((*texturesLen*4+4)%8))%8;
+ int * prioritiesLen = (int *) bp; bp += 4;
+ GLclampf * priorities = (GLclampf *) bp; bp += (8-((*prioritiesLen*4+4)%8))%8;
+ weglPrioritizeTextures(*texturesLen,textures,priorities);
+}; break;
+case 5221: { // glPushAttrib
+ GLbitfield *mask = (GLbitfield *) bp; bp += 4;
+ weglPushAttrib(*mask);
+}; break;
+case 5222: { // glPushClientAttrib
+ GLbitfield *mask = (GLbitfield *) bp; bp += 4;
+ weglPushClientAttrib(*mask);
+}; break;
+case 5223: { // glPushMatrix
+ weglPushMatrix();
+}; break;
+case 5224: { // glPushName
+ GLuint *name = (GLuint *) bp; bp += 4;
+ weglPushName(*name);
+}; break;
+case 5225: { // glRasterPos2dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglRasterPos2dv(v);
+}; break;
+case 5226: { // glRasterPos2fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglRasterPos2fv(v);
+}; break;
+case 5227: { // glRasterPos2iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglRasterPos2iv(v);
+}; break;
+case 5228: { // glRasterPos2sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglRasterPos2sv(v);
+}; break;
+case 5229: { // glRasterPos3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglRasterPos3dv(v);
+}; break;
+case 5230: { // glRasterPos3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglRasterPos3fv(v);
+}; break;
+case 5231: { // glRasterPos3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglRasterPos3iv(v);
+}; break;
+case 5232: { // glRasterPos3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglRasterPos3sv(v);
+}; break;
+case 5233: { // glRasterPos4dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglRasterPos4dv(v);
+}; break;
+case 5234: { // glRasterPos4fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglRasterPos4fv(v);
+}; break;
+case 5235: { // glRasterPos4iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglRasterPos4iv(v);
+}; break;
+case 5236: { // glRasterPos4sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglRasterPos4sv(v);
+}; break;
+case 5237: { // glReadBuffer
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglReadBuffer(*mode);
+}; break;
+case 5238: { // glReadPixels
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglReadPixels(*x,*y,*width,*height,*format,*type,pixels);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5239: { // glRectd
+ GLdouble *x1 = (GLdouble *) bp; bp += 8;
+ GLdouble *y1 = (GLdouble *) bp; bp += 8;
+ GLdouble *x2 = (GLdouble *) bp; bp += 8;
+ GLdouble *y2 = (GLdouble *) bp; bp += 8;
+ weglRectd(*x1,*y1,*x2,*y2);
+}; break;
+case 5240: { // glRectdv
+ GLdouble * v1 = (GLdouble *) bp; bp += 16;
+ GLdouble * v2 = (GLdouble *) bp; bp += 16;
+ weglRectdv(v1,v2);
+}; break;
+case 5241: { // glRectf
+ GLfloat *x1 = (GLfloat *) bp; bp += 4;
+ GLfloat *y1 = (GLfloat *) bp; bp += 4;
+ GLfloat *x2 = (GLfloat *) bp; bp += 4;
+ GLfloat *y2 = (GLfloat *) bp; bp += 4;
+ weglRectf(*x1,*y1,*x2,*y2);
+}; break;
+case 5242: { // glRectfv
+ GLfloat * v1 = (GLfloat *) bp; bp += 8;
+ GLfloat * v2 = (GLfloat *) bp; bp += 8;
+ weglRectfv(v1,v2);
+}; break;
+case 5243: { // glRecti
+ GLint *x1 = (GLint *) bp; bp += 4;
+ GLint *y1 = (GLint *) bp; bp += 4;
+ GLint *x2 = (GLint *) bp; bp += 4;
+ GLint *y2 = (GLint *) bp; bp += 4;
+ weglRecti(*x1,*y1,*x2,*y2);
+}; break;
+case 5244: { // glRectiv
+ GLint * v1 = (GLint *) bp; bp += 8;
+ GLint * v2 = (GLint *) bp; bp += 8;
+ weglRectiv(v1,v2);
+}; break;
+case 5245: { // glRects
+ GLshort *x1 = (GLshort *) bp; bp += 2;
+ GLshort *y1 = (GLshort *) bp; bp += 2;
+ GLshort *x2 = (GLshort *) bp; bp += 2;
+ GLshort *y2 = (GLshort *) bp; bp += 2;
+ weglRects(*x1,*y1,*x2,*y2);
+}; break;
+case 5246: { // glRectsv
+ GLshort * v1 = (GLshort *) bp; bp += 4;
+ GLshort * v2 = (GLshort *) bp; bp += 4;
+ weglRectsv(v1,v2);
+}; break;
+case 5247: { // glRenderMode
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLint result = weglRenderMode(*mode);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5248: { // glRotated
+ GLdouble *angle = (GLdouble *) bp; bp += 8;
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *z = (GLdouble *) bp; bp += 8;
+ weglRotated(*angle,*x,*y,*z);
+}; break;
+case 5249: { // glRotatef
+ GLfloat *angle = (GLfloat *) bp; bp += 4;
+ GLfloat *x = (GLfloat *) bp; bp += 4;
+ GLfloat *y = (GLfloat *) bp; bp += 4;
+ GLfloat *z = (GLfloat *) bp; bp += 4;
+ weglRotatef(*angle,*x,*y,*z);
+}; break;
+case 5250: { // glScaled
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *z = (GLdouble *) bp; bp += 8;
+ weglScaled(*x,*y,*z);
+}; break;
+case 5251: { // glScalef
+ GLfloat *x = (GLfloat *) bp; bp += 4;
+ GLfloat *y = (GLfloat *) bp; bp += 4;
+ GLfloat *z = (GLfloat *) bp; bp += 4;
+ weglScalef(*x,*y,*z);
+}; break;
+case 5252: { // glScissor
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglScissor(*x,*y,*width,*height);
+}; break;
+case 5253: { // glSelectBuffer
+ GLsizei *size = (GLsizei *) bp; bp += 4;
+ GLuint *buffer = (GLuint *) bins[0]->base;
+ weglSelectBuffer(*size,buffer);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5254: { // glShadeModel
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglShadeModel(*mode);
+}; break;
+case 5255: { // glStencilFunc
+ GLenum *func = (GLenum *) bp; bp += 4;
+ GLint *ref = (GLint *) bp; bp += 4;
+ GLuint *mask = (GLuint *) bp; bp += 4;
+ weglStencilFunc(*func,*ref,*mask);
+}; break;
+case 5256: { // glStencilMask
+ GLuint *mask = (GLuint *) bp; bp += 4;
+ weglStencilMask(*mask);
+}; break;
+case 5257: { // glStencilOp
+ GLenum *fail = (GLenum *) bp; bp += 4;
+ GLenum *zfail = (GLenum *) bp; bp += 4;
+ GLenum *zpass = (GLenum *) bp; bp += 4;
+ weglStencilOp(*fail,*zfail,*zpass);
+}; break;
+case 5258: { // glTexCoord1dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglTexCoord1dv(v);
+}; break;
+case 5259: { // glTexCoord1fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglTexCoord1fv(v);
+}; break;
+case 5260: { // glTexCoord1iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglTexCoord1iv(v);
+}; break;
+case 5261: { // glTexCoord1sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglTexCoord1sv(v);
+}; break;
+case 5262: { // glTexCoord2dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglTexCoord2dv(v);
+}; break;
+case 5263: { // glTexCoord2fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglTexCoord2fv(v);
+}; break;
+case 5264: { // glTexCoord2iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglTexCoord2iv(v);
+}; break;
+case 5265: { // glTexCoord2sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglTexCoord2sv(v);
+}; break;
+case 5266: { // glTexCoord3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglTexCoord3dv(v);
+}; break;
+case 5267: { // glTexCoord3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglTexCoord3fv(v);
+}; break;
+case 5268: { // glTexCoord3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglTexCoord3iv(v);
+}; break;
+case 5269: { // glTexCoord3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglTexCoord3sv(v);
+}; break;
+case 5270: { // glTexCoord4dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglTexCoord4dv(v);
+}; break;
+case 5271: { // glTexCoord4fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglTexCoord4fv(v);
+}; break;
+case 5272: { // glTexCoord4iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglTexCoord4iv(v);
+}; break;
+case 5273: { // glTexCoord4sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglTexCoord4sv(v);
+}; break;
+case 5274: { // glTexCoordPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexCoordPointer(*size,*type,*stride,pointer);
+}; break;
+case 5275: { // glTexCoordPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglTexCoordPointer(*size,*type,*stride,pointer);
+}; break;
+case 5276: { // glTexEnvf
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglTexEnvf(*target,*pname,*param);
+}; break;
+case 5277: { // glTexEnvfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexEnvfv(*target,*pname,params);
+}; break;
+case 5278: { // glTexEnvi
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglTexEnvi(*target,*pname,*param);
+}; break;
+case 5279: { // glTexEnviv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexEnviv(*target,*pname,params);
+}; break;
+case 5280: { // glTexGend
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLdouble *param = (GLdouble *) bp; bp += 8;
+ weglTexGend(*coord,*pname,*param);
+}; break;
+case 5281: { // glTexGendv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 8;
+ GLdouble *params = (GLdouble *) bp; bp += *paramsLen*8;
+ weglTexGendv(*coord,*pname,params);
+}; break;
+case 5282: { // glTexGenf
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglTexGenf(*coord,*pname,*param);
+}; break;
+case 5283: { // glTexGenfv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexGenfv(*coord,*pname,params);
+}; break;
+case 5284: { // glTexGeni
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglTexGeni(*coord,*pname,*param);
+}; break;
+case 5285: { // glTexGeniv
+ GLenum *coord = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexGeniv(*coord,*pname,params);
+}; break;
+case 5286: { // glTexImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexImage1D(*target,*level,*internalformat,*width,*border,*format,*type,pixels);
+}; break;
+case 5287: { // glTexImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexImage1D(*target,*level,*internalformat,*width,*border,*format,*type,pixels);
+}; break;
+case 5288: { // glTexImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexImage2D(*target,*level,*internalformat,*width,*height,*border,*format,*type,pixels);
+}; break;
+case 5289: { // glTexImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexImage2D(*target,*level,*internalformat,*width,*height,*border,*format,*type,pixels);
+}; break;
+case 5290: { // glTexParameterf
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglTexParameterf(*target,*pname,*param);
+}; break;
+case 5291: { // glTexParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexParameterfv(*target,*pname,params);
+}; break;
+case 5292: { // glTexParameteri
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglTexParameteri(*target,*pname,*param);
+}; break;
+case 5293: { // glTexParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexParameteriv(*target,*pname,params);
+}; break;
+case 5294: { // glTexSubImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexSubImage1D(*target,*level,*xoffset,*width,*format,*type,pixels);
+}; break;
+case 5295: { // glTexSubImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexSubImage1D(*target,*level,*xoffset,*width,*format,*type,pixels);
+}; break;
+case 5296: { // glTexSubImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*type,pixels);
+}; break;
+case 5297: { // glTexSubImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*type,pixels);
+}; break;
+case 5298: { // glTranslated
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *z = (GLdouble *) bp; bp += 8;
+ weglTranslated(*x,*y,*z);
+}; break;
+case 5299: { // glTranslatef
+ GLfloat *x = (GLfloat *) bp; bp += 4;
+ GLfloat *y = (GLfloat *) bp; bp += 4;
+ GLfloat *z = (GLfloat *) bp; bp += 4;
+ weglTranslatef(*x,*y,*z);
+}; break;
+case 5300: { // glVertex2dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertex2dv(v);
+}; break;
+case 5301: { // glVertex2fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertex2fv(v);
+}; break;
+case 5302: { // glVertex2iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertex2iv(v);
+}; break;
+case 5303: { // glVertex2sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertex2sv(v);
+}; break;
+case 5304: { // glVertex3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertex3dv(v);
+}; break;
+case 5305: { // glVertex3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertex3fv(v);
+}; break;
+case 5306: { // glVertex3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertex3iv(v);
+}; break;
+case 5307: { // glVertex3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertex3sv(v);
+}; break;
+case 5308: { // glVertex4dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertex4dv(v);
+}; break;
+case 5309: { // glVertex4fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertex4fv(v);
+}; break;
+case 5310: { // glVertex4iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertex4iv(v);
+}; break;
+case 5311: { // glVertex4sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertex4sv(v);
+}; break;
+case 5312: { // glVertexPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglVertexPointer(*size,*type,*stride,pointer);
+}; break;
+case 5313: { // glVertexPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglVertexPointer(*size,*type,*stride,pointer);
+}; break;
+case 5314: { // glViewport
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglViewport(*x,*y,*width,*height);
+}; break;
+case 5315: { // glBlendColor
+ GLclampf *red = (GLclampf *) bp; bp += 4;
+ GLclampf *green = (GLclampf *) bp; bp += 4;
+ GLclampf *blue = (GLclampf *) bp; bp += 4;
+ GLclampf *alpha = (GLclampf *) bp; bp += 4;
+ weglBlendColor(*red,*green,*blue,*alpha);
+}; break;
+case 5316: { // glBlendEquation
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglBlendEquation(*mode);
+}; break;
+case 5317: { // glDrawRangeElements
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLuint *start = (GLuint *) bp; bp += 4;
+ GLuint *end = (GLuint *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
+ weglDrawRangeElements(*mode,*start,*end,*count,*type,indices);
+}; break;
+case 5318: { // glDrawRangeElements
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLuint *start = (GLuint *) bp; bp += 4;
+ GLuint *end = (GLuint *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) bins[0]->base;
+ weglDrawRangeElements(*mode,*start,*end,*count,*type,indices);
+}; break;
+case 5319: { // glTexImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*format,*type,pixels);
+}; break;
+case 5320: { // glTexImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *internalformat = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*format,*type,pixels);
+}; break;
+case 5321: { // glTexSubImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
+ weglTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*type,pixels);
+}; break;
+case 5322: { // glTexSubImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *pixels = (GLvoid *) bins[0]->base;
+ weglTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*type,pixels);
+}; break;
+case 5323: { // glCopyTexSubImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglCopyTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*x,*y,*width,*height);
+}; break;
+case 5324: { // glColorTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *table = (GLvoid *) * (int *) bp; bp += 4;
+ weglColorTable(*target,*internalformat,*width,*format,*type,table);
+}; break;
+case 5325: { // glColorTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *table = (GLvoid *) bins[0]->base;
+ weglColorTable(*target,*internalformat,*width,*format,*type,table);
+}; break;
+case 5326: { // glColorTableParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat * params = (GLfloat *) bp; bp += 16;
+ weglColorTableParameterfv(*target,*pname,params);
+}; break;
+case 5327: { // glColorTableParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint * params = (GLint *) bp; bp += 16;
+ weglColorTableParameteriv(*target,*pname,params);
+}; break;
+case 5328: { // glCopyColorTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ weglCopyColorTable(*target,*internalformat,*x,*y,*width);
+}; break;
+case 5329: { // glGetColorTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *table = (GLvoid *) bins[0]->base;
+ weglGetColorTable(*target,*format,*type,table);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5330: { // glGetColorTableParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetColorTableParameterfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5331: { // glGetColorTableParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetColorTableParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5332: { // glColorSubTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLsizei *start = (GLsizei *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglColorSubTable(*target,*start,*count,*format,*type,data);
+}; break;
+case 5333: { // glColorSubTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLsizei *start = (GLsizei *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglColorSubTable(*target,*start,*count,*format,*type,data);
+}; break;
+case 5334: { // glCopyColorSubTable
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLsizei *start = (GLsizei *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ weglCopyColorSubTable(*target,*start,*x,*y,*width);
+}; break;
+case 5335: { // glConvolutionFilter1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *image = (GLvoid *) * (int *) bp; bp += 4;
+ weglConvolutionFilter1D(*target,*internalformat,*width,*format,*type,image);
+}; break;
+case 5336: { // glConvolutionFilter1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *image = (GLvoid *) bins[0]->base;
+ weglConvolutionFilter1D(*target,*internalformat,*width,*format,*type,image);
+}; break;
+case 5337: { // glConvolutionFilter2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *image = (GLvoid *) * (int *) bp; bp += 4;
+ weglConvolutionFilter2D(*target,*internalformat,*width,*height,*format,*type,image);
+}; break;
+case 5338: { // glConvolutionFilter2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *image = (GLvoid *) bins[0]->base;
+ weglConvolutionFilter2D(*target,*internalformat,*width,*height,*format,*type,image);
+}; break;
+case 5339: { // glConvolutionParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglConvolutionParameterfv(*target,*pname,params);
+}; break;
+case 5340: { // glConvolutionParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglConvolutionParameteriv(*target,*pname,params);
+}; break;
+case 5341: { // glCopyConvolutionFilter1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ weglCopyConvolutionFilter1D(*target,*internalformat,*x,*y,*width);
+}; break;
+case 5342: { // glCopyConvolutionFilter2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLint *x = (GLint *) bp; bp += 4;
+ GLint *y = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglCopyConvolutionFilter2D(*target,*internalformat,*x,*y,*width,*height);
+}; break;
+case 5343: { // glGetConvolutionFilter
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *image = (GLvoid *) bins[0]->base;
+ weglGetConvolutionFilter(*target,*format,*type,image);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5344: { // glGetConvolutionParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetConvolutionParameterfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5345: { // glGetConvolutionParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetConvolutionParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5346: { // glSeparableFilter2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *row = (GLvoid *) * (int *) bp; bp += 4;
+ GLvoid *column = (GLvoid *) * (int *) bp; bp += 4;
+ weglSeparableFilter2D(*target,*internalformat,*width,*height,*format,*type,row,column);
+}; break;
+case 5347: { // glSeparableFilter2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *row = (GLvoid *) bins[0]->base;
+ GLvoid *column = (GLvoid *) bins[1]->base;
+ weglSeparableFilter2D(*target,*internalformat,*width,*height,*format,*type,row,column);
+}; break;
+case 5348: { // glGetHistogram
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLboolean *reset = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *values = (GLvoid *) bins[0]->base;
+ weglGetHistogram(*target,*reset,*format,*type,values);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5349: { // glGetHistogramParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[1] = {0.0};
+ weglGetHistogramParameterfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[1], *paramsTmp = paramsConv;
+ for(int i=0; i < 1; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5350: { // glGetHistogramParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetHistogramParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5351: { // glGetMinmax
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLboolean *reset = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *values = (GLvoid *) bins[0]->base;
+ weglGetMinmax(*target,*reset,*format,*type,values);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5352: { // glGetMinmaxParameterfv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[1] = {0.0};
+ weglGetMinmaxParameterfv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[1], *paramsTmp = paramsConv;
+ for(int i=0; i < 1; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5353: { // glGetMinmaxParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetMinmaxParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 8 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,8);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5354: { // glHistogram
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLboolean *sink = (GLboolean *) bp; bp += 1;
+ weglHistogram(*target,*width,*internalformat,*sink);
+}; break;
+case 5355: { // glMinmax
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLboolean *sink = (GLboolean *) bp; bp += 1;
+ weglMinmax(*target,*internalformat,*sink);
+}; break;
+case 5356: { // glResetHistogram
+ GLenum *target = (GLenum *) bp; bp += 4;
+ weglResetHistogram(*target);
+}; break;
+case 5357: { // glResetMinmax
+ GLenum *target = (GLenum *) bp; bp += 4;
+ weglResetMinmax(*target);
+}; break;
+case 5358: { // glActiveTexture
+ GLenum *texture = (GLenum *) bp; bp += 4;
+ weglActiveTexture(*texture);
+}; break;
+case 5359: { // glSampleCoverage
+ GLclampf *value = (GLclampf *) bp; bp += 4;
+ GLboolean *invert = (GLboolean *) bp; bp += 1;
+ weglSampleCoverage(*value,*invert);
+}; break;
+case 5360: { // glCompressedTexImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*imageSize,data);
+}; break;
+case 5361: { // glCompressedTexImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*imageSize,data);
+}; break;
+case 5362: { // glCompressedTexImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexImage2D(*target,*level,*internalformat,*width,*height,*border,*imageSize,data);
+}; break;
+case 5363: { // glCompressedTexImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexImage2D(*target,*level,*internalformat,*width,*height,*border,*imageSize,data);
+}; break;
+case 5364: { // glCompressedTexImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexImage1D(*target,*level,*internalformat,*width,*border,*imageSize,data);
+}; break;
+case 5365: { // glCompressedTexImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLint *border = (GLint *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexImage1D(*target,*level,*internalformat,*width,*border,*imageSize,data);
+}; break;
+case 5366: { // glCompressedTexSubImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*imageSize,data);
+}; break;
+case 5367: { // glCompressedTexSubImage3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLsizei *depth = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*imageSize,data);
+}; break;
+case 5368: { // glCompressedTexSubImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*imageSize,data);
+}; break;
+case 5369: { // glCompressedTexSubImage2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLint *yoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*imageSize,data);
+}; break;
+case 5370: { // glCompressedTexSubImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglCompressedTexSubImage1D(*target,*level,*xoffset,*width,*format,*imageSize,data);
+}; break;
+case 5371: { // glCompressedTexSubImage1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *xoffset = (GLint *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLsizei *imageSize = (GLsizei *) bp; bp += 4;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglCompressedTexSubImage1D(*target,*level,*xoffset,*width,*format,*imageSize,data);
+}; break;
+case 5372: { // glGetCompressedTexImage
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLvoid *img = (GLvoid *) bins[0]->base;
+ weglGetCompressedTexImage(*target,*level,img);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5373: { // glClientActiveTexture
+ GLenum *texture = (GLenum *) bp; bp += 4;
+ weglClientActiveTexture(*texture);
+}; break;
+case 5374: { // glMultiTexCoord1dv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglMultiTexCoord1dv(*target,v);
+}; break;
+case 5375: { // glMultiTexCoord1fv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglMultiTexCoord1fv(*target,v);
+}; break;
+case 5376: { // glMultiTexCoord1iv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglMultiTexCoord1iv(*target,v);
+}; break;
+case 5377: { // glMultiTexCoord1sv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglMultiTexCoord1sv(*target,v);
+}; break;
+case 5378: { // glMultiTexCoord2dv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglMultiTexCoord2dv(*target,v);
+}; break;
+case 5379: { // glMultiTexCoord2fv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglMultiTexCoord2fv(*target,v);
+}; break;
+case 5380: { // glMultiTexCoord2iv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglMultiTexCoord2iv(*target,v);
+}; break;
+case 5381: { // glMultiTexCoord2sv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglMultiTexCoord2sv(*target,v);
+}; break;
+case 5382: { // glMultiTexCoord3dv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglMultiTexCoord3dv(*target,v);
+}; break;
+case 5383: { // glMultiTexCoord3fv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglMultiTexCoord3fv(*target,v);
+}; break;
+case 5384: { // glMultiTexCoord3iv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglMultiTexCoord3iv(*target,v);
+}; break;
+case 5385: { // glMultiTexCoord3sv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglMultiTexCoord3sv(*target,v);
+}; break;
+case 5386: { // glMultiTexCoord4dv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglMultiTexCoord4dv(*target,v);
+}; break;
+case 5387: { // glMultiTexCoord4fv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglMultiTexCoord4fv(*target,v);
+}; break;
+case 5388: { // glMultiTexCoord4iv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglMultiTexCoord4iv(*target,v);
+}; break;
+case 5389: { // glMultiTexCoord4sv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglMultiTexCoord4sv(*target,v);
+}; break;
+case 5390: { // glLoadTransposeMatrixf
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglLoadTransposeMatrixf(m);
+}; break;
+case 5391: { // glLoadTransposeMatrixd
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglLoadTransposeMatrixd(m);
+}; break;
+case 5392: { // glMultTransposeMatrixf
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglMultTransposeMatrixf(m);
+}; break;
+case 5393: { // glMultTransposeMatrixd
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglMultTransposeMatrixd(m);
+}; break;
+case 5394: { // glBlendFuncSeparate
+ GLenum *sfactorRGB = (GLenum *) bp; bp += 4;
+ GLenum *dfactorRGB = (GLenum *) bp; bp += 4;
+ GLenum *sfactorAlpha = (GLenum *) bp; bp += 4;
+ GLenum *dfactorAlpha = (GLenum *) bp; bp += 4;
+ weglBlendFuncSeparate(*sfactorRGB,*dfactorRGB,*sfactorAlpha,*dfactorAlpha);
+}; break;
+case 5395: { // glMultiDrawArrays
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ int * firstLen = (int *) bp; bp += 4;
+ GLint * first = (GLint *) bp; bp += (8-((*firstLen*4+0)%8))%8;
+ int * countLen = (int *) bp; bp += 4;
+ GLsizei * count = (GLsizei *) bp; bp += (8-((*countLen*4+4)%8))%8;
+ weglMultiDrawArrays(*mode,first,count,*firstLen);
+}; break;
+case 5396: { // glPointParameterf
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat *param = (GLfloat *) bp; bp += 4;
+ weglPointParameterf(*pname,*param);
+}; break;
+case 5397: { // glPointParameterfv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLfloat *params = (GLfloat *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglPointParameterfv(*pname,params);
+}; break;
+case 5398: { // glPointParameteri
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *param = (GLint *) bp; bp += 4;
+ weglPointParameteri(*pname,*param);
+}; break;
+case 5399: { // glPointParameteriv
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+0)%2*4;
+ weglPointParameteriv(*pname,params);
+}; break;
+case 5400: { // glFogCoordfv
+ GLfloat *coord = (GLfloat *) bp; bp += 4;
+ weglFogCoordfv(coord);
+}; break;
+case 5401: { // glFogCoorddv
+ GLdouble *coord = (GLdouble *) bp; bp += 8;
+ weglFogCoorddv(coord);
+}; break;
+case 5402: { // glFogCoordPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglFogCoordPointer(*type,*stride,pointer);
+}; break;
+case 5403: { // glFogCoordPointer
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglFogCoordPointer(*type,*stride,pointer);
+}; break;
+case 5404: { // glSecondaryColor3bv
+ GLbyte *v = (GLbyte *) bp; bp += 1;
+ weglSecondaryColor3bv(v);
+}; break;
+case 5405: { // glSecondaryColor3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglSecondaryColor3dv(v);
+}; break;
+case 5406: { // glSecondaryColor3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglSecondaryColor3fv(v);
+}; break;
+case 5407: { // glSecondaryColor3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglSecondaryColor3iv(v);
+}; break;
+case 5408: { // glSecondaryColor3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglSecondaryColor3sv(v);
+}; break;
+case 5409: { // glSecondaryColor3ubv
+ GLubyte *v = (GLubyte *) bp; bp += 1;
+ weglSecondaryColor3ubv(v);
+}; break;
+case 5410: { // glSecondaryColor3uiv
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglSecondaryColor3uiv(v);
+}; break;
+case 5411: { // glSecondaryColor3usv
+ GLushort *v = (GLushort *) bp; bp += 2;
+ weglSecondaryColor3usv(v);
+}; break;
+case 5412: { // glSecondaryColorPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglSecondaryColorPointer(*size,*type,*stride,pointer);
+}; break;
+case 5413: { // glSecondaryColorPointer
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglSecondaryColorPointer(*size,*type,*stride,pointer);
+}; break;
+case 5414: { // glWindowPos2dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglWindowPos2dv(v);
+}; break;
+case 5415: { // glWindowPos2fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglWindowPos2fv(v);
+}; break;
+case 5416: { // glWindowPos2iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglWindowPos2iv(v);
+}; break;
+case 5417: { // glWindowPos2sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglWindowPos2sv(v);
+}; break;
+case 5418: { // glWindowPos3dv
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglWindowPos3dv(v);
+}; break;
+case 5419: { // glWindowPos3fv
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglWindowPos3fv(v);
+}; break;
+case 5420: { // glWindowPos3iv
+ GLint *v = (GLint *) bp; bp += 4;
+ weglWindowPos3iv(v);
+}; break;
+case 5421: { // glWindowPos3sv
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglWindowPos3sv(v);
+}; break;
+case 5422: { // glGenQueries
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *ids;
+ ids = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenQueries(*n,ids);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) ids[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(ids);
+}; break;
+case 5423: { // glDeleteQueries
+ int * idsLen = (int *) bp; bp += 4;
+ GLuint * ids = (GLuint *) bp; bp += (8-((*idsLen*4+4)%8))%8;
+ weglDeleteQueries(*idsLen,ids);
+}; break;
+case 5424: { // glIsQuery
+ GLuint *id = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsQuery(*id);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5425: { // glBeginQuery
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *id = (GLuint *) bp; bp += 4;
+ weglBeginQuery(*target,*id);
+}; break;
+case 5426: { // glEndQuery
+ GLenum *target = (GLenum *) bp; bp += 4;
+ weglEndQuery(*target);
+}; break;
+case 5427: { // glGetQueryiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetQueryiv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5428: { // glGetQueryObjectiv
+ GLuint *id = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetQueryObjectiv(*id,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5429: { // glGetQueryObjectuiv
+ GLuint *id = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLuint params[1] = {0};
+ weglGetQueryObjectuiv(*id,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5430: { // glBindBuffer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *buffer = (GLuint *) bp; bp += 4;
+ weglBindBuffer(*target,*buffer);
+}; break;
+case 5431: { // glDeleteBuffers
+ int * buffersLen = (int *) bp; bp += 4;
+ GLuint * buffers = (GLuint *) bp; bp += (8-((*buffersLen*4+4)%8))%8;
+ weglDeleteBuffers(*buffersLen,buffers);
+}; break;
+case 5432: { // glGenBuffers
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *buffers;
+ buffers = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenBuffers(*n,buffers);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) buffers[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(buffers);
+}; break;
+case 5433: { // glIsBuffer
+ GLuint *buffer = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsBuffer(*buffer);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5434: { // glBufferData
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ GLenum *usage = (GLenum *) bp; bp += 4;
+ weglBufferData(*target,size,data,*usage);
+}; break;
+case 5435: { // glBufferData
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ GLenum *usage = (GLenum *) bp; bp += 4;
+ weglBufferData(*target,size,data,*usage);
+}; break;
+case 5436: { // glBufferSubData
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
+ weglBufferSubData(*target,offset,size,data);
+}; break;
+case 5437: { // glBufferSubData
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglBufferSubData(*target,offset,size,data);
+}; break;
+case 5438: { // glGetBufferSubData
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ GLvoid *data = (GLvoid *) bins[0]->base;
+ weglGetBufferSubData(*target,offset,size,data);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5439: { // glGetBufferParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetBufferParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5440: { // glBlendEquationSeparate
+ GLenum *modeRGB = (GLenum *) bp; bp += 4;
+ GLenum *modeAlpha = (GLenum *) bp; bp += 4;
+ weglBlendEquationSeparate(*modeRGB,*modeAlpha);
+}; break;
+case 5441: { // glDrawBuffers
+ int * bufsLen = (int *) bp; bp += 4;
+ GLenum * bufs = (GLenum *) bp; bp += (8-((*bufsLen*4+4)%8))%8;
+ weglDrawBuffers(*bufsLen,bufs);
+}; break;
+case 5442: { // glStencilOpSeparate
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLenum *sfail = (GLenum *) bp; bp += 4;
+ GLenum *dpfail = (GLenum *) bp; bp += 4;
+ GLenum *dppass = (GLenum *) bp; bp += 4;
+ weglStencilOpSeparate(*face,*sfail,*dpfail,*dppass);
+}; break;
+case 5443: { // glStencilFuncSeparate
+ GLenum *frontfunc = (GLenum *) bp; bp += 4;
+ GLenum *backfunc = (GLenum *) bp; bp += 4;
+ GLint *ref = (GLint *) bp; bp += 4;
+ GLuint *mask = (GLuint *) bp; bp += 4;
+ weglStencilFuncSeparate(*frontfunc,*backfunc,*ref,*mask);
+}; break;
+case 5444: { // glStencilMaskSeparate
+ GLenum *face = (GLenum *) bp; bp += 4;
+ GLuint *mask = (GLuint *) bp; bp += 4;
+ weglStencilMaskSeparate(*face,*mask);
+}; break;
+case 5445: { // glAttachShader
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ weglAttachShader(*program,*shader);
+}; break;
+case 5446: { // glBindAttribLocation
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+0)%8))%8);
+ weglBindAttribLocation(*program,*index,name);
+}; break;
+case 5447: { // glCompileShader
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ weglCompileShader(*shader);
+}; break;
+case 5448: { // glCreateProgram
+ GLuint result = weglCreateProgram();
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5449: { // glCreateShader
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLuint result = weglCreateShader(*type);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5450: { // glDeleteProgram
+ GLuint *program = (GLuint *) bp; bp += 4;
+ weglDeleteProgram(*program);
+}; break;
+case 5451: { // glDeleteShader
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ weglDeleteShader(*shader);
+}; break;
+case 5452: { // glDetachShader
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ weglDetachShader(*program,*shader);
+}; break;
+case 5453: { // glDisableVertexAttribArray
+ GLuint *index = (GLuint *) bp; bp += 4;
+ weglDisableVertexAttribArray(*index);
+}; break;
+case 5454: { // glEnableVertexAttribArray
+ GLuint *index = (GLuint *) bp; bp += 4;
+ weglEnableVertexAttribArray(*index);
+}; break;
+case 5455: { // glGetActiveAttrib
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLint size[1] = {0};
+ GLenum type[1] = {0};
+ GLchar *name;
+ name = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetActiveAttrib(*program,*index,*bufSize,length,size,type,name);
+ int AP = 0; ErlDrvTermData rt[13];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *size;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *type;
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) name; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 13 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,13);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(name);
+}; break;
+case 5456: { // glGetActiveUniform
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLint size[1] = {0};
+ GLenum type[1] = {0};
+ GLchar *name;
+ name = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetActiveUniform(*program,*index,*bufSize,length,size,type,name);
+ int AP = 0; ErlDrvTermData rt[13];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *size;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *type;
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) name; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 13 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,13);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(name);
+}; break;
+case 5457: { // glGetAttachedShaders
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLsizei *maxCount = (GLsizei *) bp; bp += 4;
+ GLsizei count[1] = {0};
+ GLuint *obj;
+ obj = (GLuint *) driver_alloc(sizeof(GLuint) * *maxCount);
+ weglGetAttachedShaders(*program,*maxCount,count,obj);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*count)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *count; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) obj[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*count)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*count)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*count)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(obj);
+}; break;
+case 5458: { // glGetAttribLocation
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+4)%8))%8);
+ GLint result = weglGetAttribLocation(*program,name);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5459: { // glGetProgramiv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetProgramiv(*program,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5460: { // glGetProgramInfoLog
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *infoLog;
+ infoLog = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetProgramInfoLog(*program,*bufSize,length,infoLog);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) infoLog; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(infoLog);
+}; break;
+case 5461: { // glGetShaderiv
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetShaderiv(*shader,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5462: { // glGetShaderInfoLog
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *infoLog;
+ infoLog = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetShaderInfoLog(*shader,*bufSize,length,infoLog);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) infoLog; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(infoLog);
+}; break;
+case 5463: { // glGetShaderSource
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *source;
+ source = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetShaderSource(*shader,*bufSize,length,source);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) source; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(source);
+}; break;
+case 5464: { // glGetUniformLocation
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+4)%8))%8);
+ GLint result = weglGetUniformLocation(*program,name);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5465: { // glGetUniformfv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
+ weglGetUniformfv(*program,*location,params);
+ int AP = 0; ErlDrvTermData rt[38];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[16], *paramsTmp = paramsConv;
+ for(int i=0; i < 16; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 16;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 38 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,38);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5466: { // glGetUniformiv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetUniformiv(*program,*location,params);
+ int AP = 0; ErlDrvTermData rt[38];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 16;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 38 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,38);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5467: { // glGetVertexAttribdv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLdouble params[4] = {0.0,0.0,0.0,0.0};
+ weglGetVertexAttribdv(*index,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *paramsTmp = params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5468: { // glGetVertexAttribfv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetVertexAttribfv(*index,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5469: { // glGetVertexAttribiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetVertexAttribiv(*index,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5470: { // glIsProgram
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsProgram(*program);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5471: { // glIsShader
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsShader(*shader);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5472: { // glLinkProgram
+ GLuint *program = (GLuint *) bp; bp += 4;
+ weglLinkProgram(*program);
+}; break;
+case 5473: { // glShaderSource
+ GLuint *shader = (GLuint *) bp; bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ int * stringTotSize = (int *) bp; bp += 4;
+ GLchar **string;
+ string = (GLchar **) driver_alloc(sizeof(GLchar *) * *stringLen);
+ for(int i=0;i<*stringLen;i++) {
+ string[i] = (GLchar *) bp; bp += 1+strlen(bp);};
+ bp += (8 - ((0 + *stringTotSize) % 8)) % 8;
+ weglShaderSource(*shader,*stringLen,(const GLchar **) string,NULL);
+ driver_free(string);
+}; break;
+case 5474: { // glUseProgram
+ GLuint *program = (GLuint *) bp; bp += 4;
+ weglUseProgram(*program);
+}; break;
+case 5475: { // glUniform1f
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat *v0 = (GLfloat *) bp; bp += 4;
+ weglUniform1f(*location,*v0);
+}; break;
+case 5476: { // glUniform2f
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat *v0 = (GLfloat *) bp; bp += 4;
+ GLfloat *v1 = (GLfloat *) bp; bp += 4;
+ weglUniform2f(*location,*v0,*v1);
+}; break;
+case 5477: { // glUniform3f
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat *v0 = (GLfloat *) bp; bp += 4;
+ GLfloat *v1 = (GLfloat *) bp; bp += 4;
+ GLfloat *v2 = (GLfloat *) bp; bp += 4;
+ weglUniform3f(*location,*v0,*v1,*v2);
+}; break;
+case 5478: { // glUniform4f
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat *v0 = (GLfloat *) bp; bp += 4;
+ GLfloat *v1 = (GLfloat *) bp; bp += 4;
+ GLfloat *v2 = (GLfloat *) bp; bp += 4;
+ GLfloat *v3 = (GLfloat *) bp; bp += 4;
+ weglUniform4f(*location,*v0,*v1,*v2,*v3);
+}; break;
+case 5479: { // glUniform1i
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint *v0 = (GLint *) bp; bp += 4;
+ weglUniform1i(*location,*v0);
+}; break;
+case 5480: { // glUniform2i
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint *v0 = (GLint *) bp; bp += 4;
+ GLint *v1 = (GLint *) bp; bp += 4;
+ weglUniform2i(*location,*v0,*v1);
+}; break;
+case 5481: { // glUniform3i
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint *v0 = (GLint *) bp; bp += 4;
+ GLint *v1 = (GLint *) bp; bp += 4;
+ GLint *v2 = (GLint *) bp; bp += 4;
+ weglUniform3i(*location,*v0,*v1,*v2);
+}; break;
+case 5482: { // glUniform4i
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint *v0 = (GLint *) bp; bp += 4;
+ GLint *v1 = (GLint *) bp; bp += 4;
+ GLint *v2 = (GLint *) bp; bp += 4;
+ GLint *v3 = (GLint *) bp; bp += 4;
+ weglUniform4i(*location,*v0,*v1,*v2,*v3);
+}; break;
+case 5483: { // glUniform1fv
+ GLint *location = (GLint *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += (8-((*valueLen*4+0)%8))%8;
+ weglUniform1fv(*location,*valueLen,value);
+}; break;
+case 5484: { // glUniform2fv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*8;
+ weglUniform2fv(*location,*valueLen,value);
+}; break;
+case 5485: { // glUniform3fv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*12;
+ weglUniform3fv(*location,*valueLen,value);
+}; break;
+case 5486: { // glUniform4fv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*16;
+ weglUniform4fv(*location,*valueLen,value);
+}; break;
+case 5487: { // glUniform1iv
+ GLint *location = (GLint *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ GLint * value = (GLint *) bp; bp += (8-((*valueLen*4+0)%8))%8;
+ weglUniform1iv(*location,*valueLen,value);
+}; break;
+case 5488: { // glUniform2iv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLint * value = (GLint *) bp; bp += *valueLen*8;
+ weglUniform2iv(*location,*valueLen,value);
+}; break;
+case 5489: { // glUniform3iv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLint * value = (GLint *) bp; bp += *valueLen*12;
+ weglUniform3iv(*location,*valueLen,value);
+}; break;
+case 5490: { // glUniform4iv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLint * value = (GLint *) bp; bp += *valueLen*16;
+ weglUniform4iv(*location,*valueLen,value);
+}; break;
+case 5491: { // glUniformMatrix2fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*16;
+ weglUniformMatrix2fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5492: { // glUniformMatrix3fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*36;
+ weglUniformMatrix3fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5493: { // glUniformMatrix4fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*64;
+ weglUniformMatrix4fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5494: { // glValidateProgram
+ GLuint *program = (GLuint *) bp; bp += 4;
+ weglValidateProgram(*program);
+}; break;
+case 5495: { // glVertexAttrib1dv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertexAttrib1dv(*index,v);
+}; break;
+case 5496: { // glVertexAttrib1fv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertexAttrib1fv(*index,v);
+}; break;
+case 5497: { // glVertexAttrib1sv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertexAttrib1sv(*index,v);
+}; break;
+case 5498: { // glVertexAttrib2dv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertexAttrib2dv(*index,v);
+}; break;
+case 5499: { // glVertexAttrib2fv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertexAttrib2fv(*index,v);
+}; break;
+case 5500: { // glVertexAttrib2sv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertexAttrib2sv(*index,v);
+}; break;
+case 5501: { // glVertexAttrib3dv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ bp += 4;
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglVertexAttrib3dv(*index,v);
+}; break;
+case 5502: { // glVertexAttrib3fv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglVertexAttrib3fv(*index,v);
+}; break;
+case 5503: { // glVertexAttrib3sv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglVertexAttrib3sv(*index,v);
+}; break;
+case 5504: { // glVertexAttrib4Nbv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLbyte * v = (GLbyte *) bp; bp += 4;
+ weglVertexAttrib4Nbv(*index,v);
+}; break;
+case 5505: { // glVertexAttrib4Niv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint * v = (GLint *) bp; bp += 16;
+ weglVertexAttrib4Niv(*index,v);
+}; break;
+case 5506: { // glVertexAttrib4Nsv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort * v = (GLshort *) bp; bp += 8;
+ weglVertexAttrib4Nsv(*index,v);
+}; break;
+case 5507: { // glVertexAttrib4Nubv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLubyte * v = (GLubyte *) bp; bp += 4;
+ weglVertexAttrib4Nubv(*index,v);
+}; break;
+case 5508: { // glVertexAttrib4Nuiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint * v = (GLuint *) bp; bp += 16;
+ weglVertexAttrib4Nuiv(*index,v);
+}; break;
+case 5509: { // glVertexAttrib4Nusv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLushort * v = (GLushort *) bp; bp += 8;
+ weglVertexAttrib4Nusv(*index,v);
+}; break;
+case 5510: { // glVertexAttrib4bv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLbyte * v = (GLbyte *) bp; bp += 4;
+ weglVertexAttrib4bv(*index,v);
+}; break;
+case 5511: { // glVertexAttrib4dv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ bp += 4;
+ GLdouble * v = (GLdouble *) bp; bp += 32;
+ weglVertexAttrib4dv(*index,v);
+}; break;
+case 5512: { // glVertexAttrib4fv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat * v = (GLfloat *) bp; bp += 16;
+ weglVertexAttrib4fv(*index,v);
+}; break;
+case 5513: { // glVertexAttrib4iv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint * v = (GLint *) bp; bp += 16;
+ weglVertexAttrib4iv(*index,v);
+}; break;
+case 5514: { // glVertexAttrib4sv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort * v = (GLshort *) bp; bp += 8;
+ weglVertexAttrib4sv(*index,v);
+}; break;
+case 5515: { // glVertexAttrib4ubv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLubyte * v = (GLubyte *) bp; bp += 4;
+ weglVertexAttrib4ubv(*index,v);
+}; break;
+case 5516: { // glVertexAttrib4uiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint * v = (GLuint *) bp; bp += 16;
+ weglVertexAttrib4uiv(*index,v);
+}; break;
+case 5517: { // glVertexAttrib4usv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLushort * v = (GLushort *) bp; bp += 8;
+ weglVertexAttrib4usv(*index,v);
+}; break;
+case 5518: { // glVertexAttribPointer
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLboolean *normalized = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglVertexAttribPointer(*index,*size,*type,*normalized,*stride,pointer);
+}; break;
+case 5519: { // glVertexAttribPointer
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLboolean *normalized = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglVertexAttribPointer(*index,*size,*type,*normalized,*stride,pointer);
+}; break;
+case 5520: { // glUniformMatrix2x3fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*24;
+ weglUniformMatrix2x3fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5521: { // glUniformMatrix3x2fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*24;
+ weglUniformMatrix3x2fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5522: { // glUniformMatrix2x4fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*32;
+ weglUniformMatrix2x4fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5523: { // glUniformMatrix4x2fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*32;
+ weglUniformMatrix4x2fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5524: { // glUniformMatrix3x4fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*48;
+ weglUniformMatrix3x4fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5525: { // glUniformMatrix4x3fv
+ GLint *location = (GLint *) bp; bp += 4;
+ GLboolean *transpose = (GLboolean *) bp; bp += 1;
+ bp += 3;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat * value = (GLfloat *) bp; bp += *valueLen*48;
+ weglUniformMatrix4x3fv(*location,*valueLen,*transpose,value);
+}; break;
+case 5526: { // glColorMaski
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLboolean *r = (GLboolean *) bp; bp += 1;
+ GLboolean *g = (GLboolean *) bp; bp += 1;
+ GLboolean *b = (GLboolean *) bp; bp += 1;
+ GLboolean *a = (GLboolean *) bp; bp += 1;
+ weglColorMaski(*index,*r,*g,*b,*a);
+}; break;
+case 5527: { // glGetBooleani_v
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLboolean data[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetBooleani_v(*target,*index,data);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLboolean *dataTmp = data;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5528: { // glGetIntegeri_v
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint data[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetIntegeri_v(*target,*index,data);
+ int AP = 0; ErlDrvTermData rt[39];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *dataTmp = data;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *dataTmp++;
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = 16+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 39 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,39);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5529: { // glEnablei
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ weglEnablei(*target,*index);
+}; break;
+case 5530: { // glDisablei
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ weglDisablei(*target,*index);
+}; break;
+case 5531: { // glIsEnabledi
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsEnabledi(*target,*index);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5532: { // glBeginTransformFeedback
+ GLenum *primitiveMode = (GLenum *) bp; bp += 4;
+ weglBeginTransformFeedback(*primitiveMode);
+}; break;
+case 5533: { // glEndTransformFeedback
+ weglEndTransformFeedback();
+}; break;
+case 5534: { // glBindBufferRange
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *buffer = (GLuint *) bp; bp += 4;
+ bp += 4;
+ GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ weglBindBufferRange(*target,*index,*buffer,offset,size);
+}; break;
+case 5535: { // glBindBufferBase
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *buffer = (GLuint *) bp; bp += 4;
+ weglBindBufferBase(*target,*index,*buffer);
+}; break;
+case 5536: { // glTransformFeedbackVaryings
+ GLuint *program = (GLuint *) bp; bp += 4;
+ int * varyingsLen = (int *) bp; bp += 4;
+ int * varyingsTotSize = (int *) bp; bp += 4;
+ GLchar **varyings;
+ varyings = (GLchar **) driver_alloc(sizeof(GLchar *) * *varyingsLen);
+ for(int i=0;i<*varyingsLen;i++) {
+ varyings[i] = (GLchar *) bp; bp += 1+strlen(bp);};
+ bp += (8 - ((0 + *varyingsTotSize) % 8)) % 8;
+ GLenum *bufferMode = (GLenum *) bp; bp += 4;
+ weglTransformFeedbackVaryings(*program,*varyingsLen,(const GLchar **) varyings,*bufferMode);
+ driver_free(varyings);
+}; break;
+case 5537: { // glGetTransformFeedbackVarying
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLsizei size[1] = {0};
+ GLenum type[1] = {0};
+ GLchar *name;
+ name = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetTransformFeedbackVarying(*program,*index,*bufSize,length,size,type,name);
+ int AP = 0; ErlDrvTermData rt[13];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *size;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *type;
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) name; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 13 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,13);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(name);
+}; break;
+case 5538: { // glClampColor
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *clamp = (GLenum *) bp; bp += 4;
+ weglClampColor(*target,*clamp);
+}; break;
+case 5539: { // glBeginConditionalRender
+ GLuint *id = (GLuint *) bp; bp += 4;
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ weglBeginConditionalRender(*id,*mode);
+}; break;
+case 5540: { // glEndConditionalRender
+ weglEndConditionalRender();
+}; break;
+case 5541: { // glVertexAttribIPointer
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
+ weglVertexAttribIPointer(*index,*size,*type,*stride,pointer);
+}; break;
+case 5542: { // glVertexAttribIPointer
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *size = (GLint *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLsizei *stride = (GLsizei *) bp; bp += 4;
+ GLvoid *pointer = (GLvoid *) bins[0]->base;
+ weglVertexAttribIPointer(*index,*size,*type,*stride,pointer);
+}; break;
+case 5543: { // glGetVertexAttribIiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetVertexAttribIiv(*index,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5544: { // glGetVertexAttribIuiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLuint params[4] = {0,0,0,0};
+ weglGetVertexAttribIuiv(*index,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLuint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5545: { // glGetUniformuiv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLint *location = (GLint *) bp; bp += 4;
+ GLuint params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetUniformuiv(*program,*location,params);
+ int AP = 0; ErlDrvTermData rt[38];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLuint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 16;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 38 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,38);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5546: { // glBindFragDataLocation
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *color = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+0)%8))%8);
+ weglBindFragDataLocation(*program,*color,name);
+}; break;
+case 5547: { // glGetFragDataLocation
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+4)%8))%8);
+ GLint result = weglGetFragDataLocation(*program,name);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5548: { // glUniform1ui
+ GLint *location = (GLint *) bp; bp += 4;
+ GLuint *v0 = (GLuint *) bp; bp += 4;
+ weglUniform1ui(*location,*v0);
+}; break;
+case 5549: { // glUniform2ui
+ GLint *location = (GLint *) bp; bp += 4;
+ GLuint *v0 = (GLuint *) bp; bp += 4;
+ GLuint *v1 = (GLuint *) bp; bp += 4;
+ weglUniform2ui(*location,*v0,*v1);
+}; break;
+case 5550: { // glUniform3ui
+ GLint *location = (GLint *) bp; bp += 4;
+ GLuint *v0 = (GLuint *) bp; bp += 4;
+ GLuint *v1 = (GLuint *) bp; bp += 4;
+ GLuint *v2 = (GLuint *) bp; bp += 4;
+ weglUniform3ui(*location,*v0,*v1,*v2);
+}; break;
+case 5551: { // glUniform4ui
+ GLint *location = (GLint *) bp; bp += 4;
+ GLuint *v0 = (GLuint *) bp; bp += 4;
+ GLuint *v1 = (GLuint *) bp; bp += 4;
+ GLuint *v2 = (GLuint *) bp; bp += 4;
+ GLuint *v3 = (GLuint *) bp; bp += 4;
+ weglUniform4ui(*location,*v0,*v1,*v2,*v3);
+}; break;
+case 5552: { // glUniform1uiv
+ GLint *location = (GLint *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ GLuint * value = (GLuint *) bp; bp += (8-((*valueLen*4+0)%8))%8;
+ weglUniform1uiv(*location,*valueLen,value);
+}; break;
+case 5553: { // glUniform2uiv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLuint * value = (GLuint *) bp; bp += *valueLen*8;
+ weglUniform2uiv(*location,*valueLen,value);
+}; break;
+case 5554: { // glUniform3uiv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLuint * value = (GLuint *) bp; bp += *valueLen*12;
+ weglUniform3uiv(*location,*valueLen,value);
+}; break;
+case 5555: { // glUniform4uiv
+ GLint *location = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLuint * value = (GLuint *) bp; bp += *valueLen*16;
+ weglUniform4uiv(*location,*valueLen,value);
+}; break;
+case 5556: { // glTexParameterIiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLint *params = (GLint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexParameterIiv(*target,*pname,params);
+}; break;
+case 5557: { // glTexParameterIuiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ int *paramsLen = (int *) bp; bp += 4;
+ GLuint *params = (GLuint *) bp; bp += *paramsLen*4+((*paramsLen)+1)%2*4;
+ weglTexParameterIuiv(*target,*pname,params);
+}; break;
+case 5558: { // glGetTexParameterIiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[4] = {0,0,0,0};
+ weglGetTexParameterIiv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5559: { // glGetTexParameterIuiv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLuint params[4] = {0,0,0,0};
+ weglGetTexParameterIuiv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLuint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5560: { // glClearBufferiv
+ GLenum *buffer = (GLenum *) bp; bp += 4;
+ GLint *drawbuffer = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLint *value = (GLint *) bp; bp += *valueLen*4+((*valueLen)+1)%2*4;
+ weglClearBufferiv(*buffer,*drawbuffer,value);
+}; break;
+case 5561: { // glClearBufferuiv
+ GLenum *buffer = (GLenum *) bp; bp += 4;
+ GLint *drawbuffer = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLuint *value = (GLuint *) bp; bp += *valueLen*4+((*valueLen)+1)%2*4;
+ weglClearBufferuiv(*buffer,*drawbuffer,value);
+}; break;
+case 5562: { // glClearBufferfv
+ GLenum *buffer = (GLenum *) bp; bp += 4;
+ GLint *drawbuffer = (GLint *) bp; bp += 4;
+ int *valueLen = (int *) bp; bp += 4;
+ GLfloat *value = (GLfloat *) bp; bp += *valueLen*4+((*valueLen)+1)%2*4;
+ weglClearBufferfv(*buffer,*drawbuffer,value);
+}; break;
+case 5563: { // glClearBufferfi
+ GLenum *buffer = (GLenum *) bp; bp += 4;
+ GLint *drawbuffer = (GLint *) bp; bp += 4;
+ GLfloat *depth = (GLfloat *) bp; bp += 4;
+ GLint *stencil = (GLint *) bp; bp += 4;
+ weglClearBufferfi(*buffer,*drawbuffer,*depth,*stencil);
+}; break;
+case 5564: { // glGetStringi
+ GLenum *name = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ const GLubyte * result = weglGetStringi(*name,*index);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) result; rt[AP++] = strlen((char *) result);
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5565: { // glVertexAttribI1iv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertexAttribI1iv(*index,v);
+}; break;
+case 5566: { // glVertexAttribI2iv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertexAttribI2iv(*index,v);
+}; break;
+case 5567: { // glVertexAttribI3iv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint *v = (GLint *) bp; bp += 4;
+ weglVertexAttribI3iv(*index,v);
+}; break;
+case 5568: { // glVertexAttribI4iv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLint * v = (GLint *) bp; bp += 16;
+ weglVertexAttribI4iv(*index,v);
+}; break;
+case 5569: { // glVertexAttribI1uiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglVertexAttribI1uiv(*index,v);
+}; break;
+case 5570: { // glVertexAttribI2uiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglVertexAttribI2uiv(*index,v);
+}; break;
+case 5571: { // glVertexAttribI3uiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *v = (GLuint *) bp; bp += 4;
+ weglVertexAttribI3uiv(*index,v);
+}; break;
+case 5572: { // glVertexAttribI4uiv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint * v = (GLuint *) bp; bp += 16;
+ weglVertexAttribI4uiv(*index,v);
+}; break;
+case 5573: { // glVertexAttribI4bv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLbyte * v = (GLbyte *) bp; bp += 4;
+ weglVertexAttribI4bv(*index,v);
+}; break;
+case 5574: { // glVertexAttribI4sv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLshort * v = (GLshort *) bp; bp += 8;
+ weglVertexAttribI4sv(*index,v);
+}; break;
+case 5575: { // glVertexAttribI4ubv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLubyte * v = (GLubyte *) bp; bp += 4;
+ weglVertexAttribI4ubv(*index,v);
+}; break;
+case 5576: { // glVertexAttribI4usv
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLushort * v = (GLushort *) bp; bp += 8;
+ weglVertexAttribI4usv(*index,v);
+}; break;
+case 5577: { // glDrawArraysInstanced
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLint *first = (GLint *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLsizei *primcount = (GLsizei *) bp; bp += 4;
+ weglDrawArraysInstanced(*mode,*first,*count,*primcount);
+}; break;
+case 5578: { // glDrawElementsInstanced
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
+ GLsizei *primcount = (GLsizei *) bp; bp += 4;
+ weglDrawElementsInstanced(*mode,*count,*type,indices,*primcount);
+}; break;
+case 5579: { // glDrawElementsInstanced
+ GLenum *mode = (GLenum *) bp; bp += 4;
+ GLsizei *count = (GLsizei *) bp; bp += 4;
+ GLenum *type = (GLenum *) bp; bp += 4;
+ GLvoid *indices = (GLvoid *) bins[0]->base;
+ GLsizei *primcount = (GLsizei *) bp; bp += 4;
+ weglDrawElementsInstanced(*mode,*count,*type,indices,*primcount);
+}; break;
+case 5580: { // glTexBuffer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLuint *buffer = (GLuint *) bp; bp += 4;
+ weglTexBuffer(*target,*internalformat,*buffer);
+}; break;
+case 5581: { // glPrimitiveRestartIndex
+ GLuint *index = (GLuint *) bp; bp += 4;
+ weglPrimitiveRestartIndex(*index);
+}; break;
+case 5582: { // glLoadTransposeMatrixfARB
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglLoadTransposeMatrixfARB(m);
+}; break;
+case 5583: { // glLoadTransposeMatrixdARB
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglLoadTransposeMatrixdARB(m);
+}; break;
+case 5584: { // glMultTransposeMatrixfARB
+ GLfloat * m = (GLfloat *) bp; bp += 64;
+ weglMultTransposeMatrixfARB(m);
+}; break;
+case 5585: { // glMultTransposeMatrixdARB
+ GLdouble * m = (GLdouble *) bp; bp += 128;
+ weglMultTransposeMatrixdARB(m);
+}; break;
+case 5586: { // glWeightbvARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLbyte * weights = (GLbyte *) bp; bp += (8-((*weightsLen*1+4)%8))%8;
+ weglWeightbvARB(*weightsLen,weights);
+}; break;
+case 5587: { // glWeightsvARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLshort * weights = (GLshort *) bp; bp += (8-((*weightsLen*2+4)%8))%8;
+ weglWeightsvARB(*weightsLen,weights);
+}; break;
+case 5588: { // glWeightivARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLint * weights = (GLint *) bp; bp += (8-((*weightsLen*4+4)%8))%8;
+ weglWeightivARB(*weightsLen,weights);
+}; break;
+case 5589: { // glWeightfvARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLfloat * weights = (GLfloat *) bp; bp += (8-((*weightsLen*4+4)%8))%8;
+ weglWeightfvARB(*weightsLen,weights);
+}; break;
+case 5590: { // glWeightdvARB
+ int * weightsLen = (int *) bp; bp += 8;
+ GLdouble * weights = (GLdouble *) bp; bp += (8-((*weightsLen*8+0)%8))%8;
+ weglWeightdvARB(*weightsLen,weights);
+}; break;
+case 5591: { // glWeightubvARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLubyte * weights = (GLubyte *) bp; bp += (8-((*weightsLen*1+4)%8))%8;
+ weglWeightubvARB(*weightsLen,weights);
+}; break;
+case 5592: { // glWeightusvARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLushort * weights = (GLushort *) bp; bp += (8-((*weightsLen*2+4)%8))%8;
+ weglWeightusvARB(*weightsLen,weights);
+}; break;
+case 5593: { // glWeightuivARB
+ int * weightsLen = (int *) bp; bp += 4;
+ GLuint * weights = (GLuint *) bp; bp += (8-((*weightsLen*4+4)%8))%8;
+ weglWeightuivARB(*weightsLen,weights);
+}; break;
+case 5594: { // glVertexBlendARB
+ GLint *count = (GLint *) bp; bp += 4;
+ weglVertexBlendARB(*count);
+}; break;
+case 5595: { // glCurrentPaletteMatrixARB
+ GLint *index = (GLint *) bp; bp += 4;
+ weglCurrentPaletteMatrixARB(*index);
+}; break;
+case 5596: { // glMatrixIndexubvARB
+ int * indicesLen = (int *) bp; bp += 4;
+ GLubyte * indices = (GLubyte *) bp; bp += (8-((*indicesLen*1+4)%8))%8;
+ weglMatrixIndexubvARB(*indicesLen,indices);
+}; break;
+case 5597: { // glMatrixIndexusvARB
+ int * indicesLen = (int *) bp; bp += 4;
+ GLushort * indices = (GLushort *) bp; bp += (8-((*indicesLen*2+4)%8))%8;
+ weglMatrixIndexusvARB(*indicesLen,indices);
+}; break;
+case 5598: { // glMatrixIndexuivARB
+ int * indicesLen = (int *) bp; bp += 4;
+ GLuint * indices = (GLuint *) bp; bp += (8-((*indicesLen*4+4)%8))%8;
+ weglMatrixIndexuivARB(*indicesLen,indices);
+}; break;
+case 5599: { // glProgramStringARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *format = (GLenum *) bp; bp += 4;
+ GLvoid *string = (GLvoid *) bp;
+ int stringLen = strlen((char *)string); bp += stringLen+1+((8-((1+stringLen+0)%8))%8);
+ weglProgramStringARB(*target,*format,stringLen,string);
+}; break;
+case 5600: { // glBindProgramARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *program = (GLuint *) bp; bp += 4;
+ weglBindProgramARB(*target,*program);
+}; break;
+case 5601: { // glDeleteProgramsARB
+ int * programsLen = (int *) bp; bp += 4;
+ GLuint * programs = (GLuint *) bp; bp += (8-((*programsLen*4+4)%8))%8;
+ weglDeleteProgramsARB(*programsLen,programs);
+}; break;
+case 5602: { // glGenProgramsARB
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *programs;
+ programs = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenProgramsARB(*n,programs);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) programs[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(programs);
+}; break;
+case 5603: { // glProgramEnvParameter4dARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *z = (GLdouble *) bp; bp += 8;
+ GLdouble *w = (GLdouble *) bp; bp += 8;
+ weglProgramEnvParameter4dARB(*target,*index,*x,*y,*z,*w);
+}; break;
+case 5604: { // glProgramEnvParameter4dvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble * params = (GLdouble *) bp; bp += 32;
+ weglProgramEnvParameter4dvARB(*target,*index,params);
+}; break;
+case 5605: { // glProgramEnvParameter4fARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat *x = (GLfloat *) bp; bp += 4;
+ GLfloat *y = (GLfloat *) bp; bp += 4;
+ GLfloat *z = (GLfloat *) bp; bp += 4;
+ GLfloat *w = (GLfloat *) bp; bp += 4;
+ weglProgramEnvParameter4fARB(*target,*index,*x,*y,*z,*w);
+}; break;
+case 5606: { // glProgramEnvParameter4fvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat * params = (GLfloat *) bp; bp += 16;
+ weglProgramEnvParameter4fvARB(*target,*index,params);
+}; break;
+case 5607: { // glProgramLocalParameter4dARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble *x = (GLdouble *) bp; bp += 8;
+ GLdouble *y = (GLdouble *) bp; bp += 8;
+ GLdouble *z = (GLdouble *) bp; bp += 8;
+ GLdouble *w = (GLdouble *) bp; bp += 8;
+ weglProgramLocalParameter4dARB(*target,*index,*x,*y,*z,*w);
+}; break;
+case 5608: { // glProgramLocalParameter4dvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble * params = (GLdouble *) bp; bp += 32;
+ weglProgramLocalParameter4dvARB(*target,*index,params);
+}; break;
+case 5609: { // glProgramLocalParameter4fARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat *x = (GLfloat *) bp; bp += 4;
+ GLfloat *y = (GLfloat *) bp; bp += 4;
+ GLfloat *z = (GLfloat *) bp; bp += 4;
+ GLfloat *w = (GLfloat *) bp; bp += 4;
+ weglProgramLocalParameter4fARB(*target,*index,*x,*y,*z,*w);
+}; break;
+case 5610: { // glProgramLocalParameter4fvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat * params = (GLfloat *) bp; bp += 16;
+ weglProgramLocalParameter4fvARB(*target,*index,params);
+}; break;
+case 5611: { // glGetProgramEnvParameterdvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble params[4] = {0.0,0.0,0.0,0.0};
+ weglGetProgramEnvParameterdvARB(*target,*index,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *paramsTmp = params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5612: { // glGetProgramEnvParameterfvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetProgramEnvParameterfvARB(*target,*index,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5613: { // glGetProgramLocalParameterdvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLdouble params[4] = {0.0,0.0,0.0,0.0};
+ weglGetProgramLocalParameterdvARB(*target,*index,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble *paramsTmp = params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5614: { // glGetProgramLocalParameterfvARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLfloat params[4] = {0.0,0.0,0.0,0.0};
+ weglGetProgramLocalParameterfvARB(*target,*index,params);
+ int AP = 0; ErlDrvTermData rt[14];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[4], *paramsTmp = paramsConv;
+ for(int i=0; i < 4; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 4;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 14 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,14);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5615: { // glGetProgramStringARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLvoid *string = (GLvoid *) bins[0]->base;
+ weglGetProgramStringARB(*target,*pname,string);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5616: { // glDeleteObjectARB
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglDeleteObjectARB(obj);
+}; break;
+case 5617: { // glGetHandleARB
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLhandleARB result = weglGetHandleARB(*pname);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5618: { // glDetachObjectARB
+ GLhandleARB containerObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLhandleARB attachedObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglDetachObjectARB(containerObj,attachedObj);
+}; break;
+case 5619: { // glCreateShaderObjectARB
+ GLenum *shaderType = (GLenum *) bp; bp += 4;
+ GLhandleARB result = weglCreateShaderObjectARB(*shaderType);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5620: { // glShaderSourceARB
+ GLhandleARB shaderObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ int * stringLen = (int *) bp; bp += 4;
+ int * stringTotSize = (int *) bp; bp += 4;
+ GLchar **string;
+ string = (GLchar **) driver_alloc(sizeof(GLchar *) * *stringLen);
+ for(int i=0;i<*stringLen;i++) {
+ string[i] = (GLchar *) bp; bp += 1+strlen(bp);};
+ bp += (8 - ((4 + *stringTotSize) % 8)) % 8;
+ weglShaderSourceARB(shaderObj,*stringLen,(const GLchar **) string,NULL);
+ driver_free(string);
+}; break;
+case 5621: { // glCompileShaderARB
+ GLhandleARB shaderObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglCompileShaderARB(shaderObj);
+}; break;
+case 5622: { // glCreateProgramObjectARB
+ GLhandleARB result = weglCreateProgramObjectARB();
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5623: { // glAttachObjectARB
+ GLhandleARB containerObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglAttachObjectARB(containerObj,obj);
+}; break;
+case 5624: { // glLinkProgramARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglLinkProgramARB(programObj);
+}; break;
+case 5625: { // glUseProgramObjectARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglUseProgramObjectARB(programObj);
+}; break;
+case 5626: { // glValidateProgramARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ weglValidateProgramARB(programObj);
+}; break;
+case 5627: { // glGetObjectParameterfvARB
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLfloat params[1] = {0.0};
+ weglGetObjectParameterfvARB(obj,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv = (double) *params;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) &paramsConv;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5628: { // glGetObjectParameterivARB
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetObjectParameterivARB(obj,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5629: { // glGetInfoLogARB
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLsizei *maxLength = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *infoLog;
+ infoLog = (GLchar *) driver_alloc(sizeof(GLchar) * *maxLength);
+ weglGetInfoLogARB(obj,*maxLength,length,infoLog);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) infoLog; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(infoLog);
+}; break;
+case 5630: { // glGetAttachedObjectsARB
+ GLhandleARB containerObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLsizei *maxCount = (GLsizei *) bp; bp += 4;
+ GLsizei count[1] = {0};
+ GLhandleARB *obj;
+ obj = (GLhandleARB *) driver_alloc(sizeof(GLhandleARB) * *maxCount);
+ weglGetAttachedObjectsARB(containerObj,*maxCount,count,obj);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*count)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *count; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) obj[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*count)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*count)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*count)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(obj);
+}; break;
+case 5631: { // glGetUniformLocationARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+0)%8))%8);
+ GLint result = weglGetUniformLocationARB(programObj,name);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5632: { // glGetActiveUniformARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLsizei *maxLength = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLint size[1] = {0};
+ GLenum type[1] = {0};
+ GLchar *name;
+ name = (GLchar *) driver_alloc(sizeof(GLchar) * *maxLength);
+ weglGetActiveUniformARB(programObj,*index,*maxLength,length,size,type,name);
+ int AP = 0; ErlDrvTermData rt[13];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *size;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *type;
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) name; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 13 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,13);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(name);
+}; break;
+case 5633: { // glGetUniformfvARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLint *location = (GLint *) bp; bp += 4;
+ GLfloat params[16] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
+ weglGetUniformfvARB(programObj,*location,params);
+ int AP = 0; ErlDrvTermData rt[38];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLdouble paramsConv[16], *paramsTmp = paramsConv;
+ for(int i=0; i < 16; i++) paramsConv[i] = (GLdouble) params[i];
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_FLOAT; rt[AP++] = (ErlDrvTermData) paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 16;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 38 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,38);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5634: { // glGetUniformivARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLint *location = (GLint *) bp; bp += 4;
+ GLint params[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+ weglGetUniformivARB(programObj,*location,params);
+ int AP = 0; ErlDrvTermData rt[38];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ GLint *paramsTmp = params;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *paramsTmp++;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 16;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 38 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,38);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5635: { // glGetShaderSourceARB
+ GLhandleARB obj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLsizei *maxLength = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *source;
+ source = (GLchar *) driver_alloc(sizeof(GLchar) * *maxLength);
+ weglGetShaderSourceARB(obj,*maxLength,length,source);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) source; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(source);
+}; break;
+case 5636: { // glBindAttribLocationARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+4)%8))%8);
+ weglBindAttribLocationARB(programObj,*index,name);
+}; break;
+case 5637: { // glGetActiveAttribARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLsizei *maxLength = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLint size[1] = {0};
+ GLenum type[1] = {0};
+ GLchar *name;
+ name = (GLchar *) driver_alloc(sizeof(GLchar) * *maxLength);
+ weglGetActiveAttribARB(programObj,*index,*maxLength,length,size,type,name);
+ int AP = 0; ErlDrvTermData rt[13];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *size;
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *type;
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) name; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 13 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,13);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(name);
+}; break;
+case 5638: { // glGetAttribLocationARB
+ GLhandleARB programObj = (GLhandleARB) * (GLuint64EXT *) bp; bp += 8;
+ GLchar *name = (GLchar *) bp;
+ int nameLen = strlen((char *)name); bp += nameLen+1+((8-((1+nameLen+0)%8))%8);
+ GLint result = weglGetAttribLocationARB(programObj,name);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5639: { // glIsRenderbuffer
+ GLuint *renderbuffer = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsRenderbuffer(*renderbuffer);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5640: { // glBindRenderbuffer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *renderbuffer = (GLuint *) bp; bp += 4;
+ weglBindRenderbuffer(*target,*renderbuffer);
+}; break;
+case 5641: { // glDeleteRenderbuffers
+ int * renderbuffersLen = (int *) bp; bp += 4;
+ GLuint * renderbuffers = (GLuint *) bp; bp += (8-((*renderbuffersLen*4+4)%8))%8;
+ weglDeleteRenderbuffers(*renderbuffersLen,renderbuffers);
+}; break;
+case 5642: { // glGenRenderbuffers
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *renderbuffers;
+ renderbuffers = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenRenderbuffers(*n,renderbuffers);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) renderbuffers[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(renderbuffers);
+}; break;
+case 5643: { // glRenderbufferStorage
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglRenderbufferStorage(*target,*internalformat,*width,*height);
+}; break;
+case 5644: { // glGetRenderbufferParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetRenderbufferParameteriv(*target,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5645: { // glIsFramebuffer
+ GLuint *framebuffer = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsFramebuffer(*framebuffer);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5646: { // glBindFramebuffer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLuint *framebuffer = (GLuint *) bp; bp += 4;
+ weglBindFramebuffer(*target,*framebuffer);
+}; break;
+case 5647: { // glDeleteFramebuffers
+ int * framebuffersLen = (int *) bp; bp += 4;
+ GLuint * framebuffers = (GLuint *) bp; bp += (8-((*framebuffersLen*4+4)%8))%8;
+ weglDeleteFramebuffers(*framebuffersLen,framebuffers);
+}; break;
+case 5648: { // glGenFramebuffers
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *framebuffers;
+ framebuffers = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenFramebuffers(*n,framebuffers);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) framebuffers[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(framebuffers);
+}; break;
+case 5649: { // glCheckFramebufferStatus
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum result = weglCheckFramebufferStatus(*target);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5650: { // glFramebufferTexture1D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLenum *textarget = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ weglFramebufferTexture1D(*target,*attachment,*textarget,*texture,*level);
+}; break;
+case 5651: { // glFramebufferTexture2D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLenum *textarget = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ weglFramebufferTexture2D(*target,*attachment,*textarget,*texture,*level);
+}; break;
+case 5652: { // glFramebufferTexture3D
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLenum *textarget = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *zoffset = (GLint *) bp; bp += 4;
+ weglFramebufferTexture3D(*target,*attachment,*textarget,*texture,*level,*zoffset);
+}; break;
+case 5653: { // glFramebufferRenderbuffer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLenum *renderbuffertarget = (GLenum *) bp; bp += 4;
+ GLuint *renderbuffer = (GLuint *) bp; bp += 4;
+ weglFramebufferRenderbuffer(*target,*attachment,*renderbuffertarget,*renderbuffer);
+}; break;
+case 5654: { // glGetFramebufferAttachmentParameteriv
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint params[1] = {0};
+ weglGetFramebufferAttachmentParameteriv(*target,*attachment,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) *params;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5655: { // glGenerateMipmap
+ GLenum *target = (GLenum *) bp; bp += 4;
+ weglGenerateMipmap(*target);
+}; break;
+case 5656: { // glBlitFramebuffer
+ GLint *srcX0 = (GLint *) bp; bp += 4;
+ GLint *srcY0 = (GLint *) bp; bp += 4;
+ GLint *srcX1 = (GLint *) bp; bp += 4;
+ GLint *srcY1 = (GLint *) bp; bp += 4;
+ GLint *dstX0 = (GLint *) bp; bp += 4;
+ GLint *dstY0 = (GLint *) bp; bp += 4;
+ GLint *dstX1 = (GLint *) bp; bp += 4;
+ GLint *dstY1 = (GLint *) bp; bp += 4;
+ GLbitfield *mask = (GLbitfield *) bp; bp += 4;
+ GLenum *filter = (GLenum *) bp; bp += 4;
+ weglBlitFramebuffer(*srcX0,*srcY0,*srcX1,*srcY1,*dstX0,*dstY0,*dstX1,*dstY1,*mask,*filter);
+}; break;
+case 5657: { // glRenderbufferStorageMultisample
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLsizei *samples = (GLsizei *) bp; bp += 4;
+ GLenum *internalformat = (GLenum *) bp; bp += 4;
+ GLsizei *width = (GLsizei *) bp; bp += 4;
+ GLsizei *height = (GLsizei *) bp; bp += 4;
+ weglRenderbufferStorageMultisample(*target,*samples,*internalformat,*width,*height);
+}; break;
+case 5658: { // glFramebufferTextureLayer
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLint *layer = (GLint *) bp; bp += 4;
+ weglFramebufferTextureLayer(*target,*attachment,*texture,*level,*layer);
+}; break;
+case 5659: { // glProgramParameteriARB
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *value = (GLint *) bp; bp += 4;
+ weglProgramParameteriARB(*program,*pname,*value);
+}; break;
+case 5660: { // glFramebufferTextureARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ weglFramebufferTextureARB(*target,*attachment,*texture,*level);
+}; break;
+case 5661: { // glFramebufferTextureFaceARB
+ GLenum *target = (GLenum *) bp; bp += 4;
+ GLenum *attachment = (GLenum *) bp; bp += 4;
+ GLuint *texture = (GLuint *) bp; bp += 4;
+ GLint *level = (GLint *) bp; bp += 4;
+ GLenum *face = (GLenum *) bp; bp += 4;
+ weglFramebufferTextureFaceARB(*target,*attachment,*texture,*level,*face);
+}; break;
+case 5662: { // glVertexAttribDivisorARB
+ GLuint *index = (GLuint *) bp; bp += 4;
+ GLuint *divisor = (GLuint *) bp; bp += 4;
+ weglVertexAttribDivisorARB(*index,*divisor);
+}; break;
+case 5663: { // glFlushMappedBufferRange
+ GLenum *target = (GLenum *) bp; bp += 4;
+ bp += 4;
+ GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr length = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ weglFlushMappedBufferRange(*target,offset,length);
+}; break;
+case 5664: { // glBindVertexArray
+ GLuint *array = (GLuint *) bp; bp += 4;
+ weglBindVertexArray(*array);
+}; break;
+case 5665: { // glDeleteVertexArrays
+ int * arraysLen = (int *) bp; bp += 4;
+ GLuint * arrays = (GLuint *) bp; bp += (8-((*arraysLen*4+4)%8))%8;
+ weglDeleteVertexArrays(*arraysLen,arrays);
+}; break;
+case 5666: { // glGenVertexArrays
+ GLsizei *n = (GLsizei *) bp; bp += 4;
+ GLuint *arrays;
+ arrays = (GLuint *) driver_alloc(sizeof(GLuint) * *n);
+ weglGenVertexArrays(*n,arrays);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*n)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *n; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) arrays[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*n)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*n)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*n)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(arrays);
+}; break;
+case 5667: { // glIsVertexArray
+ GLuint *array = (GLuint *) bp; bp += 4;
+ GLboolean result = weglIsVertexArray(*array);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5668: { // glGetUniformIndices
+ GLuint *program = (GLuint *) bp; bp += 4;
+ int * uniformNamesLen = (int *) bp; bp += 4;
+ int * uniformNamesTotSize = (int *) bp; bp += 4;
+ GLchar **uniformNames;
+ uniformNames = (GLchar **) driver_alloc(sizeof(GLchar *) * *uniformNamesLen);
+ for(int i=0;i<*uniformNamesLen;i++) {
+ uniformNames[i] = (GLchar *) bp; bp += 1+strlen(bp);};
+ bp += (8 - ((0 + *uniformNamesTotSize) % 8)) % 8;
+ GLuint *uniformIndices;
+ uniformIndices = (GLuint *) driver_alloc(sizeof(GLuint) * *uniformNamesLen);
+ weglGetUniformIndices(*program,*uniformNamesLen,(const GLchar **) uniformNames,uniformIndices);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*uniformNamesLen)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *uniformNamesLen; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) uniformIndices[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*uniformNamesLen)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*uniformNamesLen)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*uniformNamesLen)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(uniformIndices);
+ driver_free(uniformNames);
+}; break;
+case 5669: { // glGetActiveUniformsiv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ int * uniformIndicesLen = (int *) bp; bp += 4;
+ GLuint * uniformIndices = (GLuint *) bp; bp += (8-((*uniformIndicesLen*4+0)%8))%8;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *params;
+ params = (GLint *) driver_alloc(sizeof(GLint) * *uniformIndicesLen);
+ weglGetActiveUniformsiv(*program,*uniformIndicesLen,uniformIndices,*pname,params);
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData)*(7 + (*uniformIndicesLen)*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ for(int i=0; i < *uniformIndicesLen; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) params[i];}
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = (*uniformIndicesLen)+1;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 + (*uniformIndicesLen)*2 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7 + (*uniformIndicesLen)*2);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(rt);
+ driver_free(params);
+}; break;
+case 5670: { // glGetActiveUniformName
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *uniformIndex = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *uniformName;
+ uniformName = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetActiveUniformName(*program,*uniformIndex,*bufSize,length,uniformName);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) uniformName; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(uniformName);
+}; break;
+case 5671: { // glGetUniformBlockIndex
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLchar *uniformBlockName = (GLchar *) bp;
+ int uniformBlockNameLen = strlen((char *)uniformBlockName); bp += uniformBlockNameLen+1+((8-((1+uniformBlockNameLen+4)%8))%8);
+ GLuint result = weglGetUniformBlockIndex(*program,uniformBlockName);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (ErlDrvSInt) result;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 6 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,6);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5672: { // glGetActiveUniformBlockiv
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *uniformBlockIndex = (GLuint *) bp; bp += 4;
+ GLenum *pname = (GLenum *) bp; bp += 4;
+ GLint *params = (GLint *) bins[0]->base;
+ weglGetActiveUniformBlockiv(*program,*uniformBlockIndex,*pname,params);
+ int AP = 0; ErlDrvTermData rt[6];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "ok");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+}; break;
+case 5673: { // glGetActiveUniformBlockName
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *uniformBlockIndex = (GLuint *) bp; bp += 4;
+ GLsizei *bufSize = (GLsizei *) bp; bp += 4;
+ GLsizei length[1] = {0};
+ GLchar *uniformBlockName;
+ uniformBlockName = (GLchar *) driver_alloc(sizeof(GLchar) * *bufSize);
+ weglGetActiveUniformBlockName(*program,*uniformBlockIndex,*bufSize,length,uniformBlockName);
+ int AP = 0; ErlDrvTermData rt[7];
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+ rt[AP++] = ERL_DRV_STRING; rt[AP++] = (ErlDrvTermData) uniformBlockName; rt[AP++] = *length;
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2;
+ if (AP != 7 ) fprintf(stderr, "%d: ERROR AP mismatch %d %d\r\n",__LINE__,AP,7);
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+ driver_free(uniformBlockName);
+}; break;
+case 5674: { // glUniformBlockBinding
+ GLuint *program = (GLuint *) bp; bp += 4;
+ GLuint *uniformBlockIndex = (GLuint *) bp; bp += 4;
+ GLuint *uniformBlockBinding = (GLuint *) bp; bp += 4;
+ weglUniformBlockBinding(*program,*uniformBlockIndex,*uniformBlockBinding);
+}; break;
+case 5675: { // glCopyBufferSubData
+ GLenum *readTarget = (GLenum *) bp; bp += 4;
+ GLenum *writeTarget = (GLenum *) bp; bp += 4;
+ GLintptr readOffset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLintptr writeOffset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
+ GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
+ weglCopyBufferSubData(*readTarget,*writeTarget,readOffset,writeOffset,size);
+}; break;
+case 5676: { // glResizeBuffersMESA
+ weglResizeBuffersMESA();
+}; break;
+case 5677: { // glWindowPos4dvMESA
+ GLdouble *v = (GLdouble *) bp; bp += 8;
+ weglWindowPos4dvMESA(v);
+}; break;
+case 5678: { // glWindowPos4fvMESA
+ GLfloat *v = (GLfloat *) bp; bp += 4;
+ weglWindowPos4fvMESA(v);
+}; break;
+case 5679: { // glWindowPos4ivMESA
+ GLint *v = (GLint *) bp; bp += 4;
+ weglWindowPos4ivMESA(v);
+}; break;
+case 5680: { // glWindowPos4svMESA
+ GLshort *v = (GLshort *) bp; bp += 2;
+ weglWindowPos4svMESA(v);
+}; break;
+case 5681: { // glDepthBoundsEXT
+ GLclampd *zmin = (GLclampd *) bp; bp += 8;
+ GLclampd *zmax = (GLclampd *) bp; bp += 8;
+ weglDepthBoundsEXT(*zmin,*zmax);
+}; break;
+case 5682: { // glStencilClearTagEXT
+ GLsizei *stencilTagBits = (GLsizei *) bp; bp += 4;
+ GLuint *stencilClearTag = (GLuint *) bp; bp += 4;
+ weglStencilClearTagEXT(*stencilTagBits,*stencilClearTag);
+}; break;
+}} /* The End */
+
diff --git a/lib/wx/c_src/gen/glu_finit.h b/lib/wx/c_src/gen/glu_finit.h
new file mode 100644
index 0000000000..7135c53243
--- /dev/null
+++ b/lib/wx/c_src/gen/glu_finit.h
@@ -0,0 +1,54 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+/***** This file is generated do not edit ****/
+
+static struct {
+ const char * name;
+ const char * alt;
+ void * func;
+} glu_fns[] =
+{
+ {"gluBuild1DMipmapLevels", NULL, &wegluBuild1DMipmapLevels},
+ {"gluBuild1DMipmaps", NULL, &wegluBuild1DMipmaps},
+ {"gluBuild2DMipmapLevels", NULL, &wegluBuild2DMipmapLevels},
+ {"gluBuild2DMipmaps", NULL, &wegluBuild2DMipmaps},
+ {"gluBuild3DMipmapLevels", NULL, &wegluBuild3DMipmapLevels},
+ {"gluBuild3DMipmaps", NULL, &wegluBuild3DMipmaps},
+ {"gluCheckExtension", NULL, &wegluCheckExtension},
+ {"gluCylinder", NULL, &wegluCylinder},
+ {"gluDeleteQuadric", NULL, &wegluDeleteQuadric},
+ {"gluDisk", NULL, &wegluDisk},
+ {"gluErrorString", NULL, &wegluErrorString},
+ {"gluGetString", NULL, &wegluGetString},
+ {"gluLookAt", NULL, &wegluLookAt},
+ {"gluNewQuadric", NULL, &wegluNewQuadric},
+ {"gluOrtho2D", NULL, &wegluOrtho2D},
+ {"gluPartialDisk", NULL, &wegluPartialDisk},
+ {"gluPerspective", NULL, &wegluPerspective},
+ {"gluPickMatrix", NULL, &wegluPickMatrix},
+ {"gluProject", NULL, &wegluProject},
+ {"gluQuadricDrawStyle", NULL, &wegluQuadricDrawStyle},
+ {"gluQuadricNormals", NULL, &wegluQuadricNormals},
+ {"gluQuadricOrientation", NULL, &wegluQuadricOrientation},
+ {"gluQuadricTexture", NULL, &wegluQuadricTexture},
+ {"gluScaleImage", NULL, &wegluScaleImage},
+ {"gluSphere", NULL, &wegluSphere},
+ {"gluUnProject", NULL, &wegluUnProject},
+ {"gluUnProject4", NULL, &wegluUnProject4},
+ { NULL, NULL, NULL}};
diff --git a/lib/wx/c_src/gen/wxe_derived_dest.h b/lib/wx/c_src/gen/wxe_derived_dest.h
new file mode 100644
index 0000000000..ec56df7d4e
--- /dev/null
+++ b/lib/wx/c_src/gen/wxe_derived_dest.h
@@ -0,0 +1,742 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+
+/***** This file is generated do not edit ****/
+
+class EwxWindow : public wxWindow {
+ public: ~EwxWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxWindow(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxWindow(parent,id,pos,size,style) {};
+ EwxWindow() : wxWindow() {};
+};
+
+class EwxFrame : public wxFrame {
+ public: ~EwxFrame() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFrame(wxWindow * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxFrame(parent,id,title,pos,size,style) {};
+ EwxFrame() : wxFrame() {};
+};
+
+class EwxMiniFrame : public wxMiniFrame {
+ public: ~EwxMiniFrame() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMiniFrame(wxWindow * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxMiniFrame(parent,id,title,pos,size,style) {};
+ EwxMiniFrame() : wxMiniFrame() {};
+};
+
+class EwxSplashScreen : public wxSplashScreen {
+ public: ~EwxSplashScreen() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSplashScreen(const wxBitmap& bitmap,long splashStyle,int milliseconds,wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxSplashScreen(bitmap,splashStyle,milliseconds,parent,id,pos,size,style) {};
+ EwxSplashScreen() : wxSplashScreen() {};
+};
+
+class EwxPanel : public wxPanel {
+ public: ~EwxPanel() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPanel(wxWindow * parent,int x,int y,int width,int height,long style) : wxPanel(parent,x,y,width,height,style) {};
+ EwxPanel(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style) : wxPanel(parent,winid,pos,size,style) {};
+ EwxPanel() : wxPanel() {};
+};
+
+class EwxScrolledWindow : public wxScrolledWindow {
+ public: ~EwxScrolledWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxScrolledWindow(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style) : wxScrolledWindow(parent,winid,pos,size,style) {};
+ EwxScrolledWindow() : wxScrolledWindow() {};
+};
+
+class EwxSashWindow : public wxSashWindow {
+ public: ~EwxSashWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSashWindow(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxSashWindow(parent,id,pos,size,style) {};
+ EwxSashWindow() : wxSashWindow() {};
+};
+
+class EwxSashLayoutWindow : public wxSashLayoutWindow {
+ public: ~EwxSashLayoutWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSashLayoutWindow(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxSashLayoutWindow(parent,id,pos,size,style) {};
+ EwxSashLayoutWindow() : wxSashLayoutWindow() {};
+};
+
+class EwxGrid : public wxGrid {
+ public: ~EwxGrid() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGrid(wxWindow * parent,int x,int y,int w,int h,long style) : wxGrid(parent,x,y,w,h,style) {};
+ EwxGrid(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxGrid(parent,id,pos,size,style) {};
+ EwxGrid() : wxGrid() {};
+};
+
+class EwxMirrorDC : public wxMirrorDC {
+ public: ~EwxMirrorDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMirrorDC(wxDC& dc,bool mirror) : wxMirrorDC(dc,mirror) {};
+};
+
+class EwxScreenDC : public wxScreenDC {
+ public: ~EwxScreenDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxScreenDC() : wxScreenDC() {};
+};
+
+class EwxPostScriptDC : public wxPostScriptDC {
+ public: ~EwxPostScriptDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPostScriptDC(const wxPrintData& printData) : wxPostScriptDC(printData) {};
+ EwxPostScriptDC() : wxPostScriptDC() {};
+};
+
+class EwxWindowDC : public wxWindowDC {
+ public: ~EwxWindowDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxWindowDC(wxWindow * win) : wxWindowDC(win) {};
+ EwxWindowDC() : wxWindowDC() {};
+};
+
+class EwxClientDC : public wxClientDC {
+ public: ~EwxClientDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxClientDC(wxWindow * win) : wxClientDC(win) {};
+ EwxClientDC() : wxClientDC() {};
+};
+
+class EwxPaintDC : public wxPaintDC {
+ public: ~EwxPaintDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPaintDC(wxWindow * win) : wxPaintDC(win) {};
+ EwxPaintDC() : wxPaintDC() {};
+};
+
+class EwxMemoryDC : public wxMemoryDC {
+ public: ~EwxMemoryDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMemoryDC(wxDC * dc) : wxMemoryDC(dc) {};
+ EwxMemoryDC(wxBitmap& dc) : wxMemoryDC(dc) {};
+ EwxMemoryDC() : wxMemoryDC() {};
+};
+
+class EwxBufferedDC : public wxBufferedDC {
+ public: ~EwxBufferedDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBufferedDC(wxDC * dc,const wxSize& area,int style) : wxBufferedDC(dc,area,style) {};
+ EwxBufferedDC(wxDC * dc,wxBitmap& buffer,int style) : wxBufferedDC(dc,buffer,style) {};
+ EwxBufferedDC() : wxBufferedDC() {};
+};
+
+class EwxBufferedPaintDC : public wxBufferedPaintDC {
+ public: ~EwxBufferedPaintDC() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBufferedPaintDC(wxWindow * window,wxBitmap& buffer,int style) : wxBufferedPaintDC(window,buffer,style) {};
+ EwxBufferedPaintDC(wxWindow * window,int style) : wxBufferedPaintDC(window,style) {};
+};
+
+class EwxMenuBar : public wxMenuBar {
+ public: ~EwxMenuBar() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMenuBar(long style) : wxMenuBar(style) {};
+ EwxMenuBar() : wxMenuBar() {};
+};
+
+class EwxMenu : public wxMenu {
+ public: ~EwxMenu() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMenu(const wxString& title,long style) : wxMenu(title,style) {};
+ EwxMenu(long style) : wxMenu(style) {};
+};
+
+class EwxMenuItem : public wxMenuItem {
+ public: ~EwxMenuItem() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMenuItem(wxMenu * parentMenu,int id,const wxString& text,const wxString& help,wxItemKind kind,wxMenu * subMenu) : wxMenuItem(parentMenu,id,text,help,kind,subMenu) {};
+};
+
+class EwxStatusBar : public wxStatusBar {
+ public: ~EwxStatusBar() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStatusBar(wxWindow * parent,wxWindowID winid,long style) : wxStatusBar(parent,winid,style) {};
+ EwxStatusBar() : wxStatusBar() {};
+};
+
+class EwxBitmap : public wxBitmap {
+ public: ~EwxBitmap() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBitmap(const char * bits,int width,int height,int depth) : wxBitmap(bits,width,height,depth) {};
+ EwxBitmap(int width,int height,int depth) : wxBitmap(width,height,depth) {};
+ EwxBitmap(const wxString& filename,wxBitmapType type) : wxBitmap(filename,type) {};
+ EwxBitmap(const wxImage& image,int depth) : wxBitmap(image,depth) {};
+ EwxBitmap() : wxBitmap() {};
+};
+
+class EwxIcon : public wxIcon {
+ public: ~EwxIcon() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxIcon(const wxString& filename,wxBitmapType type,int desiredWidth,int desiredHeight) : wxIcon(filename,type,desiredWidth,desiredHeight) {};
+ EwxIcon(const wxIconLocation& loc) : wxIcon(loc) {};
+ EwxIcon() : wxIcon() {};
+};
+
+class EwxCursor : public wxCursor {
+ public: ~EwxCursor() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxCursor(const char * bits,int width,int height,int hotSpotX,int hotSpotY) : wxCursor(bits,width,height,hotSpotX,hotSpotY) {};
+ EwxCursor(int cursorId) : wxCursor(cursorId) {};
+ EwxCursor(const wxImage& image) : wxCursor(image) {};
+ EwxCursor() : wxCursor() {};
+};
+
+class EwxMask : public wxMask {
+ public: ~EwxMask() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMask(const wxBitmap& bitmap,int paletteIndex) : wxMask(bitmap,paletteIndex) {};
+ EwxMask(const wxBitmap& bitmap,const wxColour& colour) : wxMask(bitmap,colour) {};
+ EwxMask(const wxBitmap& bitmap) : wxMask(bitmap) {};
+ EwxMask() : wxMask() {};
+};
+
+class EwxImage : public wxImage {
+ public: ~EwxImage() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxImage(int width,int height,unsigned char * data,unsigned char * alpha,bool static_data) : wxImage(width,height,data,alpha,static_data) {};
+ EwxImage(int width,int height,unsigned char * data,bool static_data) : wxImage(width,height,data,static_data) {};
+ EwxImage(int width,int height,bool clear) : wxImage(width,height,clear) {};
+ EwxImage(const wxString& name,const wxString& mimetype,int index) : wxImage(name,mimetype,index) {};
+ EwxImage(const wxString& name,long type,int index) : wxImage(name,type,index) {};
+ EwxImage() : wxImage() {};
+};
+
+class EwxBrush : public wxBrush {
+ public: ~EwxBrush() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBrush(const wxColour& colour,int style) : wxBrush(colour,style) {};
+ EwxBrush(const wxBitmap& stippleBitmap) : wxBrush(stippleBitmap) {};
+ EwxBrush() : wxBrush() {};
+};
+
+class EwxPen : public wxPen {
+ public: ~EwxPen() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPen(const wxColour& colour,int width,int style) : wxPen(colour,width,style) {};
+ EwxPen() : wxPen() {};
+};
+
+class EwxRegion : public wxRegion {
+ public: ~EwxRegion() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxRegion(wxCoord x,wxCoord y,wxCoord w,wxCoord h) : wxRegion(x,y,w,h) {};
+ EwxRegion(const wxPoint& topLeft,const wxPoint& bottomRight) : wxRegion(topLeft,bottomRight) {};
+ EwxRegion(const wxBitmap& bmp) : wxRegion(bmp) {};
+ EwxRegion(const wxRect& rect) : wxRegion(rect) {};
+ EwxRegion() : wxRegion() {};
+};
+
+class EwxAcceleratorTable : public wxAcceleratorTable {
+ public: ~EwxAcceleratorTable() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxAcceleratorTable(int n,const wxAcceleratorEntry * entries) : wxAcceleratorTable(n,entries) {};
+ EwxAcceleratorTable() : wxAcceleratorTable() {};
+};
+
+class EwxCaret : public wxCaret {
+ public: ~EwxCaret() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxCaret(wxWindow * window,int width,int height) : wxCaret(window,width,height) {};
+ EwxCaret(wxWindow * window,const wxSize& size) : wxCaret(window,size) {};
+};
+
+class EwxSizerItem : public wxSizerItem {
+ public: ~EwxSizerItem() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSizerItem(int width,int height,int proportion,int flag,int border,wxObject * userData) : wxSizerItem(width,height,proportion,flag,border,userData) {};
+ EwxSizerItem(wxWindow * window,int proportion,int flag,int border,wxObject * userData) : wxSizerItem(window,proportion,flag,border,userData) {};
+ EwxSizerItem(wxSizer * window,int proportion,int flag,int border,wxObject * userData) : wxSizerItem(window,proportion,flag,border,userData) {};
+ EwxSizerItem(int width,int height,const wxSizerFlags& flags) : wxSizerItem(width,height,flags) {};
+ EwxSizerItem(wxWindow * window,const wxSizerFlags& flags) : wxSizerItem(window,flags) {};
+ EwxSizerItem(wxSizer * window,const wxSizerFlags& flags) : wxSizerItem(window,flags) {};
+ EwxSizerItem() : wxSizerItem() {};
+};
+
+class EwxBoxSizer : public wxBoxSizer {
+ public: ~EwxBoxSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBoxSizer(int orient) : wxBoxSizer(orient) {};
+};
+
+class EwxStaticBoxSizer : public wxStaticBoxSizer {
+ public: ~EwxStaticBoxSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStaticBoxSizer(int orient,wxWindow * win,const wxString& label) : wxStaticBoxSizer(orient,win,label) {};
+ EwxStaticBoxSizer(wxStaticBox * box,int orient) : wxStaticBoxSizer(box,orient) {};
+};
+
+class EwxGridSizer : public wxGridSizer {
+ public: ~EwxGridSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGridSizer(int rows,int cols,int vgap,int hgap) : wxGridSizer(rows,cols,vgap,hgap) {};
+ EwxGridSizer(int cols,int vgap,int hgap) : wxGridSizer(cols,vgap,hgap) {};
+};
+
+class EwxFlexGridSizer : public wxFlexGridSizer {
+ public: ~EwxFlexGridSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFlexGridSizer(int rows,int cols,int vgap,int hgap) : wxFlexGridSizer(rows,cols,vgap,hgap) {};
+ EwxFlexGridSizer(int cols,int vgap,int hgap) : wxFlexGridSizer(cols,vgap,hgap) {};
+};
+
+class EwxGridBagSizer : public wxGridBagSizer {
+ public: ~EwxGridBagSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGridBagSizer(int vgap,int hgap) : wxGridBagSizer(vgap,hgap) {};
+};
+
+class EwxStdDialogButtonSizer : public wxStdDialogButtonSizer {
+ public: ~EwxStdDialogButtonSizer() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStdDialogButtonSizer() : wxStdDialogButtonSizer() {};
+};
+
+class EwxFont : public wxFont {
+ public: ~EwxFont() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFont(int size,int family,int style,int weight,bool underlined,const wxString& face,wxFontEncoding encoding) : wxFont(size,family,style,weight,underlined,face,encoding) {};
+ EwxFont(const wxString& fontname) : wxFont(fontname) {};
+ EwxFont() : wxFont() {};
+};
+
+class EwxToolTip : public wxToolTip {
+ public: ~EwxToolTip() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxToolTip(const wxString& tip) : wxToolTip(tip) {};
+};
+
+class EwxButton : public wxButton {
+ public: ~EwxButton() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxButton(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxButton(parent,id,label,pos,size,style,validator) {};
+ EwxButton() : wxButton() {};
+};
+
+class EwxBitmapButton : public wxBitmapButton {
+ public: ~EwxBitmapButton() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxBitmapButton(wxWindow * parent,wxWindowID id,const wxBitmap& bitmap,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxBitmapButton(parent,id,bitmap,pos,size,style,validator) {};
+ EwxBitmapButton() : wxBitmapButton() {};
+};
+
+class EwxToggleButton : public wxToggleButton {
+ public: ~EwxToggleButton() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxToggleButton(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxToggleButton(parent,id,label,pos,size,style,validator) {};
+ EwxToggleButton() : wxToggleButton() {};
+};
+
+class EwxCalendarCtrl : public wxCalendarCtrl {
+ public: ~EwxCalendarCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxCalendarCtrl(wxWindow * parent,wxWindowID id,const wxDateTime& date,const wxPoint& pos,const wxSize& size,long style) : wxCalendarCtrl(parent,id,date,pos,size,style) {};
+ EwxCalendarCtrl() : wxCalendarCtrl() {};
+};
+
+class EwxCheckBox : public wxCheckBox {
+ public: ~EwxCheckBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxCheckBox(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxCheckBox(parent,id,label,pos,size,style,validator) {};
+ EwxCheckBox() : wxCheckBox() {};
+};
+
+class EwxCheckListBox : public wxCheckListBox {
+ public: ~EwxCheckListBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxCheckListBox(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,const wxArrayString& choices,long style,const wxValidator& validator) : wxCheckListBox(parent,id,pos,size,choices,style,validator) {};
+ EwxCheckListBox() : wxCheckListBox() {};
+};
+
+class EwxChoice : public wxChoice {
+ public: ~EwxChoice() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxChoice(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,const wxArrayString& choices,long style,const wxValidator& validator) : wxChoice(parent,id,pos,size,choices,style,validator) {};
+ EwxChoice() : wxChoice() {};
+};
+
+class EwxComboBox : public wxComboBox {
+ public: ~EwxComboBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxComboBox(wxWindow * parent,wxWindowID id,const wxString& value,const wxPoint& pos,const wxSize& size,const wxArrayString& choices,long style,const wxValidator& validator) : wxComboBox(parent,id,value,pos,size,choices,style,validator) {};
+ EwxComboBox() : wxComboBox() {};
+};
+
+class EwxGauge : public wxGauge {
+ public: ~EwxGauge() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGauge(wxWindow * parent,wxWindowID id,int range,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxGauge(parent,id,range,pos,size,style,validator) {};
+ EwxGauge() : wxGauge() {};
+};
+
+class EwxGenericDirCtrl : public wxGenericDirCtrl {
+ public: ~EwxGenericDirCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGenericDirCtrl(wxWindow * parent,const wxWindowID id,const wxString& dir,const wxPoint& pos,const wxSize& size,long style,const wxString& filter,int defaultFilter) : wxGenericDirCtrl(parent,id,dir,pos,size,style,filter,defaultFilter) {};
+ EwxGenericDirCtrl() : wxGenericDirCtrl() {};
+};
+
+class EwxStaticBox : public wxStaticBox {
+ public: ~EwxStaticBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStaticBox(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style) : wxStaticBox(parent,id,label,pos,size,style) {};
+ EwxStaticBox() : wxStaticBox() {};
+};
+
+class EwxStaticLine : public wxStaticLine {
+ public: ~EwxStaticLine() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStaticLine(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxStaticLine(parent,id,pos,size,style) {};
+ EwxStaticLine() : wxStaticLine() {};
+};
+
+class EwxListBox : public wxListBox {
+ public: ~EwxListBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxListBox(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,const wxArrayString& choices,long style,const wxValidator& validator) : wxListBox(parent,id,pos,size,choices,style,validator) {};
+ EwxListBox() : wxListBox() {};
+};
+
+class EwxListCtrl : public wxListCtrl {
+ public: ~EwxListCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxListCtrl(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxListCtrl(parent,winid,pos,size,style,validator) {};
+ EwxListCtrl() : wxListCtrl() {};
+};
+
+class EwxListItem : public wxListItem {
+ public: ~EwxListItem() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxListItem(const wxListItem& item) : wxListItem(item) {};
+ EwxListItem() : wxListItem() {};
+};
+
+class EwxImageList : public wxImageList {
+ public: ~EwxImageList() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxImageList(int width,int height,bool mask,int initialCount) : wxImageList(width,height,mask,initialCount) {};
+ EwxImageList() : wxImageList() {};
+};
+
+class EwxTextCtrl : public wxTextCtrl {
+ public: ~EwxTextCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxTextCtrl(wxWindow * parent,wxWindowID id,const wxString& value,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxTextCtrl(parent,id,value,pos,size,style,validator) {};
+ EwxTextCtrl() : wxTextCtrl() {};
+};
+
+class EwxNotebook : public wxNotebook {
+ public: ~EwxNotebook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxNotebook(wxWindow * parent,wxWindowID winid,const wxPoint& pos,const wxSize& size,long style) : wxNotebook(parent,winid,pos,size,style) {};
+ EwxNotebook() : wxNotebook() {};
+};
+
+class EwxChoicebook : public wxChoicebook {
+ public: ~EwxChoicebook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxChoicebook(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxChoicebook(parent,id,pos,size,style) {};
+ EwxChoicebook() : wxChoicebook() {};
+};
+
+class EwxToolbook : public wxToolbook {
+ public: ~EwxToolbook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxToolbook(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxToolbook(parent,id,pos,size,style) {};
+ EwxToolbook() : wxToolbook() {};
+};
+
+class EwxListbook : public wxListbook {
+ public: ~EwxListbook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxListbook(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxListbook(parent,id,pos,size,style) {};
+ EwxListbook() : wxListbook() {};
+};
+
+class EwxTreebook : public wxTreebook {
+ public: ~EwxTreebook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxTreebook(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxTreebook(parent,id,pos,size,style) {};
+ EwxTreebook() : wxTreebook() {};
+};
+
+class EwxTreeCtrl : public wxTreeCtrl {
+ public: ~EwxTreeCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxTreeCtrl(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxTreeCtrl(parent,id,pos,size,style,validator) {};
+ EwxTreeCtrl() : wxTreeCtrl() {};
+};
+
+class EwxScrollBar : public wxScrollBar {
+ public: ~EwxScrollBar() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxScrollBar(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxScrollBar(parent,id,pos,size,style,validator) {};
+ EwxScrollBar() : wxScrollBar() {};
+};
+
+class EwxSpinButton : public wxSpinButton {
+ public: ~EwxSpinButton() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSpinButton(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxSpinButton(parent,id,pos,size,style) {};
+ EwxSpinButton() : wxSpinButton() {};
+};
+
+class EwxSpinCtrl : public wxSpinCtrl {
+ public: ~EwxSpinCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSpinCtrl(wxWindow * parent,wxWindowID id,const wxString& value,const wxPoint& pos,const wxSize& size,long style,int min,int max,int initial) : wxSpinCtrl(parent,id,value,pos,size,style,min,max,initial) {};
+ EwxSpinCtrl() : wxSpinCtrl() {};
+};
+
+class EwxStaticText : public wxStaticText {
+ public: ~EwxStaticText() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStaticText(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style) : wxStaticText(parent,id,label,pos,size,style) {};
+ EwxStaticText() : wxStaticText() {};
+};
+
+class EwxStaticBitmap : public wxStaticBitmap {
+ public: ~EwxStaticBitmap() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxStaticBitmap(wxWindow * parent,wxWindowID id,const wxBitmap& label,const wxPoint& pos,const wxSize& size,long style) : wxStaticBitmap(parent,id,label,pos,size,style) {};
+ EwxStaticBitmap() : wxStaticBitmap() {};
+};
+
+class EwxRadioBox : public wxRadioBox {
+ public: ~EwxRadioBox() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxRadioBox(wxWindow * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,const wxArrayString& choices,int majorDim,long style,const wxValidator& val) : wxRadioBox(parent,id,title,pos,size,choices,majorDim,style,val) {};
+};
+
+class EwxRadioButton : public wxRadioButton {
+ public: ~EwxRadioButton() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxRadioButton(wxWindow * parent,wxWindowID id,const wxString& label,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxRadioButton(parent,id,label,pos,size,style,validator) {};
+ EwxRadioButton() : wxRadioButton() {};
+};
+
+class EwxSlider : public wxSlider {
+ public: ~EwxSlider() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSlider(wxWindow * parent,wxWindowID id,int value,int minValue,int maxValue,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxSlider(parent,id,value,minValue,maxValue,pos,size,style,validator) {};
+ EwxSlider() : wxSlider() {};
+};
+
+class EwxDialog : public wxDialog {
+ public: ~EwxDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxDialog(wxWindow * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxDialog(parent,id,title,pos,size,style) {};
+ EwxDialog() : wxDialog() {};
+};
+
+class EwxColourDialog : public wxColourDialog {
+ public: ~EwxColourDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxColourDialog(wxWindow * parent,wxColourData * data) : wxColourDialog(parent,data) {};
+ EwxColourDialog() : wxColourDialog() {};
+};
+
+class EwxColourData : public wxColourData {
+ public: ~EwxColourData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxColourData(const wxColourData& data) : wxColourData(data) {};
+ EwxColourData() : wxColourData() {};
+};
+
+class EwxPalette : public wxPalette {
+ public: ~EwxPalette() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPalette(int n,const unsigned char * red,const unsigned char * green,const unsigned char * blue) : wxPalette(n,red,green,blue) {};
+ EwxPalette() : wxPalette() {};
+};
+
+class EwxDirDialog : public wxDirDialog {
+ public: ~EwxDirDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxDirDialog(wxWindow * parent,const wxString& title,const wxString& defaultPath,long style,const wxPoint& pos,const wxSize& sz) : wxDirDialog(parent,title,defaultPath,style,pos,sz) {};
+};
+
+class EwxFileDialog : public wxFileDialog {
+ public: ~EwxFileDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFileDialog(wxWindow * parent,const wxString& message,const wxString& defaultDir,const wxString& defaultFile,const wxString& wildCard,long style,const wxPoint& pos,const wxSize& sz) : wxFileDialog(parent,message,defaultDir,defaultFile,wildCard,style,pos,sz) {};
+};
+
+class EwxFilePickerCtrl : public wxFilePickerCtrl {
+ public: ~EwxFilePickerCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFilePickerCtrl(wxWindow * parent,wxWindowID id,const wxString& path,const wxString& message,const wxString& wildcard,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxFilePickerCtrl(parent,id,path,message,wildcard,pos,size,style,validator) {};
+ EwxFilePickerCtrl() : wxFilePickerCtrl() {};
+};
+
+class EwxDirPickerCtrl : public wxDirPickerCtrl {
+ public: ~EwxDirPickerCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxDirPickerCtrl(wxWindow * parent,wxWindowID id,const wxString& path,const wxString& message,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxDirPickerCtrl(parent,id,path,message,pos,size,style,validator) {};
+ EwxDirPickerCtrl() : wxDirPickerCtrl() {};
+};
+
+class EwxColourPickerCtrl : public wxColourPickerCtrl {
+ public: ~EwxColourPickerCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxColourPickerCtrl(wxWindow * parent,wxWindowID id,const wxColour& col,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxColourPickerCtrl(parent,id,col,pos,size,style,validator) {};
+ EwxColourPickerCtrl() : wxColourPickerCtrl() {};
+};
+
+class EwxDatePickerCtrl : public wxDatePickerCtrl {
+ public: ~EwxDatePickerCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxDatePickerCtrl(wxWindow * parent,wxWindowID id,const wxDateTime& date,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxDatePickerCtrl(parent,id,date,pos,size,style,validator) {};
+ EwxDatePickerCtrl() : wxDatePickerCtrl() {};
+};
+
+class EwxFontPickerCtrl : public wxFontPickerCtrl {
+ public: ~EwxFontPickerCtrl() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFontPickerCtrl(wxWindow * parent,wxWindowID id,const wxFont& initial,const wxPoint& pos,const wxSize& size,long style,const wxValidator& validator) : wxFontPickerCtrl(parent,id,initial,pos,size,style,validator) {};
+ EwxFontPickerCtrl() : wxFontPickerCtrl() {};
+};
+
+class EwxFindReplaceDialog : public wxFindReplaceDialog {
+ public: ~EwxFindReplaceDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFindReplaceDialog(wxWindow * parent,wxFindReplaceData * data,const wxString& title,int style) : wxFindReplaceDialog(parent,data,title,style) {};
+ EwxFindReplaceDialog() : wxFindReplaceDialog() {};
+};
+
+class EwxFindReplaceData : public wxFindReplaceData {
+ public: ~EwxFindReplaceData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFindReplaceData(unsigned int flags) : wxFindReplaceData(flags) {};
+ EwxFindReplaceData() : wxFindReplaceData() {};
+};
+
+class EwxMultiChoiceDialog : public wxMultiChoiceDialog {
+ public: ~EwxMultiChoiceDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMultiChoiceDialog(wxWindow * parent,const wxString& message,const wxString& caption,const wxArrayString& choices,long style,const wxPoint& pos) : wxMultiChoiceDialog(parent,message,caption,choices,style,pos) {};
+ EwxMultiChoiceDialog() : wxMultiChoiceDialog() {};
+};
+
+class EwxSingleChoiceDialog : public wxSingleChoiceDialog {
+ public: ~EwxSingleChoiceDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSingleChoiceDialog(wxWindow * parent,const wxString& message,const wxString& caption,const wxArrayString& choices,char ** clientData,long style,const wxPoint& pos) : wxSingleChoiceDialog(parent,message,caption,choices,clientData,style,pos) {};
+ EwxSingleChoiceDialog() : wxSingleChoiceDialog() {};
+};
+
+class EwxTextEntryDialog : public wxTextEntryDialog {
+ public: ~EwxTextEntryDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxTextEntryDialog(wxWindow * parent,const wxString& message,const wxString& caption,const wxString& value,long style,const wxPoint& pos) : wxTextEntryDialog(parent,message,caption,value,style,pos) {};
+};
+
+class EwxPasswordEntryDialog : public wxPasswordEntryDialog {
+ public: ~EwxPasswordEntryDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPasswordEntryDialog(wxWindow * parent,const wxString& message,const wxString& caption,const wxString& value,long style,const wxPoint& pos) : wxPasswordEntryDialog(parent,message,caption,value,style,pos) {};
+};
+
+class EwxFontData : public wxFontData {
+ public: ~EwxFontData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFontData(const wxFontData& data) : wxFontData(data) {};
+ EwxFontData() : wxFontData() {};
+};
+
+class EwxFontDialog : public wxFontDialog {
+ public: ~EwxFontDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxFontDialog(wxWindow * parent,const wxFontData& data) : wxFontDialog(parent,data) {};
+ EwxFontDialog() : wxFontDialog() {};
+};
+
+class EwxProgressDialog : public wxProgressDialog {
+ public: ~EwxProgressDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxProgressDialog(const wxString& title,const wxString& message,int maximum,wxWindow * parent,int style) : wxProgressDialog(title,message,maximum,parent,style) {};
+};
+
+class EwxMessageDialog : public wxMessageDialog {
+ public: ~EwxMessageDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMessageDialog(wxWindow * parent,const wxString& message,const wxString& caption,long style,const wxPoint& pos) : wxMessageDialog(parent,message,caption,style,pos) {};
+};
+
+class EwxPageSetupDialog : public wxPageSetupDialog {
+ public: ~EwxPageSetupDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPageSetupDialog(wxWindow * parent,wxPageSetupDialogData * data) : wxPageSetupDialog(parent,data) {};
+};
+
+class EwxPageSetupDialogData : public wxPageSetupDialogData {
+ public: ~EwxPageSetupDialogData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPageSetupDialogData(const wxPrintData& printData) : wxPageSetupDialogData(printData) {};
+ EwxPageSetupDialogData(const wxPageSetupDialogData& printData) : wxPageSetupDialogData(printData) {};
+ EwxPageSetupDialogData() : wxPageSetupDialogData() {};
+};
+
+class EwxPrintDialog : public wxPrintDialog {
+ public: ~EwxPrintDialog() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrintDialog(wxWindow * parent,wxPrintDialogData * data) : wxPrintDialog(parent,data) {};
+ EwxPrintDialog(wxWindow * parent,wxPrintData * data) : wxPrintDialog(parent,data) {};
+};
+
+class EwxPrintDialogData : public wxPrintDialogData {
+ public: ~EwxPrintDialogData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrintDialogData(const wxPrintDialogData& dialogData) : wxPrintDialogData(dialogData) {};
+ EwxPrintDialogData(const wxPrintData& dialogData) : wxPrintDialogData(dialogData) {};
+ EwxPrintDialogData() : wxPrintDialogData() {};
+};
+
+class EwxPrintData : public wxPrintData {
+ public: ~EwxPrintData() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrintData(const wxPrintData& printData) : wxPrintData(printData) {};
+ EwxPrintData() : wxPrintData() {};
+};
+
+class EwxPrintPreview : public wxPrintPreview {
+ public: ~EwxPrintPreview() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrintPreview(wxPrintout * printout,wxPrintout * printoutForPrinting,wxPrintData * data) : wxPrintPreview(printout,printoutForPrinting,data) {};
+ EwxPrintPreview(wxPrintout * printout,wxPrintout * printoutForPrinting,wxPrintDialogData * data) : wxPrintPreview(printout,printoutForPrinting,data) {};
+};
+
+class EwxPreviewFrame : public wxPreviewFrame {
+ public: ~EwxPreviewFrame() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPreviewFrame(wxPrintPreview * preview,wxWindow * parent,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxPreviewFrame(preview,parent,title,pos,size,style) {};
+};
+
+class EwxPreviewControlBar : public wxPreviewControlBar {
+ public: ~EwxPreviewControlBar() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPreviewControlBar(wxPrintPreview * preview,long buttons,wxWindow * parent,const wxPoint& pos,const wxSize& size,long style) : wxPreviewControlBar(preview,buttons,parent,pos,size,style) {};
+};
+
+class EwxPrinter : public wxPrinter {
+ public: ~EwxPrinter() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrinter(wxPrintDialogData * data) : wxPrinter(data) {};
+};
+
+class EwxXmlResource : public wxXmlResource {
+ public: ~EwxXmlResource() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxXmlResource(const wxString& filemask,int flags,const wxString& domain) : wxXmlResource(filemask,flags,domain) {};
+ EwxXmlResource(int flags,const wxString& domain) : wxXmlResource(flags,domain) {};
+};
+
+class EwxHtmlEasyPrinting : public wxHtmlEasyPrinting {
+ public: ~EwxHtmlEasyPrinting() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxHtmlEasyPrinting(const wxString& name,wxWindow * parentWindow) : wxHtmlEasyPrinting(name,parentWindow) {};
+};
+
+class EwxGLCanvas : public wxGLCanvas {
+ public: ~EwxGLCanvas() {deleteActiveGL(this);((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxGLCanvas(wxWindow * parent,const wxGLContext * shared,wxWindowID id,const wxPoint& pos,const wxSize& size,long style,const wxString& name,int * attribList,const wxPalette& palette) : wxGLCanvas(parent,shared,id,pos,size,style,name,attribList,palette) {};
+ EwxGLCanvas(wxWindow * parent,const wxGLCanvas * shared,wxWindowID id,const wxPoint& pos,const wxSize& size,long style,const wxString& name,int * attribList,const wxPalette& palette) : wxGLCanvas(parent,shared,id,pos,size,style,name,attribList,palette) {};
+ EwxGLCanvas(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style,const wxString& name,int * attribList,const wxPalette& palette) : wxGLCanvas(parent,id,pos,size,style,name,attribList,palette) {};
+};
+
+class EwxAuiManager : public wxAuiManager {
+ public: ~EwxAuiManager() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxAuiManager(wxWindow * managed_wnd,unsigned int flags) : wxAuiManager(managed_wnd,flags) {};
+};
+
+class EwxAuiNotebook : public wxAuiNotebook {
+ public: ~EwxAuiNotebook() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxAuiNotebook(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxAuiNotebook(parent,id,pos,size,style) {};
+ EwxAuiNotebook() : wxAuiNotebook() {};
+};
+
+class EwxMDIParentFrame : public wxMDIParentFrame {
+ public: ~EwxMDIParentFrame() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMDIParentFrame(wxWindow * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxMDIParentFrame(parent,id,title,pos,size,style) {};
+ EwxMDIParentFrame() : wxMDIParentFrame() {};
+};
+
+class EwxMDIChildFrame : public wxMDIChildFrame {
+ public: ~EwxMDIChildFrame() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMDIChildFrame(wxMDIParentFrame * parent,wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,long style) : wxMDIChildFrame(parent,id,title,pos,size,style) {};
+ EwxMDIChildFrame() : wxMDIChildFrame() {};
+};
+
+class EwxMDIClientWindow : public wxMDIClientWindow {
+ public: ~EwxMDIClientWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxMDIClientWindow(wxMDIParentFrame * parent,long style) : wxMDIClientWindow(parent,style) {};
+ EwxMDIClientWindow() : wxMDIClientWindow() {};
+};
+
+class EwxLayoutAlgorithm : public wxLayoutAlgorithm {
+ public: ~EwxLayoutAlgorithm() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxLayoutAlgorithm() : wxLayoutAlgorithm() {};
+};
+
+class EwxPrintout : public wxPrintout {
+ public: ~EwxPrintout() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxPrintout(const wxString& title) : wxPrintout(title) {};
+};
+
+class EwxClipboard : public wxClipboard {
+ public: ~EwxClipboard() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxClipboard() : wxClipboard() {};
+};
+
+class EwxSplitterWindow : public wxSplitterWindow {
+ public: ~EwxSplitterWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxSplitterWindow(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxSplitterWindow(parent,id,pos,size,style) {};
+ EwxSplitterWindow() : wxSplitterWindow() {};
+};
+
+class EwxHtmlWindow : public wxHtmlWindow {
+ public: ~EwxHtmlWindow() {((WxeApp *)wxTheApp)->clearPtr(this);};
+ EwxHtmlWindow(wxWindow * parent,wxWindowID id,const wxPoint& pos,const wxSize& size,long style) : wxHtmlWindow(parent,id,pos,size,style) {};
+ EwxHtmlWindow() : wxHtmlWindow() {};
+};
+
+void WxeApp::delete_object(void *ptr, wxeRefData *refd) {
+ switch(refd->type) {
+ case 24: delete (wxGridCellBoolRenderer *) ptr; break;
+ case 25: delete (wxGridCellBoolEditor *) ptr; break;
+ case 26: delete (wxGridCellFloatRenderer *) ptr; break;
+ case 27: delete (wxGridCellFloatEditor *) ptr; break;
+ case 28: delete (wxGridCellStringRenderer *) ptr; break;
+ case 29: delete (wxGridCellTextEditor *) ptr; break;
+ case 30: delete (wxGridCellChoiceEditor *) ptr; break;
+ case 31: delete (wxGridCellNumberRenderer *) ptr; break;
+ case 32: delete (wxGridCellNumberEditor *) ptr; break;
+ case 61: delete (wxIconBundle *) ptr; break;
+ case 69: delete (wxAcceleratorEntry *) ptr; break;
+ case 70: /* delete (wxCaret *) ptr;These objects must be deleted by owner object */ break;
+ case 72: delete (wxSizerFlags *) ptr; break;
+ case 88: /* delete (wxCalendarDateAttr *) ptr;These objects must be deleted by owner object */ break;
+ case 102: delete (wxTextAttr *) ptr; break;
+ case 154: delete (wxAuiPaneInfo *) ptr; break;
+ case 211: /* delete (wxFileDataObject *) ptr;These objects must be deleted by owner object */ break;
+ case 212: /* delete (wxTextDataObject *) ptr;These objects must be deleted by owner object */ break;
+ case 213: /* delete (wxBitmapDataObject *) ptr;These objects must be deleted by owner object */ break;
+ case 222: delete (wxLogNull *) ptr; break;
+ default: delete (wxObject *) ptr;
+}}
+
diff --git a/lib/wx/c_src/gen/wxe_events.cpp b/lib/wx/c_src/gen/wxe_events.cpp
new file mode 100644
index 0000000000..f15754a072
--- /dev/null
+++ b/lib/wx/c_src/gen/wxe_events.cpp
@@ -0,0 +1,828 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+
+/***** This file is generated do not edit ****/
+
+#include <wx/wx.h>
+#include "../wxe_impl.h"
+
+#include "wxe_macros.h"
+#include "../wxe_events.h"
+
+#include "../wxe_return.h"
+
+wxeEtype::wxeEtype(const char *name, int Id) {eName = name;cID = Id;}
+
+WX_DECLARE_HASH_MAP(int, wxeEtype*, wxIntegerHash, wxIntegerEqual, wxeETmap );
+
+wxeETmap etmap;
+
+int wxeEventTypeFromAtom(char *etype_atom) {
+ wxeETmap::iterator it;
+ for(it = etmap.begin(); it != etmap.end(); ++it) {
+ wxeEtype * value = it->second;
+ if(strcmp(value->eName, etype_atom) == 0) {
+ if(it->first > wxEVT_USER_FIRST) {
+ return it->first - wxEVT_USER_FIRST;
+ } else {
+ return it->first;
+ }
+ }
+ }
+ return -1;
+}
+
+void initEventTable()
+{
+ struct { int ev_type; int class_id; const char * ev_name;} event_types[] =
+ {
+ {wxEVT_NULL, 0, "null"},
+ {wxEVT_COMMAND_BUTTON_CLICKED, 163, "command_button_clicked"},
+ {wxEVT_COMMAND_CHECKBOX_CLICKED, 163, "command_checkbox_clicked"},
+ {wxEVT_COMMAND_CHOICE_SELECTED, 163, "command_choice_selected"},
+ {wxEVT_COMMAND_LISTBOX_SELECTED, 163, "command_listbox_selected"},
+ {wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 163, "command_listbox_doubleclicked"},
+ {wxEVT_COMMAND_TEXT_UPDATED, 163, "command_text_updated"},
+ {wxEVT_COMMAND_TEXT_ENTER, 163, "command_text_enter"},
+ {wxEVT_COMMAND_MENU_SELECTED, 163, "command_menu_selected"},
+ {wxEVT_COMMAND_SLIDER_UPDATED, 163, "command_slider_updated"},
+ {wxEVT_COMMAND_RADIOBOX_SELECTED, 163, "command_radiobox_selected"},
+ {wxEVT_COMMAND_RADIOBUTTON_SELECTED, 163, "command_radiobutton_selected"},
+ {wxEVT_COMMAND_SCROLLBAR_UPDATED, 163, "command_scrollbar_updated"},
+ {wxEVT_COMMAND_VLBOX_SELECTED, 163, "command_vlbox_selected"},
+ {wxEVT_COMMAND_COMBOBOX_SELECTED, 163, "command_combobox_selected"},
+ {wxEVT_COMMAND_TOOL_RCLICKED, 163, "command_tool_rclicked"},
+ {wxEVT_COMMAND_TOOL_ENTER, 163, "command_tool_enter"},
+ {wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 163, "command_checklistbox_toggled"},
+ {wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 163, "command_togglebutton_clicked"},
+ {wxEVT_COMMAND_LEFT_CLICK, 163, "command_left_click"},
+ {wxEVT_COMMAND_LEFT_DCLICK, 163, "command_left_dclick"},
+ {wxEVT_COMMAND_RIGHT_CLICK, 163, "command_right_click"},
+ {wxEVT_COMMAND_SET_FOCUS, 163, "command_set_focus"},
+ {wxEVT_COMMAND_KILL_FOCUS, 163, "command_kill_focus"},
+ {wxEVT_COMMAND_ENTER, 163, "command_enter"},
+ {wxEVT_SCROLL_TOP, 164, "scroll_top"},
+ {wxEVT_SCROLL_BOTTOM, 164, "scroll_bottom"},
+ {wxEVT_SCROLL_LINEUP, 164, "scroll_lineup"},
+ {wxEVT_SCROLL_LINEDOWN, 164, "scroll_linedown"},
+ {wxEVT_SCROLL_PAGEUP, 164, "scroll_pageup"},
+ {wxEVT_SCROLL_PAGEDOWN, 164, "scroll_pagedown"},
+ {wxEVT_SCROLL_THUMBTRACK, 164, "scroll_thumbtrack"},
+ {wxEVT_SCROLL_THUMBRELEASE, 164, "scroll_thumbrelease"},
+ {wxEVT_SCROLL_CHANGED, 164, "scroll_changed"},
+ {wxEVT_SCROLLWIN_TOP, 165, "scrollwin_top"},
+ {wxEVT_SCROLLWIN_BOTTOM, 165, "scrollwin_bottom"},
+ {wxEVT_SCROLLWIN_LINEUP, 165, "scrollwin_lineup"},
+ {wxEVT_SCROLLWIN_LINEDOWN, 165, "scrollwin_linedown"},
+ {wxEVT_SCROLLWIN_PAGEUP, 165, "scrollwin_pageup"},
+ {wxEVT_SCROLLWIN_PAGEDOWN, 165, "scrollwin_pagedown"},
+ {wxEVT_SCROLLWIN_THUMBTRACK, 165, "scrollwin_thumbtrack"},
+ {wxEVT_SCROLLWIN_THUMBRELEASE, 165, "scrollwin_thumbrelease"},
+ {wxEVT_LEFT_DOWN, 166, "left_down"},
+ {wxEVT_LEFT_UP, 166, "left_up"},
+ {wxEVT_MIDDLE_DOWN, 166, "middle_down"},
+ {wxEVT_MIDDLE_UP, 166, "middle_up"},
+ {wxEVT_RIGHT_DOWN, 166, "right_down"},
+ {wxEVT_RIGHT_UP, 166, "right_up"},
+ {wxEVT_MOTION, 166, "motion"},
+ {wxEVT_ENTER_WINDOW, 166, "enter_window"},
+ {wxEVT_LEAVE_WINDOW, 166, "leave_window"},
+ {wxEVT_LEFT_DCLICK, 166, "left_dclick"},
+ {wxEVT_MIDDLE_DCLICK, 166, "middle_dclick"},
+ {wxEVT_RIGHT_DCLICK, 166, "right_dclick"},
+ {wxEVT_MOUSEWHEEL, 166, "mousewheel"},
+ {wxEVT_NC_LEFT_DOWN, 166, "nc_left_down"},
+ {wxEVT_NC_LEFT_UP, 166, "nc_left_up"},
+ {wxEVT_NC_MIDDLE_DOWN, 166, "nc_middle_down"},
+ {wxEVT_NC_MIDDLE_UP, 166, "nc_middle_up"},
+ {wxEVT_NC_RIGHT_DOWN, 166, "nc_right_down"},
+ {wxEVT_NC_RIGHT_UP, 166, "nc_right_up"},
+ {wxEVT_NC_MOTION, 166, "nc_motion"},
+ {wxEVT_NC_ENTER_WINDOW, 166, "nc_enter_window"},
+ {wxEVT_NC_LEAVE_WINDOW, 166, "nc_leave_window"},
+ {wxEVT_NC_LEFT_DCLICK, 166, "nc_left_dclick"},
+ {wxEVT_NC_MIDDLE_DCLICK, 166, "nc_middle_dclick"},
+ {wxEVT_NC_RIGHT_DCLICK, 166, "nc_right_dclick"},
+ {wxEVT_SET_CURSOR, 167, "set_cursor"},
+ {wxEVT_CHAR, 168, "char"},
+ {wxEVT_CHAR_HOOK, 168, "char_hook"},
+ {wxEVT_KEY_DOWN, 168, "key_down"},
+ {wxEVT_KEY_UP, 168, "key_up"},
+ {wxEVT_SIZE, 169, "size"},
+ {wxEVT_MOVE, 170, "move"},
+ {wxEVT_PAINT, 171, "paint"},
+ {wxEVT_PAINT_ICON, 171, "paint_icon"},
+ {wxEVT_NC_PAINT, 172, "nc_paint"},
+ {wxEVT_ERASE_BACKGROUND, 173, "erase_background"},
+ {wxEVT_SET_FOCUS, 174, "set_focus"},
+ {wxEVT_KILL_FOCUS, 174, "kill_focus"},
+ {wxEVT_CHILD_FOCUS, 175, "child_focus"},
+ {wxEVT_MENU_OPEN, 176, "menu_open"},
+ {wxEVT_MENU_CLOSE, 176, "menu_close"},
+ {wxEVT_MENU_HIGHLIGHT, 176, "menu_highlight"},
+ {wxEVT_CLOSE_WINDOW, 177, "close_window"},
+ {wxEVT_END_SESSION, 177, "end_session"},
+ {wxEVT_QUERY_END_SESSION, 177, "query_end_session"},
+ {wxEVT_SHOW, 178, "show"},
+ {wxEVT_ICONIZE, 179, "iconize"},
+ {wxEVT_MAXIMIZE, 180, "maximize"},
+ {wxEVT_JOY_BUTTON_DOWN, 181, "joy_button_down"},
+ {wxEVT_JOY_BUTTON_UP, 181, "joy_button_up"},
+ {wxEVT_JOY_MOVE, 181, "joy_move"},
+ {wxEVT_JOY_ZMOVE, 181, "joy_zmove"},
+ {wxEVT_UPDATE_UI, 182, "update_ui"},
+ {wxEVT_SYS_COLOUR_CHANGED, 183, "sys_colour_changed"},
+ {wxEVT_MOUSE_CAPTURE_CHANGED, 184, "mouse_capture_changed"},
+ {wxEVT_DISPLAY_CHANGED, 185, "display_changed"},
+ {wxEVT_PALETTE_CHANGED, 186, "palette_changed"},
+ {wxEVT_QUERY_NEW_PALETTE, 187, "query_new_palette"},
+ {wxEVT_NAVIGATION_KEY, 188, "navigation_key"},
+ {wxEVT_CREATE, 189, "create"},
+ {wxEVT_DESTROY, 190, "destroy"},
+ {wxEVT_HELP, 191, "help"},
+ {wxEVT_DETAILED_HELP, 191, "detailed_help"},
+ {wxEVT_CONTEXT_MENU, 192, "context_menu"},
+ {wxEVT_IDLE, 193, "idle"},
+ {wxEVT_GRID_CELL_LEFT_CLICK, 194, "grid_cell_left_click"},
+ {wxEVT_GRID_CELL_RIGHT_CLICK, 194, "grid_cell_right_click"},
+ {wxEVT_GRID_CELL_LEFT_DCLICK, 194, "grid_cell_left_dclick"},
+ {wxEVT_GRID_CELL_RIGHT_DCLICK, 194, "grid_cell_right_dclick"},
+ {wxEVT_GRID_LABEL_LEFT_CLICK, 194, "grid_label_left_click"},
+ {wxEVT_GRID_LABEL_RIGHT_CLICK, 194, "grid_label_right_click"},
+ {wxEVT_GRID_LABEL_LEFT_DCLICK, 194, "grid_label_left_dclick"},
+ {wxEVT_GRID_LABEL_RIGHT_DCLICK, 194, "grid_label_right_dclick"},
+ {wxEVT_GRID_ROW_SIZE, 194, "grid_row_size"},
+ {wxEVT_GRID_COL_SIZE, 194, "grid_col_size"},
+ {wxEVT_GRID_RANGE_SELECT, 194, "grid_range_select"},
+ {wxEVT_GRID_CELL_CHANGE, 194, "grid_cell_change"},
+ {wxEVT_GRID_SELECT_CELL, 194, "grid_select_cell"},
+ {wxEVT_GRID_EDITOR_SHOWN, 194, "grid_editor_shown"},
+ {wxEVT_GRID_EDITOR_HIDDEN, 194, "grid_editor_hidden"},
+ {wxEVT_GRID_EDITOR_CREATED, 194, "grid_editor_created"},
+ {wxEVT_GRID_CELL_BEGIN_DRAG, 194, "grid_cell_begin_drag"},
+ {wxEVT_SASH_DRAGGED, 196, "sash_dragged"},
+ {wxEVT_COMMAND_LIST_BEGIN_DRAG, 197, "command_list_begin_drag"},
+ {wxEVT_COMMAND_LIST_BEGIN_RDRAG, 197, "command_list_begin_rdrag"},
+ {wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 197, "command_list_begin_label_edit"},
+ {wxEVT_COMMAND_LIST_END_LABEL_EDIT, 197, "command_list_end_label_edit"},
+ {wxEVT_COMMAND_LIST_DELETE_ITEM, 197, "command_list_delete_item"},
+ {wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 197, "command_list_delete_all_items"},
+ {wxEVT_COMMAND_LIST_KEY_DOWN, 197, "command_list_key_down"},
+ {wxEVT_COMMAND_LIST_INSERT_ITEM, 197, "command_list_insert_item"},
+ {wxEVT_COMMAND_LIST_COL_CLICK, 197, "command_list_col_click"},
+ {wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 197, "command_list_col_right_click"},
+ {wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 197, "command_list_col_begin_drag"},
+ {wxEVT_COMMAND_LIST_COL_DRAGGING, 197, "command_list_col_dragging"},
+ {wxEVT_COMMAND_LIST_COL_END_DRAG, 197, "command_list_col_end_drag"},
+ {wxEVT_COMMAND_LIST_ITEM_SELECTED, 197, "command_list_item_selected"},
+ {wxEVT_COMMAND_LIST_ITEM_DESELECTED, 197, "command_list_item_deselected"},
+ {wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 197, "command_list_item_right_click"},
+ {wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 197, "command_list_item_middle_click"},
+ {wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 197, "command_list_item_activated"},
+ {wxEVT_COMMAND_LIST_ITEM_FOCUSED, 197, "command_list_item_focused"},
+ {wxEVT_COMMAND_LIST_CACHE_HINT, 197, "command_list_cache_hint"},
+ {wxEVT_DATE_CHANGED, 198, "date_changed"},
+ {wxEVT_CALENDAR_SEL_CHANGED, 199, "calendar_sel_changed"},
+ {wxEVT_CALENDAR_DAY_CHANGED, 199, "calendar_day_changed"},
+ {wxEVT_CALENDAR_MONTH_CHANGED, 199, "calendar_month_changed"},
+ {wxEVT_CALENDAR_YEAR_CHANGED, 199, "calendar_year_changed"},
+ {wxEVT_CALENDAR_DOUBLECLICKED, 199, "calendar_doubleclicked"},
+ {wxEVT_CALENDAR_WEEKDAY_CLICKED, 199, "calendar_weekday_clicked"},
+ {wxEVT_COMMAND_FILEPICKER_CHANGED, 200, "command_filepicker_changed"},
+ {wxEVT_COMMAND_DIRPICKER_CHANGED, 200, "command_dirpicker_changed"},
+ {wxEVT_COMMAND_COLOURPICKER_CHANGED, 201, "command_colourpicker_changed"},
+ {wxEVT_COMMAND_FONTPICKER_CHANGED, 202, "command_fontpicker_changed"},
+ {wxEVT_STC_CHANGE, 203, "stc_change"},
+ {wxEVT_STC_STYLENEEDED, 203, "stc_styleneeded"},
+ {wxEVT_STC_CHARADDED, 203, "stc_charadded"},
+ {wxEVT_STC_SAVEPOINTREACHED, 203, "stc_savepointreached"},
+ {wxEVT_STC_SAVEPOINTLEFT, 203, "stc_savepointleft"},
+ {wxEVT_STC_ROMODIFYATTEMPT, 203, "stc_romodifyattempt"},
+ {wxEVT_STC_KEY, 203, "stc_key"},
+ {wxEVT_STC_DOUBLECLICK, 203, "stc_doubleclick"},
+ {wxEVT_STC_UPDATEUI, 203, "stc_updateui"},
+ {wxEVT_STC_MODIFIED, 203, "stc_modified"},
+ {wxEVT_STC_MACRORECORD, 203, "stc_macrorecord"},
+ {wxEVT_STC_MARGINCLICK, 203, "stc_marginclick"},
+ {wxEVT_STC_NEEDSHOWN, 203, "stc_needshown"},
+ {wxEVT_STC_PAINTED, 203, "stc_painted"},
+ {wxEVT_STC_USERLISTSELECTION, 203, "stc_userlistselection"},
+ {wxEVT_STC_URIDROPPED, 203, "stc_uridropped"},
+ {wxEVT_STC_DWELLSTART, 203, "stc_dwellstart"},
+ {wxEVT_STC_DWELLEND, 203, "stc_dwellend"},
+ {wxEVT_STC_START_DRAG, 203, "stc_start_drag"},
+ {wxEVT_STC_DRAG_OVER, 203, "stc_drag_over"},
+ {wxEVT_STC_DO_DROP, 203, "stc_do_drop"},
+ {wxEVT_STC_ZOOM, 203, "stc_zoom"},
+ {wxEVT_STC_HOTSPOT_CLICK, 203, "stc_hotspot_click"},
+ {wxEVT_STC_HOTSPOT_DCLICK, 203, "stc_hotspot_dclick"},
+ {wxEVT_STC_CALLTIP_CLICK, 203, "stc_calltip_click"},
+ {wxEVT_STC_AUTOCOMP_SELECTION, 203, "stc_autocomp_selection"},
+ {wxEVT_COMMAND_TREE_BEGIN_DRAG, 208, "command_tree_begin_drag"},
+ {wxEVT_COMMAND_TREE_BEGIN_RDRAG, 208, "command_tree_begin_rdrag"},
+ {wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 208, "command_tree_begin_label_edit"},
+ {wxEVT_COMMAND_TREE_END_LABEL_EDIT, 208, "command_tree_end_label_edit"},
+ {wxEVT_COMMAND_TREE_DELETE_ITEM, 208, "command_tree_delete_item"},
+ {wxEVT_COMMAND_TREE_GET_INFO, 208, "command_tree_get_info"},
+ {wxEVT_COMMAND_TREE_SET_INFO, 208, "command_tree_set_info"},
+ {wxEVT_COMMAND_TREE_ITEM_EXPANDED, 208, "command_tree_item_expanded"},
+ {wxEVT_COMMAND_TREE_ITEM_EXPANDING, 208, "command_tree_item_expanding"},
+ {wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 208, "command_tree_item_collapsed"},
+ {wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 208, "command_tree_item_collapsing"},
+ {wxEVT_COMMAND_TREE_SEL_CHANGED, 208, "command_tree_sel_changed"},
+ {wxEVT_COMMAND_TREE_SEL_CHANGING, 208, "command_tree_sel_changing"},
+ {wxEVT_COMMAND_TREE_KEY_DOWN, 208, "command_tree_key_down"},
+ {wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 208, "command_tree_item_activated"},
+ {wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 208, "command_tree_item_right_click"},
+ {wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 208, "command_tree_item_middle_click"},
+ {wxEVT_COMMAND_TREE_END_DRAG, 208, "command_tree_end_drag"},
+ {wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 208, "command_tree_state_image_click"},
+ {wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 208, "command_tree_item_gettooltip"},
+ {wxEVT_COMMAND_TREE_ITEM_MENU, 208, "command_tree_item_menu"},
+ {wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 209, "command_notebook_page_changed"},
+ {wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 209, "command_notebook_page_changing"},
+ {wxEVT_COMMAND_SPINCTRL_UPDATED, 215, "command_spinctrl_updated"},
+ {wxEVT_SCROLL_LINEUP + wxEVT_USER_FIRST, 164, "spin_up"},
+ {wxEVT_SCROLL_LINEDOWN + wxEVT_USER_FIRST, 164, "spin_down"},
+ {wxEVT_SCROLL_THUMBTRACK + wxEVT_USER_FIRST, 164, "spin"},
+ {wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 217, "command_splitter_sash_pos_changed"},
+ {wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 217, "command_splitter_sash_pos_changing"},
+ {wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 217, "command_splitter_doubleclicked"},
+ {wxEVT_COMMAND_SPLITTER_UNSPLIT, 217, "command_splitter_unsplit"},
+ {wxEVT_COMMAND_HTML_LINK_CLICKED, 219, "command_html_link_clicked"},
+ {wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, 220, "command_auinotebook_page_close"},
+ {wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 220, "command_auinotebook_page_changed"},
+ {wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 220, "command_auinotebook_page_changing"},
+ {wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 220, "command_auinotebook_button"},
+ {wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 220, "command_auinotebook_begin_drag"},
+ {wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 220, "command_auinotebook_end_drag"},
+ {wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 220, "command_auinotebook_drag_motion"},
+ {wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, 220, "command_auinotebook_allow_dnd"},
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, 220, "command_auinotebook_tab_middle_down"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, 220, "command_auinotebook_tab_middle_up"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, 220, "command_auinotebook_tab_right_down"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, 220, "command_auinotebook_tab_right_up"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED, 220, "command_auinotebook_page_closed"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE, 220, "command_auinotebook_drag_done"},
+#endif
+#if wxCHECK_VERSION(2,8,5)
+ {wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, 220, "command_auinotebook_bg_dclick"},
+#endif
+ {wxEVT_AUI_PANE_BUTTON, 221, "aui_pane_button"},
+ {wxEVT_AUI_PANE_CLOSE, 221, "aui_pane_close"},
+ {wxEVT_AUI_PANE_MAXIMIZE, 221, "aui_pane_maximize"},
+ {wxEVT_AUI_PANE_RESTORE, 221, "aui_pane_restore"},
+ {wxEVT_AUI_RENDER, 221, "aui_render"},
+ {wxEVT_AUI_FIND_MANAGER, 221, "aui_find_manager"},
+ {-1, 0, }
+ };
+ for(int i=0; event_types[i].ev_type != -1; i++) {
+ if(NULL == etmap[event_types[i].ev_type]) {
+ etmap[event_types[i].ev_type] =
+ new wxeEtype(event_types[i].ev_name, event_types[i].class_id);
+ } else {
+ wxeEtype *prev = etmap[event_types[i].ev_type];
+ wxString msg(wxT("Duplicate event defs: "));
+ msg += wxString::FromAscii(event_types[i].ev_name);
+ msg += wxString::Format(wxT(" %d "), event_types[i].class_id);
+ msg += wxString::FromAscii(prev->eName);
+ msg += wxString::Format(wxT(" %d"), prev->cID);
+ send_msg("internal_error", &msg);
+ }
+ }
+}
+
+void wxeEvtListener::forward(wxEvent& event)
+{
+#ifdef DEBUG
+ if(!sendevent(&event, port))
+ fprintf(stderr, "Couldn't send event!\r\n");
+#else
+sendevent(&event, port);
+#endif
+}
+
+int getRef(void* ptr, wxeMemEnv* memenv)
+{
+ WxeApp * app = (WxeApp *) wxTheApp;
+ return app->getRef(ptr,memenv);
+}
+
+bool sendevent(wxEvent *event, ErlDrvPort port)
+{
+ int send_res ;
+ char * evClass = NULL;
+ wxMBConvUTF32 UTFconverter;
+ wxeEtype *Etype = etmap[event->GetEventType()];
+ wxeCallbackData *cb = (wxeCallbackData *)event->m_callbackUserData;
+ WxeApp * app = (WxeApp *) wxTheApp;
+ wxeMemEnv *memenv = app->getMemEnv(port);
+ if(!memenv) return 0;
+
+ wxeReturn rt = wxeReturn(port, cb->listener);
+
+ rt.addAtom((char*)"wx");
+ rt.addInt((int) event->GetId());
+ rt.addRef(getRef((void *)(cb->obj), memenv), cb->class_name);
+ rt.addExt2Term(cb->user_data);
+ switch(Etype->cID) {
+case 163: {// wxCommandEvent
+ wxCommandEvent * ev = (wxCommandEvent *) event;
+ evClass = (char*)"wxCommandEvent";
+ rt.addAtom((char*)"wxCommand");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->GetString());
+ rt.addInt(ev->GetInt());
+ rt.addInt(ev->GetExtraLong());
+ rt.addTupleCount(5);
+ break;
+}
+case 164: {// wxScrollEvent or wxSpinEvent
+ if(event->IsKindOf(CLASSINFO(wxScrollEvent))) {
+ wxScrollEvent * ev = (wxScrollEvent *) event;
+ evClass = (char*)"wxScrollEvent";
+ rt.addAtom((char*)"wxScroll");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetInt());
+ rt.addInt(ev->GetExtraLong());
+ rt.addTupleCount(4);
+ } else {
+ Etype = etmap[event->GetEventType() + wxEVT_USER_FIRST];
+ wxSpinEvent * ev = (wxSpinEvent *) event;
+ evClass = (char*)"wxSpinEvent";
+ rt.addAtom((char*)"wxSpin");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetInt());
+ rt.addTupleCount(3);
+ }
+ break;
+}
+case 165: {// wxScrollWinEvent
+ evClass = (char*)"wxScrollWinEvent";
+ rt.addAtom((char*)"wxScrollWin");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 166: {// wxMouseEvent
+ wxMouseEvent * ev = (wxMouseEvent *) event;
+ evClass = (char*)"wxMouseEvent";
+ rt.addAtom((char*)"wxMouse");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->m_x);
+ rt.addInt(ev->m_y);
+ rt.addBool(ev->m_leftDown);
+ rt.addBool(ev->m_middleDown);
+ rt.addBool(ev->m_rightDown);
+ rt.addBool(ev->m_controlDown);
+ rt.addBool(ev->m_shiftDown);
+ rt.addBool(ev->m_altDown);
+ rt.addBool(ev->m_metaDown);
+ rt.addInt(ev->m_wheelRotation);
+ rt.addInt(ev->m_wheelDelta);
+ rt.addInt(ev->m_linesPerAction);
+ rt.addTupleCount(14);
+ break;
+}
+case 167: {// wxSetCursorEvent
+ evClass = (char*)"wxSetCursorEvent";
+ rt.addAtom((char*)"wxSetCursor");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 168: {// wxKeyEvent
+ wxKeyEvent * ev = (wxKeyEvent *) event;
+ evClass = (char*)"wxKeyEvent";
+ rt.addAtom((char*)"wxKey");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->m_x);
+ rt.addInt(ev->m_y);
+ rt.addInt(ev->m_keyCode);
+ rt.addBool(ev->m_controlDown);
+ rt.addBool(ev->m_shiftDown);
+ rt.addBool(ev->m_altDown);
+ rt.addBool(ev->m_metaDown);
+ rt.addBool(ev->m_scanCode);
+ rt.addInt(ev->m_uniChar);
+ rt.addUint(ev->m_rawCode);
+ rt.addUint(ev->m_rawFlags);
+ rt.addTupleCount(13);
+ break;
+}
+case 169: {// wxSizeEvent
+ wxSizeEvent * ev = (wxSizeEvent *) event;
+ evClass = (char*)"wxSizeEvent";
+ rt.addAtom((char*)"wxSize");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->m_size);
+ rt.add(ev->m_rect);
+ rt.addTupleCount(4);
+ break;
+}
+case 170: {// wxMoveEvent
+ evClass = (char*)"wxMoveEvent";
+ rt.addAtom((char*)"wxMove");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 171: {// wxPaintEvent
+ evClass = (char*)"wxPaintEvent";
+ rt.addAtom((char*)"wxPaint");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 172: {// wxNcPaintEvent
+ evClass = (char*)"wxNcPaintEvent";
+ rt.addAtom((char*)"wxNcPaint");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 173: {// wxEraseEvent
+ wxEraseEvent * ev = (wxEraseEvent *) event;
+ wxDC * GetDC = ev->GetDC();
+ evClass = (char*)"wxEraseEvent";
+ rt.addAtom((char*)"wxErase");
+ rt.addAtom(Etype->eName);
+ rt.addRef(getRef((void *)GetDC,memenv), "wxDC");
+ rt.addTupleCount(3);
+ break;
+}
+case 174: {// wxFocusEvent
+ evClass = (char*)"wxFocusEvent";
+ rt.addAtom((char*)"wxFocus");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 175: {// wxChildFocusEvent
+ evClass = (char*)"wxChildFocusEvent";
+ rt.addAtom((char*)"wxChildFocus");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 176: {// wxMenuEvent
+ evClass = (char*)"wxMenuEvent";
+ rt.addAtom((char*)"wxMenu");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 177: {// wxCloseEvent
+ evClass = (char*)"wxCloseEvent";
+ rt.addAtom((char*)"wxClose");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 178: {// wxShowEvent
+ evClass = (char*)"wxShowEvent";
+ rt.addAtom((char*)"wxShow");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 179: {// wxIconizeEvent
+ evClass = (char*)"wxIconizeEvent";
+ rt.addAtom((char*)"wxIconize");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 180: {// wxMaximizeEvent
+ evClass = (char*)"wxMaximizeEvent";
+ rt.addAtom((char*)"wxMaximize");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 181: {// wxJoystickEvent
+ evClass = (char*)"wxJoystickEvent";
+ rt.addAtom((char*)"wxJoystick");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 182: {// wxUpdateUIEvent
+ evClass = (char*)"wxUpdateUIEvent";
+ rt.addAtom((char*)"wxUpdateUI");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 183: {// wxSysColourChangedEvent
+ evClass = (char*)"wxSysColourChangedEvent";
+ rt.addAtom((char*)"wxSysColourChanged");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 184: {// wxMouseCaptureChangedEvent
+ evClass = (char*)"wxMouseCaptureChangedEvent";
+ rt.addAtom((char*)"wxMouseCaptureChanged");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 185: {// wxDisplayChangedEvent
+ evClass = (char*)"wxDisplayChangedEvent";
+ rt.addAtom((char*)"wxDisplayChanged");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 186: {// wxPaletteChangedEvent
+ evClass = (char*)"wxPaletteChangedEvent";
+ rt.addAtom((char*)"wxPaletteChanged");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 187: {// wxQueryNewPaletteEvent
+ evClass = (char*)"wxQueryNewPaletteEvent";
+ rt.addAtom((char*)"wxQueryNewPalette");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 188: {// wxNavigationKeyEvent
+ wxNavigationKeyEvent * ev = (wxNavigationKeyEvent *) event;
+ evClass = (char*)"wxNavigationKeyEvent";
+ rt.addAtom((char*)"wxNavigationKey");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->m_flags);
+ rt.addRef(getRef((void *)ev->m_focus,memenv), "wxWindow");
+ rt.addTupleCount(4);
+ break;
+}
+case 189: {// wxWindowCreateEvent
+ evClass = (char*)"wxWindowCreateEvent";
+ rt.addAtom((char*)"wxWindowCreate");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 190: {// wxWindowDestroyEvent
+ evClass = (char*)"wxWindowDestroyEvent";
+ rt.addAtom((char*)"wxWindowDestroy");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 191: {// wxHelpEvent
+ evClass = (char*)"wxHelpEvent";
+ rt.addAtom((char*)"wxHelp");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 192: {// wxContextMenuEvent
+ evClass = (char*)"wxContextMenuEvent";
+ rt.addAtom((char*)"wxContextMenu");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 193: {// wxIdleEvent
+ evClass = (char*)"wxIdleEvent";
+ rt.addAtom((char*)"wxIdle");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 194: {// wxGridEvent
+ wxGridEvent * ev = (wxGridEvent *) event;
+ evClass = (char*)"wxGridEvent";
+ rt.addAtom((char*)"wxGrid");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetRow());
+ rt.addInt(ev->GetCol());
+ rt.addInt(ev->GetPosition().x);
+ rt.addInt(ev->GetPosition().y);
+ rt.addBool(ev->Selecting());
+ rt.addBool(ev->ControlDown());
+ rt.addBool(ev->MetaDown());
+ rt.addBool(ev->ShiftDown());
+ rt.addBool(ev->AltDown());
+ rt.addTupleCount(11);
+ break;
+}
+case 196: {// wxSashEvent
+ wxSashEvent * ev = (wxSashEvent *) event;
+ evClass = (char*)"wxSashEvent";
+ rt.addAtom((char*)"wxSash");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetEdge());
+ rt.add(ev->GetDragRect());
+ rt.addInt(ev->GetDragStatus());
+ rt.addTupleCount(5);
+ break;
+}
+case 197: {// wxListEvent
+ wxListEvent * ev = (wxListEvent *) event;
+ evClass = (char*)"wxListEvent";
+ rt.addAtom((char*)"wxList");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetKeyCode());
+ rt.addInt(ev->m_oldItemIndex);
+ rt.addInt(ev->GetIndex());
+ rt.addInt(ev->m_col);
+ rt.add(ev->GetPoint());
+ rt.addTupleCount(7);
+ break;
+}
+case 198: {// wxDateEvent
+ wxDateEvent * ev = (wxDateEvent *) event;
+ evClass = (char*)"wxDateEvent";
+ rt.addAtom((char*)"wxDate");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->GetDate());
+ rt.addTupleCount(3);
+ break;
+}
+case 199: {// wxCalendarEvent
+ evClass = (char*)"wxCalendarEvent";
+ rt.addAtom((char*)"wxCalendar");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 200: {// wxFileDirPickerEvent
+ wxFileDirPickerEvent * ev = (wxFileDirPickerEvent *) event;
+ evClass = (char*)"wxFileDirPickerEvent";
+ rt.addAtom((char*)"wxFileDirPicker");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->GetPath());
+ rt.addTupleCount(3);
+ break;
+}
+case 201: {// wxColourPickerEvent
+ wxColourPickerEvent * ev = (wxColourPickerEvent *) event;
+ evClass = (char*)"wxColourPickerEvent";
+ rt.addAtom((char*)"wxColourPicker");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->GetColour());
+ rt.addTupleCount(3);
+ break;
+}
+case 202: {// wxFontPickerEvent
+ wxFontPickerEvent * ev = (wxFontPickerEvent *) event;
+ wxFont * GetFont = new wxFont(ev->GetFont());
+ app->newPtr((void *) GetFont,3, memenv);
+ evClass = (char*)"wxFontPickerEvent";
+ rt.addAtom((char*)"wxFontPicker");
+ rt.addAtom(Etype->eName);
+ rt.addRef(getRef((void *)GetFont,memenv), "wxFont");
+ rt.addTupleCount(3);
+ break;
+}
+case 203: {// wxStyledTextEvent
+ wxStyledTextEvent * ev = (wxStyledTextEvent *) event;
+ evClass = (char*)"wxStyledTextEvent";
+ rt.addAtom((char*)"wxStyledText");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetPosition());
+ rt.addInt(ev->GetKey());
+ rt.addInt(ev->GetModifiers());
+ rt.addInt(ev->GetModificationType());
+ rt.add(ev->GetText());
+ rt.addInt(ev->GetLength());
+ rt.addInt(ev->GetLinesAdded());
+ rt.addInt(ev->GetLine());
+ rt.addInt(ev->GetFoldLevelNow());
+ rt.addInt(ev->GetFoldLevelPrev());
+ rt.addInt(ev->GetMargin());
+ rt.addInt(ev->GetMessage());
+ rt.addInt(ev->GetWParam());
+ rt.addInt(ev->GetLParam());
+ rt.addInt(ev->GetListType());
+ rt.addInt(ev->GetX());
+ rt.addInt(ev->GetY());
+ rt.add(ev->GetDragText());
+ rt.addBool(ev->GetDragAllowMove());
+ rt.addInt(ev->GetDragResult());
+ rt.addTupleCount(22);
+ break;
+}
+case 208: {// wxTreeEvent
+ wxTreeEvent * ev = (wxTreeEvent *) event;
+ evClass = (char*)"wxTreeEvent";
+ rt.addAtom((char*)"wxTree");
+ rt.addAtom(Etype->eName);
+ rt.addRef(getRef((void *)ev->GetItem().m_pItem,memenv), "wxTreeItemId");
+ rt.addRef(getRef((void *)ev->GetOldItem().m_pItem,memenv), "wxTreeItemId");
+ rt.add(ev->GetPoint());
+ rt.addTupleCount(5);
+ break;
+}
+case 209: {// wxNotebookEvent
+ evClass = (char*)"wxNotebookEvent";
+ rt.addAtom((char*)"wxNotebook");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 215: {// wxSpinEvent
+ wxSpinEvent * ev = (wxSpinEvent *) event;
+ evClass = (char*)"wxSpinEvent";
+ rt.addAtom((char*)"wxSpin");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetInt());
+ rt.addTupleCount(3);
+ break;
+}
+case 217: {// wxSplitterEvent
+ evClass = (char*)"wxSplitterEvent";
+ rt.addAtom((char*)"wxSplitter");
+ rt.addAtom(Etype->eName);
+ rt.addTupleCount(2);
+ break;
+}
+case 219: {// wxHtmlLinkEvent
+ wxHtmlLinkEvent * ev = (wxHtmlLinkEvent *) event;
+ evClass = (char*)"wxHtmlLinkEvent";
+ rt.addAtom((char*)"wxHtmlLink");
+ rt.addAtom(Etype->eName);
+ rt.add(ev->GetLinkInfo());
+ rt.addTupleCount(3);
+ break;
+}
+case 220: {// wxAuiNotebookEvent
+ wxAuiNotebookEvent * ev = (wxAuiNotebookEvent *) event;
+ wxAuiNotebook * GetDragSource = ev->GetDragSource();
+ evClass = (char*)"wxAuiNotebookEvent";
+ rt.addAtom((char*)"wxAuiNotebook");
+ rt.addAtom(Etype->eName);
+ rt.addInt(ev->GetOldSelection());
+ rt.addInt(ev->GetSelection());
+ rt.addRef(getRef((void *)GetDragSource,memenv), "wxAuiNotebook");
+ rt.addTupleCount(5);
+ break;
+}
+case 221: {// wxAuiManagerEvent
+ wxAuiManagerEvent * ev = (wxAuiManagerEvent *) event;
+ wxAuiManager * GetManager = ev->GetManager();
+ wxAuiPaneInfo * GetPane = ev->GetPane();
+ wxDC * GetDC = ev->GetDC();
+ evClass = (char*)"wxAuiManagerEvent";
+ rt.addAtom((char*)"wxAuiManager");
+ rt.addAtom(Etype->eName);
+ rt.addRef(getRef((void *)GetManager,memenv), "wxAuiManager");
+ rt.addRef(getRef((void *)GetPane,memenv), "wxAuiPaneInfo");
+ rt.addInt(ev->GetButton());
+ rt.addBool(ev->veto_flag);
+ rt.addBool(ev->canveto_flag);
+ rt.addRef(getRef((void *)GetDC,memenv), "wxDC");
+ rt.addTupleCount(8);
+ break;
+}
+ }
+
+ rt.addTupleCount(5);
+ if(cb->fun_id) {
+ rt.addRef(getRef((void *)event,memenv), evClass);
+ rt.addTupleCount(2);
+ rt.addInt(cb->fun_id);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ pre_callback();
+ send_res = rt.send();
+ if(send_res) handle_event_callback(port, cb->listener);
+ app->clearPtr((void *) event);
+ } else {
+ send_res = rt.send();
+ if(cb->skip) event->Skip();
+ };
+ return send_res;
+ }
diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp
new file mode 100644
index 0000000000..cb662fc91b
--- /dev/null
+++ b/lib/wx/c_src/gen/wxe_funcs.cpp
@@ -0,0 +1,31099 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+
+/***** This file is generated do not edit ****/
+
+#include <wx/wx.h>
+#include "../wxe_impl.h"
+#include "../wxe_events.h"
+#include "../wxe_return.h"
+#include "wxe_macros.h"
+#include "wxe_derived_dest.h"
+
+void WxeApp::wxe_dispatch(wxeCommand& Ecmd)
+{
+ char * bp = Ecmd.buffer;
+ wxeMemEnv *memenv = getMemEnv(Ecmd.port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, Ecmd.caller, true);
+ try {
+ switch (Ecmd.op)
+{
+ case DESTROY_OBJECT: {
+ wxObject *This = (wxObject *) getPtr(bp,memenv); if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This; }
+ } break;
+ case WXE_REGISTER_OBJECT: {
+ registerPid(bp, Ecmd.caller, memenv);
+ rt.addAtom("ok");
+ break;
+ }
+case 98: { // wxeEvtListener::wxeEvtListener
+ wxeEvtListener *Result = new wxeEvtListener(Ecmd.port);
+ rt.addRef(getRef((void *)Result,memenv), "wxeEvtListener");
+ break;
+}
+case 99: { // wxeEvtListener::destroy
+ wxObject *This = (wxObject *) getPtr(bp,memenv);
+ rt.addAtom("ok");
+ delete This;
+ break;
+}
+
+case 100: { // wxEvtHandler::Connect
+ wxeEvtListener *Listener = (wxeEvtListener *) getPtr(bp,memenv); bp += 4;
+ wxEvtHandler *This = (wxEvtHandler *) getPtr(bp, memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ int * lastId = (int *) bp; bp += 4;
+ int * skip = (int *) bp; bp += 4;
+ int * haveUserData = (int *) bp; bp += 4;
+ wxeErlTerm * userData = NULL;
+ int * fun_cb = (int *) bp; bp += 4;
+ int * eventTypeLen = (int *) bp; bp += 4;
+ int * class_nameLen = (int *) bp; bp += 4;
+
+ if(*haveUserData) {
+ userData = new wxeErlTerm(Ecmd.bin[0]);
+ }
+
+ int eventType = wxeEventTypeFromAtom(bp); bp += *eventTypeLen;
+ char *class_name = bp; bp+= *class_nameLen;
+ if(eventType > 0 ) {
+ wxeCallbackData * Evt_cb = new wxeCallbackData(Ecmd.caller,(void *) This,
+ class_name,*fun_cb,
+ *skip, userData);
+ This->Connect((int) *winid,(int) *lastId,eventType,
+ (wxObjectEventFunction)(wxEventFunction) &wxeEvtListener::forward,
+ Evt_cb, Listener);
+ rt.addAtom("ok");
+ } else {
+ rt.addAtom("badarg");
+ rt.addAtom("event_type");
+ rt.addTupleCount(2);
+ }
+ break;
+}
+case 101: { // wxEvtHandler::Disconnect
+ wxeEvtListener *Listener = (wxeEvtListener *) getPtr(bp,memenv); bp += 4;
+ wxEvtHandler *This = (wxEvtHandler *) getPtr(bp, memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ int * lastId = (int *) bp; bp += 4;
+ int * eventTypeLen = (int *) bp; bp += 4;
+
+ int eventType = wxeEventTypeFromAtom(bp); bp += *eventTypeLen;
+ if(eventType > 0) {
+ bool Result = This->Disconnect((int) *winid,(int) *lastId,eventType,
+ (wxObjectEventFunction)(wxEventFunction)
+ &wxeEvtListener::forward,
+ NULL, Listener);
+ rt.addBool(Result);
+ } else {
+ rt.addAtom("badarg");
+ rt.addAtom("event_type");
+ rt.addTupleCount(2);
+ }
+ break;
+}
+
+case wxWindow_new_0: { // wxWindow::wxWindow
+ wxWindow * Result = new EwxWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_new_3: { // wxWindow::wxWindow
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxWindow * Result = new EwxWindow(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_CacheBestSize: { // wxWindow::CacheBestSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->CacheBestSize(size);
+ break;
+}
+case wxWindow_CaptureMouse: { // wxWindow::CaptureMouse
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CaptureMouse();
+ break;
+}
+case wxWindow_Center: { // wxWindow::Center
+ int dir=wxBOTH;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Center(dir);
+ break;
+}
+case wxWindow_CenterOnParent: { // wxWindow::CenterOnParent
+ int dir=wxBOTH;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->CenterOnParent(dir);
+ break;
+}
+case wxWindow_Centre: { // wxWindow::Centre
+ int dir=wxBOTH;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Centre(dir);
+ break;
+}
+case wxWindow_CentreOnParent: { // wxWindow::CentreOnParent
+ int dir=wxBOTH;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->CentreOnParent(dir);
+ break;
+}
+case wxWindow_ClearBackground: { // wxWindow::ClearBackground
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearBackground();
+ break;
+}
+case wxWindow_ClientToScreen_2: { // wxWindow::ClientToScreen
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClientToScreen(x,y);
+ rt.addInt(*x);
+ rt.addInt(*y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxWindow_ClientToScreen_1: { // wxWindow::ClientToScreen
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->ClientToScreen(pt);
+ rt.add(Result);
+ break;
+}
+case wxWindow_Close: { // wxWindow::Close
+ bool force=false;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ force = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Close(force);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_ConvertDialogToPixels: { // wxWindow::ConvertDialogToPixels
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->ConvertDialogToPixels(sz);
+ rt.add(Result);
+ break;
+}
+case wxWindow_ConvertPixelsToDialog: { // wxWindow::ConvertPixelsToDialog
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->ConvertPixelsToDialog(sz);
+ rt.add(Result);
+ break;
+}
+case wxWindow_Destroy: { // wxWindow::Destroy
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Destroy();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_DestroyChildren: { // wxWindow::DestroyChildren
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DestroyChildren();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Disable: { // wxWindow::Disable
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Disable();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Enable: { // wxWindow::Enable
+ bool enable=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Enable(enable);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_FindFocus: { // wxWindow::FindFocus
+ wxWindow * Result = (wxWindow*)wxWindow::FindFocus();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_FindWindow_1_0: { // wxWindow::FindWindow
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->FindWindow((long) *winid);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_FindWindow_1_1: { // wxWindow::FindWindow
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->FindWindow(name);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_FindWindowById: { // wxWindow::FindWindowById
+ const wxWindow * parent=NULL;
+ int * winid = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxWindow * Result = (wxWindow*)wxWindow::FindWindowById((long) *winid,parent);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_FindWindowByName: { // wxWindow::FindWindowByName
+ const wxWindow * parent=NULL;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxWindow * Result = (wxWindow*)wxWindow::FindWindowByName(name,parent);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_FindWindowByLabel: { // wxWindow::FindWindowByLabel
+ const wxWindow * parent=NULL;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxWindow * Result = (wxWindow*)wxWindow::FindWindowByLabel(label,parent);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_Fit: { // wxWindow::Fit
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Fit();
+ break;
+}
+case wxWindow_FitInside: { // wxWindow::FitInside
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->FitInside();
+ break;
+}
+case wxWindow_Freeze: { // wxWindow::Freeze
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Freeze();
+ break;
+}
+case wxWindow_GetAcceleratorTable: { // wxWindow::GetAcceleratorTable
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAcceleratorTable * Result = (wxAcceleratorTable*)This->GetAcceleratorTable();
+ rt.addRef(getRef((void *)Result,memenv), "wxAcceleratorTable");
+ break;
+}
+case wxWindow_GetBackgroundColour: { // wxWindow::GetBackgroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetBackgroundColour();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetBackgroundStyle: { // wxWindow::GetBackgroundStyle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBackgroundStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetBestSize: { // wxWindow::GetBestSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetBestSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetCaret: { // wxWindow::GetCaret
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCaret * Result = (wxCaret*)This->GetCaret();
+ rt.addRef(getRef((void *)Result,memenv), "wxCaret");
+ break;
+}
+case wxWindow_GetCapture: { // wxWindow::GetCapture
+ wxWindow * Result = (wxWindow*)wxWindow::GetCapture();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_GetCharHeight: { // wxWindow::GetCharHeight
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCharHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetCharWidth: { // wxWindow::GetCharWidth
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCharWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetChildren: { // wxWindow::GetChildren
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxWindowList Result = This->GetChildren();
+ int i=0;
+ for(wxWindowList::const_iterator it = Result.begin(); it != Result.end(); ++it) {
+ wxWindow * ResultTmp = *it;
+ rt.addRef(getRef((void *)ResultTmp,memenv), "wxWindow"); i++;}
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxWindow_GetClientSize: { // wxWindow::GetClientSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetClientSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetContainingSizer: { // wxWindow::GetContainingSizer
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizer * Result = (wxSizer*)This->GetContainingSizer();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizer");
+ break;
+}
+case wxWindow_GetCursor: { // wxWindow::GetCursor
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxCursor * Result = &This->GetCursor();
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxWindow_GetDropTarget: { // wxWindow::GetDropTarget
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDropTarget * Result = (wxDropTarget*)This->GetDropTarget();
+ rt.addRef(getRef((void *)Result,memenv), "wxDropTarget");
+ break;
+}
+case wxWindow_GetEventHandler: { // wxWindow::GetEventHandler
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxEvtHandler * Result = (wxEvtHandler*)This->GetEventHandler();
+ rt.addRef(getRef((void *)Result,memenv), "wxEvtHandler");
+ break;
+}
+case wxWindow_GetExtraStyle: { // wxWindow::GetExtraStyle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetExtraStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetFont: { // wxWindow::GetFont
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxWindow_GetForegroundColour: { // wxWindow::GetForegroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetForegroundColour();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetGrandParent: { // wxWindow::GetGrandParent
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetGrandParent();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_GetHandle: { // wxWindow::GetHandle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxUIntPtr * Result = (wxUIntPtr*)This->GetHandle();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetHelpText: { // wxWindow::GetHelpText
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetHelpText();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetId: { // wxWindow::GetId
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindowID Result = This->GetId();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetLabel: { // wxWindow::GetLabel
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetMaxSize: { // wxWindow::GetMaxSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMaxSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetMinSize: { // wxWindow::GetMinSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMinSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetName: { // wxWindow::GetName
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetName();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetParent: { // wxWindow::GetParent
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetParent();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxWindow_GetPosition: { // wxWindow::GetPosition
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetRect: { // wxWindow::GetRect
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetRect();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetScreenPosition: { // wxWindow::GetScreenPosition
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetScreenPosition();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetScreenRect: { // wxWindow::GetScreenRect
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetScreenRect();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetScrollPos: { // wxWindow::GetScrollPos
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollPos((int) *orient);
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetScrollRange: { // wxWindow::GetScrollRange
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollRange((int) *orient);
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetScrollThumb: { // wxWindow::GetScrollThumb
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollThumb((int) *orient);
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetSize: { // wxWindow::GetSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetSizer: { // wxWindow::GetSizer
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizer * Result = (wxSizer*)This->GetSizer();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizer");
+ break;
+}
+case wxWindow_GetTextExtent: { // wxWindow::GetTextExtent
+ int x;
+ int y;
+ int descent;
+ int externalLeading;
+ const wxFont * theFont=(const wxFont *) NULL;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ wxString string = wxString(bp, wxConvUTF8);
+ bp += *stringLen+((8-((0+ *stringLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+theFont = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->GetTextExtent(string,&x,&y,&descent,&externalLeading,theFont);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addInt(descent);
+ rt.addInt(externalLeading);
+ rt.addTupleCount(4);
+ break;
+}
+case wxWindow_GetToolTip: { // wxWindow::GetToolTip
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolTip * Result = (wxToolTip*)This->GetToolTip();
+ rt.addRef(getRef((void *)Result,memenv), "wxToolTip");
+ break;
+}
+case wxWindow_GetUpdateRegion: { // wxWindow::GetUpdateRegion
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxRegion * Result = &This->GetUpdateRegion();
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxWindow_GetVirtualSize: { // wxWindow::GetVirtualSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetVirtualSize();
+ rt.add(Result);
+ break;
+}
+case wxWindow_GetWindowStyleFlag: { // wxWindow::GetWindowStyleFlag
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetWindowStyleFlag();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_GetWindowVariant: { // wxWindow::GetWindowVariant
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWindowVariant();
+ rt.addInt(Result);
+ break;
+}
+case wxWindow_HasCapture: { // wxWindow::HasCapture
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasCapture();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_HasScrollbar: { // wxWindow::HasScrollbar
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasScrollbar((int) *orient);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_HasTransparentBackground: { // wxWindow::HasTransparentBackground
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasTransparentBackground();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Hide: { // wxWindow::Hide
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Hide();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_InheritAttributes: { // wxWindow::InheritAttributes
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InheritAttributes();
+ break;
+}
+case wxWindow_InitDialog: { // wxWindow::InitDialog
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InitDialog();
+ break;
+}
+case wxWindow_InvalidateBestSize: { // wxWindow::InvalidateBestSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InvalidateBestSize();
+ break;
+}
+case wxWindow_IsEnabled: { // wxWindow::IsEnabled
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsExposed_2: { // wxWindow::IsExposed
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsExposed((int) *x,(int) *y);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsExposed_4: { // wxWindow::IsExposed
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsExposed((int) *x,(int) *y,(int) *w,(int) *h);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsExposed_1_0: { // wxWindow::IsExposed
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsExposed(pt);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsExposed_1_1: { // wxWindow::IsExposed
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsExposed(rect);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsRetained: { // wxWindow::IsRetained
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsRetained();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsShown: { // wxWindow::IsShown
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_IsTopLevel: { // wxWindow::IsTopLevel
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsTopLevel();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Layout: { // wxWindow::Layout
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Layout();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_LineDown: { // wxWindow::LineDown
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LineDown();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_LineUp: { // wxWindow::LineUp
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LineUp();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Lower: { // wxWindow::Lower
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Lower();
+ break;
+}
+case wxWindow_MakeModal: { // wxWindow::MakeModal
+ bool modal=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ modal = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->MakeModal(modal);
+ break;
+}
+case wxWindow_Move_3: { // wxWindow::Move
+ int flags=wxSIZE_USE_EXISTING;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Move((int) *x,(int) *y,flags);
+ break;
+}
+case wxWindow_Move_2: { // wxWindow::Move
+ int flags=wxSIZE_USE_EXISTING;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Move(pt,flags);
+ break;
+}
+case wxWindow_MoveAfterInTabOrder: { // wxWindow::MoveAfterInTabOrder
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MoveAfterInTabOrder(win);
+ break;
+}
+case wxWindow_MoveBeforeInTabOrder: { // wxWindow::MoveBeforeInTabOrder
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MoveBeforeInTabOrder(win);
+ break;
+}
+case wxWindow_Navigate: { // wxWindow::Navigate
+ int flags=wxNavigationKeyEvent::IsForward;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Navigate(flags);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_PageDown: { // wxWindow::PageDown
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PageDown();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_PageUp: { // wxWindow::PageUp
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PageUp();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_PopEventHandler: { // wxWindow::PopEventHandler
+ bool deleteHandler=false;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ deleteHandler = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxEvtHandler * Result = (wxEvtHandler*)This->PopEventHandler(deleteHandler);
+ rt.addRef(getRef((void *)Result,memenv), "wxEvtHandler");
+ break;
+}
+case wxWindow_PopupMenu_2: { // wxWindow::PopupMenu
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PopupMenu(menu,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_PopupMenu_3: { // wxWindow::PopupMenu
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PopupMenu(menu,(int) *x,(int) *y);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Raise: { // wxWindow::Raise
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Raise();
+ break;
+}
+case wxWindow_Refresh: { // wxWindow::Refresh
+ bool eraseBackground=true;
+ const wxRect *rect=(const wxRect *) NULL; wxRect rectTmp;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ eraseBackground = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ rectTmp = wxRect(*rectX,*rectY,*rectW,*rectH); rect = & rectTmp;
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Refresh(eraseBackground,rect);
+ break;
+}
+case wxWindow_RefreshRect: { // wxWindow::RefreshRect
+ bool eraseBackground=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ eraseBackground = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->RefreshRect(rect,eraseBackground);
+ break;
+}
+case wxWindow_ReleaseMouse: { // wxWindow::ReleaseMouse
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ReleaseMouse();
+ break;
+}
+case wxWindow_RemoveChild: { // wxWindow::RemoveChild
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *child = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RemoveChild(child);
+ break;
+}
+case wxWindow_Reparent: { // wxWindow::Reparent
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *newParent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Reparent(newParent);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_ScreenToClient_2: { // wxWindow::ScreenToClient
+ int x;
+ int y;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ScreenToClient(&x,&y);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxWindow_ScreenToClient_1: { // wxWindow::ScreenToClient
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->ScreenToClient(pt);
+ rt.add(Result);
+ break;
+}
+case wxWindow_ScrollLines: { // wxWindow::ScrollLines
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * lines = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ScrollLines((int) *lines);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_ScrollPages: { // wxWindow::ScrollPages
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * pages = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ScrollPages((int) *pages);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_ScrollWindow: { // wxWindow::ScrollWindow
+ const wxRect *rect=(wxRect *) NULL; wxRect rectTmp;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * dx = (int *) bp; bp += 4;
+ int * dy = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ rectTmp = wxRect(*rectX,*rectY,*rectW,*rectH); rect = & rectTmp;
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->ScrollWindow((int) *dx,(int) *dy,rect);
+ break;
+}
+case wxWindow_SetAcceleratorTable: { // wxWindow::SetAcceleratorTable
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxAcceleratorTable *accel = (wxAcceleratorTable *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAcceleratorTable(*accel);
+ break;
+}
+case wxWindow_SetAutoLayout: { // wxWindow::SetAutoLayout
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bool * autoLayout = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAutoLayout((bool) *autoLayout);
+ break;
+}
+case wxWindow_SetBackgroundColour: { // wxWindow::SetBackgroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetBackgroundColour(colour);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_SetBackgroundStyle: { // wxWindow::SetBackgroundStyle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxBackgroundStyle style = *(wxBackgroundStyle *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetBackgroundStyle((wxBackgroundStyle) style);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_SetCaret: { // wxWindow::SetCaret
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxCaret *caret = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaret(caret);
+ break;
+}
+case wxWindow_SetClientSize_2: { // wxWindow::SetClientSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetClientSize((int) *width,(int) *height);
+ break;
+}
+case wxWindow_SetClientSize_1_0: { // wxWindow::SetClientSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetClientSize(size);
+ break;
+}
+case wxWindow_SetClientSize_1_1: { // wxWindow::SetClientSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->SetClientSize(rect);
+ break;
+}
+case wxWindow_SetContainingSizer: { // wxWindow::SetContainingSizer
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetContainingSizer(sizer);
+ break;
+}
+case wxWindow_SetCursor: { // wxWindow::SetCursor
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxCursor *cursor = (wxCursor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetCursor(*cursor);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_SetMaxSize: { // wxWindow::SetMaxSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * maxSizeW = (int *) bp; bp += 4;
+ int * maxSizeH = (int *) bp; bp += 4;
+ wxSize maxSize = wxSize(*maxSizeW,*maxSizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetMaxSize(maxSize);
+ break;
+}
+case wxWindow_SetMinSize: { // wxWindow::SetMinSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * minSizeW = (int *) bp; bp += 4;
+ int * minSizeH = (int *) bp; bp += 4;
+ wxSize minSize = wxSize(*minSizeW,*minSizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetMinSize(minSize);
+ break;
+}
+case wxWindow_SetOwnBackgroundColour: { // wxWindow::SetOwnBackgroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetOwnBackgroundColour(colour);
+ break;
+}
+case wxWindow_SetOwnFont: { // wxWindow::SetOwnFont
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetOwnFont(*font);
+ break;
+}
+case wxWindow_SetOwnForegroundColour: { // wxWindow::SetOwnForegroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetOwnForegroundColour(colour);
+ break;
+}
+case wxWindow_SetDropTarget: { // wxWindow::SetDropTarget
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxDropTarget *dropTarget = (wxDropTarget *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDropTarget(dropTarget);
+ break;
+}
+case wxWindow_SetExtraStyle: { // wxWindow::SetExtraStyle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * exStyle = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetExtraStyle((long) *exStyle);
+ break;
+}
+case wxWindow_SetFocus: { // wxWindow::SetFocus
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFocus();
+ break;
+}
+case wxWindow_SetFocusFromKbd: { // wxWindow::SetFocusFromKbd
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFocusFromKbd();
+ break;
+}
+case wxWindow_SetFont: { // wxWindow::SetFont
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetFont(*font);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_SetForegroundColour: { // wxWindow::SetForegroundColour
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetForegroundColour(colour);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_SetHelpText: { // wxWindow::SetHelpText
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetHelpText(text);
+ break;
+}
+case wxWindow_SetId: { // wxWindow::SetId
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetId((wxWindowID) *winid);
+ break;
+}
+case wxWindow_SetLabel: { // wxWindow::SetLabel
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel(label);
+ break;
+}
+case wxWindow_SetName: { // wxWindow::SetName
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetName(name);
+ break;
+}
+case wxWindow_SetPalette: { // wxWindow::SetPalette
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPalette *pal = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPalette(*pal);
+ break;
+}
+case wxWindow_SetScrollbar: { // wxWindow::SetScrollbar
+ bool refresh=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * thumbVisible = (int *) bp; bp += 4;
+ int * range = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ refresh = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollbar((int) *orient,(int) *pos,(int) *thumbVisible,(int) *range,refresh);
+ break;
+}
+case wxWindow_SetScrollPos: { // wxWindow::SetScrollPos
+ bool refresh=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ refresh = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollPos((int) *orient,(int) *pos,refresh);
+ break;
+}
+case wxWindow_SetSize_5: { // wxWindow::SetSize
+ int sizeFlags=wxSIZE_AUTO;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sizeFlags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSize((int) *x,(int) *y,(int) *width,(int) *height,sizeFlags);
+ break;
+}
+case wxWindow_SetSize_2_0: { // wxWindow::SetSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSize((int) *width,(int) *height);
+ break;
+}
+case wxWindow_SetSize_1: { // wxWindow::SetSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetSize(size);
+ break;
+}
+case wxWindow_SetSize_2_1: { // wxWindow::SetSize
+ int sizeFlags=wxSIZE_AUTO;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sizeFlags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSize(rect,sizeFlags);
+ break;
+}
+case wxWindow_SetSizeHints_3: { // wxWindow::SetSizeHints
+ int maxW=wxDefaultCoord;
+ int maxH=wxDefaultCoord;
+ int incW=wxDefaultCoord;
+ int incH=wxDefaultCoord;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * minW = (int *) bp; bp += 4;
+ int * minH = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ maxW = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ maxH = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ incW = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+ incH = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSizeHints((int) *minW,(int) *minH,maxW,maxH,incW,incH);
+ break;
+}
+case wxWindow_SetSizeHints_2: { // wxWindow::SetSizeHints
+ wxSize maxSize= wxDefaultSize;
+ wxSize incSize= wxDefaultSize;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * minSizeW = (int *) bp; bp += 4;
+ int * minSizeH = (int *) bp; bp += 4;
+ wxSize minSize = wxSize(*minSizeW,*minSizeH);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * maxSizeW = (int *) bp; bp += 4;
+ int * maxSizeH = (int *) bp; bp += 4;
+ maxSize = wxSize(*maxSizeW,*maxSizeH);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * incSizeW = (int *) bp; bp += 4;
+ int * incSizeH = (int *) bp; bp += 4;
+ incSize = wxSize(*incSizeW,*incSizeH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSizeHints(minSize,maxSize,incSize);
+ break;
+}
+case wxWindow_SetSizer: { // wxWindow::SetSizer
+ bool deleteOld=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ deleteOld = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSizer(sizer,deleteOld);
+ break;
+}
+case wxWindow_SetSizerAndFit: { // wxWindow::SetSizerAndFit
+ bool deleteOld=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ deleteOld = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSizerAndFit(sizer,deleteOld);
+ break;
+}
+case wxWindow_SetThemeEnabled: { // wxWindow::SetThemeEnabled
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bool * enableTheme = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetThemeEnabled((bool) *enableTheme);
+ break;
+}
+case wxWindow_SetToolTip_1_0: { // wxWindow::SetToolTip
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * tipLen = (int *) bp; bp += 4;
+ wxString tip = wxString(bp, wxConvUTF8);
+ bp += *tipLen+((8-((0+ *tipLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetToolTip(tip);
+ break;
+}
+case wxWindow_SetToolTip_1_1: { // wxWindow::SetToolTip
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxToolTip *tip = (wxToolTip *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetToolTip(tip);
+ break;
+}
+case wxWindow_SetVirtualSize_1: { // wxWindow::SetVirtualSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetVirtualSize(size);
+ break;
+}
+case wxWindow_SetVirtualSize_2: { // wxWindow::SetVirtualSize
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetVirtualSize((int) *x,(int) *y);
+ break;
+}
+case wxWindow_SetVirtualSizeHints_3: { // wxWindow::SetVirtualSizeHints
+ int maxW=wxDefaultCoord;
+ int maxH=wxDefaultCoord;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * minW = (int *) bp; bp += 4;
+ int * minH = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ maxW = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ maxH = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetVirtualSizeHints((int) *minW,(int) *minH,maxW,maxH);
+ break;
+}
+case wxWindow_SetVirtualSizeHints_2: { // wxWindow::SetVirtualSizeHints
+ wxSize maxSize= wxDefaultSize;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * minSizeW = (int *) bp; bp += 4;
+ int * minSizeH = (int *) bp; bp += 4;
+ wxSize minSize = wxSize(*minSizeW,*minSizeH);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * maxSizeW = (int *) bp; bp += 4;
+ int * maxSizeH = (int *) bp; bp += 4;
+ maxSize = wxSize(*maxSizeW,*maxSizeH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetVirtualSizeHints(minSize,maxSize);
+ break;
+}
+case wxWindow_SetWindowStyle: { // wxWindow::SetWindowStyle
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowStyle((long) *style);
+ break;
+}
+case wxWindow_SetWindowStyleFlag: { // wxWindow::SetWindowStyleFlag
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowStyleFlag((long) *style);
+ break;
+}
+case wxWindow_SetWindowVariant: { // wxWindow::SetWindowVariant
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindowVariant variant = *(wxWindowVariant *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowVariant((wxWindowVariant) variant);
+ break;
+}
+case wxWindow_ShouldInheritColours: { // wxWindow::ShouldInheritColours
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShouldInheritColours();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Show: { // wxWindow::Show
+ bool show=true;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show(show);
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Thaw: { // wxWindow::Thaw
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Thaw();
+ break;
+}
+case wxWindow_TransferDataFromWindow: { // wxWindow::TransferDataFromWindow
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->TransferDataFromWindow();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_TransferDataToWindow: { // wxWindow::TransferDataToWindow
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->TransferDataToWindow();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_Update: { // wxWindow::Update
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Update();
+ break;
+}
+case wxWindow_UpdateWindowUI: { // wxWindow::UpdateWindowUI
+ long flags=wxUPDATE_UI_NONE;
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->UpdateWindowUI(flags);
+ break;
+}
+case wxWindow_Validate: { // wxWindow::Validate
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Validate();
+ rt.addBool(Result);
+ break;
+}
+case wxWindow_WarpPointer: { // wxWindow::WarpPointer
+ wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WarpPointer((int) *x,(int) *y);
+ break;
+}
+case wxTopLevelWindow_GetIcon: { // wxTopLevelWindow::GetIcon
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxIcon * Result = &This->GetIcon();
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxTopLevelWindow_GetIcons: { // wxTopLevelWindow::GetIcons
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxIconBundle * Result = &This->GetIcons();
+ rt.addRef(getRef((void *)Result,memenv), "wxIconBundle");
+ break;
+}
+case wxTopLevelWindow_GetTitle: { // wxTopLevelWindow::GetTitle
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetTitle();
+ rt.add(Result);
+ break;
+}
+case wxTopLevelWindow_IsActive: { // wxTopLevelWindow::IsActive
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsActive();
+ rt.addBool(Result);
+ break;
+}
+case wxTopLevelWindow_Iconize: { // wxTopLevelWindow::Iconize
+ bool iconize=true;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ iconize = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Iconize(iconize);
+ break;
+}
+case wxTopLevelWindow_IsFullScreen: { // wxTopLevelWindow::IsFullScreen
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFullScreen();
+ rt.addBool(Result);
+ break;
+}
+case wxTopLevelWindow_IsIconized: { // wxTopLevelWindow::IsIconized
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsIconized();
+ rt.addBool(Result);
+ break;
+}
+case wxTopLevelWindow_IsMaximized: { // wxTopLevelWindow::IsMaximized
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsMaximized();
+ rt.addBool(Result);
+ break;
+}
+case wxTopLevelWindow_Maximize: { // wxTopLevelWindow::Maximize
+ bool maximize=true;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ maximize = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Maximize(maximize);
+ break;
+}
+case wxTopLevelWindow_RequestUserAttention: { // wxTopLevelWindow::RequestUserAttention
+ int flags=wxUSER_ATTENTION_INFO;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->RequestUserAttention(flags);
+ break;
+}
+case wxTopLevelWindow_SetIcon: { // wxTopLevelWindow::SetIcon
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetIcon(*icon);
+ break;
+}
+case wxTopLevelWindow_SetIcons: { // wxTopLevelWindow::SetIcons
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ wxIconBundle *icons = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetIcons(*icons);
+ break;
+}
+case wxTopLevelWindow_CenterOnScreen: { // wxTopLevelWindow::CenterOnScreen
+ int dir=wxBOTH;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->CenterOnScreen(dir);
+ break;
+}
+case wxTopLevelWindow_CentreOnScreen: { // wxTopLevelWindow::CentreOnScreen
+ int dir=wxBOTH;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ dir = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->CentreOnScreen(dir);
+ break;
+}
+case wxTopLevelWindow_SetShape: { // wxTopLevelWindow::SetShape
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetShape(*region);
+ rt.addBool(Result);
+ break;
+}
+case wxTopLevelWindow_SetTitle: { // wxTopLevelWindow::SetTitle
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetTitle(title);
+ break;
+}
+case wxTopLevelWindow_ShowFullScreen: { // wxTopLevelWindow::ShowFullScreen
+ long style=wxFULLSCREEN_ALL;
+ wxTopLevelWindow *This = (wxTopLevelWindow *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShowFullScreen((bool) *show,style);
+ rt.addBool(Result);
+ break;
+}
+case wxFrame_new_4: { // wxFrame::wxFrame
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxFrame * Result = new EwxFrame(parent,(wxWindowID) *id,title,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFrame");
+ break;
+}
+case wxFrame_new_0: { // wxFrame::wxFrame
+ wxFrame * Result = new EwxFrame();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFrame");
+ break;
+}
+case wxFrame_Create: { // wxFrame::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE;
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxFrame_CreateStatusBar: { // wxFrame::CreateStatusBar
+ int number=1;
+ long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE;
+ wxWindowID id=0;
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxStatusBar * Result = (wxStatusBar*)This->CreateStatusBar(number,style,id);
+ rt.addRef(getRef((void *)Result,memenv), "wxStatusBar");
+ break;
+}
+case wxFrame_CreateToolBar: { // wxFrame::CreateToolBar
+ long style=-1;
+ wxWindowID id=-1;
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBar * Result = (wxToolBar*)This->CreateToolBar(style,id);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolBar");
+ break;
+}
+case wxFrame_GetClientAreaOrigin: { // wxFrame::GetClientAreaOrigin
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetClientAreaOrigin();
+ rt.add(Result);
+ break;
+}
+case wxFrame_GetMenuBar: { // wxFrame::GetMenuBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuBar * Result = (wxMenuBar*)This->GetMenuBar();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuBar");
+ break;
+}
+case wxFrame_GetStatusBar: { // wxFrame::GetStatusBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxStatusBar * Result = (wxStatusBar*)This->GetStatusBar();
+ rt.addRef(getRef((void *)Result,memenv), "wxStatusBar");
+ break;
+}
+case wxFrame_GetStatusBarPane: { // wxFrame::GetStatusBarPane
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStatusBarPane();
+ rt.addInt(Result);
+ break;
+}
+case wxFrame_GetToolBar: { // wxFrame::GetToolBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBar * Result = (wxToolBar*)This->GetToolBar();
+ rt.addRef(getRef((void *)Result,memenv), "wxToolBar");
+ break;
+}
+case wxFrame_ProcessCommand: { // wxFrame::ProcessCommand
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ProcessCommand((int) *winid);
+ rt.addBool(Result);
+ break;
+}
+case wxFrame_SendSizeEvent: { // wxFrame::SendSizeEvent
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SendSizeEvent();
+ break;
+}
+case wxFrame_SetMenuBar: { // wxFrame::SetMenuBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ wxMenuBar *menubar = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMenuBar(menubar);
+ break;
+}
+case wxFrame_SetStatusBar: { // wxFrame::SetStatusBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ wxStatusBar *statbar = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusBar(statbar);
+ break;
+}
+case wxFrame_SetStatusBarPane: { // wxFrame::SetStatusBarPane
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusBarPane((int) *n);
+ break;
+}
+case wxFrame_SetStatusText: { // wxFrame::SetStatusText
+ int number=0;
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusText(text,number);
+ break;
+}
+case wxFrame_SetStatusWidths: { // wxFrame::SetStatusWidths
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * widths_fieldLen = (int *) bp; bp += 4;
+ int * widths_field = (int *) bp; bp += *widths_fieldLen*4+((0+ *widths_fieldLen)%2 )*4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusWidths(*widths_fieldLen,widths_field);
+ break;
+}
+case wxFrame_SetToolBar: { // wxFrame::SetToolBar
+ wxFrame *This = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ wxToolBar *toolbar = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetToolBar(toolbar);
+ break;
+}
+case wxMiniFrame_new_0: { // wxMiniFrame::wxMiniFrame
+ wxMiniFrame * Result = new EwxMiniFrame();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMiniFrame");
+ break;
+}
+case wxMiniFrame_new_4: { // wxMiniFrame::wxMiniFrame
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxCAPTION|wxRESIZE_BORDER;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMiniFrame * Result = new EwxMiniFrame(parent,(wxWindowID) *id,title,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMiniFrame");
+ break;
+}
+case wxMiniFrame_Create: { // wxMiniFrame::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxCAPTION|wxRESIZE_BORDER;
+ wxMiniFrame *This = (wxMiniFrame *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxSplashScreen_new_0: { // wxSplashScreen::wxSplashScreen
+ wxSplashScreen * Result = new EwxSplashScreen();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSplashScreen");
+ break;
+}
+case wxSplashScreen_new_6: { // wxSplashScreen::wxSplashScreen
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * splashStyle = (int *) bp; bp += 4;
+ int * milliseconds = (int *) bp; bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSplashScreen * Result = new EwxSplashScreen(*bitmap,(long) *splashStyle,(int) *milliseconds,parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSplashScreen");
+ break;
+}
+case wxSplashScreen_GetSplashStyle: { // wxSplashScreen::GetSplashStyle
+ wxSplashScreen *This = (wxSplashScreen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetSplashStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxSplashScreen_GetTimeout: { // wxSplashScreen::GetTimeout
+ wxSplashScreen *This = (wxSplashScreen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTimeout();
+ rt.addInt(Result);
+ break;
+}
+case wxPanel_new_0: { // wxPanel::wxPanel
+ wxPanel * Result = new EwxPanel();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPanel");
+ break;
+}
+case wxPanel_new_6: { // wxPanel::wxPanel
+ long style=wxTAB_TRAVERSAL|wxNO_BORDER;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxPanel * Result = new EwxPanel(parent,(int) *x,(int) *y,(int) *width,(int) *height,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPanel");
+ break;
+}
+case wxPanel_new_2: { // wxPanel::wxPanel
+ wxWindowID winid=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxTAB_TRAVERSAL|wxNO_BORDER;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxPanel * Result = new EwxPanel(parent,winid,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPanel");
+ break;
+}
+case wxPanel_InitDialog: { // wxPanel::InitDialog
+ wxPanel *This = (wxPanel *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InitDialog();
+ break;
+}
+case wxScrolledWindow_new_0: { // wxScrolledWindow::wxScrolledWindow
+ wxScrolledWindow * Result = new EwxScrolledWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxScrolledWindow");
+ break;
+}
+case wxScrolledWindow_new_2: { // wxScrolledWindow::wxScrolledWindow
+ wxWindowID winid=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(wxHSCROLL|wxVSCROLL);
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxScrolledWindow * Result = new EwxScrolledWindow(parent,winid,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxScrolledWindow");
+ break;
+}
+case wxScrolledWindow_CalcScrolledPosition_4: { // wxScrolledWindow::CalcScrolledPosition
+ int xx;
+ int yy;
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CalcScrolledPosition((int) *x,(int) *y,&xx,&yy);
+ rt.addInt(xx);
+ rt.addInt(yy);
+ rt.addTupleCount(2);
+ break;
+}
+case wxScrolledWindow_CalcScrolledPosition_1: { // wxScrolledWindow::CalcScrolledPosition
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->CalcScrolledPosition(pt);
+ rt.add(Result);
+ break;
+}
+case wxScrolledWindow_CalcUnscrolledPosition_4: { // wxScrolledWindow::CalcUnscrolledPosition
+ int xx;
+ int yy;
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CalcUnscrolledPosition((int) *x,(int) *y,&xx,&yy);
+ rt.addInt(xx);
+ rt.addInt(yy);
+ rt.addTupleCount(2);
+ break;
+}
+case wxScrolledWindow_CalcUnscrolledPosition_1: { // wxScrolledWindow::CalcUnscrolledPosition
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->CalcUnscrolledPosition(pt);
+ rt.add(Result);
+ break;
+}
+case wxScrolledWindow_EnableScrolling: { // wxScrolledWindow::EnableScrolling
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ bool * x_scrolling = (bool *) bp; bp += 4;
+ bool * y_scrolling = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableScrolling((bool) *x_scrolling,(bool) *y_scrolling);
+ break;
+}
+case wxScrolledWindow_GetScrollPixelsPerUnit: { // wxScrolledWindow::GetScrollPixelsPerUnit
+ int pixelsPerUnitX;
+ int pixelsPerUnitY;
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetScrollPixelsPerUnit(&pixelsPerUnitX,&pixelsPerUnitY);
+ rt.addInt(pixelsPerUnitX);
+ rt.addInt(pixelsPerUnitY);
+ rt.addTupleCount(2);
+ break;
+}
+case wxScrolledWindow_GetViewStart: { // wxScrolledWindow::GetViewStart
+ int x;
+ int y;
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetViewStart(&x,&y);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxScrolledWindow_DoPrepareDC: { // wxScrolledWindow::DoPrepareDC
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DoPrepareDC(*dc);
+ break;
+}
+case wxScrolledWindow_PrepareDC: { // wxScrolledWindow::PrepareDC
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PrepareDC(*dc);
+ break;
+}
+case wxScrolledWindow_Scroll: { // wxScrolledWindow::Scroll
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Scroll((int) *x,(int) *y);
+ break;
+}
+case wxScrolledWindow_SetScrollbars: { // wxScrolledWindow::SetScrollbars
+ int xPos=0;
+ int yPos=0;
+ bool noRefresh=false;
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * pixelsPerUnitX = (int *) bp; bp += 4;
+ int * pixelsPerUnitY = (int *) bp; bp += 4;
+ int * noUnitsX = (int *) bp; bp += 4;
+ int * noUnitsY = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ xPos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ yPos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ noRefresh = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollbars((int) *pixelsPerUnitX,(int) *pixelsPerUnitY,(int) *noUnitsX,(int) *noUnitsY,xPos,yPos,noRefresh);
+ break;
+}
+case wxScrolledWindow_SetScrollRate: { // wxScrolledWindow::SetScrollRate
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ int * xstep = (int *) bp; bp += 4;
+ int * ystep = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollRate((int) *xstep,(int) *ystep);
+ break;
+}
+case wxScrolledWindow_SetTargetWindow: { // wxScrolledWindow::SetTargetWindow
+ wxScrolledWindow *This = (wxScrolledWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *target = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTargetWindow(target);
+ break;
+}
+case wxSashWindow_new_0: { // wxSashWindow::wxSashWindow
+ wxSashWindow * Result = new EwxSashWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSashWindow");
+ break;
+}
+case wxSashWindow_new_2: { // wxSashWindow::wxSashWindow
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0040|0x0080)|wxCLIP_CHILDREN;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSashWindow * Result = new EwxSashWindow(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSashWindow");
+ break;
+}
+case wxSashWindow_GetSashVisible: { // wxSashWindow::GetSashVisible
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ wxSashEdgePosition edge = *(wxSashEdgePosition *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSashVisible((wxSashEdgePosition) edge);
+ rt.addBool(Result);
+ break;
+}
+case wxSashWindow_GetMaximumSizeX: { // wxSashWindow::GetMaximumSizeX
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaximumSizeX();
+ rt.addInt(Result);
+ break;
+}
+case wxSashWindow_GetMaximumSizeY: { // wxSashWindow::GetMaximumSizeY
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaximumSizeY();
+ rt.addInt(Result);
+ break;
+}
+case wxSashWindow_GetMinimumSizeX: { // wxSashWindow::GetMinimumSizeX
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMinimumSizeX();
+ rt.addInt(Result);
+ break;
+}
+case wxSashWindow_GetMinimumSizeY: { // wxSashWindow::GetMinimumSizeY
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMinimumSizeY();
+ rt.addInt(Result);
+ break;
+}
+case wxSashWindow_SetMaximumSizeX: { // wxSashWindow::SetMaximumSizeX
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ int * max = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaximumSizeX((int) *max);
+ break;
+}
+case wxSashWindow_SetMaximumSizeY: { // wxSashWindow::SetMaximumSizeY
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ int * max = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaximumSizeY((int) *max);
+ break;
+}
+case wxSashWindow_SetMinimumSizeX: { // wxSashWindow::SetMinimumSizeX
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ int * min = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinimumSizeX((int) *min);
+ break;
+}
+case wxSashWindow_SetMinimumSizeY: { // wxSashWindow::SetMinimumSizeY
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ int * min = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinimumSizeY((int) *min);
+ break;
+}
+case wxSashWindow_SetSashVisible: { // wxSashWindow::SetSashVisible
+ wxSashWindow *This = (wxSashWindow *) getPtr(bp,memenv); bp += 4;
+ wxSashEdgePosition edge = *(wxSashEdgePosition *) bp; bp += 4;;
+ bool * sash = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSashVisible((wxSashEdgePosition) edge,(bool) *sash);
+ break;
+}
+case wxSashLayoutWindow_new_0: { // wxSashLayoutWindow::wxSashLayoutWindow
+ wxSashLayoutWindow * Result = new EwxSashLayoutWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSashLayoutWindow");
+ break;
+}
+case wxSashLayoutWindow_new_2: { // wxSashLayoutWindow::wxSashLayoutWindow
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSW_3D|wxCLIP_CHILDREN;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSashLayoutWindow * Result = new EwxSashLayoutWindow(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSashLayoutWindow");
+ break;
+}
+case wxSashLayoutWindow_Create: { // wxSashLayoutWindow::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSW_3D|wxCLIP_CHILDREN;
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxSashLayoutWindow_GetAlignment: { // wxSashLayoutWindow::GetAlignment
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetAlignment();
+ rt.addInt(Result);
+ break;
+}
+case wxSashLayoutWindow_GetOrientation: { // wxSashLayoutWindow::GetOrientation
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrientation();
+ rt.addInt(Result);
+ break;
+}
+case wxSashLayoutWindow_SetAlignment: { // wxSashLayoutWindow::SetAlignment
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ wxLayoutAlignment align = *(wxLayoutAlignment *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetAlignment((wxLayoutAlignment) align);
+ break;
+}
+case wxSashLayoutWindow_SetDefaultSize: { // wxSashLayoutWindow::SetDefaultSize
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultSize(size);
+ break;
+}
+case wxSashLayoutWindow_SetOrientation: { // wxSashLayoutWindow::SetOrientation
+ wxSashLayoutWindow *This = (wxSashLayoutWindow *) getPtr(bp,memenv); bp += 4;
+ wxLayoutOrientation orient = *(wxLayoutOrientation *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetOrientation((wxLayoutOrientation) orient);
+ break;
+}
+case wxGrid_new_0: { // wxGrid::wxGrid
+ wxGrid * Result = new EwxGrid();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGrid");
+ break;
+}
+case wxGrid_new_3: { // wxGrid::wxGrid
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxWANTS_CHARS;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGrid * Result = new EwxGrid(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGrid");
+ break;
+}
+case wxGrid_new_4: { // wxGrid::wxGrid
+ int w=wxDefaultCoord;
+ int h=wxDefaultCoord;
+ long style=wxWANTS_CHARS;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ w = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ h = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGrid * Result = new EwxGrid(parent,(int) *x,(int) *y,w,h,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGrid");
+ break;
+}
+case wxGrid_AppendCols: { // wxGrid::AppendCols
+ int numCols=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ numCols = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AppendCols(numCols,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_AppendRows: { // wxGrid::AppendRows
+ int numRows=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ numRows = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AppendRows(numRows,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_AutoSize: { // wxGrid::AutoSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoSize();
+ break;
+}
+case wxGrid_AutoSizeColumn: { // wxGrid::AutoSizeColumn
+ bool setAsMin=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ setAsMin = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AutoSizeColumn((int) *col,setAsMin);
+ break;
+}
+case wxGrid_AutoSizeColumns: { // wxGrid::AutoSizeColumns
+ bool setAsMin=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ setAsMin = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AutoSizeColumns(setAsMin);
+ break;
+}
+case wxGrid_AutoSizeRow: { // wxGrid::AutoSizeRow
+ bool setAsMin=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ setAsMin = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AutoSizeRow((int) *row,setAsMin);
+ break;
+}
+case wxGrid_AutoSizeRows: { // wxGrid::AutoSizeRows
+ bool setAsMin=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ setAsMin = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AutoSizeRows(setAsMin);
+ break;
+}
+case wxGrid_BeginBatch: { // wxGrid::BeginBatch
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BeginBatch();
+ break;
+}
+case wxGrid_BlockToDeviceRect: { // wxGrid::BlockToDeviceRect
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * topLeftR = (int *) bp; bp += 4;
+ int * topLeftC = (int *) bp; bp += 4;
+ wxGridCellCoords topLeft = wxGridCellCoords(*topLeftR,*topLeftC);
+ int * bottomRightR = (int *) bp; bp += 4;
+ int * bottomRightC = (int *) bp; bp += 4;
+ wxGridCellCoords bottomRight = wxGridCellCoords(*bottomRightR,*bottomRightC);
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->BlockToDeviceRect(topLeft,bottomRight);
+ rt.add(Result);
+ break;
+}
+case wxGrid_CanDragColSize: { // wxGrid::CanDragColSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanDragColSize();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_CanDragRowSize: { // wxGrid::CanDragRowSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanDragRowSize();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_CanDragGridSize: { // wxGrid::CanDragGridSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanDragGridSize();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_CanEnableCellControl: { // wxGrid::CanEnableCellControl
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanEnableCellControl();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_CellToRect_2: { // wxGrid::CellToRect
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->CellToRect((int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGrid_CellToRect_1: { // wxGrid::CellToRect
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->CellToRect(coords);
+ rt.add(Result);
+ break;
+}
+case wxGrid_ClearGrid: { // wxGrid::ClearGrid
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearGrid();
+ break;
+}
+case wxGrid_ClearSelection: { // wxGrid::ClearSelection
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearSelection();
+ break;
+}
+case wxGrid_CreateGrid: { // wxGrid::CreateGrid
+ wxGrid::wxGridSelectionModes selmode=wxGrid::wxGridSelectCells;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * numRows = (int *) bp; bp += 4;
+ int * numCols = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+selmode = *(wxGrid::wxGridSelectionModes *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CreateGrid((int) *numRows,(int) *numCols,(wxGrid::wxGridSelectionModes) selmode);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_DeleteCols: { // wxGrid::DeleteCols
+ int pos=0;
+ int numCols=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ numCols = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteCols(pos,numCols,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_DeleteRows: { // wxGrid::DeleteRows
+ int pos=0;
+ int numRows=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ numRows = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteRows(pos,numRows,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_DisableCellEditControl: { // wxGrid::DisableCellEditControl
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DisableCellEditControl();
+ break;
+}
+case wxGrid_DisableDragColSize: { // wxGrid::DisableDragColSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DisableDragColSize();
+ break;
+}
+case wxGrid_DisableDragGridSize: { // wxGrid::DisableDragGridSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DisableDragGridSize();
+ break;
+}
+case wxGrid_DisableDragRowSize: { // wxGrid::DisableDragRowSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DisableDragRowSize();
+ break;
+}
+case wxGrid_EnableCellEditControl: { // wxGrid::EnableCellEditControl
+ bool enable=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableCellEditControl(enable);
+ break;
+}
+case wxGrid_EnableDragColSize: { // wxGrid::EnableDragColSize
+ bool enable=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableDragColSize(enable);
+ break;
+}
+case wxGrid_EnableDragGridSize: { // wxGrid::EnableDragGridSize
+ bool enable=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableDragGridSize(enable);
+ break;
+}
+case wxGrid_EnableDragRowSize: { // wxGrid::EnableDragRowSize
+ bool enable=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableDragRowSize(enable);
+ break;
+}
+case wxGrid_EnableEditing: { // wxGrid::EnableEditing
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * edit = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableEditing((bool) *edit);
+ break;
+}
+case wxGrid_EnableGridLines: { // wxGrid::EnableGridLines
+ bool enable=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableGridLines(enable);
+ break;
+}
+case wxGrid_EndBatch: { // wxGrid::EndBatch
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EndBatch();
+ break;
+}
+case wxGrid_Fit: { // wxGrid::Fit
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Fit();
+ break;
+}
+case wxGrid_ForceRefresh: { // wxGrid::ForceRefresh
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ForceRefresh();
+ break;
+}
+case wxGrid_GetBatchCount: { // wxGrid::GetBatchCount
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBatchCount();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetCellAlignment: { // wxGrid::GetCellAlignment
+ int horiz;
+ int vert;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetCellAlignment((int) *row,(int) *col,&horiz,&vert);
+ rt.addInt(horiz);
+ rt.addInt(vert);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGrid_GetCellBackgroundColour: { // wxGrid::GetCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetCellBackgroundColour((int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetCellEditor: { // wxGrid::GetCellEditor
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetCellEditor((int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGrid_GetCellFont: { // wxGrid::GetCellFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetCellFont((int) *row,(int) *col)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxGrid_GetCellRenderer: { // wxGrid::GetCellRenderer
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellRenderer * Result = (wxGridCellRenderer*)This->GetCellRenderer((int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellRenderer");
+ break;
+}
+case wxGrid_GetCellTextColour: { // wxGrid::GetCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetCellTextColour((int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetCellValue_2: { // wxGrid::GetCellValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetCellValue((int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetCellValue_1: { // wxGrid::GetCellValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetCellValue(coords);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetColLabelAlignment: { // wxGrid::GetColLabelAlignment
+ int horiz;
+ int vert;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetColLabelAlignment(&horiz,&vert);
+ rt.addInt(horiz);
+ rt.addInt(vert);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGrid_GetColLabelSize: { // wxGrid::GetColLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColLabelSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetColLabelValue: { // wxGrid::GetColLabelValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetColLabelValue((int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetColMinimalAcceptableWidth: { // wxGrid::GetColMinimalAcceptableWidth
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColMinimalAcceptableWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetDefaultCellAlignment: { // wxGrid::GetDefaultCellAlignment
+ int horiz;
+ int vert;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetDefaultCellAlignment(&horiz,&vert);
+ rt.addInt(horiz);
+ rt.addInt(vert);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGrid_GetDefaultCellBackgroundColour: { // wxGrid::GetDefaultCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetDefaultCellBackgroundColour();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetDefaultCellFont: { // wxGrid::GetDefaultCellFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetDefaultCellFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxGrid_GetDefaultCellTextColour: { // wxGrid::GetDefaultCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetDefaultCellTextColour();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetDefaultColLabelSize: { // wxGrid::GetDefaultColLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDefaultColLabelSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetDefaultColSize: { // wxGrid::GetDefaultColSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDefaultColSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetDefaultEditor: { // wxGrid::GetDefaultEditor
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetDefaultEditor();
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGrid_GetDefaultEditorForCell_2: { // wxGrid::GetDefaultEditorForCell
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetDefaultEditorForCell((int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGrid_GetDefaultEditorForCell_1: { // wxGrid::GetDefaultEditorForCell
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * cR = (int *) bp; bp += 4;
+ int * cC = (int *) bp; bp += 4;
+ wxGridCellCoords c = wxGridCellCoords(*cR,*cC);
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetDefaultEditorForCell(c);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGrid_GetDefaultEditorForType: { // wxGrid::GetDefaultEditorForType
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * typeNameLen = (int *) bp; bp += 4;
+ wxString typeName = wxString(bp, wxConvUTF8);
+ bp += *typeNameLen+((8-((0+ *typeNameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetDefaultEditorForType(typeName);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGrid_GetDefaultRenderer: { // wxGrid::GetDefaultRenderer
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellRenderer * Result = (wxGridCellRenderer*)This->GetDefaultRenderer();
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellRenderer");
+ break;
+}
+case wxGrid_GetDefaultRendererForCell: { // wxGrid::GetDefaultRendererForCell
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellRenderer * Result = (wxGridCellRenderer*)This->GetDefaultRendererForCell((int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellRenderer");
+ break;
+}
+case wxGrid_GetDefaultRendererForType: { // wxGrid::GetDefaultRendererForType
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * typeNameLen = (int *) bp; bp += 4;
+ wxString typeName = wxString(bp, wxConvUTF8);
+ bp += *typeNameLen+((8-((0+ *typeNameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxGridCellRenderer * Result = (wxGridCellRenderer*)This->GetDefaultRendererForType(typeName);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellRenderer");
+ break;
+}
+case wxGrid_GetDefaultRowLabelSize: { // wxGrid::GetDefaultRowLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDefaultRowLabelSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetDefaultRowSize: { // wxGrid::GetDefaultRowSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDefaultRowSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetGridCursorCol: { // wxGrid::GetGridCursorCol
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetGridCursorCol();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetGridCursorRow: { // wxGrid::GetGridCursorRow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetGridCursorRow();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetGridLineColour: { // wxGrid::GetGridLineColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetGridLineColour();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GridLinesEnabled: { // wxGrid::GridLinesEnabled
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GridLinesEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_GetLabelBackgroundColour: { // wxGrid::GetLabelBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetLabelBackgroundColour();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetLabelFont: { // wxGrid::GetLabelFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetLabelFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxGrid_GetLabelTextColour: { // wxGrid::GetLabelTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetLabelTextColour();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetNumberCols: { // wxGrid::GetNumberCols
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNumberCols();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetNumberRows: { // wxGrid::GetNumberRows
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNumberRows();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetOrCreateCellAttr: { // wxGrid::GetOrCreateCellAttr
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellAttr * Result = (wxGridCellAttr*)This->GetOrCreateCellAttr((int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellAttr");
+ break;
+}
+case wxGrid_GetRowMinimalAcceptableHeight: { // wxGrid::GetRowMinimalAcceptableHeight
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRowMinimalAcceptableHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetRowLabelAlignment: { // wxGrid::GetRowLabelAlignment
+ int horiz;
+ int vert;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetRowLabelAlignment(&horiz,&vert);
+ rt.addInt(horiz);
+ rt.addInt(vert);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGrid_GetRowLabelSize: { // wxGrid::GetRowLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRowLabelSize();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetRowLabelValue: { // wxGrid::GetRowLabelValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetRowLabelValue((int) *row);
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetRowSize: { // wxGrid::GetRowSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRowSize((int) *row);
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetScrollLineX: { // wxGrid::GetScrollLineX
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollLineX();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetScrollLineY: { // wxGrid::GetScrollLineY
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollLineY();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetSelectedCells: { // wxGrid::GetSelectedCells
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellCoordsArray Result = This->GetSelectedCells();
+ for(unsigned int i=0; i < Result.GetCount(); i++) {
+ rt.add(Result[i]);
+ }
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxGrid_GetSelectedCols: { // wxGrid::GetSelectedCols
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxArrayInt Result = This->GetSelectedCols();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetSelectedRows: { // wxGrid::GetSelectedRows
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxArrayInt Result = This->GetSelectedRows();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetSelectionBackground: { // wxGrid::GetSelectionBackground
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetSelectionBackground();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetSelectionBlockTopLeft: { // wxGrid::GetSelectionBlockTopLeft
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellCoordsArray Result = This->GetSelectionBlockTopLeft();
+ for(unsigned int i=0; i < Result.GetCount(); i++) {
+ rt.add(Result[i]);
+ }
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxGrid_GetSelectionBlockBottomRight: { // wxGrid::GetSelectionBlockBottomRight
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellCoordsArray Result = This->GetSelectionBlockBottomRight();
+ for(unsigned int i=0; i < Result.GetCount(); i++) {
+ rt.add(Result[i]);
+ }
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxGrid_GetSelectionForeground: { // wxGrid::GetSelectionForeground
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetSelectionForeground();
+ rt.add(Result);
+ break;
+}
+case wxGrid_GetViewWidth: { // wxGrid::GetViewWidth
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetViewWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_GetGridWindow: { // wxGrid::GetGridWindow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetGridWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxGrid_GetGridRowLabelWindow: { // wxGrid::GetGridRowLabelWindow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetGridRowLabelWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxGrid_GetGridColLabelWindow: { // wxGrid::GetGridColLabelWindow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetGridColLabelWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxGrid_GetGridCornerLabelWindow: { // wxGrid::GetGridCornerLabelWindow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetGridCornerLabelWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxGrid_HideCellEditControl: { // wxGrid::HideCellEditControl
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HideCellEditControl();
+ break;
+}
+case wxGrid_InsertCols: { // wxGrid::InsertCols
+ int pos=0;
+ int numCols=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ numCols = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertCols(pos,numCols,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_InsertRows: { // wxGrid::InsertRows
+ int pos=0;
+ int numRows=1;
+ bool updateLabels=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pos = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ numRows = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ updateLabels = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertRows(pos,numRows,updateLabels);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsCellEditControlEnabled: { // wxGrid::IsCellEditControlEnabled
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsCellEditControlEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsCurrentCellReadOnly: { // wxGrid::IsCurrentCellReadOnly
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsCurrentCellReadOnly();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsEditable: { // wxGrid::IsEditable
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEditable();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsInSelection_2: { // wxGrid::IsInSelection
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsInSelection((int) *row,(int) *col);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsInSelection_1: { // wxGrid::IsInSelection
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsInSelection(coords);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsReadOnly: { // wxGrid::IsReadOnly
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsReadOnly((int) *row,(int) *col);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsSelection: { // wxGrid::IsSelection
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSelection();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsVisible_3: { // wxGrid::IsVisible
+ bool wholeCellVisible=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ wholeCellVisible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVisible((int) *row,(int) *col,wholeCellVisible);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_IsVisible_2: { // wxGrid::IsVisible
+ bool wholeCellVisible=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ wholeCellVisible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVisible(coords,wholeCellVisible);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MakeCellVisible_2: { // wxGrid::MakeCellVisible
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MakeCellVisible((int) *row,(int) *col);
+ break;
+}
+case wxGrid_MakeCellVisible_1: { // wxGrid::MakeCellVisible
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ if(!This) throw wxe_badarg(0);
+ This->MakeCellVisible(coords);
+ break;
+}
+case wxGrid_MoveCursorDown: { // wxGrid::MoveCursorDown
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorDown((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorLeft: { // wxGrid::MoveCursorLeft
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorLeft((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorRight: { // wxGrid::MoveCursorRight
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorRight((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorUp: { // wxGrid::MoveCursorUp
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorUp((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorDownBlock: { // wxGrid::MoveCursorDownBlock
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorDownBlock((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorLeftBlock: { // wxGrid::MoveCursorLeftBlock
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorLeftBlock((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorRightBlock: { // wxGrid::MoveCursorRightBlock
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorRightBlock((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MoveCursorUpBlock: { // wxGrid::MoveCursorUpBlock
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ bool * expandSelection = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoveCursorUpBlock((bool) *expandSelection);
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MovePageDown: { // wxGrid::MovePageDown
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MovePageDown();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_MovePageUp: { // wxGrid::MovePageUp
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MovePageUp();
+ rt.addBool(Result);
+ break;
+}
+case wxGrid_RegisterDataType: { // wxGrid::RegisterDataType
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * typeNameLen = (int *) bp; bp += 4;
+ wxString typeName = wxString(bp, wxConvUTF8);
+ bp += *typeNameLen+((8-((0+ *typeNameLen) & 7)) & 7);
+ wxGridCellRenderer *renderer = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ wxGridCellEditor *editor = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RegisterDataType(typeName,renderer,editor);
+ break;
+}
+case wxGrid_SaveEditControlValue: { // wxGrid::SaveEditControlValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SaveEditControlValue();
+ break;
+}
+case wxGrid_SelectAll: { // wxGrid::SelectAll
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectAll();
+ break;
+}
+case wxGrid_SelectBlock_5: { // wxGrid::SelectBlock
+ bool addToSelected=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * topRow = (int *) bp; bp += 4;
+ int * leftCol = (int *) bp; bp += 4;
+ int * bottomRow = (int *) bp; bp += 4;
+ int * rightCol = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ addToSelected = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SelectBlock((int) *topRow,(int) *leftCol,(int) *bottomRow,(int) *rightCol,addToSelected);
+ break;
+}
+case wxGrid_SelectBlock_3: { // wxGrid::SelectBlock
+ bool addToSelected=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * topLeftR = (int *) bp; bp += 4;
+ int * topLeftC = (int *) bp; bp += 4;
+ wxGridCellCoords topLeft = wxGridCellCoords(*topLeftR,*topLeftC);
+ int * bottomRightR = (int *) bp; bp += 4;
+ int * bottomRightC = (int *) bp; bp += 4;
+ wxGridCellCoords bottomRight = wxGridCellCoords(*bottomRightR,*bottomRightC);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ addToSelected = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SelectBlock(topLeft,bottomRight,addToSelected);
+ break;
+}
+case wxGrid_SelectCol: { // wxGrid::SelectCol
+ bool addToSelected=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ addToSelected = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SelectCol((int) *col,addToSelected);
+ break;
+}
+case wxGrid_SelectRow: { // wxGrid::SelectRow
+ bool addToSelected=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ addToSelected = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SelectRow((int) *row,addToSelected);
+ break;
+}
+case wxGrid_SetCellAlignment_4: { // wxGrid::SetCellAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * horiz = (int *) bp; bp += 4;
+ int * vert = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellAlignment((int) *row,(int) *col,(int) *horiz,(int) *vert);
+ break;
+}
+case wxGrid_SetCellAlignment_3: { // wxGrid::SetCellAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * align = (int *) bp; bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellAlignment((int) *align,(int) *row,(int) *col);
+ break;
+}
+case wxGrid_SetCellAlignment_1: { // wxGrid::SetCellAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * align = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellAlignment((int) *align);
+ break;
+}
+case wxGrid_SetCellBackgroundColour_3_0: { // wxGrid::SetCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellBackgroundColour((int) *row,(int) *col,val);
+ break;
+}
+case wxGrid_SetCellBackgroundColour_1: { // wxGrid::SetCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellBackgroundColour(col);
+ break;
+}
+case wxGrid_SetCellBackgroundColour_3_1: { // wxGrid::SetCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellBackgroundColour(colour,(int) *row,(int) *col);
+ break;
+}
+case wxGrid_SetCellEditor: { // wxGrid::SetCellEditor
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxGridCellEditor *editor = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellEditor((int) *row,(int) *col,editor);
+ break;
+}
+case wxGrid_SetCellFont: { // wxGrid::SetCellFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxFont *val = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellFont((int) *row,(int) *col,*val);
+ break;
+}
+case wxGrid_SetCellRenderer: { // wxGrid::SetCellRenderer
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxGridCellRenderer *renderer = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellRenderer((int) *row,(int) *col,renderer);
+ break;
+}
+case wxGrid_SetCellTextColour_3_0: { // wxGrid::SetCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellTextColour((int) *row,(int) *col,val);
+ break;
+}
+case wxGrid_SetCellTextColour_3_1: { // wxGrid::SetCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellTextColour(val,(int) *row,(int) *col);
+ break;
+}
+case wxGrid_SetCellTextColour_1: { // wxGrid::SetCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellTextColour(col);
+ break;
+}
+case wxGrid_SetCellValue_3_0: { // wxGrid::SetCellValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellValue((int) *row,(int) *col,s);
+ break;
+}
+case wxGrid_SetCellValue_2: { // wxGrid::SetCellValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * coordsR = (int *) bp; bp += 4;
+ int * coordsC = (int *) bp; bp += 4;
+ wxGridCellCoords coords = wxGridCellCoords(*coordsR,*coordsC);
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetCellValue(coords,s);
+ break;
+}
+case wxGrid_SetCellValue_3_1: { // wxGrid::SetCellValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valLen = (int *) bp; bp += 4;
+ wxString val = wxString(bp, wxConvUTF8);
+ bp += *valLen+((8-((0+ *valLen) & 7)) & 7);
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCellValue(val,(int) *row,(int) *col);
+ break;
+}
+case wxGrid_SetColAttr: { // wxGrid::SetColAttr
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxGridCellAttr *attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColAttr((int) *col,attr);
+ break;
+}
+case wxGrid_SetColFormatBool: { // wxGrid::SetColFormatBool
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColFormatBool((int) *col);
+ break;
+}
+case wxGrid_SetColFormatNumber: { // wxGrid::SetColFormatNumber
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColFormatNumber((int) *col);
+ break;
+}
+case wxGrid_SetColFormatFloat: { // wxGrid::SetColFormatFloat
+ int width=-1;
+ int precision=-1;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ width = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ precision = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetColFormatFloat((int) *col,width,precision);
+ break;
+}
+case wxGrid_SetColFormatCustom: { // wxGrid::SetColFormatCustom
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * typeNameLen = (int *) bp; bp += 4;
+ wxString typeName = wxString(bp, wxConvUTF8);
+ bp += *typeNameLen+((8-((4+ *typeNameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetColFormatCustom((int) *col,typeName);
+ break;
+}
+case wxGrid_SetColLabelAlignment: { // wxGrid::SetColLabelAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * horiz = (int *) bp; bp += 4;
+ int * vert = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColLabelAlignment((int) *horiz,(int) *vert);
+ break;
+}
+case wxGrid_SetColLabelSize: { // wxGrid::SetColLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColLabelSize((int) *height);
+ break;
+}
+case wxGrid_SetColLabelValue: { // wxGrid::SetColLabelValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * valLen = (int *) bp; bp += 4;
+ wxString val = wxString(bp, wxConvUTF8);
+ bp += *valLen+((8-((4+ *valLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetColLabelValue((int) *col,val);
+ break;
+}
+case wxGrid_SetColMinimalWidth: { // wxGrid::SetColMinimalWidth
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColMinimalWidth((int) *col,(int) *width);
+ break;
+}
+case wxGrid_SetColMinimalAcceptableWidth: { // wxGrid::SetColMinimalAcceptableWidth
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColMinimalAcceptableWidth((int) *width);
+ break;
+}
+case wxGrid_SetColSize: { // wxGrid::SetColSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColSize((int) *col,(int) *width);
+ break;
+}
+case wxGrid_SetDefaultCellAlignment: { // wxGrid::SetDefaultCellAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * horiz = (int *) bp; bp += 4;
+ int * vert = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultCellAlignment((int) *horiz,(int) *vert);
+ break;
+}
+case wxGrid_SetDefaultCellBackgroundColour: { // wxGrid::SetDefaultCellBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultCellBackgroundColour(val);
+ break;
+}
+case wxGrid_SetDefaultCellFont: { // wxGrid::SetDefaultCellFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxFont *val = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultCellFont(*val);
+ break;
+}
+case wxGrid_SetDefaultCellTextColour: { // wxGrid::SetDefaultCellTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultCellTextColour(val);
+ break;
+}
+case wxGrid_SetDefaultEditor: { // wxGrid::SetDefaultEditor
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxGridCellEditor *editor = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultEditor(editor);
+ break;
+}
+case wxGrid_SetDefaultRenderer: { // wxGrid::SetDefaultRenderer
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxGridCellRenderer *renderer = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultRenderer(renderer);
+ break;
+}
+case wxGrid_SetDefaultColSize: { // wxGrid::SetDefaultColSize
+ bool resizeExistingCols=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ resizeExistingCols = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultColSize((int) *width,resizeExistingCols);
+ break;
+}
+case wxGrid_SetDefaultRowSize: { // wxGrid::SetDefaultRowSize
+ bool resizeExistingRows=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ resizeExistingRows = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultRowSize((int) *height,resizeExistingRows);
+ break;
+}
+case wxGrid_SetGridCursor: { // wxGrid::SetGridCursor
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetGridCursor((int) *row,(int) *col);
+ break;
+}
+case wxGrid_SetGridLineColour: { // wxGrid::SetGridLineColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetGridLineColour(val);
+ break;
+}
+case wxGrid_SetLabelBackgroundColour: { // wxGrid::SetLabelBackgroundColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabelBackgroundColour(val);
+ break;
+}
+case wxGrid_SetLabelFont: { // wxGrid::SetLabelFont
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxFont *val = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLabelFont(*val);
+ break;
+}
+case wxGrid_SetLabelTextColour: { // wxGrid::SetLabelTextColour
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * valR = (int *) bp; bp += 4;
+ int * valG = (int *) bp; bp += 4;
+ int * valB = (int *) bp; bp += 4;
+ int * valA = (int *) bp; bp += 4;
+ wxColour val = wxColour(*valR,*valG,*valB,*valA);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabelTextColour(val);
+ break;
+}
+case wxGrid_SetMargins: { // wxGrid::SetMargins
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * extraWidth = (int *) bp; bp += 4;
+ int * extraHeight = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMargins((int) *extraWidth,(int) *extraHeight);
+ break;
+}
+case wxGrid_SetReadOnly: { // wxGrid::SetReadOnly
+ bool isReadOnly=true;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ isReadOnly = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetReadOnly((int) *row,(int) *col,isReadOnly);
+ break;
+}
+case wxGrid_SetRowAttr: { // wxGrid::SetRowAttr
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ wxGridCellAttr *attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowAttr((int) *row,attr);
+ break;
+}
+case wxGrid_SetRowLabelAlignment: { // wxGrid::SetRowLabelAlignment
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * horiz = (int *) bp; bp += 4;
+ int * vert = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowLabelAlignment((int) *horiz,(int) *vert);
+ break;
+}
+case wxGrid_SetRowLabelSize: { // wxGrid::SetRowLabelSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowLabelSize((int) *width);
+ break;
+}
+case wxGrid_SetRowLabelValue: { // wxGrid::SetRowLabelValue
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * valLen = (int *) bp; bp += 4;
+ wxString val = wxString(bp, wxConvUTF8);
+ bp += *valLen+((8-((4+ *valLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetRowLabelValue((int) *row,val);
+ break;
+}
+case wxGrid_SetRowMinimalHeight: { // wxGrid::SetRowMinimalHeight
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowMinimalHeight((int) *row,(int) *width);
+ break;
+}
+case wxGrid_SetRowMinimalAcceptableHeight: { // wxGrid::SetRowMinimalAcceptableHeight
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowMinimalAcceptableHeight((int) *width);
+ break;
+}
+case wxGrid_SetRowSize: { // wxGrid::SetRowSize
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRowSize((int) *row,(int) *height);
+ break;
+}
+case wxGrid_SetScrollLineX: { // wxGrid::SetScrollLineX
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollLineX((int) *x);
+ break;
+}
+case wxGrid_SetScrollLineY: { // wxGrid::SetScrollLineY
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollLineY((int) *y);
+ break;
+}
+case wxGrid_SetSelectionBackground: { // wxGrid::SetSelectionBackground
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * cR = (int *) bp; bp += 4;
+ int * cG = (int *) bp; bp += 4;
+ int * cB = (int *) bp; bp += 4;
+ int * cA = (int *) bp; bp += 4;
+ wxColour c = wxColour(*cR,*cG,*cB,*cA);
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionBackground(c);
+ break;
+}
+case wxGrid_SetSelectionForeground: { // wxGrid::SetSelectionForeground
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * cR = (int *) bp; bp += 4;
+ int * cG = (int *) bp; bp += 4;
+ int * cB = (int *) bp; bp += 4;
+ int * cA = (int *) bp; bp += 4;
+ wxColour c = wxColour(*cR,*cG,*cB,*cA);
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionForeground(c);
+ break;
+}
+case wxGrid_SetSelectionMode: { // wxGrid::SetSelectionMode
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxGrid::wxGridSelectionModes selmode = *(wxGrid::wxGridSelectionModes *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionMode((wxGrid::wxGridSelectionModes) selmode);
+ break;
+}
+case wxGrid_ShowCellEditControl: { // wxGrid::ShowCellEditControl
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ShowCellEditControl();
+ break;
+}
+case wxGrid_XToCol: { // wxGrid::XToCol
+ bool clipToMinMax=false;
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ clipToMinMax = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ int Result = This->XToCol((int) *x,clipToMinMax);
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_XToEdgeOfCol: { // wxGrid::XToEdgeOfCol
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->XToEdgeOfCol((int) *x);
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_YToEdgeOfRow: { // wxGrid::YToEdgeOfRow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->YToEdgeOfRow((int) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxGrid_YToRow: { // wxGrid::YToRow
+ wxGrid *This = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->YToRow((int) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxGridCellRenderer_Draw: { // wxGridCellRenderer::Draw
+ wxGridCellRenderer *This = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxGridCellAttr *attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ bool * isSelected = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Draw(*grid,*attr,*dc,rect,(int) *row,(int) *col,(bool) *isSelected);
+ break;
+}
+case wxGridCellRenderer_GetBestSize: { // wxGridCellRenderer::GetBestSize
+ wxGridCellRenderer *This = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ wxGridCellAttr *attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetBestSize(*grid,*attr,*dc,(int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGridCellEditor_Create: { // wxGridCellEditor::Create
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ wxEvtHandler *evtHandler = (wxEvtHandler *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Create(parent,(wxWindowID) *id,evtHandler);
+ break;
+}
+case wxGridCellEditor_IsCreated: { // wxGridCellEditor::IsCreated
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsCreated();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellEditor_SetSize: { // wxGridCellEditor::SetSize
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->SetSize(rect);
+ break;
+}
+case wxGridCellEditor_Show: { // wxGridCellEditor::Show
+ wxGridCellAttr * attr=(wxGridCellAttr *) NULL;
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Show((bool) *show,attr);
+ break;
+}
+case wxGridCellEditor_PaintBackground: { // wxGridCellEditor::PaintBackground
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ int * rectCellX = (int *) bp; bp += 4;
+ int * rectCellY = (int *) bp; bp += 4;
+ int * rectCellW = (int *) bp; bp += 4;
+ int * rectCellH = (int *) bp; bp += 4;
+ wxRect rectCell = wxRect(*rectCellX,*rectCellY,*rectCellW,*rectCellH);
+ wxGridCellAttr *attr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PaintBackground(rectCell,attr);
+ break;
+}
+case wxGridCellEditor_BeginEdit: { // wxGridCellEditor::BeginEdit
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BeginEdit((int) *row,(int) *col,grid);
+ break;
+}
+case wxGridCellEditor_EndEdit: { // wxGridCellEditor::EndEdit
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->EndEdit((int) *row,(int) *col,grid);
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellEditor_Reset: { // wxGridCellEditor::Reset
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Reset();
+ break;
+}
+case wxGridCellEditor_StartingKey: { // wxGridCellEditor::StartingKey
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ wxKeyEvent *event = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StartingKey(*event);
+ break;
+}
+case wxGridCellEditor_StartingClick: { // wxGridCellEditor::StartingClick
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StartingClick();
+ break;
+}
+case wxGridCellEditor_HandleReturn: { // wxGridCellEditor::HandleReturn
+ wxGridCellEditor *This = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ wxKeyEvent *event = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HandleReturn(*event);
+ break;
+}
+case wxGridCellBoolRenderer_new: { // wxGridCellBoolRenderer::wxGridCellBoolRenderer
+ wxGridCellBoolRenderer * Result = new wxGridCellBoolRenderer();
+ newPtr((void *) Result, 24, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellBoolRenderer");
+ break;
+}
+case wxGridCellBoolRenderer_destroy: { // wxGridCellBoolRenderer::destroy
+ wxGridCellBoolRenderer *This = (wxGridCellBoolRenderer *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellBoolEditor_new: { // wxGridCellBoolEditor::wxGridCellBoolEditor
+ wxGridCellBoolEditor * Result = new wxGridCellBoolEditor();
+ newPtr((void *) Result, 25, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellBoolEditor");
+ break;
+}
+case wxGridCellBoolEditor_IsTrueValue: { // wxGridCellBoolEditor::IsTrueValue
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((4+ *valueLen) & 7)) & 7);
+ bool Result = wxGridCellBoolEditor::IsTrueValue(value);
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellBoolEditor_UseStringValues: { // wxGridCellBoolEditor::UseStringValues
+ wxString valueTrue= _T("1");
+ wxString valueFalse= wxEmptyString;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * valueTrueLen = (int *) bp; bp += 4;
+ valueTrue = wxString(bp, wxConvUTF8);
+ bp += *valueTrueLen+((8-((0+ *valueTrueLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * valueFalseLen = (int *) bp; bp += 4;
+ valueFalse = wxString(bp, wxConvUTF8);
+ bp += *valueFalseLen+((8-((0+ *valueFalseLen) & 7)) & 7);
+ } break;
+ }};
+ wxGridCellBoolEditor::UseStringValues(valueTrue,valueFalse);
+ break;
+}
+case wxGridCellBoolEditor_destroy: { // wxGridCellBoolEditor::destroy
+ wxGridCellBoolEditor *This = (wxGridCellBoolEditor *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellFloatRenderer_new: { // wxGridCellFloatRenderer::wxGridCellFloatRenderer
+ int width=-1;
+ int precision=-1;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ width = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ precision = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGridCellFloatRenderer * Result = new wxGridCellFloatRenderer(width,precision);
+ newPtr((void *) Result, 26, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellFloatRenderer");
+ break;
+}
+case wxGridCellFloatRenderer_GetPrecision: { // wxGridCellFloatRenderer::GetPrecision
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPrecision();
+ rt.addInt(Result);
+ break;
+}
+case wxGridCellFloatRenderer_GetWidth: { // wxGridCellFloatRenderer::GetWidth
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxGridCellFloatRenderer_SetParameters: { // wxGridCellFloatRenderer::SetParameters
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ int * paramsLen = (int *) bp; bp += 4;
+ wxString params = wxString(bp, wxConvUTF8);
+ bp += *paramsLen+((8-((0+ *paramsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetParameters(params);
+ break;
+}
+case wxGridCellFloatRenderer_SetPrecision: { // wxGridCellFloatRenderer::SetPrecision
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ int * precision = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrecision((int) *precision);
+ break;
+}
+case wxGridCellFloatRenderer_SetWidth: { // wxGridCellFloatRenderer::SetWidth
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWidth((int) *width);
+ break;
+}
+case wxGridCellFloatRenderer_destroy: { // wxGridCellFloatRenderer::destroy
+ wxGridCellFloatRenderer *This = (wxGridCellFloatRenderer *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellFloatEditor_new: { // wxGridCellFloatEditor::wxGridCellFloatEditor
+ int width=-1;
+ int precision=-1;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ width = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ precision = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGridCellFloatEditor * Result = new wxGridCellFloatEditor(width,precision);
+ newPtr((void *) Result, 27, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellFloatEditor");
+ break;
+}
+case wxGridCellFloatEditor_SetParameters: { // wxGridCellFloatEditor::SetParameters
+ wxGridCellFloatEditor *This = (wxGridCellFloatEditor *) getPtr(bp,memenv); bp += 4;
+ int * paramsLen = (int *) bp; bp += 4;
+ wxString params = wxString(bp, wxConvUTF8);
+ bp += *paramsLen+((8-((0+ *paramsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetParameters(params);
+ break;
+}
+case wxGridCellFloatEditor_destroy: { // wxGridCellFloatEditor::destroy
+ wxGridCellFloatEditor *This = (wxGridCellFloatEditor *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellStringRenderer_new: { // wxGridCellStringRenderer::wxGridCellStringRenderer
+ wxGridCellStringRenderer * Result = new wxGridCellStringRenderer();
+ newPtr((void *) Result, 28, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellStringRenderer");
+ break;
+}
+case wxGridCellStringRenderer_destroy: { // wxGridCellStringRenderer::destroy
+ wxGridCellStringRenderer *This = (wxGridCellStringRenderer *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellTextEditor_new: { // wxGridCellTextEditor::wxGridCellTextEditor
+ wxGridCellTextEditor * Result = new wxGridCellTextEditor();
+ newPtr((void *) Result, 29, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellTextEditor");
+ break;
+}
+case wxGridCellTextEditor_SetParameters: { // wxGridCellTextEditor::SetParameters
+ wxGridCellTextEditor *This = (wxGridCellTextEditor *) getPtr(bp,memenv); bp += 4;
+ int * paramsLen = (int *) bp; bp += 4;
+ wxString params = wxString(bp, wxConvUTF8);
+ bp += *paramsLen+((8-((0+ *paramsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetParameters(params);
+ break;
+}
+case wxGridCellTextEditor_destroy: { // wxGridCellTextEditor::destroy
+ wxGridCellTextEditor *This = (wxGridCellTextEditor *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellChoiceEditor_new: { // wxGridCellChoiceEditor::wxGridCellChoiceEditor
+ bool allowOthers=false;
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ allowOthers = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ wxGridCellChoiceEditor * Result = new wxGridCellChoiceEditor(choices,allowOthers);
+ newPtr((void *) Result, 30, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellChoiceEditor");
+ break;
+}
+case wxGridCellChoiceEditor_SetParameters: { // wxGridCellChoiceEditor::SetParameters
+ wxGridCellChoiceEditor *This = (wxGridCellChoiceEditor *) getPtr(bp,memenv); bp += 4;
+ int * paramsLen = (int *) bp; bp += 4;
+ wxString params = wxString(bp, wxConvUTF8);
+ bp += *paramsLen+((8-((0+ *paramsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetParameters(params);
+ break;
+}
+case wxGridCellChoiceEditor_destroy: { // wxGridCellChoiceEditor::destroy
+ wxGridCellChoiceEditor *This = (wxGridCellChoiceEditor *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellNumberRenderer_new: { // wxGridCellNumberRenderer::wxGridCellNumberRenderer
+ wxGridCellNumberRenderer * Result = new wxGridCellNumberRenderer();
+ newPtr((void *) Result, 31, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellNumberRenderer");
+ break;
+}
+case wxGridCellNumberRenderer_destroy: { // wxGridCellNumberRenderer::destroy
+ wxGridCellNumberRenderer *This = (wxGridCellNumberRenderer *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellNumberEditor_new: { // wxGridCellNumberEditor::wxGridCellNumberEditor
+ int min=-1;
+ int max=-1;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ min = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ max = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGridCellNumberEditor * Result = new wxGridCellNumberEditor(min,max);
+ newPtr((void *) Result, 32, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellNumberEditor");
+ break;
+}
+case wxGridCellNumberEditor_GetValue: { // wxGridCellNumberEditor::GetValue
+ wxGridCellNumberEditor *This = (wxGridCellNumberEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetValue();
+ rt.add(Result);
+ break;
+}
+case wxGridCellNumberEditor_SetParameters: { // wxGridCellNumberEditor::SetParameters
+ wxGridCellNumberEditor *This = (wxGridCellNumberEditor *) getPtr(bp,memenv); bp += 4;
+ int * paramsLen = (int *) bp; bp += 4;
+ wxString params = wxString(bp, wxConvUTF8);
+ bp += *paramsLen+((8-((0+ *paramsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetParameters(params);
+ break;
+}
+case wxGridCellNumberEditor_destroy: { // wxGridCellNumberEditor::destroy
+ wxGridCellNumberEditor *This = (wxGridCellNumberEditor *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxGridCellAttr_SetTextColour: { // wxGridCellAttr::SetTextColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextColour(colText);
+ break;
+}
+case wxGridCellAttr_SetBackgroundColour: { // wxGridCellAttr::SetBackgroundColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ if(!This) throw wxe_badarg(0);
+ This->SetBackgroundColour(colBack);
+ break;
+}
+case wxGridCellAttr_SetFont: { // wxGridCellAttr::SetFont
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font);
+ break;
+}
+case wxGridCellAttr_SetAlignment: { // wxGridCellAttr::SetAlignment
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ int * hAlign = (int *) bp; bp += 4;
+ int * vAlign = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAlignment((int) *hAlign,(int) *vAlign);
+ break;
+}
+case wxGridCellAttr_SetReadOnly: { // wxGridCellAttr::SetReadOnly
+ bool isReadOnly=true;
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ isReadOnly = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetReadOnly(isReadOnly);
+ break;
+}
+case wxGridCellAttr_SetRenderer: { // wxGridCellAttr::SetRenderer
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxGridCellRenderer *renderer = (wxGridCellRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRenderer(renderer);
+ break;
+}
+case wxGridCellAttr_SetEditor: { // wxGridCellAttr::SetEditor
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxGridCellEditor *editor = (wxGridCellEditor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetEditor(editor);
+ break;
+}
+case wxGridCellAttr_HasTextColour: { // wxGridCellAttr::HasTextColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasTextColour();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_HasBackgroundColour: { // wxGridCellAttr::HasBackgroundColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBackgroundColour();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_HasFont: { // wxGridCellAttr::HasFont
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasFont();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_HasAlignment: { // wxGridCellAttr::HasAlignment
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasAlignment();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_HasRenderer: { // wxGridCellAttr::HasRenderer
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasRenderer();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_HasEditor: { // wxGridCellAttr::HasEditor
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasEditor();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_GetTextColour: { // wxGridCellAttr::GetTextColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetTextColour();
+ rt.add((*Result));
+ break;
+}
+case wxGridCellAttr_GetBackgroundColour: { // wxGridCellAttr::GetBackgroundColour
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetBackgroundColour();
+ rt.add((*Result));
+ break;
+}
+case wxGridCellAttr_GetFont: { // wxGridCellAttr::GetFont
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFont * Result = &This->GetFont();
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxGridCellAttr_GetAlignment: { // wxGridCellAttr::GetAlignment
+ int hAlign;
+ int vAlign;
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetAlignment(&hAlign,&vAlign);
+ rt.addInt(hAlign);
+ rt.addInt(vAlign);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGridCellAttr_GetRenderer: { // wxGridCellAttr::GetRenderer
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellRenderer * Result = (wxGridCellRenderer*)This->GetRenderer(grid,(int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellRenderer");
+ break;
+}
+case wxGridCellAttr_GetEditor: { // wxGridCellAttr::GetEditor
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxGrid *grid = (wxGrid *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGridCellEditor * Result = (wxGridCellEditor*)This->GetEditor(grid,(int) *row,(int) *col);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridCellEditor");
+ break;
+}
+case wxGridCellAttr_IsReadOnly: { // wxGridCellAttr::IsReadOnly
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsReadOnly();
+ rt.addBool(Result);
+ break;
+}
+case wxGridCellAttr_SetDefAttr: { // wxGridCellAttr::SetDefAttr
+ wxGridCellAttr *This = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ wxGridCellAttr *defAttr = (wxGridCellAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefAttr(defAttr);
+ break;
+}
+case wxDC_Blit: { // wxDC::Blit
+ int rop=wxCOPY;
+ bool useMask=false;
+ wxPoint srcPtMask= wxDefaultPosition;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * destPtX = (int *) bp; bp += 4;
+ int * destPtY = (int *) bp; bp += 4;
+ wxPoint destPt = wxPoint(*destPtX,*destPtY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ wxDC *source = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * srcPtX = (int *) bp; bp += 4;
+ int * srcPtY = (int *) bp; bp += 4;
+ wxPoint srcPt = wxPoint(*srcPtX,*srcPtY);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ rop = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ useMask = *(bool *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ int * srcPtMaskX = (int *) bp; bp += 4;
+ int * srcPtMaskY = (int *) bp; bp += 4;
+ srcPtMask = wxPoint(*srcPtMaskX,*srcPtMaskY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Blit(destPt,sz,source,srcPt,rop,useMask,srcPtMask);
+ rt.addBool(Result);
+ break;
+}
+case wxDC_CalcBoundingBox: { // wxDC::CalcBoundingBox
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CalcBoundingBox((wxCoord) *x,(wxCoord) *y);
+ break;
+}
+case wxDC_Clear: { // wxDC::Clear
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxDC_ComputeScaleAndOrigin: { // wxDC::ComputeScaleAndOrigin
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ComputeScaleAndOrigin();
+ break;
+}
+case wxDC_CrossHair: { // wxDC::CrossHair
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->CrossHair(pt);
+ break;
+}
+case wxDC_DestroyClippingRegion: { // wxDC::DestroyClippingRegion
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DestroyClippingRegion();
+ break;
+}
+case wxDC_DeviceToLogicalX: { // wxDC::DeviceToLogicalX
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->DeviceToLogicalX((wxCoord) *x);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_DeviceToLogicalXRel: { // wxDC::DeviceToLogicalXRel
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->DeviceToLogicalXRel((wxCoord) *x);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_DeviceToLogicalY: { // wxDC::DeviceToLogicalY
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->DeviceToLogicalY((wxCoord) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_DeviceToLogicalYRel: { // wxDC::DeviceToLogicalYRel
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->DeviceToLogicalYRel((wxCoord) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_DrawArc: { // wxDC::DrawArc
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * pt1X = (int *) bp; bp += 4;
+ int * pt1Y = (int *) bp; bp += 4;
+ wxPoint pt1 = wxPoint(*pt1X,*pt1Y);
+ int * pt2X = (int *) bp; bp += 4;
+ int * pt2Y = (int *) bp; bp += 4;
+ wxPoint pt2 = wxPoint(*pt2X,*pt2Y);
+ int * centreX = (int *) bp; bp += 4;
+ int * centreY = (int *) bp; bp += 4;
+ wxPoint centre = wxPoint(*centreX,*centreY);
+ if(!This) throw wxe_badarg(0);
+ This->DrawArc(pt1,pt2,centre);
+ break;
+}
+case wxDC_DrawBitmap: { // wxDC::DrawBitmap
+ bool useMask=false;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ useMask = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawBitmap(*bmp,pt,useMask);
+ break;
+}
+case wxDC_DrawCheckMark: { // wxDC::DrawCheckMark
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->DrawCheckMark(rect);
+ break;
+}
+case wxDC_DrawCircle: { // wxDC::DrawCircle
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * radius = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DrawCircle(pt,(wxCoord) *radius);
+ break;
+}
+case wxDC_DrawEllipse_2: { // wxDC::DrawEllipse
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ This->DrawEllipse(pt,sz);
+ break;
+}
+case wxDC_DrawEllipse_1: { // wxDC::DrawEllipse
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->DrawEllipse(rect);
+ break;
+}
+case wxDC_DrawEllipticArc: { // wxDC::DrawEllipticArc
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ bp += 4; /* Align */
+ double * sa = (double *) bp; bp += 8;
+ double * ea = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawEllipticArc(pt,sz,(double) *sa,(double) *ea);
+ break;
+}
+case wxDC_DrawIcon: { // wxDC::DrawIcon
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->DrawIcon(*icon,pt);
+ break;
+}
+case wxDC_DrawLabel: { // wxDC::DrawLabel
+ int alignment=wxALIGN_LEFT|wxALIGN_TOP;
+ int indexAccel=-1;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ alignment = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ indexAccel = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawLabel(text,rect,alignment,indexAccel);
+ break;
+}
+case wxDC_DrawLine: { // wxDC::DrawLine
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * pt1X = (int *) bp; bp += 4;
+ int * pt1Y = (int *) bp; bp += 4;
+ wxPoint pt1 = wxPoint(*pt1X,*pt1Y);
+ int * pt2X = (int *) bp; bp += 4;
+ int * pt2Y = (int *) bp; bp += 4;
+ wxPoint pt2 = wxPoint(*pt2X,*pt2Y);
+ if(!This) throw wxe_badarg(0);
+ This->DrawLine(pt1,pt2);
+ break;
+}
+case wxDC_DrawLines: { // wxDC::DrawLines
+ wxCoord xoffset=0;
+ wxCoord yoffset=0;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * pointsLen = (int *) bp; bp += 4;
+ wxPoint *points;
+ points = (wxPoint *) driver_alloc(sizeof(wxPoint) * *pointsLen);
+ for(int i=0; i < *pointsLen; i++) {
+ int x = * (int *) bp; bp += 4;
+ int y = * (int *) bp; bp += 4;
+ points[i] = wxPoint(x,y);}
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ xoffset = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ yoffset = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawLines(*pointsLen,points,xoffset,yoffset);
+ driver_free(points);
+ break;
+}
+case wxDC_DrawPolygon: { // wxDC::DrawPolygon
+ wxCoord xoffset=0;
+ wxCoord yoffset=0;
+ int fillStyle=wxODDEVEN_RULE;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * pointsLen = (int *) bp; bp += 4;
+ wxPoint *points;
+ points = (wxPoint *) driver_alloc(sizeof(wxPoint) * *pointsLen);
+ for(int i=0; i < *pointsLen; i++) {
+ int x = * (int *) bp; bp += 4;
+ int y = * (int *) bp; bp += 4;
+ points[i] = wxPoint(x,y);}
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ xoffset = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ yoffset = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawPolygon(*pointsLen,points,xoffset,yoffset,fillStyle);
+ driver_free(points);
+ break;
+}
+case wxDC_DrawPoint: { // wxDC::DrawPoint
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->DrawPoint(pt);
+ break;
+}
+case wxDC_DrawRectangle_2: { // wxDC::DrawRectangle
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ This->DrawRectangle(pt,sz);
+ break;
+}
+case wxDC_DrawRectangle_1: { // wxDC::DrawRectangle
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->DrawRectangle(rect);
+ break;
+}
+case wxDC_DrawRotatedText: { // wxDC::DrawRotatedText
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ double * angle = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawRotatedText(text,pt,(double) *angle);
+ break;
+}
+case wxDC_DrawRoundedRectangle_3: { // wxDC::DrawRoundedRectangle
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ bp += 4; /* Align */
+ double * radius = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawRoundedRectangle(pt,sz,(double) *radius);
+ break;
+}
+case wxDC_DrawRoundedRectangle_2: { // wxDC::DrawRoundedRectangle
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rX = (int *) bp; bp += 4;
+ int * rY = (int *) bp; bp += 4;
+ int * rW = (int *) bp; bp += 4;
+ int * rH = (int *) bp; bp += 4;
+ wxRect r = wxRect(*rX,*rY,*rW,*rH);
+ bp += 4; /* Align */
+ double * radius = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawRoundedRectangle(r,(double) *radius);
+ break;
+}
+case wxDC_DrawText: { // wxDC::DrawText
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->DrawText(text,pt);
+ break;
+}
+case wxDC_EndDoc: { // wxDC::EndDoc
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EndDoc();
+ break;
+}
+case wxDC_EndPage: { // wxDC::EndPage
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EndPage();
+ break;
+}
+case wxDC_FloodFill: { // wxDC::FloodFill
+ int style=wxFLOOD_SURFACE;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->FloodFill(pt,col,style);
+ rt.addBool(Result);
+ break;
+}
+case wxDC_GetBackground: { // wxDC::GetBackground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBrush * Result = &This->GetBackground();
+ rt.addRef(getRef((void *)Result,memenv), "wxBrush");
+ break;
+}
+case wxDC_GetBackgroundMode: { // wxDC::GetBackgroundMode
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBackgroundMode();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetBrush: { // wxDC::GetBrush
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBrush * Result = &This->GetBrush();
+ rt.addRef(getRef((void *)Result,memenv), "wxBrush");
+ break;
+}
+case wxDC_GetCharHeight: { // wxDC::GetCharHeight
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetCharHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetCharWidth: { // wxDC::GetCharWidth
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetCharWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetClippingBox: { // wxDC::GetClippingBox
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->GetClippingBox(rect);
+ break;
+}
+case wxDC_GetFont: { // wxDC::GetFont
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFont * Result = &This->GetFont();
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxDC_GetLayoutDirection: { // wxDC::GetLayoutDirection
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLayoutDirection();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetLogicalFunction: { // wxDC::GetLogicalFunction
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLogicalFunction();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetMapMode: { // wxDC::GetMapMode
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMapMode();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_GetMultiLineTextExtent_4: { // wxDC::GetMultiLineTextExtent
+ wxCoord width;
+ wxCoord height;
+ wxCoord heightLine;
+ wxFont * font=NULL;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ wxString string = wxString(bp, wxConvUTF8);
+ bp += *stringLen+((8-((0+ *stringLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->GetMultiLineTextExtent(string,&width,&height,&heightLine,font);
+ rt.addInt(width);
+ rt.addInt(height);
+ rt.addInt(heightLine);
+ rt.addTupleCount(3);
+ break;
+}
+case wxDC_GetMultiLineTextExtent_1: { // wxDC::GetMultiLineTextExtent
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ wxString string = wxString(bp, wxConvUTF8);
+ bp += *stringLen+((8-((0+ *stringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMultiLineTextExtent(string);
+ rt.add(Result);
+ break;
+}
+case wxDC_GetPartialTextExtents: { // wxDC::GetPartialTextExtents
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * widthsLen = (int *) bp; bp += 4;
+ wxArrayInt widths;
+ for(int i=0; i < *widthsLen; i++) { widths.Add(*(int *) bp); bp += 4;}
+ bp += ((*widthsLen + 1) % 2 )*4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetPartialTextExtents(text,widths);
+ rt.addBool(Result);
+ break;
+}
+case wxDC_GetPen: { // wxDC::GetPen
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxPen * Result = &This->GetPen();
+ rt.addRef(getRef((void *)Result,memenv), "wxPen");
+ break;
+}
+case wxDC_GetPixel: { // wxDC::GetPixel
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetPixel(pt,&col);
+ rt.addBool(Result);
+ break;
+}
+case wxDC_GetPPI: { // wxDC::GetPPI
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetPPI();
+ rt.add(Result);
+ break;
+}
+case wxDC_GetSize: { // wxDC::GetSize
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxDC_GetSizeMM: { // wxDC::GetSizeMM
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSizeMM();
+ rt.add(Result);
+ break;
+}
+case wxDC_GetTextBackground: { // wxDC::GetTextBackground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetTextBackground();
+ rt.add((*Result));
+ break;
+}
+case wxDC_GetTextExtent_4: { // wxDC::GetTextExtent
+ wxCoord x;
+ wxCoord y;
+ wxCoord descent;
+ wxCoord externalLeading;
+ wxFont * theFont=NULL;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ wxString string = wxString(bp, wxConvUTF8);
+ bp += *stringLen+((8-((0+ *stringLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+theFont = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->GetTextExtent(string,&x,&y,&descent,&externalLeading,theFont);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addInt(descent);
+ rt.addInt(externalLeading);
+ rt.addTupleCount(4);
+ break;
+}
+case wxDC_GetTextExtent_1: { // wxDC::GetTextExtent
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * stringLen = (int *) bp; bp += 4;
+ wxString string = wxString(bp, wxConvUTF8);
+ bp += *stringLen+((8-((0+ *stringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetTextExtent(string);
+ rt.add(Result);
+ break;
+}
+case wxDC_GetTextForeground: { // wxDC::GetTextForeground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetTextForeground();
+ rt.add((*Result));
+ break;
+}
+case wxDC_GetUserScale: { // wxDC::GetUserScale
+ double x;
+ double y;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetUserScale(&x,&y);
+ rt.addFloat(x);
+ rt.addFloat(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxDC_GradientFillConcentric_3: { // wxDC::GradientFillConcentric
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ int * initialColourR = (int *) bp; bp += 4;
+ int * initialColourG = (int *) bp; bp += 4;
+ int * initialColourB = (int *) bp; bp += 4;
+ int * initialColourA = (int *) bp; bp += 4;
+ wxColour initialColour = wxColour(*initialColourR,*initialColourG,*initialColourB,*initialColourA);
+ int * destColourR = (int *) bp; bp += 4;
+ int * destColourG = (int *) bp; bp += 4;
+ int * destColourB = (int *) bp; bp += 4;
+ int * destColourA = (int *) bp; bp += 4;
+ wxColour destColour = wxColour(*destColourR,*destColourG,*destColourB,*destColourA);
+ if(!This) throw wxe_badarg(0);
+ This->GradientFillConcentric(rect,initialColour,destColour);
+ break;
+}
+case wxDC_GradientFillConcentric_4: { // wxDC::GradientFillConcentric
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ int * initialColourR = (int *) bp; bp += 4;
+ int * initialColourG = (int *) bp; bp += 4;
+ int * initialColourB = (int *) bp; bp += 4;
+ int * initialColourA = (int *) bp; bp += 4;
+ wxColour initialColour = wxColour(*initialColourR,*initialColourG,*initialColourB,*initialColourA);
+ int * destColourR = (int *) bp; bp += 4;
+ int * destColourG = (int *) bp; bp += 4;
+ int * destColourB = (int *) bp; bp += 4;
+ int * destColourA = (int *) bp; bp += 4;
+ wxColour destColour = wxColour(*destColourR,*destColourG,*destColourB,*destColourA);
+ int * circleCenterX = (int *) bp; bp += 4;
+ int * circleCenterY = (int *) bp; bp += 4;
+ wxPoint circleCenter = wxPoint(*circleCenterX,*circleCenterY);
+ if(!This) throw wxe_badarg(0);
+ This->GradientFillConcentric(rect,initialColour,destColour,circleCenter);
+ break;
+}
+case wxDC_GradientFillLinear: { // wxDC::GradientFillLinear
+ wxDirection nDirection=wxEAST;
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ int * initialColourR = (int *) bp; bp += 4;
+ int * initialColourG = (int *) bp; bp += 4;
+ int * initialColourB = (int *) bp; bp += 4;
+ int * initialColourA = (int *) bp; bp += 4;
+ wxColour initialColour = wxColour(*initialColourR,*initialColourG,*initialColourB,*initialColourA);
+ int * destColourR = (int *) bp; bp += 4;
+ int * destColourG = (int *) bp; bp += 4;
+ int * destColourB = (int *) bp; bp += 4;
+ int * destColourA = (int *) bp; bp += 4;
+ wxColour destColour = wxColour(*destColourR,*destColourG,*destColourB,*destColourA);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+nDirection = *(wxDirection *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->GradientFillLinear(rect,initialColour,destColour,(wxDirection) nDirection);
+ break;
+}
+case wxDC_LogicalToDeviceX: { // wxDC::LogicalToDeviceX
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->LogicalToDeviceX((wxCoord) *x);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_LogicalToDeviceXRel: { // wxDC::LogicalToDeviceXRel
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->LogicalToDeviceXRel((wxCoord) *x);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_LogicalToDeviceY: { // wxDC::LogicalToDeviceY
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->LogicalToDeviceY((wxCoord) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_LogicalToDeviceYRel: { // wxDC::LogicalToDeviceYRel
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->LogicalToDeviceYRel((wxCoord) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxDC_MaxX: { // wxDC::MaxX
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->MaxX();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_MaxY: { // wxDC::MaxY
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->MaxY();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_MinX: { // wxDC::MinX
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->MinX();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_MinY: { // wxDC::MinY
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->MinY();
+ rt.addInt(Result);
+ break;
+}
+case wxDC_IsOk: { // wxDC::IsOk
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxDC_ResetBoundingBox: { // wxDC::ResetBoundingBox
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ResetBoundingBox();
+ break;
+}
+case wxDC_SetAxisOrientation: { // wxDC::SetAxisOrientation
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ bool * xLeftRight = (bool *) bp; bp += 4;
+ bool * yBottomUp = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAxisOrientation((bool) *xLeftRight,(bool) *yBottomUp);
+ break;
+}
+case wxDC_SetBackground: { // wxDC::SetBackground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxBrush *brush = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBackground(*brush);
+ break;
+}
+case wxDC_SetBackgroundMode: { // wxDC::SetBackgroundMode
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBackgroundMode((int) *mode);
+ break;
+}
+case wxDC_SetBrush: { // wxDC::SetBrush
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxBrush *brush = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBrush(*brush);
+ break;
+}
+case wxDC_SetClippingRegion_2: { // wxDC::SetClippingRegion
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ This->SetClippingRegion(pt,sz);
+ break;
+}
+case wxDC_SetClippingRegion_1_1: { // wxDC::SetClippingRegion
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->SetClippingRegion(rect);
+ break;
+}
+case wxDC_SetClippingRegion_1_0: { // wxDC::SetClippingRegion
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetClippingRegion(*region);
+ break;
+}
+case wxDC_SetDeviceOrigin: { // wxDC::SetDeviceOrigin
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDeviceOrigin((wxCoord) *x,(wxCoord) *y);
+ break;
+}
+case wxDC_SetFont: { // wxDC::SetFont
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font);
+ break;
+}
+case wxDC_SetLayoutDirection: { // wxDC::SetLayoutDirection
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxLayoutDirection dir = *(wxLayoutDirection *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetLayoutDirection((wxLayoutDirection) dir);
+ break;
+}
+case wxDC_SetLogicalFunction: { // wxDC::SetLogicalFunction
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * function = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLogicalFunction((int) *function);
+ break;
+}
+case wxDC_SetMapMode: { // wxDC::SetMapMode
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMapMode((int) *mode);
+ break;
+}
+case wxDC_SetPalette: { // wxDC::SetPalette
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxPalette *palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPalette(*palette);
+ break;
+}
+case wxDC_SetPen: { // wxDC::SetPen
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxPen *pen = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPen(*pen);
+ break;
+}
+case wxDC_SetTextBackground: { // wxDC::SetTextBackground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextBackground(colour);
+ break;
+}
+case wxDC_SetTextForeground: { // wxDC::SetTextForeground
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextForeground(colour);
+ break;
+}
+case wxDC_SetUserScale: { // wxDC::SetUserScale
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ double * x = (double *) bp; bp += 8;
+ double * y = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->SetUserScale((double) *x,(double) *y);
+ break;
+}
+case wxDC_StartDoc: { // wxDC::StartDoc
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->StartDoc(message);
+ rt.addBool(Result);
+ break;
+}
+case wxDC_StartPage: { // wxDC::StartPage
+ wxDC *This = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StartPage();
+ break;
+}
+case wxMirrorDC_new: { // wxMirrorDC::wxMirrorDC
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ bool * mirror = (bool *) bp; bp += 4;
+ wxMirrorDC * Result = new EwxMirrorDC(*dc,(bool) *mirror);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMirrorDC");
+ break;
+}
+case wxScreenDC_new: { // wxScreenDC::wxScreenDC
+ wxScreenDC * Result = new EwxScreenDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxScreenDC");
+ break;
+}
+case wxPostScriptDC_new_0: { // wxPostScriptDC::wxPostScriptDC
+ wxPostScriptDC * Result = new EwxPostScriptDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPostScriptDC");
+ break;
+}
+case wxPostScriptDC_new_1: { // wxPostScriptDC::wxPostScriptDC
+ wxPrintData *printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPostScriptDC * Result = new EwxPostScriptDC(*printData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPostScriptDC");
+ break;
+}
+case wxPostScriptDC_SetResolution: { // wxPostScriptDC::SetResolution
+ int * ppi = (int *) bp; bp += 4;
+ wxPostScriptDC::SetResolution((int) *ppi);
+ break;
+}
+case wxPostScriptDC_GetResolution: { // wxPostScriptDC::GetResolution
+ int Result = wxPostScriptDC::GetResolution();
+ rt.addInt(Result);
+ break;
+}
+case wxWindowDC_new_0: { // wxWindowDC::wxWindowDC
+ wxWindowDC * Result = new EwxWindowDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindowDC");
+ break;
+}
+case wxWindowDC_new_1: { // wxWindowDC::wxWindowDC
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindowDC * Result = new EwxWindowDC(win);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindowDC");
+ break;
+}
+case wxClientDC_new_0: { // wxClientDC::wxClientDC
+ wxClientDC * Result = new EwxClientDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxClientDC");
+ break;
+}
+case wxClientDC_new_1: { // wxClientDC::wxClientDC
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxClientDC * Result = new EwxClientDC(win);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxClientDC");
+ break;
+}
+case wxPaintDC_new_0: { // wxPaintDC::wxPaintDC
+ wxPaintDC * Result = new EwxPaintDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPaintDC");
+ break;
+}
+case wxPaintDC_new_1: { // wxPaintDC::wxPaintDC
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPaintDC * Result = new EwxPaintDC(win);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPaintDC");
+ break;
+}
+case wxMemoryDC_new_1_0: { // wxMemoryDC::wxMemoryDC
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxMemoryDC * Result = new EwxMemoryDC(*bitmap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMemoryDC");
+ break;
+}
+case wxMemoryDC_new_1_1: { // wxMemoryDC::wxMemoryDC
+ wxDC * dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxMemoryDC * Result = new EwxMemoryDC(dc);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMemoryDC");
+ break;
+}
+case wxMemoryDC_new_0: { // wxMemoryDC::wxMemoryDC
+ wxMemoryDC * Result = new EwxMemoryDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMemoryDC");
+ break;
+}
+case wxMemoryDC_SelectObject: { // wxMemoryDC::SelectObject
+ wxMemoryDC *This = (wxMemoryDC *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectObject(*bmp);
+ break;
+}
+case wxMemoryDC_SelectObjectAsSource: { // wxMemoryDC::SelectObjectAsSource
+ wxMemoryDC *This = (wxMemoryDC *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectObjectAsSource(*bmp);
+ break;
+}
+case wxBufferedDC_new_0: { // wxBufferedDC::wxBufferedDC
+ wxBufferedDC * Result = new EwxBufferedDC();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBufferedDC");
+ break;
+}
+case wxBufferedDC_new_2: { // wxBufferedDC::wxBufferedDC
+ wxBitmap * buffer= &wxNullBitmap;
+ int style=0x02;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+buffer = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBufferedDC * Result = new EwxBufferedDC(dc,*buffer,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBufferedDC");
+ break;
+}
+case wxBufferedDC_new_3: { // wxBufferedDC::wxBufferedDC
+ int style=0x02;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * areaW = (int *) bp; bp += 4;
+ int * areaH = (int *) bp; bp += 4;
+ wxSize area = wxSize(*areaW,*areaH);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBufferedDC * Result = new EwxBufferedDC(dc,area,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBufferedDC");
+ break;
+}
+case wxBufferedDC_Init_2: { // wxBufferedDC::Init
+ wxBitmap * buffer= &wxNullBitmap;
+ int style=0x02;
+ wxBufferedDC *This = (wxBufferedDC *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+buffer = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Init(dc,*buffer,style);
+ break;
+}
+case wxBufferedDC_Init_3: { // wxBufferedDC::Init
+ int style=0x02;
+ wxBufferedDC *This = (wxBufferedDC *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * areaW = (int *) bp; bp += 4;
+ int * areaH = (int *) bp; bp += 4;
+ wxSize area = wxSize(*areaW,*areaH);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Init(dc,area,style);
+ break;
+}
+case wxBufferedPaintDC_new_3: { // wxBufferedPaintDC::wxBufferedPaintDC
+ int style=0x02;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *buffer = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBufferedPaintDC * Result = new EwxBufferedPaintDC(window,*buffer,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBufferedPaintDC");
+ break;
+}
+case wxBufferedPaintDC_new_2: { // wxBufferedPaintDC::wxBufferedPaintDC
+ int style=0x02;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBufferedPaintDC * Result = new EwxBufferedPaintDC(window,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBufferedPaintDC");
+ break;
+}
+#if wxUSE_GRAPHICS_CONTEXT
+case wxGraphicsObject_GetRenderer: { // wxGraphicsObject::GetRenderer
+ wxGraphicsObject *This = (wxGraphicsObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsRenderer * Result = (wxGraphicsRenderer*)This->GetRenderer();
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsRenderer");
+ break;
+}
+case wxGraphicsObject_IsNull: { // wxGraphicsObject::IsNull
+ wxGraphicsObject *This = (wxGraphicsObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsNull();
+ rt.addBool(Result);
+ break;
+}
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+case wxGraphicsContext_Create_1_1: { // wxGraphicsContext::Create
+ wxWindowDC * dc = (wxWindowDC *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsContext * Result = (wxGraphicsContext*)wxGraphicsContext::Create(*dc);
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsContext");
+ break;
+}
+case wxGraphicsContext_Create_1_0: { // wxGraphicsContext::Create
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsContext * Result = (wxGraphicsContext*)wxGraphicsContext::Create(window);
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsContext");
+ break;
+}
+case wxGraphicsContext_Create_0: { // wxGraphicsContext::Create
+ wxGraphicsContext * Result = (wxGraphicsContext*)wxGraphicsContext::Create();
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsContext");
+ break;
+}
+case wxGraphicsContext_CreatePen: { // wxGraphicsContext::CreatePen
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxPen *pen = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsPen * Result = new wxGraphicsPen(This->CreatePen(*pen)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsPen");
+ break;
+}
+case wxGraphicsContext_CreateBrush: { // wxGraphicsContext::CreateBrush
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxBrush *brush = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateBrush(*brush)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsContext_CreateRadialGradientBrush: { // wxGraphicsContext::CreateRadialGradientBrush
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * xo = (wxDouble *) bp; bp += 8;
+ wxDouble * yo = (wxDouble *) bp; bp += 8;
+ wxDouble * xc = (wxDouble *) bp; bp += 8;
+ wxDouble * yc = (wxDouble *) bp; bp += 8;
+ wxDouble * radius = (wxDouble *) bp; bp += 8;
+ int * oColorR = (int *) bp; bp += 4;
+ int * oColorG = (int *) bp; bp += 4;
+ int * oColorB = (int *) bp; bp += 4;
+ int * oColorA = (int *) bp; bp += 4;
+ wxColour oColor = wxColour(*oColorR,*oColorG,*oColorB,*oColorA);
+ int * cColorR = (int *) bp; bp += 4;
+ int * cColorG = (int *) bp; bp += 4;
+ int * cColorB = (int *) bp; bp += 4;
+ int * cColorA = (int *) bp; bp += 4;
+ wxColour cColor = wxColour(*cColorR,*cColorG,*cColorB,*cColorA);
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateRadialGradientBrush((wxDouble) *xo,(wxDouble) *yo,(wxDouble) *xc,(wxDouble) *yc,(wxDouble) *radius,oColor,cColor)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsContext_CreateLinearGradientBrush: { // wxGraphicsContext::CreateLinearGradientBrush
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x1 = (wxDouble *) bp; bp += 8;
+ wxDouble * y1 = (wxDouble *) bp; bp += 8;
+ wxDouble * x2 = (wxDouble *) bp; bp += 8;
+ wxDouble * y2 = (wxDouble *) bp; bp += 8;
+ int * c1R = (int *) bp; bp += 4;
+ int * c1G = (int *) bp; bp += 4;
+ int * c1B = (int *) bp; bp += 4;
+ int * c1A = (int *) bp; bp += 4;
+ wxColour c1 = wxColour(*c1R,*c1G,*c1B,*c1A);
+ int * c2R = (int *) bp; bp += 4;
+ int * c2G = (int *) bp; bp += 4;
+ int * c2B = (int *) bp; bp += 4;
+ int * c2A = (int *) bp; bp += 4;
+ wxColour c2 = wxColour(*c2R,*c2G,*c2B,*c2A);
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateLinearGradientBrush((wxDouble) *x1,(wxDouble) *y1,(wxDouble) *x2,(wxDouble) *y2,c1,c2)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsContext_CreateFont: { // wxGraphicsContext::CreateFont
+ wxColour col= *wxBLACK;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ col = wxColour(*colR,*colG,*colB,*colA);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsFont * Result = new wxGraphicsFont(This->CreateFont(*font,col)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsFont");
+ break;
+}
+case wxGraphicsContext_CreateMatrix: { // wxGraphicsContext::CreateMatrix
+ wxDouble a=1.0;
+ wxDouble b=0.0;
+ wxDouble c=0.0;
+ wxDouble d=1.0;
+ wxDouble tx=0.0;
+ wxDouble ty=0.0;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bp += 4; /* Align */
+ a = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 2: {bp += 4;
+ bp += 4; /* Align */
+ b = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 3: {bp += 4;
+ bp += 4; /* Align */
+ c = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 4: {bp += 4;
+ bp += 4; /* Align */
+ d = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 5: {bp += 4;
+ bp += 4; /* Align */
+ tx = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 6: {bp += 4;
+ bp += 4; /* Align */
+ ty = * (wxDouble *) bp; bp += 8;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsMatrix * Result = new wxGraphicsMatrix(This->CreateMatrix(a,b,c,d,tx,ty)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsMatrix");
+ break;
+}
+case wxGraphicsContext_CreatePath: { // wxGraphicsContext::CreatePath
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsPath * Result = new wxGraphicsPath(This->CreatePath()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsPath");
+ break;
+}
+case wxGraphicsContext_Clip_1: { // wxGraphicsContext::Clip
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clip(*region);
+ break;
+}
+case wxGraphicsContext_Clip_4: { // wxGraphicsContext::Clip
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Clip((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsContext_ResetClip: { // wxGraphicsContext::ResetClip
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ResetClip();
+ break;
+}
+case wxGraphicsContext_DrawBitmap: { // wxGraphicsContext::DrawBitmap
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawBitmap(*bmp,(wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsContext_DrawEllipse: { // wxGraphicsContext::DrawEllipse
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawEllipse((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsContext_DrawIcon: { // wxGraphicsContext::DrawIcon
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawIcon(*icon,(wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsContext_DrawLines: { // wxGraphicsContext::DrawLines
+ int fillStyle=wxODDEVEN_RULE;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxDouble * pointsX = (wxDouble *) bp; bp += 8;
+ wxDouble * pointsY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble points = wxPoint2DDouble(*pointsX,*pointsY);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawLines((size_t) *n,&points,fillStyle);
+ break;
+}
+case wxGraphicsContext_DrawPath: { // wxGraphicsContext::DrawPath
+ int fillStyle=wxODDEVEN_RULE;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsPath *path = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->DrawPath(*path,fillStyle);
+ break;
+}
+case wxGraphicsContext_DrawRectangle: { // wxGraphicsContext::DrawRectangle
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawRectangle((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsContext_DrawRoundedRectangle: { // wxGraphicsContext::DrawRoundedRectangle
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ wxDouble * radius = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawRoundedRectangle((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h,(wxDouble) *radius);
+ break;
+}
+case wxGraphicsContext_DrawText_3: { // wxGraphicsContext::DrawText
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawText(str,(wxDouble) *x,(wxDouble) *y);
+ break;
+}
+case wxGraphicsContext_DrawText_4_0: { // wxGraphicsContext::DrawText
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * angle = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->DrawText(str,(wxDouble) *x,(wxDouble) *y,(wxDouble) *angle);
+ break;
+}
+case wxGraphicsContext_DrawText_4_1: { // wxGraphicsContext::DrawText
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxGraphicsBrush *backgroundBrush = (wxGraphicsBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DrawText(str,(wxDouble) *x,(wxDouble) *y,*backgroundBrush);
+ break;
+}
+case wxGraphicsContext_DrawText_5: { // wxGraphicsContext::DrawText
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * angle = (wxDouble *) bp; bp += 8;
+ wxGraphicsBrush *backgroundBrush = (wxGraphicsBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DrawText(str,(wxDouble) *x,(wxDouble) *y,(wxDouble) *angle,*backgroundBrush);
+ break;
+}
+case wxGraphicsContext_FillPath: { // wxGraphicsContext::FillPath
+ int fillStyle=wxODDEVEN_RULE;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsPath *path = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->FillPath(*path,fillStyle);
+ break;
+}
+case wxGraphicsContext_StrokePath: { // wxGraphicsContext::StrokePath
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsPath *path = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StrokePath(*path);
+ break;
+}
+case wxGraphicsContext_GetNativeContext: { // wxGraphicsContext::GetNativeContext
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetNativeContext();
+ break;
+}
+case wxGraphicsContext_GetPartialTextExtents: { // wxGraphicsContext::GetPartialTextExtents
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * widthsLen = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ wxArrayDouble widths;
+ for(int i=0; i < *widthsLen; i++) { widths.Add(*(int *) bp); bp += 4;}
+ if(!This) throw wxe_badarg(0);
+ This->GetPartialTextExtents(text,widths);
+ break;
+}
+case wxGraphicsContext_GetTextExtent: { // wxGraphicsContext::GetTextExtent
+ wxDouble width;
+ wxDouble height;
+ wxDouble descent;
+ wxDouble externalLeading;
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->GetTextExtent(text,&width,&height,&descent,&externalLeading);
+ rt.addFloat(width);
+ rt.addFloat(height);
+ rt.addFloat(descent);
+ rt.addFloat(externalLeading);
+ rt.addTupleCount(4);
+ break;
+}
+case wxGraphicsContext_Rotate: { // wxGraphicsContext::Rotate
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * angle = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Rotate((wxDouble) *angle);
+ break;
+}
+case wxGraphicsContext_Scale: { // wxGraphicsContext::Scale
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * xScale = (wxDouble *) bp; bp += 8;
+ wxDouble * yScale = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Scale((wxDouble) *xScale,(wxDouble) *yScale);
+ break;
+}
+case wxGraphicsContext_Translate: { // wxGraphicsContext::Translate
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * dx = (wxDouble *) bp; bp += 8;
+ wxDouble * dy = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Translate((wxDouble) *dx,(wxDouble) *dy);
+ break;
+}
+case wxGraphicsContext_GetTransform: { // wxGraphicsContext::GetTransform
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsMatrix * Result = new wxGraphicsMatrix(This->GetTransform()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsMatrix");
+ break;
+}
+case wxGraphicsContext_SetTransform: { // wxGraphicsContext::SetTransform
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsMatrix *matrix = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTransform(*matrix);
+ break;
+}
+case wxGraphicsContext_ConcatTransform: { // wxGraphicsContext::ConcatTransform
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsMatrix *matrix = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ConcatTransform(*matrix);
+ break;
+}
+case wxGraphicsContext_SetBrush_1_1: { // wxGraphicsContext::SetBrush
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsBrush * brush = (wxGraphicsBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBrush(*brush);
+ break;
+}
+case wxGraphicsContext_SetBrush_1_0: { // wxGraphicsContext::SetBrush
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxBrush *brush = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBrush(*brush);
+ break;
+}
+case wxGraphicsContext_SetFont_1: { // wxGraphicsContext::SetFont
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsFont *font = (wxGraphicsFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font);
+ break;
+}
+case wxGraphicsContext_SetFont_2: { // wxGraphicsContext::SetFont
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font,colour);
+ break;
+}
+case wxGraphicsContext_SetPen_1_0: { // wxGraphicsContext::SetPen
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsPen *pen = (wxGraphicsPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPen(*pen);
+ break;
+}
+case wxGraphicsContext_SetPen_1_1: { // wxGraphicsContext::SetPen
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ wxPen * pen = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPen(*pen);
+ break;
+}
+case wxGraphicsContext_StrokeLine: { // wxGraphicsContext::StrokeLine
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x1 = (wxDouble *) bp; bp += 8;
+ wxDouble * y1 = (wxDouble *) bp; bp += 8;
+ wxDouble * x2 = (wxDouble *) bp; bp += 8;
+ wxDouble * y2 = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->StrokeLine((wxDouble) *x1,(wxDouble) *y1,(wxDouble) *x2,(wxDouble) *y2);
+ break;
+}
+case wxGraphicsContext_StrokeLines_2: { // wxGraphicsContext::StrokeLines
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxDouble * pointsX = (wxDouble *) bp; bp += 8;
+ wxDouble * pointsY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble points = wxPoint2DDouble(*pointsX,*pointsY);
+ if(!This) throw wxe_badarg(0);
+ This->StrokeLines((size_t) *n,&points);
+ break;
+}
+case wxGraphicsContext_StrokeLines_3: { // wxGraphicsContext::StrokeLines
+ wxGraphicsContext *This = (wxGraphicsContext *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxDouble * beginPointsX = (wxDouble *) bp; bp += 8;
+ wxDouble * beginPointsY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble beginPoints = wxPoint2DDouble(*beginPointsX,*beginPointsY);
+ wxDouble * endPointsX = (wxDouble *) bp; bp += 8;
+ wxDouble * endPointsY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble endPoints = wxPoint2DDouble(*endPointsX,*endPointsY);
+ if(!This) throw wxe_badarg(0);
+ This->StrokeLines((size_t) *n,&beginPoints,&endPoints);
+ break;
+}
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+case wxGraphicsMatrix_Concat: { // wxGraphicsMatrix::Concat
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsMatrix *t = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Concat(t);
+ break;
+}
+case wxGraphicsMatrix_Get: { // wxGraphicsMatrix::Get
+ wxDouble a;
+ wxDouble b;
+ wxDouble c;
+ wxDouble d;
+ wxDouble tx;
+ wxDouble ty;
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Get(&a,&b,&c,&d,&tx,&ty);
+ rt.addFloat(a);
+ rt.addFloat(b);
+ rt.addFloat(c);
+ rt.addFloat(d);
+ rt.addFloat(tx);
+ rt.addFloat(ty);
+ rt.addTupleCount(6);
+ break;
+}
+case wxGraphicsMatrix_GetNativeMatrix: { // wxGraphicsMatrix::GetNativeMatrix
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetNativeMatrix();
+ break;
+}
+case wxGraphicsMatrix_Invert: { // wxGraphicsMatrix::Invert
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Invert();
+ break;
+}
+case wxGraphicsMatrix_IsEqual: { // wxGraphicsMatrix::IsEqual
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsMatrix *t = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEqual(t);
+ rt.addBool(Result);
+ break;
+}
+case wxGraphicsMatrix_IsIdentity: { // wxGraphicsMatrix::IsIdentity
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsIdentity();
+ rt.addBool(Result);
+ break;
+}
+case wxGraphicsMatrix_Rotate: { // wxGraphicsMatrix::Rotate
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * angle = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Rotate((wxDouble) *angle);
+ break;
+}
+case wxGraphicsMatrix_Scale: { // wxGraphicsMatrix::Scale
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * xScale = (wxDouble *) bp; bp += 8;
+ wxDouble * yScale = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Scale((wxDouble) *xScale,(wxDouble) *yScale);
+ break;
+}
+case wxGraphicsMatrix_Translate: { // wxGraphicsMatrix::Translate
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * dx = (wxDouble *) bp; bp += 8;
+ wxDouble * dy = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->Translate((wxDouble) *dx,(wxDouble) *dy);
+ break;
+}
+case wxGraphicsMatrix_Set: { // wxGraphicsMatrix::Set
+ wxDouble a=1.0;
+ wxDouble b=0.0;
+ wxDouble c=0.0;
+ wxDouble d=1.0;
+ wxDouble tx=0.0;
+ wxDouble ty=0.0;
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bp += 4; /* Align */
+ a = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 2: {bp += 4;
+ bp += 4; /* Align */
+ b = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 3: {bp += 4;
+ bp += 4; /* Align */
+ c = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 4: {bp += 4;
+ bp += 4; /* Align */
+ d = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 5: {bp += 4;
+ bp += 4; /* Align */
+ tx = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 6: {bp += 4;
+ bp += 4; /* Align */
+ ty = * (wxDouble *) bp; bp += 8;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Set(a,b,c,d,tx,ty);
+ break;
+}
+case wxGraphicsMatrix_TransformPoint: { // wxGraphicsMatrix::TransformPoint
+ wxDouble x;
+ wxDouble y;
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->TransformPoint(&x,&y);
+ rt.addFloat(x);
+ rt.addFloat(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxGraphicsMatrix_TransformDistance: { // wxGraphicsMatrix::TransformDistance
+ wxDouble dx;
+ wxDouble dy;
+ wxGraphicsMatrix *This = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->TransformDistance(&dx,&dy);
+ rt.addFloat(dx);
+ rt.addFloat(dy);
+ rt.addTupleCount(2);
+ break;
+}
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+case wxGraphicsPath_MoveToPoint_2: { // wxGraphicsPath::MoveToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->MoveToPoint((wxDouble) *x,(wxDouble) *y);
+ break;
+}
+case wxGraphicsPath_MoveToPoint_1: { // wxGraphicsPath::MoveToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * pX = (wxDouble *) bp; bp += 8;
+ wxDouble * pY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble p = wxPoint2DDouble(*pX,*pY);
+ if(!This) throw wxe_badarg(0);
+ This->MoveToPoint(p);
+ break;
+}
+case wxGraphicsPath_AddArc_6: { // wxGraphicsPath::AddArc
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * r = (wxDouble *) bp; bp += 8;
+ wxDouble * startAngle = (wxDouble *) bp; bp += 8;
+ wxDouble * endAngle = (wxDouble *) bp; bp += 8;
+ bool * clockwise = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddArc((wxDouble) *x,(wxDouble) *y,(wxDouble) *r,(wxDouble) *startAngle,(wxDouble) *endAngle,(bool) *clockwise);
+ break;
+}
+case wxGraphicsPath_AddArc_5: { // wxGraphicsPath::AddArc
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * cX = (wxDouble *) bp; bp += 8;
+ wxDouble * cY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble c = wxPoint2DDouble(*cX,*cY);
+ wxDouble * r = (wxDouble *) bp; bp += 8;
+ wxDouble * startAngle = (wxDouble *) bp; bp += 8;
+ wxDouble * endAngle = (wxDouble *) bp; bp += 8;
+ bool * clockwise = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddArc(c,(wxDouble) *r,(wxDouble) *startAngle,(wxDouble) *endAngle,(bool) *clockwise);
+ break;
+}
+case wxGraphicsPath_AddArcToPoint: { // wxGraphicsPath::AddArcToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x1 = (wxDouble *) bp; bp += 8;
+ wxDouble * y1 = (wxDouble *) bp; bp += 8;
+ wxDouble * x2 = (wxDouble *) bp; bp += 8;
+ wxDouble * y2 = (wxDouble *) bp; bp += 8;
+ wxDouble * r = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddArcToPoint((wxDouble) *x1,(wxDouble) *y1,(wxDouble) *x2,(wxDouble) *y2,(wxDouble) *r);
+ break;
+}
+case wxGraphicsPath_AddCircle: { // wxGraphicsPath::AddCircle
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * r = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddCircle((wxDouble) *x,(wxDouble) *y,(wxDouble) *r);
+ break;
+}
+case wxGraphicsPath_AddCurveToPoint_6: { // wxGraphicsPath::AddCurveToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * cx1 = (wxDouble *) bp; bp += 8;
+ wxDouble * cy1 = (wxDouble *) bp; bp += 8;
+ wxDouble * cx2 = (wxDouble *) bp; bp += 8;
+ wxDouble * cy2 = (wxDouble *) bp; bp += 8;
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddCurveToPoint((wxDouble) *cx1,(wxDouble) *cy1,(wxDouble) *cx2,(wxDouble) *cy2,(wxDouble) *x,(wxDouble) *y);
+ break;
+}
+case wxGraphicsPath_AddCurveToPoint_3: { // wxGraphicsPath::AddCurveToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * c1X = (wxDouble *) bp; bp += 8;
+ wxDouble * c1Y = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble c1 = wxPoint2DDouble(*c1X,*c1Y);
+ wxDouble * c2X = (wxDouble *) bp; bp += 8;
+ wxDouble * c2Y = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble c2 = wxPoint2DDouble(*c2X,*c2Y);
+ wxDouble * eX = (wxDouble *) bp; bp += 8;
+ wxDouble * eY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble e = wxPoint2DDouble(*eX,*eY);
+ if(!This) throw wxe_badarg(0);
+ This->AddCurveToPoint(c1,c2,e);
+ break;
+}
+case wxGraphicsPath_AddEllipse: { // wxGraphicsPath::AddEllipse
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddEllipse((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsPath_AddLineToPoint_2: { // wxGraphicsPath::AddLineToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddLineToPoint((wxDouble) *x,(wxDouble) *y);
+ break;
+}
+case wxGraphicsPath_AddLineToPoint_1: { // wxGraphicsPath::AddLineToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * pX = (wxDouble *) bp; bp += 8;
+ wxDouble * pY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble p = wxPoint2DDouble(*pX,*pY);
+ if(!This) throw wxe_badarg(0);
+ This->AddLineToPoint(p);
+ break;
+}
+case wxGraphicsPath_AddPath: { // wxGraphicsPath::AddPath
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsPath *path = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddPath(*path);
+ break;
+}
+case wxGraphicsPath_AddQuadCurveToPoint: { // wxGraphicsPath::AddQuadCurveToPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * cx = (wxDouble *) bp; bp += 8;
+ wxDouble * cy = (wxDouble *) bp; bp += 8;
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddQuadCurveToPoint((wxDouble) *cx,(wxDouble) *cy,(wxDouble) *x,(wxDouble) *y);
+ break;
+}
+case wxGraphicsPath_AddRectangle: { // wxGraphicsPath::AddRectangle
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddRectangle((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h);
+ break;
+}
+case wxGraphicsPath_AddRoundedRectangle: { // wxGraphicsPath::AddRoundedRectangle
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ wxDouble * w = (wxDouble *) bp; bp += 8;
+ wxDouble * h = (wxDouble *) bp; bp += 8;
+ wxDouble * radius = (wxDouble *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->AddRoundedRectangle((wxDouble) *x,(wxDouble) *y,(wxDouble) *w,(wxDouble) *h,(wxDouble) *radius);
+ break;
+}
+case wxGraphicsPath_CloseSubpath: { // wxGraphicsPath::CloseSubpath
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CloseSubpath();
+ break;
+}
+case wxGraphicsPath_Contains_3: { // wxGraphicsPath::Contains
+ int fillStyle=wxODDEVEN_RULE;
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x = (wxDouble *) bp; bp += 8;
+ wxDouble * y = (wxDouble *) bp; bp += 8;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Contains((wxDouble) *x,(wxDouble) *y,fillStyle);
+ rt.addBool(Result);
+ break;
+}
+case wxGraphicsPath_Contains_2: { // wxGraphicsPath::Contains
+ int fillStyle=wxODDEVEN_RULE;
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * cX = (wxDouble *) bp; bp += 8;
+ wxDouble * cY = (wxDouble *) bp; bp += 8;
+ wxPoint2DDouble c = wxPoint2DDouble(*cX,*cY);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fillStyle = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Contains(c,fillStyle);
+ rt.addBool(Result);
+ break;
+}
+case wxGraphicsPath_GetBox: { // wxGraphicsPath::GetBox
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect2DDouble Result = This->GetBox();
+ rt.add(Result);
+ break;
+}
+case wxGraphicsPath_GetCurrentPoint: { // wxGraphicsPath::GetCurrentPoint
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint2DDouble Result = This->GetCurrentPoint();
+ rt.add(Result);
+ break;
+}
+case wxGraphicsPath_Transform: { // wxGraphicsPath::Transform
+ wxGraphicsPath *This = (wxGraphicsPath *) getPtr(bp,memenv); bp += 4;
+ wxGraphicsMatrix *matrix = (wxGraphicsMatrix *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Transform(*matrix);
+ break;
+}
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+case wxGraphicsRenderer_GetDefaultRenderer: { // wxGraphicsRenderer::GetDefaultRenderer
+ wxGraphicsRenderer * Result = (wxGraphicsRenderer*)wxGraphicsRenderer::GetDefaultRenderer();
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsRenderer");
+ break;
+}
+case wxGraphicsRenderer_CreateContext_1_1: { // wxGraphicsRenderer::CreateContext
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ wxWindowDC * dc = (wxWindowDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsContext * Result = (wxGraphicsContext*)This->CreateContext(*dc);
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsContext");
+ break;
+}
+case wxGraphicsRenderer_CreateContext_1_0: { // wxGraphicsRenderer::CreateContext
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsContext * Result = (wxGraphicsContext*)This->CreateContext(window);
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsContext");
+ break;
+}
+case wxGraphicsRenderer_CreatePen: { // wxGraphicsRenderer::CreatePen
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ wxPen *pen = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsPen * Result = new wxGraphicsPen(This->CreatePen(*pen)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsPen");
+ break;
+}
+case wxGraphicsRenderer_CreateBrush: { // wxGraphicsRenderer::CreateBrush
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ wxBrush *brush = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateBrush(*brush)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsRenderer_CreateLinearGradientBrush: { // wxGraphicsRenderer::CreateLinearGradientBrush
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * x1 = (wxDouble *) bp; bp += 8;
+ wxDouble * y1 = (wxDouble *) bp; bp += 8;
+ wxDouble * x2 = (wxDouble *) bp; bp += 8;
+ wxDouble * y2 = (wxDouble *) bp; bp += 8;
+ int * c1R = (int *) bp; bp += 4;
+ int * c1G = (int *) bp; bp += 4;
+ int * c1B = (int *) bp; bp += 4;
+ int * c1A = (int *) bp; bp += 4;
+ wxColour c1 = wxColour(*c1R,*c1G,*c1B,*c1A);
+ int * c2R = (int *) bp; bp += 4;
+ int * c2G = (int *) bp; bp += 4;
+ int * c2B = (int *) bp; bp += 4;
+ int * c2A = (int *) bp; bp += 4;
+ wxColour c2 = wxColour(*c2R,*c2G,*c2B,*c2A);
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateLinearGradientBrush((wxDouble) *x1,(wxDouble) *y1,(wxDouble) *x2,(wxDouble) *y2,c1,c2)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsRenderer_CreateRadialGradientBrush: { // wxGraphicsRenderer::CreateRadialGradientBrush
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ wxDouble * xo = (wxDouble *) bp; bp += 8;
+ wxDouble * yo = (wxDouble *) bp; bp += 8;
+ wxDouble * xc = (wxDouble *) bp; bp += 8;
+ wxDouble * yc = (wxDouble *) bp; bp += 8;
+ wxDouble * radius = (wxDouble *) bp; bp += 8;
+ int * oColorR = (int *) bp; bp += 4;
+ int * oColorG = (int *) bp; bp += 4;
+ int * oColorB = (int *) bp; bp += 4;
+ int * oColorA = (int *) bp; bp += 4;
+ wxColour oColor = wxColour(*oColorR,*oColorG,*oColorB,*oColorA);
+ int * cColorR = (int *) bp; bp += 4;
+ int * cColorG = (int *) bp; bp += 4;
+ int * cColorB = (int *) bp; bp += 4;
+ int * cColorA = (int *) bp; bp += 4;
+ wxColour cColor = wxColour(*cColorR,*cColorG,*cColorB,*cColorA);
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsBrush * Result = new wxGraphicsBrush(This->CreateRadialGradientBrush((wxDouble) *xo,(wxDouble) *yo,(wxDouble) *xc,(wxDouble) *yc,(wxDouble) *radius,oColor,cColor)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsBrush");
+ break;
+}
+case wxGraphicsRenderer_CreateFont: { // wxGraphicsRenderer::CreateFont
+ wxColour col= *wxBLACK;
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ col = wxColour(*colR,*colG,*colB,*colA);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsFont * Result = new wxGraphicsFont(This->CreateFont(*font,col)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsFont");
+ break;
+}
+case wxGraphicsRenderer_CreateMatrix: { // wxGraphicsRenderer::CreateMatrix
+ wxDouble a=1.0;
+ wxDouble b=0.0;
+ wxDouble c=0.0;
+ wxDouble d=1.0;
+ wxDouble tx=0.0;
+ wxDouble ty=0.0;
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bp += 4; /* Align */
+ a = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 2: {bp += 4;
+ bp += 4; /* Align */
+ b = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 3: {bp += 4;
+ bp += 4; /* Align */
+ c = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 4: {bp += 4;
+ bp += 4; /* Align */
+ d = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 5: {bp += 4;
+ bp += 4; /* Align */
+ tx = * (wxDouble *) bp; bp += 8;
+ } break;
+ case 6: {bp += 4;
+ bp += 4; /* Align */
+ ty = * (wxDouble *) bp; bp += 8;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsMatrix * Result = new wxGraphicsMatrix(This->CreateMatrix(a,b,c,d,tx,ty)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsMatrix");
+ break;
+}
+case wxGraphicsRenderer_CreatePath: { // wxGraphicsRenderer::CreatePath
+ wxGraphicsRenderer *This = (wxGraphicsRenderer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGraphicsPath * Result = new wxGraphicsPath(This->CreatePath()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxGraphicsPath");
+ break;
+}
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+#endif // wxUSE_GRAPHICS_CONTEXT
+#if wxUSE_GRAPHICS_CONTEXT
+#endif // wxUSE_GRAPHICS_CONTEXT
+case wxMenuBar_new_1: { // wxMenuBar::wxMenuBar
+ int * style = (int *) bp; bp += 4;
+ wxMenuBar * Result = new EwxMenuBar((long) *style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuBar");
+ break;
+}
+case wxMenuBar_new_0: { // wxMenuBar::wxMenuBar
+ wxMenuBar * Result = new EwxMenuBar();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuBar");
+ break;
+}
+case wxMenuBar_Append: { // wxMenuBar::Append
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Append(menu,title);
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_Check: { // wxMenuBar::Check
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ bool * check = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Check((int) *itemid,(bool) *check);
+ break;
+}
+case wxMenuBar_Enable_2: { // wxMenuBar::Enable
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ bool * enable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Enable((int) *itemid,(bool) *enable);
+ break;
+}
+case wxMenuBar_Enable_1: { // wxMenuBar::Enable
+ bool enable=true;
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Enable(enable);
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_EnableTop: { // wxMenuBar::EnableTop
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableTop((size_t) *pos,(bool) *flag);
+ break;
+}
+case wxMenuBar_FindMenu: { // wxMenuBar::FindMenu
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindMenu(title);
+ rt.addInt(Result);
+ break;
+}
+case wxMenuBar_FindMenuItem: { // wxMenuBar::FindMenuItem
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * menuStringLen = (int *) bp; bp += 4;
+ wxString menuString = wxString(bp, wxConvUTF8);
+ bp += *menuStringLen+((8-((0+ *menuStringLen) & 7)) & 7);
+ int * itemStringLen = (int *) bp; bp += 4;
+ wxString itemString = wxString(bp, wxConvUTF8);
+ bp += *itemStringLen+((8-((4+ *itemStringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindMenuItem(menuString,itemString);
+ rt.addInt(Result);
+ break;
+}
+case wxMenuBar_FindItem: { // wxMenuBar::FindItem
+ wxMenu ** menu = NULL;
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->FindItem((int) *id,menu);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenuBar_GetHelpString: { // wxMenuBar::GetHelpString
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetHelpString((int) *itemid);
+ rt.add(Result);
+ break;
+}
+case wxMenuBar_GetLabel_1: { // wxMenuBar::GetLabel
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel((int) *itemid);
+ rt.add(Result);
+ break;
+}
+case wxMenuBar_GetLabel_0: { // wxMenuBar::GetLabel
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxMenuBar_GetLabelTop: { // wxMenuBar::GetLabelTop
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabelTop((size_t) *pos);
+ rt.add(Result);
+ break;
+}
+case wxMenuBar_GetMenu: { // wxMenuBar::GetMenu
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->GetMenu((size_t) *pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuBar_GetMenuCount: { // wxMenuBar::GetMenuCount
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetMenuCount();
+ rt.addInt(Result);
+ break;
+}
+case wxMenuBar_Insert: { // wxMenuBar::Insert
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Insert((size_t) *pos,menu,title);
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_IsChecked: { // wxMenuBar::IsChecked
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_IsEnabled_1: { // wxMenuBar::IsEnabled
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEnabled((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_IsEnabled_0: { // wxMenuBar::IsEnabled
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuBar_Remove: { // wxMenuBar::Remove
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->Remove((size_t) *pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuBar_Replace: { // wxMenuBar::Replace
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->Replace((size_t) *pos,menu,title);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuBar_SetHelpString: { // wxMenuBar::SetHelpString
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * helpStringLen = (int *) bp; bp += 4;
+ wxString helpString = wxString(bp, wxConvUTF8);
+ bp += *helpStringLen+((8-((4+ *helpStringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetHelpString((int) *itemid,helpString);
+ break;
+}
+case wxMenuBar_SetLabel_2: { // wxMenuBar::SetLabel
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel((int) *itemid,label);
+ break;
+}
+case wxMenuBar_SetLabel_1: { // wxMenuBar::SetLabel
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel(s);
+ break;
+}
+case wxMenuBar_SetLabelTop: { // wxMenuBar::SetLabelTop
+ wxMenuBar *This = (wxMenuBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabelTop((size_t) *pos,label);
+ break;
+}
+case wxControl_GetLabel: { // wxControl::GetLabel
+ wxControl *This = (wxControl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxControl_SetLabel: { // wxControl::SetLabel
+ wxControl *This = (wxControl *) getPtr(bp,memenv); bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel(label);
+ break;
+}
+case wxControlWithItems_Append_1: { // wxControlWithItems::Append
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * itemLen = (int *) bp; bp += 4;
+ wxString item = wxString(bp, wxConvUTF8);
+ bp += *itemLen+((8-((0+ *itemLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Append(item);
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_Append_2: { // wxControlWithItems::Append
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * itemLen = (int *) bp; bp += 4;
+ wxString item = wxString(bp, wxConvUTF8);
+ bp += *itemLen+((8-((0+ *itemLen) & 7)) & 7);
+ wxeErlTerm * clientData = new wxeErlTerm(Ecmd.bin[0]);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Append(item,clientData);
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_appendStrings_1: { // wxControlWithItems::Append
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * stringsLen = (int *) bp; bp += 4;
+ wxArrayString strings;
+ int stringsASz = 0, * stringsTemp;
+ for(int i=0; i < *stringsLen; i++) {
+ stringsTemp = (int *) bp; bp += 4;
+ strings.Add(wxString(bp, wxConvUTF8));
+ bp += *stringsTemp;
+ stringsASz += *stringsTemp+4;
+ }
+ bp += (8-((0+ stringsASz) & 7 )) & 7;
+ if(!This) throw wxe_badarg(0);
+ This->Append(strings);
+ break;
+}
+case wxControlWithItems_Clear: { // wxControlWithItems::Clear
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxControlWithItems_Delete: { // wxControlWithItems::Delete
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Delete((int) *n);
+ break;
+}
+case wxControlWithItems_FindString: { // wxControlWithItems::FindString
+ bool bCase=false;
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bCase = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindString(s,bCase);
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_getClientData: { // wxControlWithItems::GetClientObject
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxeErlTerm * Result = (wxeErlTerm*)This->GetClientObject((int) *n);
+ rt.addExt2Term(Result);
+ break;
+}
+case wxControlWithItems_setClientData: { // wxControlWithItems::SetClientObject
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ wxeErlTerm * clientData = new wxeErlTerm(Ecmd.bin[0]);
+ if(!This) throw wxe_badarg(0);
+ This->SetClientObject((int) *n,clientData);
+ break;
+}
+case wxControlWithItems_GetCount: { // wxControlWithItems::GetCount
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCount();
+ rt.addUint(Result);
+ break;
+}
+case wxControlWithItems_GetSelection: { // wxControlWithItems::GetSelection
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_GetString: { // wxControlWithItems::GetString
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetString((int) *n);
+ rt.add(Result);
+ break;
+}
+case wxControlWithItems_GetStringSelection: { // wxControlWithItems::GetStringSelection
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetStringSelection();
+ rt.add(Result);
+ break;
+}
+case wxControlWithItems_Insert_2: { // wxControlWithItems::Insert
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * itemLen = (int *) bp; bp += 4;
+ wxString item = wxString(bp, wxConvUTF8);
+ bp += *itemLen+((8-((0+ *itemLen) & 7)) & 7);
+ unsigned int * pos = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Insert(item,(int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_Insert_3: { // wxControlWithItems::Insert
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * itemLen = (int *) bp; bp += 4;
+ wxString item = wxString(bp, wxConvUTF8);
+ bp += *itemLen+((8-((0+ *itemLen) & 7)) & 7);
+ unsigned int * pos = (unsigned int *) bp; bp += 4;
+ wxeErlTerm * clientData = new wxeErlTerm(Ecmd.bin[0]);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Insert(item,(int) *pos,clientData);
+ rt.addInt(Result);
+ break;
+}
+case wxControlWithItems_IsEmpty: { // wxControlWithItems::IsEmpty
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEmpty();
+ rt.addBool(Result);
+ break;
+}
+case wxControlWithItems_Select: { // wxControlWithItems::Select
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Select((int) *n);
+ break;
+}
+case wxControlWithItems_SetSelection: { // wxControlWithItems::SetSelection
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *n);
+ break;
+}
+case wxControlWithItems_SetString: { // wxControlWithItems::SetString
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((4+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetString((int) *n,s);
+ break;
+}
+case wxControlWithItems_SetStringSelection: { // wxControlWithItems::SetStringSelection
+ wxControlWithItems *This = (wxControlWithItems *) getPtr(bp,memenv); bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetStringSelection(s);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_new_2: { // wxMenu::wxMenu
+ long style=0;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMenu * Result = new EwxMenu(title,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenu_new_1: { // wxMenu::wxMenu
+ long style=0;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMenu * Result = new EwxMenu(style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenu_Append_3: { // wxMenu::Append
+ wxString help= wxEmptyString;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Append((int) *itemid,text,help,(wxItemKind) kind);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Append_1: { // wxMenu::Append
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Append(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Append_4_0: { // wxMenu::Append
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ int * helpLen = (int *) bp; bp += 4;
+ wxString help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((4+ *helpLen) & 7)) & 7);
+ bool * isCheckable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Append((int) *itemid,text,help,(bool) *isCheckable);
+ break;
+}
+case wxMenu_Append_4_1: { // wxMenu::Append
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ wxMenu *submenu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Append((int) *itemid,text,submenu,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_AppendCheckItem: { // wxMenu::AppendCheckItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->AppendCheckItem((int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_AppendRadioItem: { // wxMenu::AppendRadioItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->AppendRadioItem((int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_AppendSeparator: { // wxMenu::AppendSeparator
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->AppendSeparator();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Break: { // wxMenu::Break
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Break();
+ break;
+}
+case wxMenu_Check: { // wxMenu::Check
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ bool * check = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Check((int) *itemid,(bool) *check);
+ break;
+}
+case wxMenu_Delete_1_0: { // wxMenu::Delete
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Delete((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_Delete_1_1: { // wxMenu::Delete
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Delete(item);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_Destroy_1_0: { // wxMenu::Destroy
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Destroy((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_Destroy_1_1: { // wxMenu::Destroy
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Destroy(item);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_Enable: { // wxMenu::Enable
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ bool * enable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Enable((int) *itemid,(bool) *enable);
+ break;
+}
+case wxMenu_FindItem_1: { // wxMenu::FindItem
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemLen = (int *) bp; bp += 4;
+ wxString item = wxString(bp, wxConvUTF8);
+ bp += *itemLen+((8-((0+ *itemLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindItem(item);
+ rt.addInt(Result);
+ break;
+}
+case wxMenu_FindItem_2: { // wxMenu::FindItem
+ wxMenu ** menu = NULL;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->FindItem((int) *itemid,menu);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_FindItemByPosition: { // wxMenu::FindItemByPosition
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * position = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->FindItemByPosition((size_t) *position);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_GetHelpString: { // wxMenu::GetHelpString
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetHelpString((int) *itemid);
+ rt.add(Result);
+ break;
+}
+case wxMenu_GetLabel: { // wxMenu::GetLabel
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel((int) *itemid);
+ rt.add(Result);
+ break;
+}
+case wxMenu_GetMenuItemCount: { // wxMenu::GetMenuItemCount
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetMenuItemCount();
+ rt.addInt(Result);
+ break;
+}
+case wxMenu_GetMenuItems: { // wxMenu::GetMenuItems
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxMenuItemList Result = This->GetMenuItems();
+ int i=0;
+ for(wxMenuItemList::const_iterator it = Result.begin(); it != Result.end(); ++it) {
+ wxMenuItem * ResultTmp = *it;
+ rt.addRef(getRef((void *)ResultTmp,memenv), "wxMenuItem"); i++;}
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxMenu_GetTitle: { // wxMenu::GetTitle
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString Result = This->GetTitle();
+ rt.add(Result);
+ break;
+}
+case wxMenu_Insert_2: { // wxMenu::Insert
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Insert((size_t) *pos,item);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Insert_3: { // wxMenu::Insert
+ wxString text= wxEmptyString;
+ wxString help= wxEmptyString;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Insert((size_t) *pos,(int) *itemid,text,help,(wxItemKind) kind);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Insert_5_1: { // wxMenu::Insert
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ wxMenu *submenu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Insert((size_t) *pos,(int) *itemid,text,submenu,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Insert_5_0: { // wxMenu::Insert
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ int * helpLen = (int *) bp; bp += 4;
+ wxString help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((4+ *helpLen) & 7)) & 7);
+ bool * isCheckable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Insert((size_t) *pos,(int) *itemid,text,help,(bool) *isCheckable);
+ break;
+}
+case wxMenu_InsertCheckItem: { // wxMenu::InsertCheckItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->InsertCheckItem((size_t) *pos,(int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_InsertRadioItem: { // wxMenu::InsertRadioItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->InsertRadioItem((size_t) *pos,(int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_InsertSeparator: { // wxMenu::InsertSeparator
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->InsertSeparator((size_t) *pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_IsChecked: { // wxMenu::IsChecked
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_IsEnabled: { // wxMenu::IsEnabled
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEnabled((int) *itemid);
+ rt.addBool(Result);
+ break;
+}
+case wxMenu_Prepend_1: { // wxMenu::Prepend
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Prepend(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Prepend_2: { // wxMenu::Prepend
+ wxString text= wxEmptyString;
+ wxString help= wxEmptyString;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Prepend((int) *itemid,text,help,(wxItemKind) kind);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Prepend_4_1: { // wxMenu::Prepend
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ wxMenu *submenu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Prepend((int) *itemid,text,submenu,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Prepend_4_0: { // wxMenu::Prepend
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ int * helpLen = (int *) bp; bp += 4;
+ wxString help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((4+ *helpLen) & 7)) & 7);
+ bool * isCheckable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Prepend((int) *itemid,text,help,(bool) *isCheckable);
+ break;
+}
+case wxMenu_PrependCheckItem: { // wxMenu::PrependCheckItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->PrependCheckItem((int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_PrependRadioItem: { // wxMenu::PrependRadioItem
+ wxString help= wxEmptyString;
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->PrependRadioItem((int) *itemid,text,help);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_PrependSeparator: { // wxMenu::PrependSeparator
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->PrependSeparator();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Remove_1_0: { // wxMenu::Remove
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Remove((int) *itemid);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_Remove_1_1: { // wxMenu::Remove
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ wxMenuItem *item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenuItem * Result = (wxMenuItem*)This->Remove(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenu_SetHelpString: { // wxMenu::SetHelpString
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * helpStringLen = (int *) bp; bp += 4;
+ wxString helpString = wxString(bp, wxConvUTF8);
+ bp += *helpStringLen+((8-((4+ *helpStringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetHelpString((int) *itemid,helpString);
+ break;
+}
+case wxMenu_SetLabel: { // wxMenu::SetLabel
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * itemid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel((int) *itemid,label);
+ break;
+}
+case wxMenu_SetTitle: { // wxMenu::SetTitle
+ wxMenu *This = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetTitle(title);
+ break;
+}
+case wxMenuItem_new: { // wxMenuItem::wxMenuItem
+ wxMenu * parentMenu=(wxMenu *) NULL;
+ int id=wxID_SEPARATOR;
+ wxString text= wxEmptyString;
+ wxString help= wxEmptyString;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxMenu * subMenu=(wxMenu *) NULL;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+parentMenu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ id = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * helpLen = (int *) bp; bp += 4;
+ help = wxString(bp, wxConvUTF8);
+ bp += *helpLen+((8-((0+ *helpLen) & 7)) & 7);
+ } break;
+ case 5: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ case 6: {bp += 4;
+subMenu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxMenuItem * Result = new EwxMenuItem(parentMenu,id,text,help,(wxItemKind) kind,subMenu);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuItem");
+ break;
+}
+case wxMenuItem_Check: { // wxMenuItem::Check
+ bool check=TRUE;
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ check = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Check(check);
+ break;
+}
+case wxMenuItem_Enable: { // wxMenuItem::Enable
+ bool enable=TRUE;
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Enable(enable);
+ break;
+}
+case wxMenuItem_GetBitmap: { // wxMenuItem::GetBitmap
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBitmap * Result = &This->GetBitmap();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxMenuItem_GetHelp: { // wxMenuItem::GetHelp
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetHelp();
+ rt.add(Result);
+ break;
+}
+case wxMenuItem_GetId: { // wxMenuItem::GetId
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetId();
+ rt.addInt(Result);
+ break;
+}
+case wxMenuItem_GetKind: { // wxMenuItem::GetKind
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKind();
+ rt.addInt(Result);
+ break;
+}
+case wxMenuItem_GetLabel: { // wxMenuItem::GetLabel
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxMenuItem_GetLabelFromText: { // wxMenuItem::GetLabelFromText
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ wxString Result = wxMenuItem::GetLabelFromText(text);
+ rt.add(Result);
+ break;
+}
+case wxMenuItem_GetMenu: { // wxMenuItem::GetMenu
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->GetMenu();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuItem_GetText: { // wxMenuItem::GetText
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxMenuItem_GetSubMenu: { // wxMenuItem::GetSubMenu
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->GetSubMenu();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuItem_IsCheckable: { // wxMenuItem::IsCheckable
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsCheckable();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuItem_IsChecked: { // wxMenuItem::IsChecked
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuItem_IsEnabled: { // wxMenuItem::IsEnabled
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuItem_IsSeparator: { // wxMenuItem::IsSeparator
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSeparator();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuItem_IsSubMenu: { // wxMenuItem::IsSubMenu
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSubMenu();
+ rt.addBool(Result);
+ break;
+}
+case wxMenuItem_SetBitmap: { // wxMenuItem::SetBitmap
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmap(*bitmap);
+ break;
+}
+case wxMenuItem_SetHelp: { // wxMenuItem::SetHelp
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetHelp(str);
+ break;
+}
+case wxMenuItem_SetMenu: { // wxMenuItem::SetMenu
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMenu(menu);
+ break;
+}
+case wxMenuItem_SetSubMenu: { // wxMenuItem::SetSubMenu
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ wxMenu *menu = (wxMenu *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSubMenu(menu);
+ break;
+}
+case wxMenuItem_SetText: { // wxMenuItem::SetText
+ wxMenuItem *This = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetText(str);
+ break;
+}
+case wxToolBar_AddControl: { // wxToolBar::AddControl
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ wxControl *control = (wxControl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddControl(control);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddSeparator: { // wxToolBar::AddSeparator
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddSeparator();
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_5: { // wxToolBar::AddTool
+ wxItemKind kind=wxITEM_NORMAL;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxObject * data=NULL;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ case 2: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+data = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool((int) *toolid,label,*bitmap,*bmpDisabled,(wxItemKind) kind,shortHelp,longHelp,data);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_4_0: { // wxToolBar::AddTool
+ wxString shortHelp= wxEmptyString;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool((int) *toolid,label,*bitmap,shortHelp,(wxItemKind) kind);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_1: { // wxToolBar::AddTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ wxToolBarToolBase *tool = (wxToolBarToolBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool(tool);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_4_1: { // wxToolBar::AddTool
+ bool toggle=false;
+ wxObject * clientData=NULL;
+ wxString shortHelpString= wxEmptyString;
+ wxString longHelpString= wxEmptyString;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ toggle = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+clientData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 3: {bp += 4;
+ int * shortHelpStringLen = (int *) bp; bp += 4;
+ shortHelpString = wxString(bp, wxConvUTF8);
+ bp += *shortHelpStringLen+((8-((0+ *shortHelpStringLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * longHelpStringLen = (int *) bp; bp += 4;
+ longHelpString = wxString(bp, wxConvUTF8);
+ bp += *longHelpStringLen+((8-((0+ *longHelpStringLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool((int) *toolid,*bitmap,*bmpDisabled,toggle,clientData,shortHelpString,longHelpString);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_3: { // wxToolBar::AddTool
+ wxString shortHelpString= wxEmptyString;
+ wxString longHelpString= wxEmptyString;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * shortHelpStringLen = (int *) bp; bp += 4;
+ shortHelpString = wxString(bp, wxConvUTF8);
+ bp += *shortHelpStringLen+((8-((0+ *shortHelpStringLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * longHelpStringLen = (int *) bp; bp += 4;
+ longHelpString = wxString(bp, wxConvUTF8);
+ bp += *longHelpStringLen+((8-((0+ *longHelpStringLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool((int) *toolid,*bitmap,shortHelpString,longHelpString);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddTool_6: { // wxToolBar::AddTool
+ wxCoord yPos=wxDefaultCoord;
+ wxObject * clientData=NULL;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bool * toggle = (bool *) bp; bp += 4;
+ int * xPos = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ yPos = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+clientData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 3: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool((int) *toolid,*bitmap,*bmpDisabled,(bool) *toggle,(wxCoord) *xPos,yPos,clientData,shortHelp,longHelp);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddCheckTool: { // wxToolBar::AddCheckTool
+ const wxBitmap * bmpDisabled= &wxNullBitmap;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxObject * data=NULL;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+data = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddCheckTool((int) *toolid,label,*bitmap,*bmpDisabled,shortHelp,longHelp,data);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_AddRadioTool: { // wxToolBar::AddRadioTool
+ const wxBitmap * bmpDisabled= &wxNullBitmap;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxObject * data=NULL;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+data = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddRadioTool((int) *toolid,label,*bitmap,*bmpDisabled,shortHelp,longHelp,data);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_DeleteTool: { // wxToolBar::DeleteTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteTool((int) *toolid);
+ rt.addBool(Result);
+ break;
+}
+case wxToolBar_DeleteToolByPos: { // wxToolBar::DeleteToolByPos
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteToolByPos((size_t) *pos);
+ rt.addBool(Result);
+ break;
+}
+case wxToolBar_EnableTool: { // wxToolBar::EnableTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ bool * enable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableTool((int) *toolid,(bool) *enable);
+ break;
+}
+case wxToolBar_FindById: { // wxToolBar::FindById
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->FindById((int) *toolid);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_FindControl: { // wxToolBar::FindControl
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxControl * Result = (wxControl*)This->FindControl((int) *toolid);
+ rt.addRef(getRef((void *)Result,memenv), "wxControl");
+ break;
+}
+case wxToolBar_FindToolForPosition: { // wxToolBar::FindToolForPosition
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->FindToolForPosition((wxCoord) *x,(wxCoord) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_GetToolSize: { // wxToolBar::GetToolSize
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetToolSize();
+ rt.add(Result);
+ break;
+}
+case wxToolBar_GetToolBitmapSize: { // wxToolBar::GetToolBitmapSize
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetToolBitmapSize();
+ rt.add(Result);
+ break;
+}
+case wxToolBar_GetMargins: { // wxToolBar::GetMargins
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMargins();
+ rt.add(Result);
+ break;
+}
+case wxToolBar_GetToolEnabled: { // wxToolBar::GetToolEnabled
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetToolEnabled((int) *toolid);
+ rt.addBool(Result);
+ break;
+}
+case wxToolBar_GetToolLongHelp: { // wxToolBar::GetToolLongHelp
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetToolLongHelp((int) *toolid);
+ rt.add(Result);
+ break;
+}
+case wxToolBar_GetToolPacking: { // wxToolBar::GetToolPacking
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetToolPacking();
+ rt.addInt(Result);
+ break;
+}
+case wxToolBar_GetToolPos: { // wxToolBar::GetToolPos
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetToolPos((int) *id);
+ rt.addInt(Result);
+ break;
+}
+case wxToolBar_GetToolSeparation: { // wxToolBar::GetToolSeparation
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetToolSeparation();
+ rt.addInt(Result);
+ break;
+}
+case wxToolBar_GetToolShortHelp: { // wxToolBar::GetToolShortHelp
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetToolShortHelp((int) *toolid);
+ rt.add(Result);
+ break;
+}
+case wxToolBar_GetToolState: { // wxToolBar::GetToolState
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetToolState((int) *toolid);
+ rt.addBool(Result);
+ break;
+}
+case wxToolBar_InsertControl: { // wxToolBar::InsertControl
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxControl *control = (wxControl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->InsertControl((size_t) *pos,control);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_InsertSeparator: { // wxToolBar::InsertSeparator
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->InsertSeparator((size_t) *pos);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_InsertTool_5: { // wxToolBar::InsertTool
+ const wxBitmap * bmpDisabled= &wxNullBitmap;
+ wxItemKind kind=wxITEM_NORMAL;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxObject * clientData=NULL;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+kind = *(wxItemKind *) bp; bp += 4;;
+ } break;
+ case 3: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ case 5: {bp += 4;
+clientData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->InsertTool((size_t) *pos,(int) *toolid,label,*bitmap,*bmpDisabled,(wxItemKind) kind,shortHelp,longHelp,clientData);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_InsertTool_2: { // wxToolBar::InsertTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxToolBarToolBase *tool = (wxToolBarToolBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->InsertTool((size_t) *pos,tool);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_InsertTool_4: { // wxToolBar::InsertTool
+ const wxBitmap * bmpDisabled= &wxNullBitmap;
+ bool toggle=false;
+ wxObject * clientData=NULL;
+ wxString shortHelp= wxEmptyString;
+ wxString longHelp= wxEmptyString;
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+bmpDisabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ toggle = *(bool *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+clientData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 4: {bp += 4;
+ int * shortHelpLen = (int *) bp; bp += 4;
+ shortHelp = wxString(bp, wxConvUTF8);
+ bp += *shortHelpLen+((8-((0+ *shortHelpLen) & 7)) & 7);
+ } break;
+ case 5: {bp += 4;
+ int * longHelpLen = (int *) bp; bp += 4;
+ longHelp = wxString(bp, wxConvUTF8);
+ bp += *longHelpLen+((8-((0+ *longHelpLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->InsertTool((size_t) *pos,(int) *toolid,*bitmap,*bmpDisabled,toggle,clientData,shortHelp,longHelp);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_Realize: { // wxToolBar::Realize
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Realize();
+ rt.addBool(Result);
+ break;
+}
+case wxToolBar_RemoveTool: { // wxToolBar::RemoveTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->RemoveTool((int) *toolid);
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxToolBar_SetMargins: { // wxToolBar::SetMargins
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMargins((int) *x,(int) *y);
+ break;
+}
+case wxToolBar_SetToolBitmapSize: { // wxToolBar::SetToolBitmapSize
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetToolBitmapSize(size);
+ break;
+}
+case wxToolBar_SetToolLongHelp: { // wxToolBar::SetToolLongHelp
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ int * helpStringLen = (int *) bp; bp += 4;
+ wxString helpString = wxString(bp, wxConvUTF8);
+ bp += *helpStringLen+((8-((4+ *helpStringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetToolLongHelp((int) *toolid,helpString);
+ break;
+}
+case wxToolBar_SetToolPacking: { // wxToolBar::SetToolPacking
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * packing = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetToolPacking((int) *packing);
+ break;
+}
+case wxToolBar_SetToolShortHelp: { // wxToolBar::SetToolShortHelp
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * helpStringLen = (int *) bp; bp += 4;
+ wxString helpString = wxString(bp, wxConvUTF8);
+ bp += *helpStringLen+((8-((4+ *helpStringLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetToolShortHelp((int) *id,helpString);
+ break;
+}
+case wxToolBar_SetToolSeparation: { // wxToolBar::SetToolSeparation
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * separation = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetToolSeparation((int) *separation);
+ break;
+}
+case wxToolBar_ToggleTool: { // wxToolBar::ToggleTool
+ wxToolBar *This = (wxToolBar *) getPtr(bp,memenv); bp += 4;
+ int * toolid = (int *) bp; bp += 4;
+ bool * toggle = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ToggleTool((int) *toolid,(bool) *toggle);
+ break;
+}
+case wxStatusBar_new_0: { // wxStatusBar::wxStatusBar
+ wxStatusBar * Result = new EwxStatusBar();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStatusBar");
+ break;
+}
+case wxStatusBar_new_2: { // wxStatusBar::wxStatusBar
+ wxWindowID winid=wxID_ANY;
+ long style=wxST_SIZEGRIP;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStatusBar * Result = new EwxStatusBar(parent,winid,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStatusBar");
+ break;
+}
+case wxStatusBar_Create: { // wxStatusBar::Create
+ wxWindowID winid=wxID_ANY;
+ long style=wxST_SIZEGRIP;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,winid,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStatusBar_GetFieldRect: { // wxStatusBar::GetFieldRect
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * i = (int *) bp; bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetFieldRect((int) *i,rect);
+ rt.addBool(Result);
+ break;
+}
+case wxStatusBar_GetFieldsCount: { // wxStatusBar::GetFieldsCount
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFieldsCount();
+ rt.addInt(Result);
+ break;
+}
+case wxStatusBar_GetStatusText: { // wxStatusBar::GetStatusText
+ int number=0;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetStatusText(number);
+ rt.add(Result);
+ break;
+}
+case wxStatusBar_PopStatusText: { // wxStatusBar::PopStatusText
+ int number=0;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->PopStatusText(number);
+ break;
+}
+case wxStatusBar_PushStatusText: { // wxStatusBar::PushStatusText
+ int number=0;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->PushStatusText(text,number);
+ break;
+}
+case wxStatusBar_SetFieldsCount: { // wxStatusBar::SetFieldsCount
+ int * widthsLen = 0;
+ int * widths = (int *) NULL;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * number = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ widthsLen = (int *) bp; bp += 4;
+ widths = (int *) bp; bp += *widthsLen*4+((0+ *widthsLen)%2 )*4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetFieldsCount((int) *number,widths);
+ break;
+}
+case wxStatusBar_SetMinHeight: { // wxStatusBar::SetMinHeight
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinHeight((int) *height);
+ break;
+}
+case wxStatusBar_SetStatusText: { // wxStatusBar::SetStatusText
+ int number=0;
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ number = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusText(text,number);
+ break;
+}
+case wxStatusBar_SetStatusWidths: { // wxStatusBar::SetStatusWidths
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * widths_fieldLen = (int *) bp; bp += 4;
+ int * widths_field = (int *) bp; bp += *widths_fieldLen*4+((0+ *widths_fieldLen)%2 )*4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusWidths(*widths_fieldLen,widths_field);
+ break;
+}
+case wxStatusBar_SetStatusStyles: { // wxStatusBar::SetStatusStyles
+ wxStatusBar *This = (wxStatusBar *) getPtr(bp,memenv); bp += 4;
+ int * stylesLen = (int *) bp; bp += 4;
+ int * styles = (int *) bp; bp += *stylesLen*4+((0+ *stylesLen)%2 )*4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatusStyles(*stylesLen,styles);
+ break;
+}
+case wxBitmap_new_0: { // wxBitmap::wxBitmap
+ wxBitmap * Result = new EwxBitmap();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_new_3: { // wxBitmap::wxBitmap
+ int depth=-1;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ depth = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBitmap * Result = new EwxBitmap((int) *width,(int) *height,depth);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_new_4: { // wxBitmap::wxBitmap
+ int depth=1;
+ const char * bits = (const char*) Ecmd.bin[0]->base;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ depth = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBitmap * Result = new EwxBitmap(bits,(int) *width,(int) *height,depth);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_new_2_0: { // wxBitmap::wxBitmap
+ wxBitmapType type=wxBITMAP_TYPE_XPM;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((4+ *filenameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+type = *(wxBitmapType *) bp; bp += 4;;
+ } break;
+ }};
+ wxBitmap * Result = new EwxBitmap(filename,(wxBitmapType) type);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_new_2_1: { // wxBitmap::wxBitmap
+ int depth=-1;
+ wxImage *image = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ depth = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBitmap * Result = new EwxBitmap(*image,depth);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_ConvertToImage: { // wxBitmap::ConvertToImage
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->ConvertToImage()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxBitmap_CopyFromIcon: { // wxBitmap::CopyFromIcon
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CopyFromIcon(*icon);
+ rt.addBool(Result);
+ break;
+}
+case wxBitmap_Create: { // wxBitmap::Create
+ int depth=-1;
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ depth = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create((int) *width,(int) *height,depth);
+ rt.addBool(Result);
+ break;
+}
+case wxBitmap_GetDepth: { // wxBitmap::GetDepth
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDepth();
+ rt.addInt(Result);
+ break;
+}
+case wxBitmap_GetHeight: { // wxBitmap::GetHeight
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxBitmap_GetPalette: { // wxBitmap::GetPalette
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPalette * Result = (wxPalette*)This->GetPalette();
+ rt.addRef(getRef((void *)Result,memenv), "wxPalette");
+ break;
+}
+case wxBitmap_GetMask: { // wxBitmap::GetMask
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMask * Result = (wxMask*)This->GetMask();
+ rt.addRef(getRef((void *)Result,memenv), "wxMask");
+ break;
+}
+case wxBitmap_GetWidth: { // wxBitmap::GetWidth
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxBitmap_GetSubBitmap: { // wxBitmap::GetSubBitmap
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->GetSubBitmap(rect)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmap_LoadFile: { // wxBitmap::LoadFile
+ wxBitmapType type=wxBITMAP_TYPE_XPM;
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+type = *(wxBitmapType *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(name,(wxBitmapType) type);
+ rt.addBool(Result);
+ break;
+}
+case wxBitmap_Ok: { // wxBitmap::Ok
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Ok();
+ rt.addBool(Result);
+ break;
+}
+case wxBitmap_SaveFile: { // wxBitmap::SaveFile
+ const wxPalette * palette=(wxPalette *) NULL;
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ wxBitmapType type = *(wxBitmapType *) bp; bp += 4;;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(name,(wxBitmapType) type,palette);
+ rt.addBool(Result);
+ break;
+}
+case wxBitmap_SetDepth: { // wxBitmap::SetDepth
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * depth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDepth((int) *depth);
+ break;
+}
+case wxBitmap_SetHeight: { // wxBitmap::SetHeight
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHeight((int) *height);
+ break;
+}
+case wxBitmap_SetMask: { // wxBitmap::SetMask
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxMask *mask = (wxMask *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMask(mask);
+ break;
+}
+case wxBitmap_SetPalette: { // wxBitmap::SetPalette
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxPalette *palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPalette(*palette);
+ break;
+}
+case wxBitmap_SetWidth: { // wxBitmap::SetWidth
+ wxBitmap *This = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWidth((int) *width);
+ break;
+}
+case wxIcon_new_0: { // wxIcon::wxIcon
+ wxIcon * Result = new EwxIcon();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxIcon_new_2: { // wxIcon::wxIcon
+ wxBitmapType type=wxBITMAP_TYPE_XPM;
+ int desiredWidth=-1;
+ int desiredHeight=-1;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((4+ *filenameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+type = *(wxBitmapType *) bp; bp += 4;;
+ } break;
+ case 2: {bp += 4;
+ desiredWidth = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ desiredHeight = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxIcon * Result = new EwxIcon(filename,(wxBitmapType) type,desiredWidth,desiredHeight);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxIcon_new_1: { // wxIcon::wxIcon
+ wxIconLocation *loc = (wxIconLocation *) getPtr(bp,memenv); bp += 4;
+ wxIcon * Result = new EwxIcon(*loc);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxIcon_CopyFromBitmap: { // wxIcon::CopyFromBitmap
+ wxIcon *This = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CopyFromBitmap(*bmp);
+ break;
+}
+case wxIconBundle_new_0: { // wxIconBundle::wxIconBundle
+ wxIconBundle * Result = new wxIconBundle();
+ newPtr((void *) Result, 61, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIconBundle");
+ break;
+}
+case wxIconBundle_new_2: { // wxIconBundle::wxIconBundle
+ int * fileLen = (int *) bp; bp += 4;
+ wxString file = wxString(bp, wxConvUTF8);
+ bp += *fileLen+((8-((4+ *fileLen) & 7)) & 7);
+ int * type = (int *) bp; bp += 4;
+ wxIconBundle * Result = new wxIconBundle(file,(long) *type);
+ newPtr((void *) Result, 61, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIconBundle");
+ break;
+}
+case wxIconBundle_new_1_0: { // wxIconBundle::wxIconBundle
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ wxIconBundle * Result = new wxIconBundle(*icon);
+ newPtr((void *) Result, 61, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIconBundle");
+ break;
+}
+case wxIconBundle_new_1_1: { // wxIconBundle::wxIconBundle
+ wxIconBundle * ic = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ wxIconBundle * Result = new wxIconBundle(*ic);
+ newPtr((void *) Result, 61, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxIconBundle");
+ break;
+}
+case wxIconBundle_destruct: { // wxIconBundle::~wxIconBundle
+ wxIconBundle *This = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxIconBundle_AddIcon_2: { // wxIconBundle::AddIcon
+ wxIconBundle *This = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ int * fileLen = (int *) bp; bp += 4;
+ wxString file = wxString(bp, wxConvUTF8);
+ bp += *fileLen+((8-((0+ *fileLen) & 7)) & 7);
+ int * type = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddIcon(file,(long) *type);
+ break;
+}
+case wxIconBundle_AddIcon_1: { // wxIconBundle::AddIcon
+ wxIconBundle *This = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ wxIcon *icon = (wxIcon *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddIcon(*icon);
+ break;
+}
+case wxIconBundle_GetIcon_1_1: { // wxIconBundle::GetIcon
+ wxIconBundle *This = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ const wxIcon * Result = &This->GetIcon(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxIconBundle_GetIcon_1_0: { // wxIconBundle::GetIcon
+ wxCoord size=wxDefaultCoord;
+ wxIconBundle *This = (wxIconBundle *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ size = (wxCoord)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ const wxIcon * Result = &This->GetIcon(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxCursor_new_0: { // wxCursor::wxCursor
+ wxCursor * Result = new EwxCursor();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxCursor_new_1_0: { // wxCursor::wxCursor
+ int * cursorId = (int *) bp; bp += 4;
+ wxCursor * Result = new EwxCursor((int) *cursorId);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxCursor_new_1_1: { // wxCursor::wxCursor
+ wxImage *image = (wxImage *) getPtr(bp,memenv); bp += 4;
+ wxCursor * Result = new EwxCursor(*image);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxCursor_new_4: { // wxCursor::wxCursor
+ int hotSpotX=-1;
+ int hotSpotY=-1;
+ const char * bits = (const char*) Ecmd.bin[0]->base;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ hotSpotX = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ hotSpotY = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxCursor * Result = new EwxCursor(bits,(int) *width,(int) *height,hotSpotX,hotSpotY);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxCursor_Ok: { // wxCursor::Ok
+ wxCursor *This = (wxCursor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Ok();
+ rt.addBool(Result);
+ break;
+}
+case wxMask_new_0: { // wxMask::wxMask
+ wxMask * Result = new EwxMask();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMask");
+ break;
+}
+case wxMask_new_2_1: { // wxMask::wxMask
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ wxMask * Result = new EwxMask(*bitmap,colour);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMask");
+ break;
+}
+case wxMask_new_2_0: { // wxMask::wxMask
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * paletteIndex = (int *) bp; bp += 4;
+ wxMask * Result = new EwxMask(*bitmap,(int) *paletteIndex);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMask");
+ break;
+}
+case wxMask_new_1: { // wxMask::wxMask
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxMask * Result = new EwxMask(*bitmap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMask");
+ break;
+}
+case wxMask_Create_2_1: { // wxMask::Create
+ wxMask *This = (wxMask *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(*bitmap,colour);
+ rt.addBool(Result);
+ break;
+}
+case wxMask_Create_2_0: { // wxMask::Create
+ wxMask *This = (wxMask *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * paletteIndex = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(*bitmap,(int) *paletteIndex);
+ rt.addBool(Result);
+ break;
+}
+case wxMask_Create_1: { // wxMask::Create
+ wxMask *This = (wxMask *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(*bitmap);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_new_0: { // wxImage::wxImage
+ wxImage * Result = new EwxImage();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_new_3_0: { // wxImage::wxImage
+ bool clear=true;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ clear = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ wxImage * Result = new EwxImage((int) *width,(int) *height,clear);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_new_4: { // wxImage::wxImage
+ bool static_data=false;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) {data = (unsigned char *) malloc(Ecmd.bin[0]->size);memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);};
+ wxImage * Result = new EwxImage((int) *width,(int) *height,data,static_data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_new_5: { // wxImage::wxImage
+ bool static_data=false;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ unsigned char * alpha = (unsigned char*) Ecmd.bin[1]->base;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) { data = (unsigned char *) malloc(Ecmd.bin[0]->size); alpha = (unsigned char *) malloc(Ecmd.bin[1]->size); memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size); memcpy(alpha,Ecmd.bin[1]->base,Ecmd.bin[1]->size);};
+ wxImage * Result = new EwxImage((int) *width,(int) *height,data,alpha,static_data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_new_2: { // wxImage::wxImage
+ long type=wxBITMAP_TYPE_ANY;
+ int index=-1;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ type = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ index = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxImage * Result = new EwxImage(name,type,index);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_new_3_1: { // wxImage::wxImage
+ int index=-1;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ int * mimetypeLen = (int *) bp; bp += 4;
+ wxString mimetype = wxString(bp, wxConvUTF8);
+ bp += *mimetypeLen+((8-((4+ *mimetypeLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ index = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxImage * Result = new EwxImage(name,mimetype,index);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Blur: { // wxImage::Blur
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * radius = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Blur((int) *radius)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_BlurHorizontal: { // wxImage::BlurHorizontal
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * radius = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->BlurHorizontal((int) *radius)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_BlurVertical: { // wxImage::BlurVertical
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * radius = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->BlurVertical((int) *radius)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_ConvertAlphaToMask: { // wxImage::ConvertAlphaToMask
+ char threshold=wxIMAGE_ALPHA_THRESHOLD;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ threshold = (char)*(unsigned int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ConvertAlphaToMask(threshold);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_ConvertToGreyscale: { // wxImage::ConvertToGreyscale
+ double lr=0.299;
+ double lg=0.587;
+ double lb=0.114;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bp += 4; /* Align */
+ lr = * (double *) bp; bp += 8;
+ } break;
+ case 2: {bp += 4;
+ bp += 4; /* Align */
+ lg = * (double *) bp; bp += 8;
+ } break;
+ case 3: {bp += 4;
+ bp += 4; /* Align */
+ lb = * (double *) bp; bp += 8;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->ConvertToGreyscale(lr,lg,lb)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_ConvertToMono: { // wxImage::ConvertToMono
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned int * r = (unsigned int *) bp; bp += 4;
+ unsigned int * g = (unsigned int *) bp; bp += 4;
+ unsigned int * b = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->ConvertToMono((char) *r,(char) *g,(char) *b)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Copy: { // wxImage::Copy
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Copy()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Create_3: { // wxImage::Create
+ bool clear=true;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ clear = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create((int) *width,(int) *height,clear);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Create_4: { // wxImage::Create
+ bool static_data=false;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) {data = (unsigned char *) malloc(Ecmd.bin[0]->size);memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create((int) *width,(int) *height,data,static_data);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Create_5: { // wxImage::Create
+ bool static_data=false;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ unsigned char * alpha = (unsigned char*) Ecmd.bin[1]->base;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) { data = (unsigned char *) malloc(Ecmd.bin[0]->size); alpha = (unsigned char *) malloc(Ecmd.bin[1]->size); memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size); memcpy(alpha,Ecmd.bin[1]->base,Ecmd.bin[1]->size);};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create((int) *width,(int) *height,data,alpha,static_data);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Destroy: { // wxImage::Destroy
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Destroy();
+ break;
+}
+case wxImage_FindFirstUnusedColour: { // wxImage::FindFirstUnusedColour
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+ char startR=1;
+ char startG=0;
+ char startB=0;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ startR = (char)*(unsigned int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ startG = (char)*(unsigned int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ startB = (char)*(unsigned int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->FindFirstUnusedColour(&r,&g,&b,startR,startG,startB);
+ rt.addBool(Result);
+ rt.addUint(r);
+ rt.addUint(g);
+ rt.addUint(b);
+ rt.addTupleCount(4);
+ break;
+}
+case wxImage_GetImageExtWildcard: { // wxImage::GetImageExtWildcard
+ wxString Result = wxImage::GetImageExtWildcard();
+ rt.add(Result);
+ break;
+}
+case wxImage_GetAlpha_2: { // wxImage::GetAlpha
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetAlpha((int) *x,(int) *y);
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetAlpha_0: { // wxImage::GetAlpha
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = (char*)This->GetAlpha();
+ if(Result) {
+ rt.addBinary(Result, (This->GetWidth()*This->GetHeight()));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxImage_GetBlue: { // wxImage::GetBlue
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetBlue((int) *x,(int) *y);
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetData: { // wxImage::GetData
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = (char*)This->GetData();
+ if(Result) {
+ rt.addBinary(Result, (This->GetWidth()*This->GetHeight()*3));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxImage_GetGreen: { // wxImage::GetGreen
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetGreen((int) *x,(int) *y);
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetImageCount: { // wxImage::GetImageCount
+ long type=wxBITMAP_TYPE_ANY;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ type = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ int Result = wxImage::GetImageCount(name,type);
+ rt.addInt(Result);
+ break;
+}
+case wxImage_GetHeight: { // wxImage::GetHeight
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxImage_GetMaskBlue: { // wxImage::GetMaskBlue
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetMaskBlue();
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetMaskGreen: { // wxImage::GetMaskGreen
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetMaskGreen();
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetMaskRed: { // wxImage::GetMaskRed
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetMaskRed();
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetOrFindMaskColour: { // wxImage::GetOrFindMaskColour
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetOrFindMaskColour(&r,&g,&b);
+ rt.addBool(Result);
+ rt.addUint(r);
+ rt.addUint(g);
+ rt.addUint(b);
+ rt.addTupleCount(4);
+ break;
+}
+case wxImage_GetPalette: { // wxImage::GetPalette
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxPalette * Result = &This->GetPalette();
+ rt.addRef(getRef((void *)Result,memenv), "wxPalette");
+ break;
+}
+case wxImage_GetRed: { // wxImage::GetRed
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char Result = This->GetRed((int) *x,(int) *y);
+ rt.addUint(Result);
+ break;
+}
+case wxImage_GetSubImage: { // wxImage::GetSubImage
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->GetSubImage(rect)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_GetWidth: { // wxImage::GetWidth
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxImage_HasAlpha: { // wxImage::HasAlpha
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasAlpha();
+ rt.addBool(Result);
+ break;
+}
+case wxImage_HasMask: { // wxImage::HasMask
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasMask();
+ rt.addBool(Result);
+ break;
+}
+case wxImage_GetOption: { // wxImage::GetOption
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetOption(name);
+ rt.add(Result);
+ break;
+}
+case wxImage_GetOptionInt: { // wxImage::GetOptionInt
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOptionInt(name);
+ rt.addInt(Result);
+ break;
+}
+case wxImage_HasOption: { // wxImage::HasOption
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasOption(name);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_InitAlpha: { // wxImage::InitAlpha
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InitAlpha();
+ break;
+}
+case wxImage_InitStandardHandlers: { // wxImage::InitStandardHandlers
+ wxImage::InitStandardHandlers();
+ break;
+}
+case wxImage_IsTransparent: { // wxImage::IsTransparent
+ char threshold=wxIMAGE_ALPHA_THRESHOLD;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ threshold = (char)*(unsigned int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsTransparent((int) *x,(int) *y,threshold);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_LoadFile_2: { // wxImage::LoadFile
+ long type=wxBITMAP_TYPE_ANY;
+ int index=-1;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ type = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ index = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(name,type,index);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_LoadFile_3: { // wxImage::LoadFile
+ int index=-1;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ int * mimetypeLen = (int *) bp; bp += 4;
+ wxString mimetype = wxString(bp, wxConvUTF8);
+ bp += *mimetypeLen+((8-((4+ *mimetypeLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ index = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(name,mimetype,index);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Ok: { // wxImage::Ok
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Ok();
+ rt.addBool(Result);
+ break;
+}
+case wxImage_RemoveHandler: { // wxImage::RemoveHandler
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ bool Result = wxImage::RemoveHandler(name);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Mirror: { // wxImage::Mirror
+ bool horizontally=true;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ horizontally = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Mirror(horizontally)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Replace: { // wxImage::Replace
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned int * r1 = (unsigned int *) bp; bp += 4;
+ unsigned int * g1 = (unsigned int *) bp; bp += 4;
+ unsigned int * b1 = (unsigned int *) bp; bp += 4;
+ unsigned int * r2 = (unsigned int *) bp; bp += 4;
+ unsigned int * g2 = (unsigned int *) bp; bp += 4;
+ unsigned int * b2 = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Replace((char) *r1,(char) *g1,(char) *b1,(char) *r2,(char) *g2,(char) *b2);
+ break;
+}
+case wxImage_Rescale: { // wxImage::Rescale
+ int quality=wxIMAGE_QUALITY_NORMAL;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ quality = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = &This->Rescale((int) *width,(int) *height,quality);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Resize: { // wxImage::Resize
+ int r=-1;
+ int g=-1;
+ int b=-1;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ r = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ g = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ b = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = &This->Resize(size,pos,r,g,b);
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Rotate: { // wxImage::Rotate
+ bool interpolating=true;
+ wxPoint *offset_after_rotation=(wxPoint *) NULL; wxPoint offset_after_rotationTmp;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ double * angle = (double *) bp; bp += 8;
+ int * centre_of_rotationX = (int *) bp; bp += 4;
+ int * centre_of_rotationY = (int *) bp; bp += 4;
+ wxPoint centre_of_rotation = wxPoint(*centre_of_rotationX,*centre_of_rotationY);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ interpolating = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * offset_after_rotationX = (int *) bp; bp += 4;
+ int * offset_after_rotationY = (int *) bp; bp += 4;
+ offset_after_rotationTmp = wxPoint(*offset_after_rotationX,*offset_after_rotationY); offset_after_rotation = & offset_after_rotationTmp;
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Rotate((double) *angle,centre_of_rotation,interpolating,offset_after_rotation)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_RotateHue: { // wxImage::RotateHue
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ double * angle = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->RotateHue((double) *angle);
+ break;
+}
+case wxImage_Rotate90: { // wxImage::Rotate90
+ bool clockwise=true;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ clockwise = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Rotate90(clockwise)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_SaveFile_1: { // wxImage::SaveFile
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(name);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_SaveFile_2_0: { // wxImage::SaveFile
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ int * type = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(name,(int) *type);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_SaveFile_2_1: { // wxImage::SaveFile
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ int * mimetypeLen = (int *) bp; bp += 4;
+ wxString mimetype = wxString(bp, wxConvUTF8);
+ bp += *mimetypeLen+((8-((4+ *mimetypeLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(name,mimetype);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_Scale: { // wxImage::Scale
+ int quality=wxIMAGE_QUALITY_NORMAL;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ quality = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Scale((int) *width,(int) *height,quality)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_Size: { // wxImage::Size
+ int r=-1;
+ int g=-1;
+ int b=-1;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ r = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ g = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ b = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxImage * Result = new wxImage(This->Size(size,pos,r,g,b)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxImage");
+ break;
+}
+case wxImage_SetAlpha_3: { // wxImage::SetAlpha
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ unsigned int * alpha = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAlpha((int) *x,(int) *y,(char) *alpha);
+ break;
+}
+case wxImage_SetAlpha_2: { // wxImage::SetAlpha
+ bool static_data=false;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned char * alpha = (unsigned char*) Ecmd.bin[0]->base;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) {alpha = (unsigned char *) malloc(Ecmd.bin[0]->size);memcpy(alpha,Ecmd.bin[0]->base,Ecmd.bin[0]->size);};
+ if(!This) throw wxe_badarg(0);
+ This->SetAlpha(alpha,static_data);
+ break;
+}
+case wxImage_SetData_2: { // wxImage::SetData
+ bool static_data=false;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) {data = (unsigned char *) malloc(Ecmd.bin[0]->size);memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);};
+ if(!This) throw wxe_badarg(0);
+ This->SetData(data,static_data);
+ break;
+}
+case wxImage_SetData_4: { // wxImage::SetData
+ bool static_data=false;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned char * data = (unsigned char*) Ecmd.bin[0]->base;
+ int * new_width = (int *) bp; bp += 4;
+ int * new_height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ static_data = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!static_data) {data = (unsigned char *) malloc(Ecmd.bin[0]->size);memcpy(data,Ecmd.bin[0]->base,Ecmd.bin[0]->size);};
+ if(!This) throw wxe_badarg(0);
+ This->SetData(data,(int) *new_width,(int) *new_height,static_data);
+ break;
+}
+case wxImage_SetMask: { // wxImage::SetMask
+ bool mask=true;
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ mask = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetMask(mask);
+ break;
+}
+case wxImage_SetMaskColour: { // wxImage::SetMaskColour
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned int * r = (unsigned int *) bp; bp += 4;
+ unsigned int * g = (unsigned int *) bp; bp += 4;
+ unsigned int * b = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaskColour((char) *r,(char) *g,(char) *b);
+ break;
+}
+case wxImage_SetMaskFromImage: { // wxImage::SetMaskFromImage
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ wxImage *mask = (wxImage *) getPtr(bp,memenv); bp += 4;
+ unsigned int * mr = (unsigned int *) bp; bp += 4;
+ unsigned int * mg = (unsigned int *) bp; bp += 4;
+ unsigned int * mb = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetMaskFromImage(*mask,(char) *mr,(char) *mg,(char) *mb);
+ rt.addBool(Result);
+ break;
+}
+case wxImage_SetOption_2_1: { // wxImage::SetOption
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((4+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetOption(name,value);
+ break;
+}
+case wxImage_SetOption_2_0: { // wxImage::SetOption
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ int * value = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetOption(name,(int) *value);
+ break;
+}
+case wxImage_SetPalette: { // wxImage::SetPalette
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ wxPalette *palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPalette(*palette);
+ break;
+}
+case wxImage_SetRGB_5: { // wxImage::SetRGB
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ unsigned int * r = (unsigned int *) bp; bp += 4;
+ unsigned int * g = (unsigned int *) bp; bp += 4;
+ unsigned int * b = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRGB((int) *x,(int) *y,(char) *r,(char) *g,(char) *b);
+ break;
+}
+case wxImage_SetRGB_4: { // wxImage::SetRGB
+ wxImage *This = (wxImage *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ unsigned int * r = (unsigned int *) bp; bp += 4;
+ unsigned int * g = (unsigned int *) bp; bp += 4;
+ unsigned int * b = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRGB(rect,(char) *r,(char) *g,(char) *b);
+ break;
+}
+case wxBrush_new_0: { // wxBrush::wxBrush
+ wxBrush * Result = new EwxBrush();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBrush");
+ break;
+}
+case wxBrush_new_2: { // wxBrush::wxBrush
+ int style=wxSOLID;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxBrush * Result = new EwxBrush(colour,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBrush");
+ break;
+}
+case wxBrush_new_1: { // wxBrush::wxBrush
+ wxBitmap *stippleBitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBrush * Result = new EwxBrush(*stippleBitmap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBrush");
+ break;
+}
+case wxBrush_GetColour: { // wxBrush::GetColour
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour * Result = &This->GetColour();
+ rt.add((*Result));
+ break;
+}
+case wxBrush_GetStipple: { // wxBrush::GetStipple
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = (wxBitmap*)This->GetStipple();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBrush_GetStyle: { // wxBrush::GetStyle
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxBrush_IsHatch: { // wxBrush::IsHatch
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsHatch();
+ rt.addBool(Result);
+ break;
+}
+case wxBrush_IsOk: { // wxBrush::IsOk
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxBrush_SetColour_1: { // wxBrush::SetColour
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetColour(col);
+ break;
+}
+case wxBrush_SetColour_3: { // wxBrush::SetColour
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ unsigned int * r = (unsigned int *) bp; bp += 4;
+ unsigned int * g = (unsigned int *) bp; bp += 4;
+ unsigned int * b = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColour((char) *r,(char) *g,(char) *b);
+ break;
+}
+case wxBrush_SetStipple: { // wxBrush::SetStipple
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *stipple = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStipple(*stipple);
+ break;
+}
+case wxBrush_SetStyle: { // wxBrush::SetStyle
+ wxBrush *This = (wxBrush *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStyle((int) *style);
+ break;
+}
+case wxPen_new_0: { // wxPen::wxPen
+ wxPen * Result = new EwxPen();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPen");
+ break;
+}
+case wxPen_new_2: { // wxPen::wxPen
+ int width=1;
+ int style=wxSOLID;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ width = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxPen * Result = new EwxPen(colour,width,style);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPen");
+ break;
+}
+case wxPen_GetCap: { // wxPen::GetCap
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCap();
+ rt.addInt(Result);
+ break;
+}
+case wxPen_GetColour: { // wxPen::GetColour
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour * Result = &This->GetColour();
+ rt.add((*Result));
+ break;
+}
+case wxPen_GetJoin: { // wxPen::GetJoin
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetJoin();
+ rt.addInt(Result);
+ break;
+}
+case wxPen_GetStyle: { // wxPen::GetStyle
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxPen_GetWidth: { // wxPen::GetWidth
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxPen_IsOk: { // wxPen::IsOk
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxPen_SetCap: { // wxPen::SetCap
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ int * capStyle = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCap((int) *capStyle);
+ break;
+}
+case wxPen_SetColour_1: { // wxPen::SetColour
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetColour(colour);
+ break;
+}
+case wxPen_SetColour_3: { // wxPen::SetColour
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ unsigned int * red = (unsigned int *) bp; bp += 4;
+ unsigned int * green = (unsigned int *) bp; bp += 4;
+ unsigned int * blue = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColour((char) *red,(char) *green,(char) *blue);
+ break;
+}
+case wxPen_SetJoin: { // wxPen::SetJoin
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ int * joinStyle = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetJoin((int) *joinStyle);
+ break;
+}
+case wxPen_SetStyle: { // wxPen::SetStyle
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStyle((int) *style);
+ break;
+}
+case wxPen_SetWidth: { // wxPen::SetWidth
+ wxPen *This = (wxPen *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWidth((int) *width);
+ break;
+}
+case wxRegion_new_0: { // wxRegion::wxRegion
+ wxRegion * Result = new EwxRegion();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxRegion_new_4: { // wxRegion::wxRegion
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ wxRegion * Result = new EwxRegion((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxRegion_new_2: { // wxRegion::wxRegion
+ int * topLeftX = (int *) bp; bp += 4;
+ int * topLeftY = (int *) bp; bp += 4;
+ wxPoint topLeft = wxPoint(*topLeftX,*topLeftY);
+ int * bottomRightX = (int *) bp; bp += 4;
+ int * bottomRightY = (int *) bp; bp += 4;
+ wxPoint bottomRight = wxPoint(*bottomRightX,*bottomRightY);
+ wxRegion * Result = new EwxRegion(topLeft,bottomRight);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxRegion_new_1_1: { // wxRegion::wxRegion
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ wxRegion * Result = new EwxRegion(rect);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxRegion_new_1_0: { // wxRegion::wxRegion
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxRegion * Result = new EwxRegion(*bmp);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRegion");
+ break;
+}
+case wxRegion_Clear: { // wxRegion::Clear
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxRegion_Contains_2: { // wxRegion::Contains
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Contains((wxCoord) *x,(wxCoord) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxRegion_Contains_1_0: { // wxRegion::Contains
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Contains(pt);
+ rt.addInt(Result);
+ break;
+}
+case wxRegion_Contains_4: { // wxRegion::Contains
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Contains((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ rt.addInt(Result);
+ break;
+}
+case wxRegion_Contains_1_1: { // wxRegion::Contains
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Contains(rect);
+ rt.addInt(Result);
+ break;
+}
+case wxRegion_ConvertToBitmap: { // wxRegion::ConvertToBitmap
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->ConvertToBitmap()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxRegion_GetBox: { // wxRegion::GetBox
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetBox();
+ rt.add(Result);
+ break;
+}
+case wxRegion_Intersect_4: { // wxRegion::Intersect
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Intersect((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Intersect_1_1: { // wxRegion::Intersect
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Intersect(rect);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Intersect_1_0: { // wxRegion::Intersect
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Intersect(*region);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_IsEmpty: { // wxRegion::IsEmpty
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEmpty();
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Subtract_4: { // wxRegion::Subtract
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Subtract((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Subtract_1_1: { // wxRegion::Subtract
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Subtract(rect);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Subtract_1_0: { // wxRegion::Subtract
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Subtract(*region);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Offset_2: { // wxRegion::Offset
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Offset((wxCoord) *x,(wxCoord) *y);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Offset_1: { // wxRegion::Offset
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Offset(pt);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Union_4: { // wxRegion::Union
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Union((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Union_1_2: { // wxRegion::Union
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Union(rect);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Union_1_1: { // wxRegion::Union
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxRegion * region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Union(*region);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Union_1_0: { // wxRegion::Union
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Union(*bmp);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Union_3: { // wxRegion::Union
+ int tolerance=0;
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * transpR = (int *) bp; bp += 4;
+ int * transpG = (int *) bp; bp += 4;
+ int * transpB = (int *) bp; bp += 4;
+ int * transpA = (int *) bp; bp += 4;
+ wxColour transp = wxColour(*transpR,*transpG,*transpB,*transpA);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ tolerance = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Union(*bmp,transp,tolerance);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Xor_4: { // wxRegion::Xor
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * w = (int *) bp; bp += 4;
+ int * h = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Xor((wxCoord) *x,(wxCoord) *y,(wxCoord) *w,(wxCoord) *h);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Xor_1_1: { // wxRegion::Xor
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Xor(rect);
+ rt.addBool(Result);
+ break;
+}
+case wxRegion_Xor_1_0: { // wxRegion::Xor
+ wxRegion *This = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ wxRegion *region = (wxRegion *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Xor(*region);
+ rt.addBool(Result);
+ break;
+}
+case wxAcceleratorTable_new_0: { // wxAcceleratorTable::wxAcceleratorTable
+ wxAcceleratorTable * Result = new EwxAcceleratorTable();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAcceleratorTable");
+ break;
+}
+case wxAcceleratorTable_new_2: { // wxAcceleratorTable::wxAcceleratorTable
+ int * n = (int *) bp; bp += 4;
+ int * entriesLen = (int *) bp; bp += 4;
+ wxAcceleratorEntry *entries;
+ entries = (wxAcceleratorEntry *) driver_alloc(sizeof(wxAcceleratorEntry) * *entriesLen); for(int i=0; i < *entriesLen; i++) { entries[i] = * (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;}
+ bp += ((0+ *entriesLen)%2 )*4;
+ wxAcceleratorTable * Result = new EwxAcceleratorTable((int) *n,entries);
+ newPtr((void *) Result, 1, memenv);
+ driver_free(entries);
+ rt.addRef(getRef((void *)Result,memenv), "wxAcceleratorTable");
+ break;
+}
+case wxAcceleratorTable_Ok: { // wxAcceleratorTable::Ok
+ wxAcceleratorTable *This = (wxAcceleratorTable *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Ok();
+ rt.addBool(Result);
+ break;
+}
+case wxAcceleratorEntry_new_1_0: { // wxAcceleratorEntry::wxAcceleratorEntry
+ int flags=0;
+ int keyCode=0;
+ int cmd=0;
+ wxMenuItem * item=NULL;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ keyCode = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ cmd = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxAcceleratorEntry * Result = new wxAcceleratorEntry(flags,keyCode,cmd,item);
+ newPtr((void *) Result, 69, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAcceleratorEntry");
+ break;
+}
+case wxAcceleratorEntry_new_1_1: { // wxAcceleratorEntry::wxAcceleratorEntry
+ wxAcceleratorEntry *entry = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ wxAcceleratorEntry * Result = new wxAcceleratorEntry(*entry);
+ newPtr((void *) Result, 69, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAcceleratorEntry");
+ break;
+}
+case wxAcceleratorEntry_GetCommand: { // wxAcceleratorEntry::GetCommand
+ wxAcceleratorEntry *This = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCommand();
+ rt.addInt(Result);
+ break;
+}
+case wxAcceleratorEntry_GetFlags: { // wxAcceleratorEntry::GetFlags
+ wxAcceleratorEntry *This = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxAcceleratorEntry_GetKeyCode: { // wxAcceleratorEntry::GetKeyCode
+ wxAcceleratorEntry *This = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKeyCode();
+ rt.addInt(Result);
+ break;
+}
+case wxAcceleratorEntry_Set: { // wxAcceleratorEntry::Set
+ wxMenuItem * item=NULL;
+ wxAcceleratorEntry *This = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ int * keyCode = (int *) bp; bp += 4;
+ int * cmd = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+item = (wxMenuItem *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Set((int) *flags,(int) *keyCode,(int) *cmd,item);
+ break;
+}
+case wxAcceleratorEntry_destroy: { // wxAcceleratorEntry::destroy
+ wxAcceleratorEntry *This = (wxAcceleratorEntry *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxCaret_new_3: { // wxCaret::wxCaret
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ wxCaret * Result = new EwxCaret(window,(int) *width,(int) *height);
+ newPtr((void *) Result, 70, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCaret");
+ break;
+}
+case wxCaret_new_2: { // wxCaret::wxCaret
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ wxCaret * Result = new EwxCaret(window,size);
+ newPtr((void *) Result, 70, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCaret");
+ break;
+}
+case wxCaret_destruct: { // wxCaret::~wxCaret
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxCaret_Create_3: { // wxCaret::Create
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(window,(int) *width,(int) *height);
+ rt.addBool(Result);
+ break;
+}
+case wxCaret_Create_2: { // wxCaret::Create
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(window,size);
+ rt.addBool(Result);
+ break;
+}
+case wxCaret_GetBlinkTime: { // wxCaret::GetBlinkTime
+ int Result = wxCaret::GetBlinkTime();
+ rt.addInt(Result);
+ break;
+}
+case wxCaret_GetPosition: { // wxCaret::GetPosition
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxCaret_GetSize: { // wxCaret::GetSize
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxCaret_GetWindow: { // wxCaret::GetWindow
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxCaret_Hide: { // wxCaret::Hide
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Hide();
+ break;
+}
+case wxCaret_IsOk: { // wxCaret::IsOk
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxCaret_IsVisible: { // wxCaret::IsVisible
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVisible();
+ rt.addBool(Result);
+ break;
+}
+case wxCaret_Move_2: { // wxCaret::Move
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Move((int) *x,(int) *y);
+ break;
+}
+case wxCaret_Move_1: { // wxCaret::Move
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->Move(pt);
+ break;
+}
+case wxCaret_SetBlinkTime: { // wxCaret::SetBlinkTime
+ int * milliseconds = (int *) bp; bp += 4;
+ wxCaret::SetBlinkTime((int) *milliseconds);
+ break;
+}
+case wxCaret_SetSize_2: { // wxCaret::SetSize
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSize((int) *width,(int) *height);
+ break;
+}
+case wxCaret_SetSize_1: { // wxCaret::SetSize
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetSize(size);
+ break;
+}
+case wxCaret_Show: { // wxCaret::Show
+ bool show=true;
+ wxCaret *This = (wxCaret *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Show(show);
+ break;
+}
+case wxSizer_Add_2_1: { // wxSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(window,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Add_2_0: { // wxSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(sizer,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Add_3: { // wxSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add((int) *width,(int) *height,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Add_2_3: { // wxSizer::Add
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(window,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Add_2_2: { // wxSizer::Add
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(sizer,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_AddSpacer: { // wxSizer::AddSpacer
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * size = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->AddSpacer((int) *size);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_AddStretchSpacer: { // wxSizer::AddStretchSpacer
+ int prop=1;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ prop = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->AddStretchSpacer(prop);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_CalcMin: { // wxSizer::CalcMin
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->CalcMin();
+ rt.add(Result);
+ break;
+}
+case wxSizer_Clear: { // wxSizer::Clear
+ bool delete_windows=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ delete_windows = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Clear(delete_windows);
+ break;
+}
+case wxSizer_Detach_1_2: { // wxSizer::Detach
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Detach(window);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Detach_1_1: { // wxSizer::Detach
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Detach(sizer);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Detach_1_0: { // wxSizer::Detach
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Detach((int) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Fit: { // wxSizer::Fit
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->Fit(window);
+ rt.add(Result);
+ break;
+}
+case wxSizer_FitInside: { // wxSizer::FitInside
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->FitInside(window);
+ break;
+}
+case wxSizer_GetChildren: { // wxSizer::GetChildren
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItemList Result = This->GetChildren();
+ int i=0;
+ for(wxSizerItemList::const_iterator it = Result.begin(); it != Result.end(); ++it) {
+ wxSizerItem * ResultTmp = *it;
+ rt.addRef(getRef((void *)ResultTmp,memenv), "wxSizerItem"); i++;}
+ rt.endList(Result.GetCount());
+ break;
+}
+case wxSizer_GetItem_2_1: { // wxSizer::GetItem
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->GetItem(window,recursive);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_GetItem_2_0: { // wxSizer::GetItem
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->GetItem(sizer,recursive);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_GetItem_1: { // wxSizer::GetItem
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->GetItem((size_t) *index);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_GetSize: { // wxSizer::GetSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxSizer_GetPosition: { // wxSizer::GetPosition
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxSizer_GetMinSize: { // wxSizer::GetMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMinSize();
+ rt.add(Result);
+ break;
+}
+case wxSizer_Hide_2_0: { // wxSizer::Hide
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Hide(sizer,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Hide_2_1: { // wxSizer::Hide
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Hide(window,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Hide_1: { // wxSizer::Hide
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Hide((size_t) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Insert_3_1: { // wxSizer::Insert
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,window,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Insert_3_0: { // wxSizer::Insert
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,sizer,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Insert_4: { // wxSizer::Insert
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,(int) *width,(int) *height,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Insert_3_3: { // wxSizer::Insert
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,window,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Insert_3_2: { // wxSizer::Insert
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,sizer,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Insert_2: { // wxSizer::Insert
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxSizerItem *item = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Insert((size_t) *index,item);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_InsertSpacer: { // wxSizer::InsertSpacer
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * size = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->InsertSpacer((size_t) *index,(int) *size);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_InsertStretchSpacer: { // wxSizer::InsertStretchSpacer
+ int prop=1;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ prop = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->InsertStretchSpacer((size_t) *index,prop);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_IsShown_1_2: { // wxSizer::IsShown
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown(window);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_IsShown_1_1: { // wxSizer::IsShown
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown(sizer);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_IsShown_1_0: { // wxSizer::IsShown
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown((size_t) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Layout: { // wxSizer::Layout
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Layout();
+ break;
+}
+case wxSizer_Prepend_2_1: { // wxSizer::Prepend
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend(window,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Prepend_2_0: { // wxSizer::Prepend
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend(sizer,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Prepend_3: { // wxSizer::Prepend
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend((int) *width,(int) *height,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Prepend_2_3: { // wxSizer::Prepend
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend(window,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Prepend_2_2: { // wxSizer::Prepend
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend(sizer,*flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_Prepend_1: { // wxSizer::Prepend
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem *item = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Prepend(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_PrependSpacer: { // wxSizer::PrependSpacer
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * size = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->PrependSpacer((int) *size);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_PrependStretchSpacer: { // wxSizer::PrependStretchSpacer
+ int prop=1;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ prop = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->PrependStretchSpacer(prop);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizer_RecalcSizes: { // wxSizer::RecalcSizes
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RecalcSizes();
+ break;
+}
+case wxSizer_Remove_1_1: { // wxSizer::Remove
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Remove(sizer);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Remove_1_0: { // wxSizer::Remove
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Remove((int) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Replace_3_1: { // wxSizer::Replace
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * oldwin = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow * newwin = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Replace(oldwin,newwin,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Replace_3_0: { // wxSizer::Replace
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *oldsz = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *newsz = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Replace(oldsz,newsz,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Replace_2: { // wxSizer::Replace
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxSizerItem *newitem = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Replace((size_t) *index,newitem);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetDimension: { // wxSizer::SetDimension
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDimension((int) *x,(int) *y,(int) *width,(int) *height);
+ break;
+}
+case wxSizer_SetMinSize_2: { // wxSizer::SetMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinSize((int) *width,(int) *height);
+ break;
+}
+case wxSizer_SetMinSize_1: { // wxSizer::SetMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetMinSize(size);
+ break;
+}
+case wxSizer_SetItemMinSize_3_2: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize(window,(int) *width,(int) *height);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetItemMinSize_2_2: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize(window,size);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetItemMinSize_3_1: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize(sizer,(int) *width,(int) *height);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetItemMinSize_2_1: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize(sizer,size);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetItemMinSize_3_0: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize((size_t) *index,(int) *width,(int) *height);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetItemMinSize_2_0: { // wxSizer::SetItemMinSize
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemMinSize((size_t) *index,size);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_SetSizeHints: { // wxSizer::SetSizeHints
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSizeHints(window);
+ break;
+}
+case wxSizer_SetVirtualSizeHints: { // wxSizer::SetVirtualSizeHints
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetVirtualSizeHints(window);
+ break;
+}
+case wxSizer_Show_2_2: { // wxSizer::Show
+ bool show=true;
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show(window,show,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Show_2_1: { // wxSizer::Show
+ bool show=true;
+ bool recursive=false;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ recursive = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show(sizer,show,recursive);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Show_2_0: { // wxSizer::Show
+ bool show=true;
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show((size_t) *index,show);
+ rt.addBool(Result);
+ break;
+}
+case wxSizer_Show_1: { // wxSizer::Show
+ wxSizer *This = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Show((bool) *show);
+ break;
+}
+case wxSizerFlags_new: { // wxSizerFlags::wxSizerFlags
+ int proportion=0;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSizerFlags * Result = new wxSizerFlags(proportion);
+ newPtr((void *) Result, 72, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Align: { // wxSizerFlags::Align
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ int * alignment = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Align((int) *alignment);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Border_2: { // wxSizerFlags::Border
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ int * direction = (int *) bp; bp += 4;
+ int * borderInPixels = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Border((int) *direction,(int) *borderInPixels);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Border_1: { // wxSizerFlags::Border
+ int direction=wxALL;
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ direction = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Border(direction);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Center: { // wxSizerFlags::Center
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Center();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Centre: { // wxSizerFlags::Centre
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Centre();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Expand: { // wxSizerFlags::Expand
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Expand();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Left: { // wxSizerFlags::Left
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Left();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Proportion: { // wxSizerFlags::Proportion
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ int * proportion = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Proportion((int) *proportion);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_Right: { // wxSizerFlags::Right
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerFlags * Result = &This->Right();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerFlags");
+ break;
+}
+case wxSizerFlags_destroy: { // wxSizerFlags::destroy
+ wxSizerFlags *This = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxSizerItem_new_5_1: { // wxSizerItem::wxSizerItem
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * proportion = (int *) bp; bp += 4;
+ int * flag = (int *) bp; bp += 4;
+ int * border = (int *) bp; bp += 4;
+ wxObject *userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem(window,(int) *proportion,(int) *flag,(int) *border,userData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_2_1: { // wxSizerItem::wxSizerItem
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem(window,*flags);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_5_0: { // wxSizerItem::wxSizerItem
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * proportion = (int *) bp; bp += 4;
+ int * flag = (int *) bp; bp += 4;
+ int * border = (int *) bp; bp += 4;
+ wxObject *userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem(sizer,(int) *proportion,(int) *flag,(int) *border,userData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_2_0: { // wxSizerItem::wxSizerItem
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem(sizer,*flags);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_6: { // wxSizerItem::wxSizerItem
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ int * proportion = (int *) bp; bp += 4;
+ int * flag = (int *) bp; bp += 4;
+ int * border = (int *) bp; bp += 4;
+ wxObject *userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem((int) *width,(int) *height,(int) *proportion,(int) *flag,(int) *border,userData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_3: { // wxSizerItem::wxSizerItem
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ wxSizerFlags *flags = (wxSizerFlags *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * Result = new EwxSizerItem((int) *width,(int) *height,*flags);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_new_0: { // wxSizerItem::wxSizerItem
+ wxSizerItem * Result = new EwxSizerItem();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxSizerItem_CalcMin: { // wxSizerItem::CalcMin
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->CalcMin();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_DeleteWindows: { // wxSizerItem::DeleteWindows
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DeleteWindows();
+ break;
+}
+case wxSizerItem_DetachSizer: { // wxSizerItem::DetachSizer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DetachSizer();
+ break;
+}
+case wxSizerItem_GetBorder: { // wxSizerItem::GetBorder
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBorder();
+ rt.addInt(Result);
+ break;
+}
+case wxSizerItem_GetFlag: { // wxSizerItem::GetFlag
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlag();
+ rt.addInt(Result);
+ break;
+}
+case wxSizerItem_GetMinSize: { // wxSizerItem::GetMinSize
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetMinSize();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_GetPosition: { // wxSizerItem::GetPosition
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_GetProportion: { // wxSizerItem::GetProportion
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetProportion();
+ rt.addInt(Result);
+ break;
+}
+case wxSizerItem_GetRatio: { // wxSizerItem::GetRatio
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ float Result = This->GetRatio();
+ rt.addFloat(Result);
+ break;
+}
+case wxSizerItem_GetRect: { // wxSizerItem::GetRect
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetRect();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_GetSize: { // wxSizerItem::GetSize
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_GetSizer: { // wxSizerItem::GetSizer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizer * Result = (wxSizer*)This->GetSizer();
+ rt.addRef(getRef((void *)Result,memenv), "wxSizer");
+ break;
+}
+case wxSizerItem_GetSpacer: { // wxSizerItem::GetSpacer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSpacer();
+ rt.add(Result);
+ break;
+}
+case wxSizerItem_GetUserData: { // wxSizerItem::GetUserData
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxObject * Result = (wxObject*)This->GetUserData();
+ rt.addRef(getRef((void *)Result,memenv), "wx");
+ break;
+}
+case wxSizerItem_GetWindow: { // wxSizerItem::GetWindow
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxSizerItem_IsSizer: { // wxSizerItem::IsSizer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSizer();
+ rt.addBool(Result);
+ break;
+}
+case wxSizerItem_IsShown: { // wxSizerItem::IsShown
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown();
+ rt.addBool(Result);
+ break;
+}
+case wxSizerItem_IsSpacer: { // wxSizerItem::IsSpacer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSpacer();
+ rt.addBool(Result);
+ break;
+}
+case wxSizerItem_IsWindow: { // wxSizerItem::IsWindow
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsWindow();
+ rt.addBool(Result);
+ break;
+}
+case wxSizerItem_SetBorder: { // wxSizerItem::SetBorder
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * border = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBorder((int) *border);
+ break;
+}
+case wxSizerItem_SetDimension: { // wxSizerItem::SetDimension
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetDimension(pos,size);
+ break;
+}
+case wxSizerItem_SetFlag: { // wxSizerItem::SetFlag
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * flag = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlag((int) *flag);
+ break;
+}
+case wxSizerItem_SetInitSize: { // wxSizerItem::SetInitSize
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInitSize((int) *x,(int) *y);
+ break;
+}
+case wxSizerItem_SetMinSize_1: { // wxSizerItem::SetMinSize
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetMinSize(size);
+ break;
+}
+case wxSizerItem_SetMinSize_2: { // wxSizerItem::SetMinSize
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinSize((int) *x,(int) *y);
+ break;
+}
+case wxSizerItem_SetProportion: { // wxSizerItem::SetProportion
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * proportion = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetProportion((int) *proportion);
+ break;
+}
+case wxSizerItem_SetRatio_2: { // wxSizerItem::SetRatio
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRatio((int) *width,(int) *height);
+ break;
+}
+case wxSizerItem_SetRatio_1_1: { // wxSizerItem::SetRatio
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetRatio(size);
+ break;
+}
+case wxSizerItem_SetRatio_1_0: { // wxSizerItem::SetRatio
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ float * ratio = (float *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRatio((float) *ratio);
+ break;
+}
+case wxSizerItem_SetSizer: { // wxSizerItem::SetSizer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSizer(sizer);
+ break;
+}
+case wxSizerItem_SetSpacer_1: { // wxSizerItem::SetSpacer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetSpacer(size);
+ break;
+}
+case wxSizerItem_SetSpacer_2: { // wxSizerItem::SetSpacer
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSpacer((int) *width,(int) *height);
+ break;
+}
+case wxSizerItem_SetWindow: { // wxSizerItem::SetWindow
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindow(window);
+ break;
+}
+case wxSizerItem_Show: { // wxSizerItem::Show
+ wxSizerItem *This = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Show((bool) *show);
+ break;
+}
+case wxBoxSizer_new: { // wxBoxSizer::wxBoxSizer
+ int * orient = (int *) bp; bp += 4;
+ wxBoxSizer * Result = new EwxBoxSizer((int) *orient);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBoxSizer");
+ break;
+}
+case wxBoxSizer_GetOrientation: { // wxBoxSizer::GetOrientation
+ wxBoxSizer *This = (wxBoxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrientation();
+ rt.addInt(Result);
+ break;
+}
+case wxStaticBoxSizer_new_2: { // wxStaticBoxSizer::wxStaticBoxSizer
+ wxStaticBox *box = (wxStaticBox *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ wxStaticBoxSizer * Result = new EwxStaticBoxSizer(box,(int) *orient);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBoxSizer");
+ break;
+}
+case wxStaticBoxSizer_new_3: { // wxStaticBoxSizer::wxStaticBoxSizer
+ wxString label= wxEmptyString;
+ int * orient = (int *) bp; bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ } break;
+ }};
+ wxStaticBoxSizer * Result = new EwxStaticBoxSizer((int) *orient,win,label);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBoxSizer");
+ break;
+}
+case wxStaticBoxSizer_GetStaticBox: { // wxStaticBoxSizer::GetStaticBox
+ wxStaticBoxSizer *This = (wxStaticBoxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxStaticBox * Result = (wxStaticBox*)This->GetStaticBox();
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBox");
+ break;
+}
+case wxGridSizer_new_4: { // wxGridSizer::wxGridSizer
+ int * rows = (int *) bp; bp += 4;
+ int * cols = (int *) bp; bp += 4;
+ int * vgap = (int *) bp; bp += 4;
+ int * hgap = (int *) bp; bp += 4;
+ wxGridSizer * Result = new EwxGridSizer((int) *rows,(int) *cols,(int) *vgap,(int) *hgap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridSizer");
+ break;
+}
+case wxGridSizer_new_2: { // wxGridSizer::wxGridSizer
+ int vgap=0;
+ int hgap=0;
+ int * cols = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ vgap = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ hgap = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGridSizer * Result = new EwxGridSizer((int) *cols,vgap,hgap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridSizer");
+ break;
+}
+case wxGridSizer_GetCols: { // wxGridSizer::GetCols
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCols();
+ rt.addInt(Result);
+ break;
+}
+case wxGridSizer_GetHGap: { // wxGridSizer::GetHGap
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetHGap();
+ rt.addInt(Result);
+ break;
+}
+case wxGridSizer_GetRows: { // wxGridSizer::GetRows
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRows();
+ rt.addInt(Result);
+ break;
+}
+case wxGridSizer_GetVGap: { // wxGridSizer::GetVGap
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetVGap();
+ rt.addInt(Result);
+ break;
+}
+case wxGridSizer_SetCols: { // wxGridSizer::SetCols
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * cols = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCols((int) *cols);
+ break;
+}
+case wxGridSizer_SetHGap: { // wxGridSizer::SetHGap
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * gap = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHGap((int) *gap);
+ break;
+}
+case wxGridSizer_SetRows: { // wxGridSizer::SetRows
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * rows = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRows((int) *rows);
+ break;
+}
+case wxGridSizer_SetVGap: { // wxGridSizer::SetVGap
+ wxGridSizer *This = (wxGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * gap = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetVGap((int) *gap);
+ break;
+}
+case wxFlexGridSizer_new_4: { // wxFlexGridSizer::wxFlexGridSizer
+ int * rows = (int *) bp; bp += 4;
+ int * cols = (int *) bp; bp += 4;
+ int * vgap = (int *) bp; bp += 4;
+ int * hgap = (int *) bp; bp += 4;
+ wxFlexGridSizer * Result = new EwxFlexGridSizer((int) *rows,(int) *cols,(int) *vgap,(int) *hgap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFlexGridSizer");
+ break;
+}
+case wxFlexGridSizer_new_2: { // wxFlexGridSizer::wxFlexGridSizer
+ int vgap=0;
+ int hgap=0;
+ int * cols = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ vgap = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ hgap = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxFlexGridSizer * Result = new EwxFlexGridSizer((int) *cols,vgap,hgap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFlexGridSizer");
+ break;
+}
+case wxFlexGridSizer_AddGrowableCol: { // wxFlexGridSizer::AddGrowableCol
+ int proportion=0;
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * idx = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AddGrowableCol((size_t) *idx,proportion);
+ break;
+}
+case wxFlexGridSizer_AddGrowableRow: { // wxFlexGridSizer::AddGrowableRow
+ int proportion=0;
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * idx = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AddGrowableRow((size_t) *idx,proportion);
+ break;
+}
+case wxFlexGridSizer_GetFlexibleDirection: { // wxFlexGridSizer::GetFlexibleDirection
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlexibleDirection();
+ rt.addInt(Result);
+ break;
+}
+case wxFlexGridSizer_GetNonFlexibleGrowMode: { // wxFlexGridSizer::GetNonFlexibleGrowMode
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNonFlexibleGrowMode();
+ rt.addInt(Result);
+ break;
+}
+case wxFlexGridSizer_RemoveGrowableCol: { // wxFlexGridSizer::RemoveGrowableCol
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * idx = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RemoveGrowableCol((size_t) *idx);
+ break;
+}
+case wxFlexGridSizer_RemoveGrowableRow: { // wxFlexGridSizer::RemoveGrowableRow
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * idx = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RemoveGrowableRow((size_t) *idx);
+ break;
+}
+case wxFlexGridSizer_SetFlexibleDirection: { // wxFlexGridSizer::SetFlexibleDirection
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ int * direction = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlexibleDirection((int) *direction);
+ break;
+}
+case wxFlexGridSizer_SetNonFlexibleGrowMode: { // wxFlexGridSizer::SetNonFlexibleGrowMode
+ wxFlexGridSizer *This = (wxFlexGridSizer *) getPtr(bp,memenv); bp += 4;
+ wxFlexSizerGrowMode mode = *(wxFlexSizerGrowMode *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetNonFlexibleGrowMode((wxFlexSizerGrowMode) mode);
+ break;
+}
+case wxGridBagSizer_new: { // wxGridBagSizer::wxGridBagSizer
+ int vgap=0;
+ int hgap=0;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ vgap = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ hgap = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGridBagSizer * Result = new EwxGridBagSizer(vgap,hgap);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGridBagSizer");
+ break;
+}
+case wxGridBagSizer_Add_3_2: { // wxGridBagSizer::Add
+ wxGBSpan span= wxDefaultSpan;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ span = wxGBSpan(*spanRS,*spanCS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(window,pos,span,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_3_1: { // wxGridBagSizer::Add
+ wxGBSpan span= wxDefaultSpan;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ span = wxGBSpan(*spanRS,*spanCS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(sizer,pos,span,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_4: { // wxGridBagSizer::Add
+ wxGBSpan span= wxDefaultSpan;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ span = wxGBSpan(*spanRS,*spanCS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add((int) *width,(int) *height,pos,span,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_1_0: { // wxGridBagSizer::Add
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxGBSizerItem *item = (wxGBSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_2_1: { // wxGridBagSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(window,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_2_0: { // wxGridBagSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(sizer,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_3_0: { // wxGridBagSizer::Add
+ int proportion=0;
+ int flag=0;
+ int border=0;
+ wxObject * userData=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ proportion = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ border = (int)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add((int) *width,(int) *height,proportion,flag,border,userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_Add_1_1: { // wxGridBagSizer::Add
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizerItem * item = (wxSizerItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizerItem * Result = (wxSizerItem*)This->Add(item);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizerItem");
+ break;
+}
+case wxGridBagSizer_CalcMin: { // wxGridBagSizer::CalcMin
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->CalcMin();
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_CheckForIntersection_2: { // wxGridBagSizer::CheckForIntersection
+ wxGBSizerItem * excludeItem=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxGBSizerItem *item = (wxGBSizerItem *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+excludeItem = (wxGBSizerItem *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CheckForIntersection(item,excludeItem);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_CheckForIntersection_3: { // wxGridBagSizer::CheckForIntersection
+ wxGBSizerItem * excludeItem=NULL;
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ wxGBSpan span = wxGBSpan(*spanRS,*spanCS);
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+excludeItem = (wxGBSizerItem *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CheckForIntersection(pos,span,excludeItem);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_FindItem_1_1: { // wxGridBagSizer::FindItem
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSizerItem * Result = (wxGBSizerItem*)This->FindItem(window);
+ rt.addRef(getRef((void *)Result,memenv), "wxGBSizerItem");
+ break;
+}
+case wxGridBagSizer_FindItem_1_0: { // wxGridBagSizer::FindItem
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSizerItem * Result = (wxGBSizerItem*)This->FindItem(sizer);
+ rt.addRef(getRef((void *)Result,memenv), "wxGBSizerItem");
+ break;
+}
+case wxGridBagSizer_FindItemAtPoint: { // wxGridBagSizer::FindItemAtPoint
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ wxGBSizerItem * Result = (wxGBSizerItem*)This->FindItemAtPoint(pt);
+ rt.addRef(getRef((void *)Result,memenv), "wxGBSizerItem");
+ break;
+}
+case wxGridBagSizer_FindItemAtPosition: { // wxGridBagSizer::FindItemAtPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ if(!This) throw wxe_badarg(0);
+ wxGBSizerItem * Result = (wxGBSizerItem*)This->FindItemAtPosition(pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxGBSizerItem");
+ break;
+}
+case wxGridBagSizer_FindItemWithData: { // wxGridBagSizer::FindItemWithData
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxObject *userData = (wxObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSizerItem * Result = (wxGBSizerItem*)This->FindItemWithData(userData);
+ rt.addRef(getRef((void *)Result,memenv), "wxGBSizerItem");
+ break;
+}
+case wxGridBagSizer_GetCellSize: { // wxGridBagSizer::GetCellSize
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetCellSize((int) *row,(int) *col);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetEmptyCellSize: { // wxGridBagSizer::GetEmptyCellSize
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetEmptyCellSize();
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemPosition_1_2: { // wxGridBagSizer::GetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBPosition Result = This->GetItemPosition(window);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemPosition_1_1: { // wxGridBagSizer::GetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBPosition Result = This->GetItemPosition(sizer);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemPosition_1_0: { // wxGridBagSizer::GetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBPosition Result = This->GetItemPosition((size_t) *index);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemSpan_1_2: { // wxGridBagSizer::GetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSpan Result = This->GetItemSpan(window);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemSpan_1_1: { // wxGridBagSizer::GetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSpan Result = This->GetItemSpan(sizer);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_GetItemSpan_1_0: { // wxGridBagSizer::GetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGBSpan Result = This->GetItemSpan((size_t) *index);
+ rt.add(Result);
+ break;
+}
+case wxGridBagSizer_SetEmptyCellSize: { // wxGridBagSizer::SetEmptyCellSize
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ This->SetEmptyCellSize(sz);
+ break;
+}
+case wxGridBagSizer_SetItemPosition_2_2: { // wxGridBagSizer::SetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemPosition(window,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_SetItemPosition_2_1: { // wxGridBagSizer::SetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemPosition(sizer,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_SetItemPosition_2_0: { // wxGridBagSizer::SetItemPosition
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * posR = (int *) bp; bp += 4;
+ int * posC = (int *) bp; bp += 4;
+ wxGBPosition pos = wxGBPosition(*posR,*posC);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemPosition((size_t) *index,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_SetItemSpan_2_2: { // wxGridBagSizer::SetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxWindow * window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ wxGBSpan span = wxGBSpan(*spanRS,*spanCS);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemSpan(window,span);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_SetItemSpan_2_1: { // wxGridBagSizer::SetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ wxSizer *sizer = (wxSizer *) getPtr(bp,memenv); bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ wxGBSpan span = wxGBSpan(*spanRS,*spanCS);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemSpan(sizer,span);
+ rt.addBool(Result);
+ break;
+}
+case wxGridBagSizer_SetItemSpan_2_0: { // wxGridBagSizer::SetItemSpan
+ wxGridBagSizer *This = (wxGridBagSizer *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * spanRS = (int *) bp; bp += 4;
+ int * spanCS = (int *) bp; bp += 4;
+ wxGBSpan span = wxGBSpan(*spanRS,*spanCS);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemSpan((size_t) *index,span);
+ rt.addBool(Result);
+ break;
+}
+case wxStdDialogButtonSizer_new: { // wxStdDialogButtonSizer::wxStdDialogButtonSizer
+ wxStdDialogButtonSizer * Result = new EwxStdDialogButtonSizer();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStdDialogButtonSizer");
+ break;
+}
+case wxStdDialogButtonSizer_AddButton: { // wxStdDialogButtonSizer::AddButton
+ wxStdDialogButtonSizer *This = (wxStdDialogButtonSizer *) getPtr(bp,memenv); bp += 4;
+ wxButton *button = (wxButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddButton(button);
+ break;
+}
+case wxStdDialogButtonSizer_Realize: { // wxStdDialogButtonSizer::Realize
+ wxStdDialogButtonSizer *This = (wxStdDialogButtonSizer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Realize();
+ break;
+}
+case wxStdDialogButtonSizer_SetAffirmativeButton: { // wxStdDialogButtonSizer::SetAffirmativeButton
+ wxStdDialogButtonSizer *This = (wxStdDialogButtonSizer *) getPtr(bp,memenv); bp += 4;
+ wxButton *button = (wxButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAffirmativeButton(button);
+ break;
+}
+case wxStdDialogButtonSizer_SetCancelButton: { // wxStdDialogButtonSizer::SetCancelButton
+ wxStdDialogButtonSizer *This = (wxStdDialogButtonSizer *) getPtr(bp,memenv); bp += 4;
+ wxButton *button = (wxButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCancelButton(button);
+ break;
+}
+case wxStdDialogButtonSizer_SetNegativeButton: { // wxStdDialogButtonSizer::SetNegativeButton
+ wxStdDialogButtonSizer *This = (wxStdDialogButtonSizer *) getPtr(bp,memenv); bp += 4;
+ wxButton *button = (wxButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetNegativeButton(button);
+ break;
+}
+case wxFont_new_0: { // wxFont::wxFont
+ wxFont * Result = new EwxFont();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFont_new_1: { // wxFont::wxFont
+ int * fontnameLen = (int *) bp; bp += 4;
+ wxString fontname = wxString(bp, wxConvUTF8);
+ bp += *fontnameLen+((8-((4+ *fontnameLen) & 7)) & 7);
+ wxFont * Result = new EwxFont(fontname);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFont_new_5: { // wxFont::wxFont
+ bool underlined=false;
+ wxString face= wxEmptyString;
+ wxFontEncoding encoding=wxFONTENCODING_DEFAULT;
+ int * size = (int *) bp; bp += 4;
+ wxFontFamily family = *(wxFontFamily *) bp; bp += 4;;
+ wxFontStyle style = *(wxFontStyle *) bp; bp += 4;;
+ int * weight = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ underlined = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * faceLen = (int *) bp; bp += 4;
+ face = wxString(bp, wxConvUTF8);
+ bp += *faceLen+((8-((0+ *faceLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+encoding = *(wxFontEncoding *) bp; bp += 4;;
+ } break;
+ }};
+ wxFont * Result = new EwxFont((int) *size,(wxFontFamily) family,(wxFontStyle) style,(int) *weight,underlined,face,(wxFontEncoding) encoding);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFont_IsFixedWidth: { // wxFont::IsFixedWidth
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFixedWidth();
+ rt.addBool(Result);
+ break;
+}
+case wxFont_GetDefaultEncoding: { // wxFont::GetDefaultEncoding
+ int Result = wxFont::GetDefaultEncoding();
+ rt.addInt(Result);
+ break;
+}
+case wxFont_GetFaceName: { // wxFont::GetFaceName
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetFaceName();
+ rt.add(Result);
+ break;
+}
+case wxFont_GetFamily: { // wxFont::GetFamily
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFamily();
+ rt.addInt(Result);
+ break;
+}
+case wxFont_GetNativeFontInfoDesc: { // wxFont::GetNativeFontInfoDesc
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetNativeFontInfoDesc();
+ rt.add(Result);
+ break;
+}
+case wxFont_GetNativeFontInfoUserDesc: { // wxFont::GetNativeFontInfoUserDesc
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetNativeFontInfoUserDesc();
+ rt.add(Result);
+ break;
+}
+case wxFont_GetPointSize: { // wxFont::GetPointSize
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPointSize();
+ rt.addInt(Result);
+ break;
+}
+case wxFont_GetStyle: { // wxFont::GetStyle
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyle();
+ rt.addInt(Result);
+ break;
+}
+case wxFont_GetUnderlined: { // wxFont::GetUnderlined
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUnderlined();
+ rt.addBool(Result);
+ break;
+}
+case wxFont_GetWeight: { // wxFont::GetWeight
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWeight();
+ rt.addInt(Result);
+ break;
+}
+case wxFont_Ok: { // wxFont::Ok
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Ok();
+ rt.addBool(Result);
+ break;
+}
+case wxFont_SetDefaultEncoding: { // wxFont::SetDefaultEncoding
+ wxFontEncoding encoding = *(wxFontEncoding *) bp; bp += 4;;
+ wxFont::SetDefaultEncoding((wxFontEncoding) encoding);
+ break;
+}
+case wxFont_SetFaceName: { // wxFont::SetFaceName
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ int * faceNameLen = (int *) bp; bp += 4;
+ wxString faceName = wxString(bp, wxConvUTF8);
+ bp += *faceNameLen+((8-((0+ *faceNameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetFaceName(faceName);
+ rt.addBool(Result);
+ break;
+}
+case wxFont_SetFamily: { // wxFont::SetFamily
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ wxFontFamily family = *(wxFontFamily *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetFamily((wxFontFamily) family);
+ break;
+}
+case wxFont_SetPointSize: { // wxFont::SetPointSize
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ int * pointSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPointSize((int) *pointSize);
+ break;
+}
+case wxFont_SetStyle: { // wxFont::SetStyle
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ wxFontStyle style = *(wxFontStyle *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetStyle((wxFontStyle) style);
+ break;
+}
+case wxFont_SetUnderlined: { // wxFont::SetUnderlined
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ bool * underlined = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetUnderlined((bool) *underlined);
+ break;
+}
+case wxFont_SetWeight: { // wxFont::SetWeight
+ wxFont *This = (wxFont *) getPtr(bp,memenv); bp += 4;
+ int * weight = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWeight((int) *weight);
+ break;
+}
+case wxToolTip_Enable: { // wxToolTip::Enable
+ bool * flag = (bool *) bp; bp += 4;
+ wxToolTip::Enable((bool) *flag);
+ break;
+}
+case wxToolTip_SetDelay: { // wxToolTip::SetDelay
+ int * msecs = (int *) bp; bp += 4;
+ wxToolTip::SetDelay((long) *msecs);
+ break;
+}
+case wxToolTip_new: { // wxToolTip::wxToolTip
+ int * tipLen = (int *) bp; bp += 4;
+ wxString tip = wxString(bp, wxConvUTF8);
+ bp += *tipLen+((8-((4+ *tipLen) & 7)) & 7);
+ wxToolTip * Result = new EwxToolTip(tip);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolTip");
+ break;
+}
+case wxToolTip_SetTip: { // wxToolTip::SetTip
+ wxToolTip *This = (wxToolTip *) getPtr(bp,memenv); bp += 4;
+ int * tipLen = (int *) bp; bp += 4;
+ wxString tip = wxString(bp, wxConvUTF8);
+ bp += *tipLen+((8-((0+ *tipLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetTip(tip);
+ break;
+}
+case wxToolTip_GetTip: { // wxToolTip::GetTip
+ wxToolTip *This = (wxToolTip *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetTip();
+ rt.add(Result);
+ break;
+}
+case wxToolTip_GetWindow: { // wxToolTip::GetWindow
+ wxToolTip *This = (wxToolTip *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxButton_new_3: { // wxButton::wxButton
+ wxString label= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxButton * Result = new EwxButton(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxButton");
+ break;
+}
+case wxButton_new_0: { // wxButton::wxButton
+ wxButton * Result = new EwxButton();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxButton");
+ break;
+}
+case wxButton_Create: { // wxButton::Create
+ wxString label= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxButton *This = (wxButton *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxButton_GetDefaultSize: { // wxButton::GetDefaultSize
+ wxSize Result = wxButton::GetDefaultSize();
+ rt.add(Result);
+ break;
+}
+case wxButton_SetDefault: { // wxButton::SetDefault
+ wxButton *This = (wxButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefault();
+ break;
+}
+case wxButton_SetLabel: { // wxButton::SetLabel
+ wxButton *This = (wxButton *) getPtr(bp,memenv); bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel(label);
+ break;
+}
+case wxBitmapButton_new_4: { // wxBitmapButton::wxBitmapButton
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxBU_AUTODRAW;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxBitmapButton * Result = new EwxBitmapButton(parent,(wxWindowID) *id,*bitmap,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmapButton");
+ break;
+}
+case wxBitmapButton_new_0: { // wxBitmapButton::wxBitmapButton
+ wxBitmapButton * Result = new EwxBitmapButton();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmapButton");
+ break;
+}
+case wxBitmapButton_Create: { // wxBitmapButton::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxBU_AUTODRAW;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,*bitmap,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxBitmapButton_GetBitmapDisabled: { // wxBitmapButton::GetBitmapDisabled
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBitmap * Result = &This->GetBitmapDisabled();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmapButton_GetBitmapFocus: { // wxBitmapButton::GetBitmapFocus
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBitmap * Result = &This->GetBitmapFocus();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmapButton_GetBitmapLabel: { // wxBitmapButton::GetBitmapLabel
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBitmap * Result = &This->GetBitmapLabel();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmapButton_GetBitmapSelected: { // wxBitmapButton::GetBitmapSelected
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxBitmap * Result = &This->GetBitmapSelected();
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmapButton_SetBitmapDisabled: { // wxBitmapButton::SetBitmapDisabled
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *disabled = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmapDisabled(*disabled);
+ break;
+}
+case wxBitmapButton_SetBitmapFocus: { // wxBitmapButton::SetBitmapFocus
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *focus = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmapFocus(*focus);
+ break;
+}
+case wxBitmapButton_SetBitmapLabel: { // wxBitmapButton::SetBitmapLabel
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmapLabel(*bitmap);
+ break;
+}
+case wxBitmapButton_SetBitmapSelected: { // wxBitmapButton::SetBitmapSelected
+ wxBitmapButton *This = (wxBitmapButton *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *sel = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmapSelected(*sel);
+ break;
+}
+case wxToggleButton_new_0: { // wxToggleButton::wxToggleButton
+ wxToggleButton * Result = new EwxToggleButton();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxToggleButton");
+ break;
+}
+case wxToggleButton_new_4: { // wxToggleButton::wxToggleButton
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxToggleButton * Result = new EwxToggleButton(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxToggleButton");
+ break;
+}
+case wxToggleButton_Create: { // wxToggleButton::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxToggleButton *This = (wxToggleButton *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxToggleButton_GetValue: { // wxToggleButton::GetValue
+ wxToggleButton *This = (wxToggleButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetValue();
+ rt.addBool(Result);
+ break;
+}
+case wxToggleButton_SetValue: { // wxToggleButton::SetValue
+ wxToggleButton *This = (wxToggleButton *) getPtr(bp,memenv); bp += 4;
+ bool * state = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((bool) *state);
+ break;
+}
+case wxCalendarCtrl_new_0: { // wxCalendarCtrl::wxCalendarCtrl
+ wxCalendarCtrl * Result = new EwxCalendarCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarCtrl");
+ break;
+}
+case wxCalendarCtrl_new_3: { // wxCalendarCtrl::wxCalendarCtrl
+ wxDateTime date= wxDefaultDateTime;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * dateD = (int *) bp; bp += 4;
+ int * dateMo = (int *) bp; bp += 4;
+ int * dateY = (int *) bp; bp += 4;
+ int * dateH = (int *) bp; bp += 4;
+ int * dateMi = (int *) bp; bp += 4;
+ int * dateS = (int *) bp; bp += 4;
+ date = wxDateTime((wxDateTime::wxDateTime_t) *dateD,(wxDateTime::Month) *dateMo,*dateY,(wxDateTime::wxDateTime_t) *dateH,(wxDateTime::wxDateTime_t) *dateMi,(wxDateTime::wxDateTime_t) *dateS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxCalendarCtrl * Result = new EwxCalendarCtrl(parent,(wxWindowID) *id,date,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarCtrl");
+ break;
+}
+case wxCalendarCtrl_Create: { // wxCalendarCtrl::Create
+ wxDateTime date= wxDefaultDateTime;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS;
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * dateD = (int *) bp; bp += 4;
+ int * dateMo = (int *) bp; bp += 4;
+ int * dateY = (int *) bp; bp += 4;
+ int * dateH = (int *) bp; bp += 4;
+ int * dateMi = (int *) bp; bp += 4;
+ int * dateS = (int *) bp; bp += 4;
+ date = wxDateTime((wxDateTime::wxDateTime_t) *dateD,(wxDateTime::Month) *dateMo,*dateY,(wxDateTime::wxDateTime_t) *dateH,(wxDateTime::wxDateTime_t) *dateMi,(wxDateTime::wxDateTime_t) *dateS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,date,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarCtrl_SetDate: { // wxCalendarCtrl::SetDate
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * dateD = (int *) bp; bp += 4;
+ int * dateMo = (int *) bp; bp += 4;
+ int * dateY = (int *) bp; bp += 4;
+ int * dateH = (int *) bp; bp += 4;
+ int * dateMi = (int *) bp; bp += 4;
+ int * dateS = (int *) bp; bp += 4;
+ wxDateTime date = wxDateTime((wxDateTime::wxDateTime_t) *dateD,(wxDateTime::Month) *dateMo,*dateY,(wxDateTime::wxDateTime_t) *dateH,(wxDateTime::wxDateTime_t) *dateMi,(wxDateTime::wxDateTime_t) *dateS);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetDate(date);
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarCtrl_GetDate: { // wxCalendarCtrl::GetDate
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxDateTime * Result = &This->GetDate();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_EnableYearChange: { // wxCalendarCtrl::EnableYearChange
+ bool enable=true;
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableYearChange(enable);
+ break;
+}
+case wxCalendarCtrl_EnableMonthChange: { // wxCalendarCtrl::EnableMonthChange
+ bool enable=true;
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableMonthChange(enable);
+ break;
+}
+case wxCalendarCtrl_EnableHolidayDisplay: { // wxCalendarCtrl::EnableHolidayDisplay
+ bool display=true;
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ display = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->EnableHolidayDisplay(display);
+ break;
+}
+case wxCalendarCtrl_SetHeaderColours: { // wxCalendarCtrl::SetHeaderColours
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colFgR = (int *) bp; bp += 4;
+ int * colFgG = (int *) bp; bp += 4;
+ int * colFgB = (int *) bp; bp += 4;
+ int * colFgA = (int *) bp; bp += 4;
+ wxColour colFg = wxColour(*colFgR,*colFgG,*colFgB,*colFgA);
+ int * colBgR = (int *) bp; bp += 4;
+ int * colBgG = (int *) bp; bp += 4;
+ int * colBgB = (int *) bp; bp += 4;
+ int * colBgA = (int *) bp; bp += 4;
+ wxColour colBg = wxColour(*colBgR,*colBgG,*colBgB,*colBgA);
+ if(!This) throw wxe_badarg(0);
+ This->SetHeaderColours(colFg,colBg);
+ break;
+}
+case wxCalendarCtrl_GetHeaderColourFg: { // wxCalendarCtrl::GetHeaderColourFg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHeaderColourFg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_GetHeaderColourBg: { // wxCalendarCtrl::GetHeaderColourBg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHeaderColourBg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_SetHighlightColours: { // wxCalendarCtrl::SetHighlightColours
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colFgR = (int *) bp; bp += 4;
+ int * colFgG = (int *) bp; bp += 4;
+ int * colFgB = (int *) bp; bp += 4;
+ int * colFgA = (int *) bp; bp += 4;
+ wxColour colFg = wxColour(*colFgR,*colFgG,*colFgB,*colFgA);
+ int * colBgR = (int *) bp; bp += 4;
+ int * colBgG = (int *) bp; bp += 4;
+ int * colBgB = (int *) bp; bp += 4;
+ int * colBgA = (int *) bp; bp += 4;
+ wxColour colBg = wxColour(*colBgR,*colBgG,*colBgB,*colBgA);
+ if(!This) throw wxe_badarg(0);
+ This->SetHighlightColours(colFg,colBg);
+ break;
+}
+case wxCalendarCtrl_GetHighlightColourFg: { // wxCalendarCtrl::GetHighlightColourFg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHighlightColourFg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_GetHighlightColourBg: { // wxCalendarCtrl::GetHighlightColourBg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHighlightColourBg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_SetHolidayColours: { // wxCalendarCtrl::SetHolidayColours
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colFgR = (int *) bp; bp += 4;
+ int * colFgG = (int *) bp; bp += 4;
+ int * colFgB = (int *) bp; bp += 4;
+ int * colFgA = (int *) bp; bp += 4;
+ wxColour colFg = wxColour(*colFgR,*colFgG,*colFgB,*colFgA);
+ int * colBgR = (int *) bp; bp += 4;
+ int * colBgG = (int *) bp; bp += 4;
+ int * colBgB = (int *) bp; bp += 4;
+ int * colBgA = (int *) bp; bp += 4;
+ wxColour colBg = wxColour(*colBgR,*colBgG,*colBgB,*colBgA);
+ if(!This) throw wxe_badarg(0);
+ This->SetHolidayColours(colFg,colBg);
+ break;
+}
+case wxCalendarCtrl_GetHolidayColourFg: { // wxCalendarCtrl::GetHolidayColourFg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHolidayColourFg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_GetHolidayColourBg: { // wxCalendarCtrl::GetHolidayColourBg
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetHolidayColourBg();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarCtrl_GetAttr: { // wxCalendarCtrl::GetAttr
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * day = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCalendarDateAttr * Result = (wxCalendarDateAttr*)This->GetAttr((size_t) *day);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarDateAttr");
+ break;
+}
+case wxCalendarCtrl_SetAttr: { // wxCalendarCtrl::SetAttr
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * day = (int *) bp; bp += 4;
+ wxCalendarDateAttr *attr = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAttr((size_t) *day,attr);
+ break;
+}
+case wxCalendarCtrl_SetHoliday: { // wxCalendarCtrl::SetHoliday
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * day = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHoliday((size_t) *day);
+ break;
+}
+case wxCalendarCtrl_ResetAttr: { // wxCalendarCtrl::ResetAttr
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * day = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ResetAttr((size_t) *day);
+ break;
+}
+case wxCalendarCtrl_HitTest: { // wxCalendarCtrl::HitTest
+ wxDateTime date;
+ wxDateTime::WeekDay wd;
+ wxCalendarCtrl *This = (wxCalendarCtrl *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pos,&date,&wd);
+ rt.addInt(Result);
+ rt.add(date);
+ rt.addInt(wd);
+ rt.addTupleCount(3);
+ break;
+}
+case wxCalendarDateAttr_new_0: { // wxCalendarDateAttr::wxCalendarDateAttr
+ wxCalendarDateAttr * Result = new wxCalendarDateAttr();
+ newPtr((void *) Result, 88, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarDateAttr");
+ break;
+}
+case wxCalendarDateAttr_new_2_1: { // wxCalendarDateAttr::wxCalendarDateAttr
+ wxColour colBack= wxNullColour;
+ wxColour colBorder= wxNullColour;
+ const wxFont * font= &wxNullFont;
+ wxCalendarDateBorder border=wxCAL_BORDER_NONE;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * colBorderR = (int *) bp; bp += 4;
+ int * colBorderG = (int *) bp; bp += 4;
+ int * colBorderB = (int *) bp; bp += 4;
+ int * colBorderA = (int *) bp; bp += 4;
+ colBorder = wxColour(*colBorderR,*colBorderG,*colBorderB,*colBorderA);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 4: {bp += 4;
+border = *(wxCalendarDateBorder *) bp; bp += 4;;
+ } break;
+ }};
+ wxCalendarDateAttr * Result = new wxCalendarDateAttr(colText,colBack,colBorder,*font,(wxCalendarDateBorder) border);
+ newPtr((void *) Result, 88, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarDateAttr");
+ break;
+}
+case wxCalendarDateAttr_new_2_0: { // wxCalendarDateAttr::wxCalendarDateAttr
+ wxColour colBorder= wxNullColour;
+ wxCalendarDateBorder border = *(wxCalendarDateBorder *) bp; bp += 4;;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colBorderR = (int *) bp; bp += 4;
+ int * colBorderG = (int *) bp; bp += 4;
+ int * colBorderB = (int *) bp; bp += 4;
+ int * colBorderA = (int *) bp; bp += 4;
+ colBorder = wxColour(*colBorderR,*colBorderG,*colBorderB,*colBorderA);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxCalendarDateAttr * Result = new wxCalendarDateAttr((wxCalendarDateBorder) border,colBorder);
+ newPtr((void *) Result, 88, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCalendarDateAttr");
+ break;
+}
+case wxCalendarDateAttr_SetTextColour: { // wxCalendarDateAttr::SetTextColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextColour(colText);
+ break;
+}
+case wxCalendarDateAttr_SetBackgroundColour: { // wxCalendarDateAttr::SetBackgroundColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ if(!This) throw wxe_badarg(0);
+ This->SetBackgroundColour(colBack);
+ break;
+}
+case wxCalendarDateAttr_SetBorderColour: { // wxCalendarDateAttr::SetBorderColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetBorderColour(col);
+ break;
+}
+case wxCalendarDateAttr_SetFont: { // wxCalendarDateAttr::SetFont
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font);
+ break;
+}
+case wxCalendarDateAttr_SetBorder: { // wxCalendarDateAttr::SetBorder
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ wxCalendarDateBorder border = *(wxCalendarDateBorder *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetBorder((wxCalendarDateBorder) border);
+ break;
+}
+case wxCalendarDateAttr_SetHoliday: { // wxCalendarDateAttr::SetHoliday
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ bool * holiday = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHoliday((bool) *holiday);
+ break;
+}
+case wxCalendarDateAttr_HasTextColour: { // wxCalendarDateAttr::HasTextColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasTextColour();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_HasBackgroundColour: { // wxCalendarDateAttr::HasBackgroundColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBackgroundColour();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_HasBorderColour: { // wxCalendarDateAttr::HasBorderColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBorderColour();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_HasFont: { // wxCalendarDateAttr::HasFont
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasFont();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_HasBorder: { // wxCalendarDateAttr::HasBorder
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBorder();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_IsHoliday: { // wxCalendarDateAttr::IsHoliday
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsHoliday();
+ rt.addBool(Result);
+ break;
+}
+case wxCalendarDateAttr_GetTextColour: { // wxCalendarDateAttr::GetTextColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetTextColour();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarDateAttr_GetBackgroundColour: { // wxCalendarDateAttr::GetBackgroundColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetBackgroundColour();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarDateAttr_GetBorderColour: { // wxCalendarDateAttr::GetBorderColour
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetBorderColour();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarDateAttr_GetFont: { // wxCalendarDateAttr::GetFont
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFont * Result = &This->GetFont();
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxCalendarDateAttr_GetBorder: { // wxCalendarDateAttr::GetBorder
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBorder();
+ rt.addInt(Result);
+ break;
+}
+case wxCalendarDateAttr_destroy: { // wxCalendarDateAttr::destroy
+ wxCalendarDateAttr *This = (wxCalendarDateAttr *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxCheckBox_new_4: { // wxCheckBox::wxCheckBox
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxCheckBox * Result = new EwxCheckBox(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCheckBox");
+ break;
+}
+case wxCheckBox_new_0: { // wxCheckBox::wxCheckBox
+ wxCheckBox * Result = new EwxCheckBox();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCheckBox");
+ break;
+}
+case wxCheckBox_Create: { // wxCheckBox::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxCheckBox_GetValue: { // wxCheckBox::GetValue
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetValue();
+ rt.addBool(Result);
+ break;
+}
+case wxCheckBox_Get3StateValue: { // wxCheckBox::Get3StateValue
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Get3StateValue();
+ rt.addInt(Result);
+ break;
+}
+case wxCheckBox_Is3rdStateAllowedForUser: { // wxCheckBox::Is3rdStateAllowedForUser
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Is3rdStateAllowedForUser();
+ rt.addBool(Result);
+ break;
+}
+case wxCheckBox_Is3State: { // wxCheckBox::Is3State
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Is3State();
+ rt.addBool(Result);
+ break;
+}
+case wxCheckBox_IsChecked: { // wxCheckBox::IsChecked
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked();
+ rt.addBool(Result);
+ break;
+}
+case wxCheckBox_SetValue: { // wxCheckBox::SetValue
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ bool * state = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((bool) *state);
+ break;
+}
+case wxCheckBox_Set3StateValue: { // wxCheckBox::Set3StateValue
+ wxCheckBox *This = (wxCheckBox *) getPtr(bp,memenv); bp += 4;
+ wxCheckBoxState state = *(wxCheckBoxState *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->Set3StateValue((wxCheckBoxState) state);
+ break;
+}
+case wxCheckListBox_new_0: { // wxCheckListBox::wxCheckListBox
+ wxCheckListBox * Result = new EwxCheckListBox();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCheckListBox");
+ break;
+}
+case wxCheckListBox_new_3: { // wxCheckListBox::wxCheckListBox
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ wxArrayString choices;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * choicesLen = (int *) bp; bp += 4;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxCheckListBox * Result = new EwxCheckListBox(parent,(wxWindowID) *id,pos,size,choices,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxCheckListBox");
+ break;
+}
+case wxCheckListBox_Check: { // wxCheckListBox::Check
+ bool check=true;
+ wxCheckListBox *This = (wxCheckListBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * index = (unsigned int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ check = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Check((int) *index,check);
+ break;
+}
+case wxCheckListBox_IsChecked: { // wxCheckListBox::IsChecked
+ wxCheckListBox *This = (wxCheckListBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * index = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked((int) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxChoice_new_3: { // wxChoice::wxChoice
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ wxArrayString choices;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * choicesLen = (int *) bp; bp += 4;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxChoice * Result = new EwxChoice(parent,(wxWindowID) *id,pos,size,choices,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxChoice");
+ break;
+}
+case wxChoice_new_0: { // wxChoice::wxChoice
+ wxChoice * Result = new EwxChoice();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxChoice");
+ break;
+}
+case wxChoice_Create: { // wxChoice::Create
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxChoice *This = (wxChoice *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,choices,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxChoice_Delete: { // wxChoice::Delete
+ wxChoice *This = (wxChoice *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Delete((int) *n);
+ break;
+}
+case wxChoice_GetColumns: { // wxChoice::GetColumns
+ wxChoice *This = (wxChoice *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumns();
+ rt.addInt(Result);
+ break;
+}
+case wxChoice_SetColumns: { // wxChoice::SetColumns
+ int n=1;
+ wxChoice *This = (wxChoice *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ n = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetColumns(n);
+ break;
+}
+case wxComboBox_new_0: { // wxComboBox::wxComboBox
+ wxComboBox * Result = new EwxComboBox();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxComboBox");
+ break;
+}
+case wxComboBox_new_3: { // wxComboBox::wxComboBox
+ wxString value= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ wxArrayString choices;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * choicesLen = (int *) bp; bp += 4;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxComboBox * Result = new EwxComboBox(parent,(wxWindowID) *id,value,pos,size,choices,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxComboBox");
+ break;
+}
+case wxComboBox_Create: { // wxComboBox::Create
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,value,pos,size,choices,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_CanCopy: { // wxComboBox::CanCopy
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanCopy();
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_CanCut: { // wxComboBox::CanCut
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanCut();
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_CanPaste: { // wxComboBox::CanPaste
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanPaste();
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_CanRedo: { // wxComboBox::CanRedo
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanRedo();
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_CanUndo: { // wxComboBox::CanUndo
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanUndo();
+ rt.addBool(Result);
+ break;
+}
+case wxComboBox_Copy: { // wxComboBox::Copy
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Copy();
+ break;
+}
+case wxComboBox_Cut: { // wxComboBox::Cut
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Cut();
+ break;
+}
+case wxComboBox_GetInsertionPoint: { // wxComboBox::GetInsertionPoint
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetInsertionPoint();
+ rt.addInt(Result);
+ break;
+}
+case wxComboBox_GetLastPosition: { // wxComboBox::GetLastPosition
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTextPos Result = This->GetLastPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxComboBox_GetValue: { // wxComboBox::GetValue
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetValue();
+ rt.add(Result);
+ break;
+}
+case wxComboBox_Paste: { // wxComboBox::Paste
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Paste();
+ break;
+}
+case wxComboBox_Redo: { // wxComboBox::Redo
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Redo();
+ break;
+}
+case wxComboBox_Replace: { // wxComboBox::Replace
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->Replace((long) *from,(long) *to,value);
+ break;
+}
+case wxComboBox_Remove: { // wxComboBox::Remove
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Remove((long) *from,(long) *to);
+ break;
+}
+case wxComboBox_SetInsertionPoint: { // wxComboBox::SetInsertionPoint
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInsertionPoint((long) *pos);
+ break;
+}
+case wxComboBox_SetInsertionPointEnd: { // wxComboBox::SetInsertionPointEnd
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInsertionPointEnd();
+ break;
+}
+case wxComboBox_SetSelection_1: { // wxComboBox::SetSelection
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *n);
+ break;
+}
+case wxComboBox_SetSelection_2: { // wxComboBox::SetSelection
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((long) *from,(long) *to);
+ break;
+}
+case wxComboBox_SetValue: { // wxComboBox::SetValue
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetValue(value);
+ break;
+}
+case wxComboBox_Undo: { // wxComboBox::Undo
+ wxComboBox *This = (wxComboBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Undo();
+ break;
+}
+case wxGauge_new_0: { // wxGauge::wxGauge
+ wxGauge * Result = new EwxGauge();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGauge");
+ break;
+}
+case wxGauge_new_4: { // wxGauge::wxGauge
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxGA_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * range = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxGauge * Result = new EwxGauge(parent,(wxWindowID) *id,(int) *range,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGauge");
+ break;
+}
+case wxGauge_Create: { // wxGauge::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxGA_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * range = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,(int) *range,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxGauge_GetBezelFace: { // wxGauge::GetBezelFace
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBezelFace();
+ rt.addInt(Result);
+ break;
+}
+case wxGauge_GetRange: { // wxGauge::GetRange
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRange();
+ rt.addInt(Result);
+ break;
+}
+case wxGauge_GetShadowWidth: { // wxGauge::GetShadowWidth
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetShadowWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxGauge_GetValue: { // wxGauge::GetValue
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetValue();
+ rt.addInt(Result);
+ break;
+}
+case wxGauge_IsVertical: { // wxGauge::IsVertical
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVertical();
+ rt.addBool(Result);
+ break;
+}
+case wxGauge_SetBezelFace: { // wxGauge::SetBezelFace
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ int * w = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBezelFace((int) *w);
+ break;
+}
+case wxGauge_SetRange: { // wxGauge::SetRange
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ int * r = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRange((int) *r);
+ break;
+}
+case wxGauge_SetShadowWidth: { // wxGauge::SetShadowWidth
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ int * w = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetShadowWidth((int) *w);
+ break;
+}
+case wxGauge_SetValue: { // wxGauge::SetValue
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((int) *pos);
+ break;
+}
+case wxGauge_Pulse: { // wxGauge::Pulse
+ wxGauge *This = (wxGauge *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Pulse();
+ break;
+}
+case wxGenericDirCtrl_new_0: { // wxGenericDirCtrl::wxGenericDirCtrl
+ wxGenericDirCtrl * Result = new EwxGenericDirCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGenericDirCtrl");
+ break;
+}
+case wxGenericDirCtrl_new_2: { // wxGenericDirCtrl::wxGenericDirCtrl
+ wxWindowID id=wxID_ANY;
+ wxString dir= wxDirDialogDefaultFolderStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER;
+ wxString filter= wxEmptyString;
+ int defaultFilter=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(const int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * dirLen = (int *) bp; bp += 4;
+ dir = wxString(bp, wxConvUTF8);
+ bp += *dirLen+((8-((0+ *dirLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+ int * filterLen = (int *) bp; bp += 4;
+ filter = wxString(bp, wxConvUTF8);
+ bp += *filterLen+((8-((0+ *filterLen) & 7)) & 7);
+ } break;
+ case 7: {bp += 4;
+ defaultFilter = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxGenericDirCtrl * Result = new EwxGenericDirCtrl(parent,id,dir,pos,size,style,filter,defaultFilter);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGenericDirCtrl");
+ break;
+}
+case wxGenericDirCtrl_Create: { // wxGenericDirCtrl::Create
+ wxWindowID id=wxID_ANY;
+ wxString dir= wxDirDialogDefaultFolderStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER;
+ wxString filter= wxEmptyString;
+ int defaultFilter=0;
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(const int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * dirLen = (int *) bp; bp += 4;
+ dir = wxString(bp, wxConvUTF8);
+ bp += *dirLen+((8-((0+ *dirLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+ int * filterLen = (int *) bp; bp += 4;
+ filter = wxString(bp, wxConvUTF8);
+ bp += *filterLen+((8-((0+ *filterLen) & 7)) & 7);
+ } break;
+ case 7: {bp += 4;
+ defaultFilter = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,dir,pos,size,style,filter,defaultFilter);
+ rt.addBool(Result);
+ break;
+}
+case wxGenericDirCtrl_Init: { // wxGenericDirCtrl::Init
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Init();
+ break;
+}
+case wxGenericDirCtrl_CollapseTree: { // wxGenericDirCtrl::CollapseTree
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CollapseTree();
+ break;
+}
+case wxGenericDirCtrl_ExpandPath: { // wxGenericDirCtrl::ExpandPath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ wxString path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ExpandPath(path);
+ rt.addBool(Result);
+ break;
+}
+case wxGenericDirCtrl_GetDefaultPath: { // wxGenericDirCtrl::GetDefaultPath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetDefaultPath();
+ rt.add(Result);
+ break;
+}
+case wxGenericDirCtrl_GetPath: { // wxGenericDirCtrl::GetPath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxGenericDirCtrl_GetFilePath: { // wxGenericDirCtrl::GetFilePath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetFilePath();
+ rt.add(Result);
+ break;
+}
+case wxGenericDirCtrl_GetFilter: { // wxGenericDirCtrl::GetFilter
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetFilter();
+ rt.add(Result);
+ break;
+}
+case wxGenericDirCtrl_GetFilterIndex: { // wxGenericDirCtrl::GetFilterIndex
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFilterIndex();
+ rt.addInt(Result);
+ break;
+}
+case wxGenericDirCtrl_GetRootId: { // wxGenericDirCtrl::GetRootId
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetRootId();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxGenericDirCtrl_GetTreeCtrl: { // wxGenericDirCtrl::GetTreeCtrl
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeCtrl * Result = (wxTreeCtrl*)This->GetTreeCtrl();
+ rt.addRef(getRef((void *)Result,memenv), "wxTreeCtrl");
+ break;
+}
+case wxGenericDirCtrl_ReCreateTree: { // wxGenericDirCtrl::ReCreateTree
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ReCreateTree();
+ break;
+}
+case wxGenericDirCtrl_SetDefaultPath: { // wxGenericDirCtrl::SetDefaultPath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ wxString path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultPath(path);
+ break;
+}
+case wxGenericDirCtrl_SetFilter: { // wxGenericDirCtrl::SetFilter
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ int * filterLen = (int *) bp; bp += 4;
+ wxString filter = wxString(bp, wxConvUTF8);
+ bp += *filterLen+((8-((0+ *filterLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetFilter(filter);
+ break;
+}
+case wxGenericDirCtrl_SetFilterIndex: { // wxGenericDirCtrl::SetFilterIndex
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFilterIndex((int) *n);
+ break;
+}
+case wxGenericDirCtrl_SetPath: { // wxGenericDirCtrl::SetPath
+ wxGenericDirCtrl *This = (wxGenericDirCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ wxString path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPath(path);
+ break;
+}
+case wxStaticBox_new_4: { // wxStaticBox::wxStaticBox
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStaticBox * Result = new EwxStaticBox(parent,(wxWindowID) *id,label,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBox");
+ break;
+}
+case wxStaticBox_new_0: { // wxStaticBox::wxStaticBox
+ wxStaticBox * Result = new EwxStaticBox();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBox");
+ break;
+}
+case wxStaticBox_Create: { // wxStaticBox::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxStaticBox *This = (wxStaticBox *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStaticLine_new_2: { // wxStaticLine::wxStaticLine
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxLI_HORIZONTAL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStaticLine * Result = new EwxStaticLine(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticLine");
+ break;
+}
+case wxStaticLine_new_0: { // wxStaticLine::wxStaticLine
+ wxStaticLine * Result = new EwxStaticLine();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticLine");
+ break;
+}
+case wxStaticLine_Create: { // wxStaticLine::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxLI_HORIZONTAL;
+ wxStaticLine *This = (wxStaticLine *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStaticLine_IsVertical: { // wxStaticLine::IsVertical
+ wxStaticLine *This = (wxStaticLine *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVertical();
+ rt.addBool(Result);
+ break;
+}
+case wxStaticLine_GetDefaultSize: { // wxStaticLine::GetDefaultSize
+ int Result = wxStaticLine::GetDefaultSize();
+ rt.addInt(Result);
+ break;
+}
+case wxListBox_new_3: { // wxListBox::wxListBox
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ wxArrayString choices;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * choicesLen = (int *) bp; bp += 4;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxListBox * Result = new EwxListBox(parent,(wxWindowID) *id,pos,size,choices,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListBox");
+ break;
+}
+case wxListBox_new_0: { // wxListBox::wxListBox
+ wxListBox * Result = new EwxListBox();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListBox");
+ break;
+}
+case wxListBox_Create: { // wxListBox::Create
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((0+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,choices,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxListBox_Deselect: { // wxListBox::Deselect
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Deselect((int) *n);
+ break;
+}
+case wxListBox_GetSelections: { // wxListBox::GetSelections
+ wxArrayInt aSelections;
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelections(aSelections);
+ rt.addInt(Result);
+ rt.add(aSelections);
+ rt.addTupleCount(2);
+ break;
+}
+case wxListBox_InsertItems: { // wxListBox::InsertItems
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * itemsLen = (int *) bp; bp += 4;
+ wxArrayString items;
+ int itemsASz = 0, * itemsTemp;
+ for(int i=0; i < *itemsLen; i++) {
+ itemsTemp = (int *) bp; bp += 4;
+ items.Add(wxString(bp, wxConvUTF8));
+ bp += *itemsTemp;
+ itemsASz += *itemsTemp+4;
+ }
+ bp += (8-((0+ itemsASz) & 7 )) & 7;
+ unsigned int * pos = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InsertItems(items,(int) *pos);
+ break;
+}
+case wxListBox_IsSelected: { // wxListBox::IsSelected
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSelected((int) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxListBox_Set: { // wxListBox::Set
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * itemsLen = (int *) bp; bp += 4;
+ wxArrayString items;
+ int itemsASz = 0, * itemsTemp;
+ for(int i=0; i < *itemsLen; i++) {
+ itemsTemp = (int *) bp; bp += 4;
+ items.Add(wxString(bp, wxConvUTF8));
+ bp += *itemsTemp;
+ itemsASz += *itemsTemp+4;
+ }
+ bp += (8-((0+ itemsASz) & 7 )) & 7;
+ if(!This) throw wxe_badarg(0);
+ This->Set(items,NULL);
+ break;
+}
+case wxListBox_HitTest: { // wxListBox::HitTest
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * pointX = (int *) bp; bp += 4;
+ int * pointY = (int *) bp; bp += 4;
+ wxPoint point = wxPoint(*pointX,*pointY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(point);
+ rt.addInt(Result);
+ break;
+}
+case wxListBox_SetFirstItem_1_0: { // wxListBox::SetFirstItem
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFirstItem((int) *n);
+ break;
+}
+case wxListBox_SetFirstItem_1_1: { // wxListBox::SetFirstItem
+ wxListBox *This = (wxListBox *) getPtr(bp,memenv); bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetFirstItem(s);
+ break;
+}
+case wxListCtrl_new_0: { // wxListCtrl::wxListCtrl
+ wxListCtrl * Result = new EwxListCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListCtrl");
+ break;
+}
+case wxListCtrl_new_2: { // wxListCtrl::wxListCtrl
+ wxWindowID winid=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxLC_ICON;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxListCtrl * Result = new EwxListCtrl(parent,winid,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListCtrl");
+ break;
+}
+case wxListCtrl_Arrange: { // wxListCtrl::Arrange
+ int flag=wxLIST_ALIGN_DEFAULT;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flag = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Arrange(flag);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_AssignImageList: { // wxListCtrl::AssignImageList
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * which = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList,(int) *which);
+ break;
+}
+case wxListCtrl_ClearAll: { // wxListCtrl::ClearAll
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearAll();
+ break;
+}
+case wxListCtrl_Create: { // wxListCtrl::Create
+ wxWindowID winid=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxLC_ICON;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ winid = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,winid,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_DeleteAllItems: { // wxListCtrl::DeleteAllItems
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllItems();
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_DeleteColumn: { // wxListCtrl::DeleteColumn
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteColumn((int) *col);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_DeleteItem: { // wxListCtrl::DeleteItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteItem((long) *item);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_EditLabel: { // wxListCtrl::EditLabel
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTextCtrl * Result = (wxTextCtrl*)This->EditLabel((long) *item);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextCtrl");
+ break;
+}
+case wxListCtrl_EnsureVisible: { // wxListCtrl::EnsureVisible
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->EnsureVisible((long) *item);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_FindItem_3_0: { // wxListCtrl::FindItem
+ bool partial=false;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((4+ *strLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ partial = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ long Result = This->FindItem((long) *start,str,partial);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_FindItem_3_1: { // wxListCtrl::FindItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ int * direction = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->FindItem((long) *start,pt,(int) *direction);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetColumn: { // wxListCtrl::GetColumn
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxListItem *item = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetColumn((int) *col,*item);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_GetColumnCount: { // wxListCtrl::GetColumnCount
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumnCount();
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetColumnWidth: { // wxListCtrl::GetColumnWidth
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumnWidth((int) *col);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetCountPerPage: { // wxListCtrl::GetCountPerPage
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCountPerPage();
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetImageList: { // wxListCtrl::GetImageList
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * which = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList((int) *which);
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxListCtrl_GetItem: { // wxListCtrl::GetItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxListItem *info = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetItem(*info);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_GetItemBackgroundColour: { // wxListCtrl::GetItemBackgroundColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetItemBackgroundColour((long) *item);
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_GetItemCount: { // wxListCtrl::GetItemCount
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetItemCount();
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetItemData: { // wxListCtrl::GetItemData
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxUIntPtr Result = This->GetItemData((long) *item);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetItemFont: { // wxListCtrl::GetItemFont
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetItemFont((long) *item)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxListCtrl_GetItemPosition: { // wxListCtrl::GetItemPosition
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetItemPosition((long) *item,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_GetItemRect: { // wxListCtrl::GetItemRect
+ int code=wxLIST_RECT_BOUNDS;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ code = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetItemRect((long) *item,rect,code);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_GetItemSpacing: { // wxListCtrl::GetItemSpacing
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetItemSpacing();
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_GetItemState: { // wxListCtrl::GetItemState
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * stateMask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetItemState((long) *item,(long) *stateMask);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetItemText: { // wxListCtrl::GetItemText
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetItemText((long) *item);
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_GetItemTextColour: { // wxListCtrl::GetItemTextColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetItemTextColour((long) *item);
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_GetNextItem: { // wxListCtrl::GetNextItem
+ int geometry=wxLIST_NEXT_ALL;
+ int state=wxLIST_STATE_DONTCARE;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ geometry = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ state = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetNextItem((long) *item,geometry,state);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetSelectedItemCount: { // wxListCtrl::GetSelectedItemCount
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelectedItemCount();
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetTextColour: { // wxListCtrl::GetTextColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetTextColour();
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_GetTopItem: { // wxListCtrl::GetTopItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetTopItem();
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_GetViewRect: { // wxListCtrl::GetViewRect
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetViewRect();
+ rt.add(Result);
+ break;
+}
+case wxListCtrl_HitTest: { // wxListCtrl::HitTest
+ int flags;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pointX = (int *) bp; bp += 4;
+ int * pointY = (int *) bp; bp += 4;
+ wxPoint point = wxPoint(*pointX,*pointY);
+ if(!This) throw wxe_badarg(0);
+ long Result = This->HitTest(point,flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxListCtrl_InsertColumn_2: { // wxListCtrl::InsertColumn
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxListItem *info = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertColumn((long) *col,*info);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_InsertColumn_3: { // wxListCtrl::InsertColumn
+ int format=wxLIST_FORMAT_LEFT;
+ int width=-1;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * headingLen = (int *) bp; bp += 4;
+ wxString heading = wxString(bp, wxConvUTF8);
+ bp += *headingLen+((8-((4+ *headingLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ format = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ width = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertColumn((long) *col,heading,format,width);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_InsertItem_1: { // wxListCtrl::InsertItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxListItem *info = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertItem(*info);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_InsertItem_2_1: { // wxListCtrl::InsertItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertItem((long) *index,label);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_InsertItem_2_0: { // wxListCtrl::InsertItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * imageIndex = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertItem((long) *index,(int) *imageIndex);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_InsertItem_3: { // wxListCtrl::InsertItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ int * imageIndex = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->InsertItem((long) *index,label,(int) *imageIndex);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_RefreshItem: { // wxListCtrl::RefreshItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RefreshItem((long) *item);
+ break;
+}
+case wxListCtrl_RefreshItems: { // wxListCtrl::RefreshItems
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * itemFrom = (int *) bp; bp += 4;
+ int * itemTo = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RefreshItems((long) *itemFrom,(long) *itemTo);
+ break;
+}
+case wxListCtrl_ScrollList: { // wxListCtrl::ScrollList
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * dx = (int *) bp; bp += 4;
+ int * dy = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ScrollList((int) *dx,(int) *dy);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetBackgroundColour: { // wxListCtrl::SetBackgroundColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetBackgroundColour(colour);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetColumn: { // wxListCtrl::SetColumn
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ wxListItem *item = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetColumn((int) *col,*item);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetColumnWidth: { // wxListCtrl::SetColumnWidth
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetColumnWidth((int) *col,(int) *width);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetImageList: { // wxListCtrl::SetImageList
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * which = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList,(int) *which);
+ break;
+}
+case wxListCtrl_SetItem_1: { // wxListCtrl::SetItem
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ wxListItem *info = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItem(*info);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItem_4: { // wxListCtrl::SetItem
+ int imageId=-1;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ long Result = This->SetItem((long) *index,(int) *col,label,imageId);
+ rt.addInt(Result);
+ break;
+}
+case wxListCtrl_SetItemBackgroundColour: { // wxListCtrl::SetItemBackgroundColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemBackgroundColour((long) *item,col);
+ break;
+}
+case wxListCtrl_SetItemCount: { // wxListCtrl::SetItemCount
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * count = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetItemCount((long) *count);
+ break;
+}
+case wxListCtrl_SetItemData: { // wxListCtrl::SetItemData
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * data = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemData((long) *item,(long) *data);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItemFont: { // wxListCtrl::SetItemFont
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ wxFont *f = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetItemFont((long) *item,*f);
+ break;
+}
+case wxListCtrl_SetItemImage: { // wxListCtrl::SetItemImage
+ int selImage=-1;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * image = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ selImage = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemImage((long) *item,(int) *image,selImage);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItemColumnImage: { // wxListCtrl::SetItemColumnImage
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * column = (int *) bp; bp += 4;
+ int * image = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemColumnImage((long) *item,(long) *column,(int) *image);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItemPosition: { // wxListCtrl::SetItemPosition
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemPosition((long) *item,pos);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItemState: { // wxListCtrl::SetItemState
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * state = (int *) bp; bp += 4;
+ int * stateMask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetItemState((long) *item,(long) *state,(long) *stateMask);
+ rt.addBool(Result);
+ break;
+}
+case wxListCtrl_SetItemText: { // wxListCtrl::SetItemText
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((4+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemText((long) *item,str);
+ break;
+}
+case wxListCtrl_SetItemTextColour: { // wxListCtrl::SetItemTextColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemTextColour((long) *item,col);
+ break;
+}
+case wxListCtrl_SetSingleStyle: { // wxListCtrl::SetSingleStyle
+ bool add=true;
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ add = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSingleStyle((long) *style,add);
+ break;
+}
+case wxListCtrl_SetTextColour: { // wxListCtrl::SetTextColour
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextColour(col);
+ break;
+}
+case wxListCtrl_SetWindowStyleFlag: { // wxListCtrl::SetWindowStyleFlag
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowStyleFlag((long) *style);
+ break;
+}
+
+case wxListCtrl_SortItems: { // wxListCtrl::SortItems taylormade
+ wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
+ int sortCallback=*(int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+
+ callbackInfo* cb = new callbackInfo();
+ cb->port = Ecmd.port;
+ cb->callbackID = sortCallback;
+ bool Result = This->SortItems(wxEListCtrlCompare, (long)cb);
+ delete cb;
+
+ /* Destroy the callback, see wxEPrintout::clear_cb */
+ wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ // NOTE: Remove this later when changing from funs to gen_server
+ cbrt.addAtom("wx_delete_cb");
+ cbrt.addInt(sortCallback);
+ cbrt.addTupleCount(2);
+ cbrt.send();
+
+ rt.addBool(Result);
+ break;
+}
+case wxListView_ClearColumnImage: { // wxListView::ClearColumnImage
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearColumnImage((int) *col);
+ break;
+}
+case wxListView_Focus: { // wxListView::Focus
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Focus((long) *index);
+ break;
+}
+case wxListView_GetFirstSelected: { // wxListView::GetFirstSelected
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetFirstSelected();
+ rt.addInt(Result);
+ break;
+}
+case wxListView_GetFocusedItem: { // wxListView::GetFocusedItem
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetFocusedItem();
+ rt.addInt(Result);
+ break;
+}
+case wxListView_GetNextSelected: { // wxListView::GetNextSelected
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * item = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetNextSelected((long) *item);
+ rt.addInt(Result);
+ break;
+}
+case wxListView_IsSelected: { // wxListView::IsSelected
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSelected((long) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxListView_Select: { // wxListView::Select
+ bool on=true;
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ on = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Select((long) *n,on);
+ break;
+}
+case wxListView_SetColumnImage: { // wxListView::SetColumnImage
+ wxListView *This = (wxListView *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ int * image = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColumnImage((int) *col,(int) *image);
+ break;
+}
+case wxListItem_new_0: { // wxListItem::wxListItem
+ wxListItem * Result = new EwxListItem();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListItem");
+ break;
+}
+case wxListItem_new_1: { // wxListItem::wxListItem
+ wxListItem *item = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ wxListItem * Result = new EwxListItem(*item);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListItem");
+ break;
+}
+case wxListItem_Clear: { // wxListItem::Clear
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxListItem_GetAlign: { // wxListItem::GetAlign
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetAlign();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetBackgroundColour: { // wxListItem::GetBackgroundColour
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetBackgroundColour();
+ rt.add(Result);
+ break;
+}
+case wxListItem_GetColumn: { // wxListItem::GetColumn
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumn();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetFont: { // wxListItem::GetFont
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxListItem_GetId: { // wxListItem::GetId
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetId();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetImage: { // wxListItem::GetImage
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetImage();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetMask: { // wxListItem::GetMask
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetMask();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetState: { // wxListItem::GetState
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetState();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_GetText: { // wxListItem::GetText
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxListItem_GetTextColour: { // wxListItem::GetTextColour
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetTextColour();
+ rt.add(Result);
+ break;
+}
+case wxListItem_GetWidth: { // wxListItem::GetWidth
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxListItem_SetAlign: { // wxListItem::SetAlign
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ wxListColumnFormat align = *(wxListColumnFormat *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetAlign((wxListColumnFormat) align);
+ break;
+}
+case wxListItem_SetBackgroundColour: { // wxListItem::SetBackgroundColour
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ if(!This) throw wxe_badarg(0);
+ This->SetBackgroundColour(colBack);
+ break;
+}
+case wxListItem_SetColumn: { // wxListItem::SetColumn
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * col = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColumn((int) *col);
+ break;
+}
+case wxListItem_SetFont: { // wxListItem::SetFont
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font);
+ break;
+}
+case wxListItem_SetId: { // wxListItem::SetId
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetId((long) *id);
+ break;
+}
+case wxListItem_SetImage: { // wxListItem::SetImage
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * image = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImage((int) *image);
+ break;
+}
+case wxListItem_SetMask: { // wxListItem::SetMask
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * mask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMask((long) *mask);
+ break;
+}
+case wxListItem_SetState: { // wxListItem::SetState
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * state = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetState((long) *state);
+ break;
+}
+case wxListItem_SetStateMask: { // wxListItem::SetStateMask
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * stateMask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStateMask((long) *stateMask);
+ break;
+}
+case wxListItem_SetText: { // wxListItem::SetText
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetText(text);
+ break;
+}
+case wxListItem_SetTextColour: { // wxListItem::SetTextColour
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextColour(colText);
+ break;
+}
+case wxListItem_SetWidth: { // wxListItem::SetWidth
+ wxListItem *This = (wxListItem *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWidth((int) *width);
+ break;
+}
+case wxImageList_new_0: { // wxImageList::wxImageList
+ wxImageList * Result = new EwxImageList();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxImageList_new_3: { // wxImageList::wxImageList
+ bool mask=true;
+ int initialCount=1;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ mask = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ initialCount = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxImageList * Result = new EwxImageList((int) *width,(int) *height,mask,initialCount);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxImageList_Add_1: { // wxImageList::Add
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Add(*bitmap);
+ rt.addInt(Result);
+ break;
+}
+case wxImageList_Add_2_0: { // wxImageList::Add
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *mask = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Add(*bitmap,*mask);
+ rt.addInt(Result);
+ break;
+}
+case wxImageList_Add_2_1: { // wxImageList::Add
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ int * maskColourR = (int *) bp; bp += 4;
+ int * maskColourG = (int *) bp; bp += 4;
+ int * maskColourB = (int *) bp; bp += 4;
+ int * maskColourA = (int *) bp; bp += 4;
+ wxColour maskColour = wxColour(*maskColourR,*maskColourG,*maskColourB,*maskColourA);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->Add(*bitmap,maskColour);
+ rt.addInt(Result);
+ break;
+}
+case wxImageList_Create: { // wxImageList::Create
+ bool mask=true;
+ int initialCount=1;
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ int * height = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ mask = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ initialCount = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create((int) *width,(int) *height,mask,initialCount);
+ rt.addBool(Result);
+ break;
+}
+case wxImageList_Draw: { // wxImageList::Draw
+ int flags=wxIMAGELIST_DRAW_NORMAL;
+ bool solidBackground=false;
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ solidBackground = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Draw((int) *index,*dc,(int) *x,(int) *y,flags,solidBackground);
+ rt.addBool(Result);
+ break;
+}
+case wxImageList_GetBitmap: { // wxImageList::GetBitmap
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->GetBitmap((int) *index)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxImageList_GetIcon: { // wxImageList::GetIcon
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxIcon * Result = new wxIcon(This->GetIcon((int) *index)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxImageList_GetImageCount: { // wxImageList::GetImageCount
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetImageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxImageList_GetSize: { // wxImageList::GetSize
+ int width;
+ int height;
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSize((int) *index,width,height);
+ rt.addBool(Result);
+ rt.addInt(width);
+ rt.addInt(height);
+ rt.addTupleCount(3);
+ break;
+}
+case wxImageList_Remove: { // wxImageList::Remove
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Remove((int) *index);
+ rt.addBool(Result);
+ break;
+}
+case wxImageList_RemoveAll: { // wxImageList::RemoveAll
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemoveAll();
+ rt.addBool(Result);
+ break;
+}
+case wxImageList_Replace_2: { // wxImageList::Replace
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Replace((int) *index,*bitmap);
+ rt.addBool(Result);
+ break;
+}
+case wxImageList_Replace_3: { // wxImageList::Replace
+ wxImageList *This = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ int * index = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *mask = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Replace((int) *index,*bitmap,*mask);
+ rt.addBool(Result);
+ break;
+}
+case wxTextAttr_new_0: { // wxTextAttr::wxTextAttr
+ wxTextAttr * Result = new wxTextAttr();
+ newPtr((void *) Result, 102, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextAttr");
+ break;
+}
+case wxTextAttr_new_2: { // wxTextAttr::wxTextAttr
+ wxColour colBack= wxNullColour;
+ const wxFont * font= &wxNullFont;
+ wxTextAttrAlignment alignment=wxTEXT_ALIGNMENT_DEFAULT;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 3: {bp += 4;
+alignment = *(wxTextAttrAlignment *) bp; bp += 4;;
+ } break;
+ }};
+ wxTextAttr * Result = new wxTextAttr(colText,colBack,*font,(wxTextAttrAlignment) alignment);
+ newPtr((void *) Result, 102, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextAttr");
+ break;
+}
+case wxTextAttr_GetAlignment: { // wxTextAttr::GetAlignment
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetAlignment();
+ rt.addInt(Result);
+ break;
+}
+case wxTextAttr_GetBackgroundColour: { // wxTextAttr::GetBackgroundColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetBackgroundColour();
+ rt.add((*Result));
+ break;
+}
+case wxTextAttr_GetFont: { // wxTextAttr::GetFont
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFont * Result = &This->GetFont();
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxTextAttr_GetLeftIndent: { // wxTextAttr::GetLeftIndent
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetLeftIndent();
+ rt.addInt(Result);
+ break;
+}
+case wxTextAttr_GetLeftSubIndent: { // wxTextAttr::GetLeftSubIndent
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetLeftSubIndent();
+ rt.addInt(Result);
+ break;
+}
+case wxTextAttr_GetRightIndent: { // wxTextAttr::GetRightIndent
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetRightIndent();
+ rt.addInt(Result);
+ break;
+}
+case wxTextAttr_GetTabs: { // wxTextAttr::GetTabs
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxArrayInt Result = This->GetTabs();
+ rt.add(Result);
+ break;
+}
+case wxTextAttr_GetTextColour: { // wxTextAttr::GetTextColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetTextColour();
+ rt.add((*Result));
+ break;
+}
+case wxTextAttr_HasBackgroundColour: { // wxTextAttr::HasBackgroundColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBackgroundColour();
+ rt.addBool(Result);
+ break;
+}
+case wxTextAttr_HasFont: { // wxTextAttr::HasFont
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasFont();
+ rt.addBool(Result);
+ break;
+}
+case wxTextAttr_HasTextColour: { // wxTextAttr::HasTextColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasTextColour();
+ rt.addBool(Result);
+ break;
+}
+case wxTextAttr_GetFlags: { // wxTextAttr::GetFlags
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxTextAttr_IsDefault: { // wxTextAttr::IsDefault
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsDefault();
+ rt.addBool(Result);
+ break;
+}
+case wxTextAttr_SetAlignment: { // wxTextAttr::SetAlignment
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ wxTextAttrAlignment alignment = *(wxTextAttrAlignment *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetAlignment((wxTextAttrAlignment) alignment);
+ break;
+}
+case wxTextAttr_SetBackgroundColour: { // wxTextAttr::SetBackgroundColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * colBackR = (int *) bp; bp += 4;
+ int * colBackG = (int *) bp; bp += 4;
+ int * colBackB = (int *) bp; bp += 4;
+ int * colBackA = (int *) bp; bp += 4;
+ wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA);
+ if(!This) throw wxe_badarg(0);
+ This->SetBackgroundColour(colBack);
+ break;
+}
+case wxTextAttr_SetFlags: { // wxTextAttr::SetFlags
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlags((long) *flags);
+ break;
+}
+case wxTextAttr_SetFont: { // wxTextAttr::SetFont
+ long flags=(0x0004|0x0008|0x0010|0x0020|0x0040);
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetFont(*font,flags);
+ break;
+}
+case wxTextAttr_SetLeftIndent: { // wxTextAttr::SetLeftIndent
+ int subIndent=0;
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * indent = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ subIndent = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetLeftIndent((int) *indent,subIndent);
+ break;
+}
+case wxTextAttr_SetRightIndent: { // wxTextAttr::SetRightIndent
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * indent = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRightIndent((int) *indent);
+ break;
+}
+case wxTextAttr_SetTabs: { // wxTextAttr::SetTabs
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * tabsLen = (int *) bp; bp += 4;
+ wxArrayInt tabs;
+ for(int i=0; i < *tabsLen; i++) { tabs.Add(*(int *) bp); bp += 4;}
+ bp += ((*tabsLen + 2) % 2 )*4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTabs(tabs);
+ break;
+}
+case wxTextAttr_SetTextColour: { // wxTextAttr::SetTextColour
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ int * colTextR = (int *) bp; bp += 4;
+ int * colTextG = (int *) bp; bp += 4;
+ int * colTextB = (int *) bp; bp += 4;
+ int * colTextA = (int *) bp; bp += 4;
+ wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA);
+ if(!This) throw wxe_badarg(0);
+ This->SetTextColour(colText);
+ break;
+}
+case wxTextAttr_destroy: { // wxTextAttr::destroy
+ wxTextAttr *This = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxTextCtrl_new_3: { // wxTextCtrl::wxTextCtrl
+ wxString value= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxTextCtrl * Result = new EwxTextCtrl(parent,(wxWindowID) *id,value,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextCtrl");
+ break;
+}
+case wxTextCtrl_new_0: { // wxTextCtrl::wxTextCtrl
+ wxTextCtrl * Result = new EwxTextCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextCtrl");
+ break;
+}
+case wxTextCtrl_AppendText: { // wxTextCtrl::AppendText
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AppendText(text);
+ break;
+}
+case wxTextCtrl_CanCopy: { // wxTextCtrl::CanCopy
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanCopy();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_CanCut: { // wxTextCtrl::CanCut
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanCut();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_CanPaste: { // wxTextCtrl::CanPaste
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanPaste();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_CanRedo: { // wxTextCtrl::CanRedo
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanRedo();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_CanUndo: { // wxTextCtrl::CanUndo
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanUndo();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_Clear: { // wxTextCtrl::Clear
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxTextCtrl_Copy: { // wxTextCtrl::Copy
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Copy();
+ break;
+}
+case wxTextCtrl_Create: { // wxTextCtrl::Create
+ wxString value= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,value,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_Cut: { // wxTextCtrl::Cut
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Cut();
+ break;
+}
+case wxTextCtrl_DiscardEdits: { // wxTextCtrl::DiscardEdits
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DiscardEdits();
+ break;
+}
+case wxTextCtrl_EmulateKeyPress: { // wxTextCtrl::EmulateKeyPress
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxKeyEvent *event = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->EmulateKeyPress(*event);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_GetDefaultStyle: { // wxTextCtrl::GetDefaultStyle
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxTextAttr * Result = &This->GetDefaultStyle();
+ rt.addRef(getRef((void *)Result,memenv), "wxTextAttr");
+ break;
+}
+case wxTextCtrl_GetInsertionPoint: { // wxTextCtrl::GetInsertionPoint
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetInsertionPoint();
+ rt.addInt(Result);
+ break;
+}
+case wxTextCtrl_GetLastPosition: { // wxTextCtrl::GetLastPosition
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTextPos Result = This->GetLastPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxTextCtrl_GetLineLength: { // wxTextCtrl::GetLineLength
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineNo = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineLength((long) *lineNo);
+ rt.addInt(Result);
+ break;
+}
+case wxTextCtrl_GetLineText: { // wxTextCtrl::GetLineText
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineNo = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLineText((long) *lineNo);
+ rt.add(Result);
+ break;
+}
+case wxTextCtrl_GetNumberOfLines: { // wxTextCtrl::GetNumberOfLines
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNumberOfLines();
+ rt.addInt(Result);
+ break;
+}
+case wxTextCtrl_GetRange: { // wxTextCtrl::GetRange
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetRange((long) *from,(long) *to);
+ rt.add(Result);
+ break;
+}
+case wxTextCtrl_GetSelection: { // wxTextCtrl::GetSelection
+ long from;
+ long to;
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetSelection(&from,&to);
+ rt.addInt(from);
+ rt.addInt(to);
+ rt.addTupleCount(2);
+ break;
+}
+case wxTextCtrl_GetStringSelection: { // wxTextCtrl::GetStringSelection
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetStringSelection();
+ rt.add(Result);
+ break;
+}
+case wxTextCtrl_GetStyle: { // wxTextCtrl::GetStyle
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * position = (int *) bp; bp += 4;
+ wxTextAttr *style = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetStyle((long) *position,*style);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_GetValue: { // wxTextCtrl::GetValue
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetValue();
+ rt.add(Result);
+ break;
+}
+case wxTextCtrl_IsEditable: { // wxTextCtrl::IsEditable
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEditable();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_IsModified: { // wxTextCtrl::IsModified
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsModified();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_IsMultiLine: { // wxTextCtrl::IsMultiLine
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsMultiLine();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_IsSingleLine: { // wxTextCtrl::IsSingleLine
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSingleLine();
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_LoadFile: { // wxTextCtrl::LoadFile
+ int fileType=0;
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * fileLen = (int *) bp; bp += 4;
+ wxString file = wxString(bp, wxConvUTF8);
+ bp += *fileLen+((8-((0+ *fileLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ fileType = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(file,fileType);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_MarkDirty: { // wxTextCtrl::MarkDirty
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkDirty();
+ break;
+}
+case wxTextCtrl_Paste: { // wxTextCtrl::Paste
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Paste();
+ break;
+}
+case wxTextCtrl_PositionToXY: { // wxTextCtrl::PositionToXY
+ long x;
+ long y;
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PositionToXY((long) *pos,&x,&y);
+ rt.addBool(Result);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(3);
+ break;
+}
+case wxTextCtrl_Redo: { // wxTextCtrl::Redo
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Redo();
+ break;
+}
+case wxTextCtrl_Remove: { // wxTextCtrl::Remove
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Remove((long) *from,(long) *to);
+ break;
+}
+case wxTextCtrl_Replace: { // wxTextCtrl::Replace
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->Replace((long) *from,(long) *to,value);
+ break;
+}
+case wxTextCtrl_SaveFile: { // wxTextCtrl::SaveFile
+ wxString file= wxEmptyString;
+ int fileType=0;
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * fileLen = (int *) bp; bp += 4;
+ file = wxString(bp, wxConvUTF8);
+ bp += *fileLen+((8-((0+ *fileLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ fileType = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(file,fileType);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_SetDefaultStyle: { // wxTextCtrl::SetDefaultStyle
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTextAttr *style = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetDefaultStyle(*style);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_SetEditable: { // wxTextCtrl::SetEditable
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * editable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetEditable((bool) *editable);
+ break;
+}
+case wxTextCtrl_SetInsertionPoint: { // wxTextCtrl::SetInsertionPoint
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInsertionPoint((long) *pos);
+ break;
+}
+case wxTextCtrl_SetInsertionPointEnd: { // wxTextCtrl::SetInsertionPointEnd
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInsertionPointEnd();
+ break;
+}
+case wxTextCtrl_SetMaxLength: { // wxTextCtrl::SetMaxLength
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ unsigned int * len = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaxLength((long) *len);
+ break;
+}
+case wxTextCtrl_SetSelection: { // wxTextCtrl::SetSelection
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((long) *from,(long) *to);
+ break;
+}
+case wxTextCtrl_SetStyle: { // wxTextCtrl::SetStyle
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * end = (int *) bp; bp += 4;
+ wxTextAttr *style = (wxTextAttr *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetStyle((long) *start,(long) *end,*style);
+ rt.addBool(Result);
+ break;
+}
+case wxTextCtrl_SetValue: { // wxTextCtrl::SetValue
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetValue(value);
+ break;
+}
+case wxTextCtrl_ShowPosition: { // wxTextCtrl::ShowPosition
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ShowPosition((long) *pos);
+ break;
+}
+case wxTextCtrl_Undo: { // wxTextCtrl::Undo
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Undo();
+ break;
+}
+case wxTextCtrl_WriteText: { // wxTextCtrl::WriteText
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->WriteText(text);
+ break;
+}
+case wxTextCtrl_XYToPosition: { // wxTextCtrl::XYToPosition
+ wxTextCtrl *This = (wxTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->XYToPosition((long) *x,(long) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_new_0: { // wxNotebook::wxNotebook
+ wxNotebook * Result = new EwxNotebook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxNotebook");
+ break;
+}
+case wxNotebook_new_3: { // wxNotebook::wxNotebook
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * winid = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxNotebook * Result = new EwxNotebook(parent,(wxWindowID) *winid,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxNotebook");
+ break;
+}
+case wxNotebook_AddPage: { // wxNotebook::AddPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_AdvanceSelection: { // wxNotebook::AdvanceSelection
+ bool forward=true;
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ forward = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AdvanceSelection(forward);
+ break;
+}
+case wxNotebook_AssignImageList: { // wxNotebook::AssignImageList
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxNotebook_Create: { // wxNotebook::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_DeleteAllPages: { // wxNotebook::DeleteAllPages
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_DeletePage: { // wxNotebook::DeletePage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *nPage);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_RemovePage: { // wxNotebook::RemovePage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *nPage);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_GetCurrentPage: { // wxNotebook::GetCurrentPage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentPage();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxNotebook_GetImageList: { // wxNotebook::GetImageList
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxNotebook_GetPage: { // wxNotebook::GetPage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *n);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxNotebook_GetPageCount: { // wxNotebook::GetPageCount
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_GetPageImage: { // wxNotebook::GetPageImage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageImage((size_t) *nPage);
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_GetPageText: { // wxNotebook::GetPageText
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *nPage);
+ rt.add(Result);
+ break;
+}
+case wxNotebook_GetRowCount: { // wxNotebook::GetRowCount
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRowCount();
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_GetSelection: { // wxNotebook::GetSelection
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_GetThemeBackgroundColour: { // wxNotebook::GetThemeBackgroundColour
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetThemeBackgroundColour();
+ rt.add(Result);
+ break;
+}
+case wxNotebook_HitTest: { // wxNotebook::HitTest
+ long flags;
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pt,&flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxNotebook_InsertPage: { // wxNotebook::InsertPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * position = (int *) bp; bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((0+ *strTextLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *position,win,strText,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_SetImageList: { // wxNotebook::SetImageList
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxNotebook_SetPadding: { // wxNotebook::SetPadding
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * paddingW = (int *) bp; bp += 4;
+ int * paddingH = (int *) bp; bp += 4;
+ wxSize padding = wxSize(*paddingW,*paddingH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPadding(padding);
+ break;
+}
+case wxNotebook_SetPageSize: { // wxNotebook::SetPageSize
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize(size);
+ break;
+}
+case wxNotebook_SetPageImage: { // wxNotebook::SetPageImage
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ int * nImage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageImage((size_t) *nPage,(int) *nImage);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_SetPageText: { // wxNotebook::SetPageText
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((4+ *strTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *nPage,strText);
+ rt.addBool(Result);
+ break;
+}
+case wxNotebook_SetSelection: { // wxNotebook::SetSelection
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SetSelection((size_t) *nPage);
+ rt.addInt(Result);
+ break;
+}
+case wxNotebook_ChangeSelection: { // wxNotebook::ChangeSelection
+ wxNotebook *This = (wxNotebook *) getPtr(bp,memenv); bp += 4;
+ int * nPage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ChangeSelection((size_t) *nPage);
+ rt.addInt(Result);
+ break;
+}
+case wxChoicebook_new_0: { // wxChoicebook::wxChoicebook
+ wxChoicebook * Result = new EwxChoicebook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxChoicebook");
+ break;
+}
+case wxChoicebook_new_3: { // wxChoicebook::wxChoicebook
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxChoicebook * Result = new EwxChoicebook(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxChoicebook");
+ break;
+}
+case wxChoicebook_AddPage: { // wxChoicebook::AddPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_AdvanceSelection: { // wxChoicebook::AdvanceSelection
+ bool forward=true;
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ forward = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AdvanceSelection(forward);
+ break;
+}
+case wxChoicebook_AssignImageList: { // wxChoicebook::AssignImageList
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxChoicebook_Create: { // wxChoicebook::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_DeleteAllPages: { // wxChoicebook::DeleteAllPages
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_DeletePage: { // wxChoicebook::DeletePage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_RemovePage: { // wxChoicebook::RemovePage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_GetCurrentPage: { // wxChoicebook::GetCurrentPage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentPage();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxChoicebook_GetImageList: { // wxChoicebook::GetImageList
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxChoicebook_GetPage: { // wxChoicebook::GetPage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *n);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxChoicebook_GetPageCount: { // wxChoicebook::GetPageCount
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxChoicebook_GetPageImage: { // wxChoicebook::GetPageImage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageImage((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxChoicebook_GetPageText: { // wxChoicebook::GetPageText
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *n);
+ rt.add(Result);
+ break;
+}
+case wxChoicebook_GetSelection: { // wxChoicebook::GetSelection
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxChoicebook_HitTest: { // wxChoicebook::HitTest
+ long flags;
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pt,&flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxChoicebook_InsertPage: { // wxChoicebook::InsertPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *n,page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_SetImageList: { // wxChoicebook::SetImageList
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxChoicebook_SetPageSize: { // wxChoicebook::SetPageSize
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize(size);
+ break;
+}
+case wxChoicebook_SetPageImage: { // wxChoicebook::SetPageImage
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * imageId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageImage((size_t) *n,(int) *imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_SetPageText: { // wxChoicebook::SetPageText
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((4+ *strTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *n,strText);
+ rt.addBool(Result);
+ break;
+}
+case wxChoicebook_SetSelection: { // wxChoicebook::SetSelection
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SetSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxChoicebook_ChangeSelection: { // wxChoicebook::ChangeSelection
+ wxChoicebook *This = (wxChoicebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ChangeSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxToolbook_new_0: { // wxToolbook::wxToolbook
+ wxToolbook * Result = new EwxToolbook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolbook");
+ break;
+}
+case wxToolbook_new_3: { // wxToolbook::wxToolbook
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxToolbook * Result = new EwxToolbook(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolbook");
+ break;
+}
+case wxToolbook_AddPage: { // wxToolbook::AddPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_AdvanceSelection: { // wxToolbook::AdvanceSelection
+ bool forward=true;
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ forward = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AdvanceSelection(forward);
+ break;
+}
+case wxToolbook_AssignImageList: { // wxToolbook::AssignImageList
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxToolbook_Create: { // wxToolbook::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_DeleteAllPages: { // wxToolbook::DeleteAllPages
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_DeletePage: { // wxToolbook::DeletePage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_RemovePage: { // wxToolbook::RemovePage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_GetCurrentPage: { // wxToolbook::GetCurrentPage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentPage();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxToolbook_GetImageList: { // wxToolbook::GetImageList
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxToolbook_GetPage: { // wxToolbook::GetPage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *n);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxToolbook_GetPageCount: { // wxToolbook::GetPageCount
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxToolbook_GetPageImage: { // wxToolbook::GetPageImage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageImage((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxToolbook_GetPageText: { // wxToolbook::GetPageText
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *n);
+ rt.add(Result);
+ break;
+}
+case wxToolbook_GetSelection: { // wxToolbook::GetSelection
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxToolbook_HitTest: { // wxToolbook::HitTest
+ long flags;
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pt,&flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxToolbook_InsertPage: { // wxToolbook::InsertPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *n,page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_SetImageList: { // wxToolbook::SetImageList
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxToolbook_SetPageSize: { // wxToolbook::SetPageSize
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize(size);
+ break;
+}
+case wxToolbook_SetPageImage: { // wxToolbook::SetPageImage
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * imageId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageImage((size_t) *n,(int) *imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_SetPageText: { // wxToolbook::SetPageText
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((4+ *strTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *n,strText);
+ rt.addBool(Result);
+ break;
+}
+case wxToolbook_SetSelection: { // wxToolbook::SetSelection
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SetSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxToolbook_ChangeSelection: { // wxToolbook::ChangeSelection
+ wxToolbook *This = (wxToolbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ChangeSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxListbook_new_0: { // wxListbook::wxListbook
+ wxListbook * Result = new EwxListbook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListbook");
+ break;
+}
+case wxListbook_new_3: { // wxListbook::wxListbook
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxListbook * Result = new EwxListbook(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxListbook");
+ break;
+}
+case wxListbook_AddPage: { // wxListbook::AddPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_AdvanceSelection: { // wxListbook::AdvanceSelection
+ bool forward=true;
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ forward = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AdvanceSelection(forward);
+ break;
+}
+case wxListbook_AssignImageList: { // wxListbook::AssignImageList
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxListbook_Create: { // wxListbook::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_DeleteAllPages: { // wxListbook::DeleteAllPages
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_DeletePage: { // wxListbook::DeletePage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_RemovePage: { // wxListbook::RemovePage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_GetCurrentPage: { // wxListbook::GetCurrentPage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentPage();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxListbook_GetImageList: { // wxListbook::GetImageList
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxListbook_GetPage: { // wxListbook::GetPage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *n);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxListbook_GetPageCount: { // wxListbook::GetPageCount
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxListbook_GetPageImage: { // wxListbook::GetPageImage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageImage((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxListbook_GetPageText: { // wxListbook::GetPageText
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *n);
+ rt.add(Result);
+ break;
+}
+case wxListbook_GetSelection: { // wxListbook::GetSelection
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxListbook_HitTest: { // wxListbook::HitTest
+ long flags;
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pt,&flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxListbook_InsertPage: { // wxListbook::InsertPage
+ bool bSelect=false;
+ int imageId=-1;
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *n,page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_SetImageList: { // wxListbook::SetImageList
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxListbook_SetPageSize: { // wxListbook::SetPageSize
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize(size);
+ break;
+}
+case wxListbook_SetPageImage: { // wxListbook::SetPageImage
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * imageId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageImage((size_t) *n,(int) *imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_SetPageText: { // wxListbook::SetPageText
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((4+ *strTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *n,strText);
+ rt.addBool(Result);
+ break;
+}
+case wxListbook_SetSelection: { // wxListbook::SetSelection
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SetSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxListbook_ChangeSelection: { // wxListbook::ChangeSelection
+ wxListbook *This = (wxListbook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ChangeSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxTreebook_new_0: { // wxTreebook::wxTreebook
+ wxTreebook * Result = new EwxTreebook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTreebook");
+ break;
+}
+case wxTreebook_new_3: { // wxTreebook::wxTreebook
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxBK_DEFAULT;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxTreebook * Result = new EwxTreebook(parent,(wxWindowID) *id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTreebook");
+ break;
+}
+case wxTreebook_AddPage: { // wxTreebook::AddPage
+ bool bSelect=false;
+ int imageId=wxNOT_FOUND;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_AdvanceSelection: { // wxTreebook::AdvanceSelection
+ bool forward=true;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ forward = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->AdvanceSelection(forward);
+ break;
+}
+case wxTreebook_AssignImageList: { // wxTreebook::AssignImageList
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxTreebook_Create: { // wxTreebook::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxBK_DEFAULT;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_DeleteAllPages: { // wxTreebook::DeleteAllPages
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeleteAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_DeletePage: { // wxTreebook::DeletePage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *pos);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_RemovePage: { // wxTreebook::RemovePage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_GetCurrentPage: { // wxTreebook::GetCurrentPage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentPage();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxTreebook_GetImageList: { // wxTreebook::GetImageList
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxTreebook_GetPage: { // wxTreebook::GetPage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *n);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxTreebook_GetPageCount: { // wxTreebook::GetPageCount
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxTreebook_GetPageImage: { // wxTreebook::GetPageImage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageImage((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxTreebook_GetPageText: { // wxTreebook::GetPageText
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *n);
+ rt.add(Result);
+ break;
+}
+case wxTreebook_GetSelection: { // wxTreebook::GetSelection
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxTreebook_ExpandNode: { // wxTreebook::ExpandNode
+ bool expand=true;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ expand = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ExpandNode((size_t) *pos,expand);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_IsNodeExpanded: { // wxTreebook::IsNodeExpanded
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsNodeExpanded((size_t) *pos);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_HitTest: { // wxTreebook::HitTest
+ long flags;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->HitTest(pt,&flags);
+ rt.addInt(Result);
+ rt.addInt(flags);
+ rt.addTupleCount(2);
+ break;
+}
+case wxTreebook_InsertPage: { // wxTreebook::InsertPage
+ bool bSelect=false;
+ int imageId=wxNOT_FOUND;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *pos,page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_InsertSubPage: { // wxTreebook::InsertSubPage
+ bool bSelect=false;
+ int imageId=wxNOT_FOUND;
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bSelect = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ imageId = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertSubPage((size_t) *pos,page,text,bSelect,imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_SetImageList: { // wxTreebook::SetImageList
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxTreebook_SetPageSize: { // wxTreebook::SetPageSize
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize(size);
+ break;
+}
+case wxTreebook_SetPageImage: { // wxTreebook::SetPageImage
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * imageId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageImage((size_t) *n,(int) *imageId);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_SetPageText: { // wxTreebook::SetPageText
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ int * strTextLen = (int *) bp; bp += 4;
+ wxString strText = wxString(bp, wxConvUTF8);
+ bp += *strTextLen+((8-((4+ *strTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *n,strText);
+ rt.addBool(Result);
+ break;
+}
+case wxTreebook_SetSelection: { // wxTreebook::SetSelection
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SetSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxTreebook_ChangeSelection: { // wxTreebook::ChangeSelection
+ wxTreebook *This = (wxTreebook *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ChangeSelection((size_t) *n);
+ rt.addInt(Result);
+ break;
+}
+case wxTreeCtrl_new_2: { // wxTreeCtrl::wxTreeCtrl
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxTreeCtrl * Result = new EwxTreeCtrl(parent,id,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTreeCtrl");
+ break;
+}
+case wxTreeCtrl_new_0: { // wxTreeCtrl::wxTreeCtrl
+ wxTreeCtrl * Result = new EwxTreeCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTreeCtrl");
+ break;
+}
+case wxTreeCtrl_AddRoot: { // wxTreeCtrl::AddRoot
+ int image=-1;
+ int selectedImage=-1;
+ wxETreeItemData * data= NULL;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ image = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ selectedImage = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->AddRoot(text,image,selectedImage,data);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_AppendItem: { // wxTreeCtrl::AppendItem
+ int image=-1;
+ int selectedImage=-1;
+ wxETreeItemData * data= NULL;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId parent = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ image = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ selectedImage = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->AppendItem(parent,text,image,selectedImage,data);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_AssignImageList: { // wxTreeCtrl::AssignImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignImageList(imageList);
+ break;
+}
+case wxTreeCtrl_AssignStateImageList: { // wxTreeCtrl::AssignStateImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AssignStateImageList(imageList);
+ break;
+}
+case wxTreeCtrl_Collapse: { // wxTreeCtrl::Collapse
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Collapse(item);
+ break;
+}
+case wxTreeCtrl_CollapseAndReset: { // wxTreeCtrl::CollapseAndReset
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CollapseAndReset(item);
+ break;
+}
+case wxTreeCtrl_Create: { // wxTreeCtrl::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_Delete: { // wxTreeCtrl::Delete
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Delete(item);
+ break;
+}
+case wxTreeCtrl_DeleteAllItems: { // wxTreeCtrl::DeleteAllItems
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DeleteAllItems();
+ break;
+}
+case wxTreeCtrl_DeleteChildren: { // wxTreeCtrl::DeleteChildren
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DeleteChildren(item);
+ break;
+}
+case wxTreeCtrl_EnsureVisible: { // wxTreeCtrl::EnsureVisible
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnsureVisible(item);
+ break;
+}
+case wxTreeCtrl_Expand: { // wxTreeCtrl::Expand
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Expand(item);
+ break;
+}
+case wxTreeCtrl_GetBoundingRect: { // wxTreeCtrl::GetBoundingRect
+ bool textOnly=false;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ textOnly = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetBoundingRect(item,rect,textOnly);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_GetChildrenCount: { // wxTreeCtrl::GetChildrenCount
+ bool recursively=true;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ recursively = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetChildrenCount(item,recursively);
+ rt.addInt(Result);
+ break;
+}
+case wxTreeCtrl_GetCount: { // wxTreeCtrl::GetCount
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCount();
+ rt.addUint(Result);
+ break;
+}
+case wxTreeCtrl_GetEditControl: { // wxTreeCtrl::GetEditControl
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTextCtrl * Result = (wxTextCtrl*)This->GetEditControl();
+ rt.addRef(getRef((void *)Result,memenv), "wxTextCtrl");
+ break;
+}
+case wxTreeCtrl_GetFirstVisibleItem: { // wxTreeCtrl::GetFirstVisibleItem
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetFirstVisibleItem();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetImageList: { // wxTreeCtrl::GetImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxTreeCtrl_GetIndent: { // wxTreeCtrl::GetIndent
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetIndent();
+ rt.addUint(Result);
+ break;
+}
+case wxTreeCtrl_GetItemBackgroundColour: { // wxTreeCtrl::GetItemBackgroundColour
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetItemBackgroundColour(item);
+ rt.add(Result);
+ break;
+}
+case wxTreeCtrl_GetItemData: { // wxTreeCtrl::GetItemData
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxETreeItemData * Result = (wxETreeItemData*)This->GetItemData(item);
+ rt.addExt2Term(Result);
+ break;
+}
+case wxTreeCtrl_GetItemFont: { // wxTreeCtrl::GetItemFont
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetItemFont(item)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxTreeCtrl_GetItemImage_1: { // wxTreeCtrl::GetItemImage
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetItemImage(item);
+ rt.addInt(Result);
+ break;
+}
+case wxTreeCtrl_GetItemImage_2: { // wxTreeCtrl::GetItemImage
+ wxTreeItemIcon which=wxTreeItemIcon_Normal;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+which = *(wxTreeItemIcon *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetItemImage(item,(wxTreeItemIcon) which);
+ rt.addInt(Result);
+ break;
+}
+case wxTreeCtrl_GetItemText: { // wxTreeCtrl::GetItemText
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetItemText(item);
+ rt.add(Result);
+ break;
+}
+case wxTreeCtrl_GetItemTextColour: { // wxTreeCtrl::GetItemTextColour
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetItemTextColour(item);
+ rt.add(Result);
+ break;
+}
+case wxTreeCtrl_GetLastChild: { // wxTreeCtrl::GetLastChild
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetLastChild(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetNextSibling: { // wxTreeCtrl::GetNextSibling
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetNextSibling(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetNextVisible: { // wxTreeCtrl::GetNextVisible
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetNextVisible(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetItemParent: { // wxTreeCtrl::GetItemParent
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetItemParent(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetPrevSibling: { // wxTreeCtrl::GetPrevSibling
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetPrevSibling(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetPrevVisible: { // wxTreeCtrl::GetPrevVisible
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetPrevVisible(item);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetRootItem: { // wxTreeCtrl::GetRootItem
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetRootItem();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetSelection: { // wxTreeCtrl::GetSelection
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetSelection();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_GetSelections: { // wxTreeCtrl::GetSelections
+ wxArrayTreeItemIds val;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetSelections(val);
+ rt.addInt(Result);
+ for(unsigned int i=0; i < val.GetCount(); i++) {
+ rt.addRef(getRef((void *)val[i].m_pItem,memenv), "wxTreeItemId");}
+ rt.endList(val.GetCount());
+ rt.addTupleCount(2);
+ break;
+}
+case wxTreeCtrl_GetStateImageList: { // wxTreeCtrl::GetStateImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxImageList * Result = (wxImageList*)This->GetStateImageList();
+ rt.addRef(getRef((void *)Result,memenv), "wxImageList");
+ break;
+}
+case wxTreeCtrl_HitTest: { // wxTreeCtrl::HitTest
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pointX = (int *) bp; bp += 4;
+ int * pointY = (int *) bp; bp += 4;
+ wxPoint point = wxPoint(*pointX,*pointY);
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->HitTest(point);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_InsertItem_4_1: { // wxTreeCtrl::InsertItem
+ int image=-1;
+ int selectedImage=-1;
+ wxETreeItemData * data= NULL;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId parent = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ wxTreeItemId idPrevious = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ image = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ selectedImage = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->InsertItem(parent,idPrevious,text,image,selectedImage,data);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_InsertItem_4_0: { // wxTreeCtrl::InsertItem
+ int image=-1;
+ int selImage=-1;
+ wxETreeItemData * data= NULL;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId parent = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ image = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ selImage = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->InsertItem(parent,(size_t) *pos,text,image,selImage,data);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_IsBold: { // wxTreeCtrl::IsBold
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsBold(item);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_IsExpanded: { // wxTreeCtrl::IsExpanded
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsExpanded(item);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_IsSelected: { // wxTreeCtrl::IsSelected
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSelected(item);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_IsVisible: { // wxTreeCtrl::IsVisible
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsVisible(item);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_ItemHasChildren: { // wxTreeCtrl::ItemHasChildren
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ItemHasChildren(item);
+ rt.addBool(Result);
+ break;
+}
+case wxTreeCtrl_PrependItem: { // wxTreeCtrl::PrependItem
+ int image=-1;
+ int selectedImage=-1;
+ wxETreeItemData * data= NULL;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId parent = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ image = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ selectedImage = (int)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->PrependItem(parent,text,image,selectedImage,data);
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeCtrl_ScrollTo: { // wxTreeCtrl::ScrollTo
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ScrollTo(item);
+ break;
+}
+case wxTreeCtrl_SelectItem_1: { // wxTreeCtrl::SelectItem
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectItem(item);
+ break;
+}
+case wxTreeCtrl_SelectItem_2: { // wxTreeCtrl::SelectItem
+ bool select=true;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ select = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SelectItem(item,select);
+ break;
+}
+case wxTreeCtrl_SetIndent: { // wxTreeCtrl::SetIndent
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ unsigned int * indent = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetIndent((int) *indent);
+ break;
+}
+case wxTreeCtrl_SetImageList: { // wxTreeCtrl::SetImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetImageList(imageList);
+ break;
+}
+case wxTreeCtrl_SetItemBackgroundColour: { // wxTreeCtrl::SetItemBackgroundColour
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemBackgroundColour(item,col);
+ break;
+}
+case wxTreeCtrl_SetItemBold: { // wxTreeCtrl::SetItemBold
+ bool bold=true;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ bold = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetItemBold(item,bold);
+ break;
+}
+case wxTreeCtrl_SetItemData: { // wxTreeCtrl::SetItemData
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ wxETreeItemData * data = new wxETreeItemData(Ecmd.bin[0]->size, Ecmd.bin[0]->base);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemData(item,data);
+ break;
+}
+case wxTreeCtrl_SetItemDropHighlight: { // wxTreeCtrl::SetItemDropHighlight
+ bool highlight=true;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ highlight = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetItemDropHighlight(item,highlight);
+ break;
+}
+case wxTreeCtrl_SetItemFont: { // wxTreeCtrl::SetItemFont
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetItemFont(item,*font);
+ break;
+}
+case wxTreeCtrl_SetItemHasChildren: { // wxTreeCtrl::SetItemHasChildren
+ bool has=true;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ has = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetItemHasChildren(item,has);
+ break;
+}
+case wxTreeCtrl_SetItemImage_2: { // wxTreeCtrl::SetItemImage
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * image = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetItemImage(item,(int) *image);
+ break;
+}
+case wxTreeCtrl_SetItemImage_3: { // wxTreeCtrl::SetItemImage
+ wxTreeItemIcon which=wxTreeItemIcon_Normal;
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * image = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+which = *(wxTreeItemIcon *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetItemImage(item,(int) *image,(wxTreeItemIcon) which);
+ break;
+}
+case wxTreeCtrl_SetItemText: { // wxTreeCtrl::SetItemText
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemText(item,text);
+ break;
+}
+case wxTreeCtrl_SetItemTextColour: { // wxTreeCtrl::SetItemTextColour
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemTextColour(item,col);
+ break;
+}
+case wxTreeCtrl_SetStateImageList: { // wxTreeCtrl::SetStateImageList
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxImageList *imageList = (wxImageList *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStateImageList(imageList);
+ break;
+}
+case wxTreeCtrl_SetWindowStyle: { // wxTreeCtrl::SetWindowStyle
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ const int * styles = (const int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowStyle((long) *styles);
+ break;
+}
+case wxTreeCtrl_SortChildren: { // wxTreeCtrl::SortChildren
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SortChildren(item);
+ break;
+}
+case wxTreeCtrl_Toggle: { // wxTreeCtrl::Toggle
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Toggle(item);
+ break;
+}
+case wxTreeCtrl_ToggleItemSelection: { // wxTreeCtrl::ToggleItemSelection
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ToggleItemSelection(item);
+ break;
+}
+case wxTreeCtrl_Unselect: { // wxTreeCtrl::Unselect
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Unselect();
+ break;
+}
+case wxTreeCtrl_UnselectAll: { // wxTreeCtrl::UnselectAll
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UnselectAll();
+ break;
+}
+case wxTreeCtrl_UnselectItem: { // wxTreeCtrl::UnselectItem
+ wxTreeCtrl *This = (wxTreeCtrl *) getPtr(bp,memenv); bp += 4;
+ wxTreeItemId item = wxTreeItemId(getPtr(bp,memenv)); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UnselectItem(item);
+ break;
+}
+case wxScrollBar_new_0: { // wxScrollBar::wxScrollBar
+ wxScrollBar * Result = new EwxScrollBar();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxScrollBar");
+ break;
+}
+case wxScrollBar_new_3: { // wxScrollBar::wxScrollBar
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSB_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxScrollBar * Result = new EwxScrollBar(parent,(wxWindowID) *id,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxScrollBar");
+ break;
+}
+case wxScrollBar_Create: { // wxScrollBar::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSB_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxScrollBar_GetRange: { // wxScrollBar::GetRange
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRange();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollBar_GetPageSize: { // wxScrollBar::GetPageSize
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageSize();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollBar_GetThumbPosition: { // wxScrollBar::GetThumbPosition
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetThumbPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollBar_GetThumbSize: { // wxScrollBar::GetThumbSize
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetThumbSize();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollBar_SetThumbPosition: { // wxScrollBar::SetThumbPosition
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ int * viewStart = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetThumbPosition((int) *viewStart);
+ break;
+}
+case wxScrollBar_SetScrollbar: { // wxScrollBar::SetScrollbar
+ bool refresh=true;
+ wxScrollBar *This = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ int * position = (int *) bp; bp += 4;
+ int * thumbSize = (int *) bp; bp += 4;
+ int * range = (int *) bp; bp += 4;
+ int * pageSize = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ refresh = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollbar((int) *position,(int) *thumbSize,(int) *range,(int) *pageSize,refresh);
+ break;
+}
+case wxSpinButton_new_2: { // wxSpinButton::wxSpinButton
+ wxWindowID id=-1;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_VERTICAL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSpinButton * Result = new EwxSpinButton(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSpinButton");
+ break;
+}
+case wxSpinButton_new_0: { // wxSpinButton::wxSpinButton
+ wxSpinButton * Result = new EwxSpinButton();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSpinButton");
+ break;
+}
+case wxSpinButton_Create: { // wxSpinButton::Create
+ wxWindowID id=-1;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_VERTICAL;
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxSpinButton_GetMax: { // wxSpinButton::GetMax
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMax();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinButton_GetMin: { // wxSpinButton::GetMin
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMin();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinButton_GetValue: { // wxSpinButton::GetValue
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetValue();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinButton_SetRange: { // wxSpinButton::SetRange
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ int * minVal = (int *) bp; bp += 4;
+ int * maxVal = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRange((int) *minVal,(int) *maxVal);
+ break;
+}
+case wxSpinButton_SetValue: { // wxSpinButton::SetValue
+ wxSpinButton *This = (wxSpinButton *) getPtr(bp,memenv); bp += 4;
+ int * value = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((int) *value);
+ break;
+}
+case wxSpinCtrl_new_0: { // wxSpinCtrl::wxSpinCtrl
+ wxSpinCtrl * Result = new EwxSpinCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSpinCtrl");
+ break;
+}
+case wxSpinCtrl_new_2: { // wxSpinCtrl::wxSpinCtrl
+ wxWindowID id=wxID_ANY;
+ wxString value= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_ARROW_KEYS;
+ int min=0;
+ int max=100;
+ int initial=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+ min = (int)*(int *) bp; bp += 4;
+ } break;
+ case 7: {bp += 4;
+ max = (int)*(int *) bp; bp += 4;
+ } break;
+ case 8: {bp += 4;
+ initial = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSpinCtrl * Result = new EwxSpinCtrl(parent,id,value,pos,size,style,min,max,initial);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSpinCtrl");
+ break;
+}
+case wxSpinCtrl_Create: { // wxSpinCtrl::Create
+ wxWindowID id=wxID_ANY;
+ wxString value= wxEmptyString;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_ARROW_KEYS;
+ int min=0;
+ int max=100;
+ int initial=0;
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+ min = (int)*(int *) bp; bp += 4;
+ } break;
+ case 7: {bp += 4;
+ max = (int)*(int *) bp; bp += 4;
+ } break;
+ case 8: {bp += 4;
+ initial = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,value,pos,size,style,min,max,initial);
+ rt.addBool(Result);
+ break;
+}
+case wxSpinCtrl_SetValue_1_1: { // wxSpinCtrl::SetValue
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetValue(text);
+ break;
+}
+case wxSpinCtrl_SetValue_1_0: { // wxSpinCtrl::SetValue
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ int * value = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((int) *value);
+ break;
+}
+case wxSpinCtrl_GetValue: { // wxSpinCtrl::GetValue
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetValue();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinCtrl_SetRange: { // wxSpinCtrl::SetRange
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ int * minVal = (int *) bp; bp += 4;
+ int * maxVal = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRange((int) *minVal,(int) *maxVal);
+ break;
+}
+case wxSpinCtrl_SetSelection: { // wxSpinCtrl::SetSelection
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ int * from = (int *) bp; bp += 4;
+ int * to = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((long) *from,(long) *to);
+ break;
+}
+case wxSpinCtrl_GetMin: { // wxSpinCtrl::GetMin
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMin();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinCtrl_GetMax: { // wxSpinCtrl::GetMax
+ wxSpinCtrl *This = (wxSpinCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMax();
+ rt.addInt(Result);
+ break;
+}
+case wxStaticText_new_0: { // wxStaticText::wxStaticText
+ wxStaticText * Result = new EwxStaticText();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticText");
+ break;
+}
+case wxStaticText_new_4: { // wxStaticText::wxStaticText
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStaticText * Result = new EwxStaticText(parent,(wxWindowID) *id,label,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticText");
+ break;
+}
+case wxStaticText_Create: { // wxStaticText::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxStaticText *This = (wxStaticText *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStaticText_GetLabel: { // wxStaticText::GetLabel
+ wxStaticText *This = (wxStaticText *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxStaticText_SetLabel: { // wxStaticText::SetLabel
+ wxStaticText *This = (wxStaticText *) getPtr(bp,memenv); bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLabel(label);
+ break;
+}
+case wxStaticText_Wrap: { // wxStaticText::Wrap
+ wxStaticText *This = (wxStaticText *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Wrap((int) *width);
+ break;
+}
+case wxStaticBitmap_new_0: { // wxStaticBitmap::wxStaticBitmap
+ wxStaticBitmap * Result = new EwxStaticBitmap();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBitmap");
+ break;
+}
+case wxStaticBitmap_new_4: { // wxStaticBitmap::wxStaticBitmap
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ wxBitmap *label = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStaticBitmap * Result = new EwxStaticBitmap(parent,(wxWindowID) *id,*label,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxStaticBitmap");
+ break;
+}
+case wxStaticBitmap_Create: { // wxStaticBitmap::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxStaticBitmap *This = (wxStaticBitmap *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ wxBitmap *label = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,*label,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStaticBitmap_GetBitmap: { // wxStaticBitmap::GetBitmap
+ wxStaticBitmap *This = (wxStaticBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->GetBitmap()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxStaticBitmap_SetBitmap: { // wxStaticBitmap::SetBitmap
+ wxStaticBitmap *This = (wxStaticBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmap(*bitmap);
+ break;
+}
+case wxRadioBox_new: { // wxRadioBox::wxRadioBox
+ int majorDim=1;
+ long style=wxRA_HORIZONTAL;
+ const wxValidator * val= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ majorDim = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+val = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxRadioBox * Result = new EwxRadioBox(parent,(wxWindowID) *id,title,pos,size,choices,majorDim,style,*val);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRadioBox");
+ break;
+}
+case wxRadioBox_Create: { // wxRadioBox::Create
+ int majorDim=0;
+ long style=wxRA_HORIZONTAL;
+ const wxValidator * val= &wxDefaultValidator;
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ majorDim = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+val = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,choices,majorDim,style,*val);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_Enable_2: { // wxRadioBox::Enable
+ bool enable=true;
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Enable((int) *n,enable);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_Enable_1: { // wxRadioBox::Enable
+ bool enable=true;
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ enable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Enable(enable);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_GetSelection: { // wxRadioBox::GetSelection
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxRadioBox_GetString: { // wxRadioBox::GetString
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetString((int) *n);
+ rt.add(Result);
+ break;
+}
+case wxRadioBox_SetSelection: { // wxRadioBox::SetSelection
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ int * n = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *n);
+ break;
+}
+case wxRadioBox_Show_2: { // wxRadioBox::Show
+ bool show=true;
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show((int) *n,show);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_Show_1: { // wxRadioBox::Show
+ bool show=true;
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show(show);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_GetColumnCount: { // wxRadioBox::GetColumnCount
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumnCount();
+ rt.addUint(Result);
+ break;
+}
+case wxRadioBox_GetItemHelpText: { // wxRadioBox::GetItemHelpText
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetItemHelpText((int) *n);
+ rt.add(Result);
+ break;
+}
+case wxRadioBox_GetItemToolTip: { // wxRadioBox::GetItemToolTip
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * item = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxToolTip * Result = (wxToolTip*)This->GetItemToolTip((int) *item);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolTip");
+ break;
+}
+case wxRadioBox_GetItemFromPoint: { // wxRadioBox::GetItemFromPoint
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetItemFromPoint(pt);
+ rt.addInt(Result);
+ break;
+}
+case wxRadioBox_GetRowCount: { // wxRadioBox::GetRowCount
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRowCount();
+ rt.addUint(Result);
+ break;
+}
+case wxRadioBox_IsItemEnabled: { // wxRadioBox::IsItemEnabled
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsItemEnabled((int) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_IsItemShown: { // wxRadioBox::IsItemShown
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsItemShown((int) *n);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioBox_SetItemHelpText: { // wxRadioBox::SetItemHelpText
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * n = (unsigned int *) bp; bp += 4;
+ int * helpTextLen = (int *) bp; bp += 4;
+ wxString helpText = wxString(bp, wxConvUTF8);
+ bp += *helpTextLen+((8-((4+ *helpTextLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemHelpText((int) *n,helpText);
+ break;
+}
+case wxRadioBox_SetItemToolTip: { // wxRadioBox::SetItemToolTip
+ wxRadioBox *This = (wxRadioBox *) getPtr(bp,memenv); bp += 4;
+ unsigned int * item = (unsigned int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetItemToolTip((int) *item,text);
+ break;
+}
+case wxRadioButton_new_0: { // wxRadioButton::wxRadioButton
+ wxRadioButton * Result = new EwxRadioButton();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRadioButton");
+ break;
+}
+case wxRadioButton_new_4: { // wxRadioButton::wxRadioButton
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((4+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxRadioButton * Result = new EwxRadioButton(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxRadioButton");
+ break;
+}
+case wxRadioButton_Create: { // wxRadioButton::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxRadioButton *This = (wxRadioButton *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * labelLen = (int *) bp; bp += 4;
+ wxString label = wxString(bp, wxConvUTF8);
+ bp += *labelLen+((8-((0+ *labelLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,label,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxRadioButton_GetValue: { // wxRadioButton::GetValue
+ wxRadioButton *This = (wxRadioButton *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetValue();
+ rt.addBool(Result);
+ break;
+}
+case wxRadioButton_SetValue: { // wxRadioButton::SetValue
+ wxRadioButton *This = (wxRadioButton *) getPtr(bp,memenv); bp += 4;
+ bool * val = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((bool) *val);
+ break;
+}
+case wxSlider_new_6: { // wxSlider::wxSlider
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSL_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * value = (int *) bp; bp += 4;
+ int * minValue = (int *) bp; bp += 4;
+ int * maxValue = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxSlider * Result = new EwxSlider(parent,(wxWindowID) *id,(int) *value,(int) *minValue,(int) *maxValue,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSlider");
+ break;
+}
+case wxSlider_new_0: { // wxSlider::wxSlider
+ wxSlider * Result = new EwxSlider();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSlider");
+ break;
+}
+case wxSlider_Create: { // wxSlider::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSL_HORIZONTAL;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * value = (int *) bp; bp += 4;
+ int * minValue = (int *) bp; bp += 4;
+ int * maxValue = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,(int) *value,(int) *minValue,(int) *maxValue,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxSlider_GetLineSize: { // wxSlider::GetLineSize
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineSize();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_GetMax: { // wxSlider::GetMax
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMax();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_GetMin: { // wxSlider::GetMin
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMin();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_GetPageSize: { // wxSlider::GetPageSize
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageSize();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_GetThumbLength: { // wxSlider::GetThumbLength
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetThumbLength();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_GetValue: { // wxSlider::GetValue
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetValue();
+ rt.addInt(Result);
+ break;
+}
+case wxSlider_SetLineSize: { // wxSlider::SetLineSize
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ int * lineSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLineSize((int) *lineSize);
+ break;
+}
+case wxSlider_SetPageSize: { // wxSlider::SetPageSize
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ int * pageSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPageSize((int) *pageSize);
+ break;
+}
+case wxSlider_SetRange: { // wxSlider::SetRange
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ int * minValue = (int *) bp; bp += 4;
+ int * maxValue = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRange((int) *minValue,(int) *maxValue);
+ break;
+}
+case wxSlider_SetThumbLength: { // wxSlider::SetThumbLength
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ int * lenPixels = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetThumbLength((int) *lenPixels);
+ break;
+}
+case wxSlider_SetValue: { // wxSlider::SetValue
+ wxSlider *This = (wxSlider *) getPtr(bp,memenv); bp += 4;
+ int * value = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetValue((int) *value);
+ break;
+}
+case wxDialog_new_4: { // wxDialog::wxDialog
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_DIALOG_STYLE;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxDialog * Result = new EwxDialog(parent,(wxWindowID) *id,title,pos,size,style);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDialog");
+ break;
+}
+case wxDialog_new_0: { // wxDialog::wxDialog
+ wxDialog * Result = new EwxDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDialog");
+ break;
+}
+case wxDialog_Create: { // wxDialog::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_DIALOG_STYLE;
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxDialog_CreateButtonSizer: { // wxDialog::CreateButtonSizer
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSizer * Result = (wxSizer*)This->CreateButtonSizer((long) *flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxSizer");
+ break;
+}
+case wxDialog_CreateStdDialogButtonSizer: { // wxDialog::CreateStdDialogButtonSizer
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxStdDialogButtonSizer * Result = (wxStdDialogButtonSizer*)This->CreateStdDialogButtonSizer((long) *flags);
+ rt.addRef(getRef((void *)Result,memenv), "wxStdDialogButtonSizer");
+ break;
+}
+case wxDialog_EndModal: { // wxDialog::EndModal
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ int * retCode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EndModal((int) *retCode);
+ break;
+}
+case wxDialog_GetAffirmativeId: { // wxDialog::GetAffirmativeId
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetAffirmativeId();
+ rt.addInt(Result);
+ break;
+}
+case wxDialog_GetReturnCode: { // wxDialog::GetReturnCode
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetReturnCode();
+ rt.addInt(Result);
+ break;
+}
+case wxDialog_IsModal: { // wxDialog::IsModal
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsModal();
+ rt.addBool(Result);
+ break;
+}
+case wxDialog_SetAffirmativeId: { // wxDialog::SetAffirmativeId
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ int * affirmativeId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAffirmativeId((int) *affirmativeId);
+ break;
+}
+case wxDialog_SetReturnCode: { // wxDialog::SetReturnCode
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ int * returnCode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetReturnCode((int) *returnCode);
+ break;
+}
+case wxDialog_Show: { // wxDialog::Show
+ bool show=TRUE;
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Show(show);
+ rt.addBool(Result);
+ break;
+}
+case wxDialog_ShowModal: { // wxDialog::ShowModal
+ wxDialog *This = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ShowModal();
+ rt.addInt(Result);
+ break;
+}
+case wxColourDialog_new_0: { // wxColourDialog::wxColourDialog
+ wxColourDialog * Result = new EwxColourDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourDialog");
+ break;
+}
+case wxColourDialog_new_2: { // wxColourDialog::wxColourDialog
+ wxColourData * data=(wxColourData *) NULL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+data = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxColourDialog * Result = new EwxColourDialog(parent,data);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourDialog");
+ break;
+}
+case wxColourDialog_Create: { // wxColourDialog::Create
+ wxColourData * data=(wxColourData *) NULL;
+ wxColourDialog *This = (wxColourDialog *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+data = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,data);
+ rt.addBool(Result);
+ break;
+}
+case wxColourDialog_GetColourData: { // wxColourDialog::GetColourData
+ wxColourDialog *This = (wxColourDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColourData * Result = &This->GetColourData();
+ rt.addRef(getRef((void *)Result,memenv), "wxColourData");
+ break;
+}
+case wxColourData_new_0: { // wxColourData::wxColourData
+ wxColourData * Result = new EwxColourData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourData");
+ break;
+}
+case wxColourData_new_1: { // wxColourData::wxColourData
+ wxColourData *data = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ wxColourData * Result = new EwxColourData(*data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourData");
+ break;
+}
+case wxColourData_GetChooseFull: { // wxColourData::GetChooseFull
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetChooseFull();
+ rt.addBool(Result);
+ break;
+}
+case wxColourData_GetColour: { // wxColourData::GetColour
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetColour();
+ rt.add((*Result));
+ break;
+}
+case wxColourData_GetCustomColour: { // wxColourData::GetCustomColour
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ int * i = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetCustomColour((int) *i);
+ rt.add(Result);
+ break;
+}
+case wxColourData_SetChooseFull: { // wxColourData::SetChooseFull
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetChooseFull((bool) *flag);
+ break;
+}
+case wxColourData_SetColour: { // wxColourData::SetColour
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetColour(colour);
+ break;
+}
+case wxColourData_SetCustomColour: { // wxColourData::SetCustomColour
+ wxColourData *This = (wxColourData *) getPtr(bp,memenv); bp += 4;
+ int * i = (int *) bp; bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCustomColour((int) *i,colour);
+ break;
+}
+case wxPalette_new_0: { // wxPalette::wxPalette
+ wxPalette * Result = new EwxPalette();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPalette");
+ break;
+}
+case wxPalette_new_4: { // wxPalette::wxPalette
+ const unsigned char * red = (const unsigned char*) Ecmd.bin[0]->base;
+ const unsigned char * green = (const unsigned char*) Ecmd.bin[1]->base;
+ const unsigned char * blue = (const unsigned char*) Ecmd.bin[2]->base;
+ wxPalette * Result = new EwxPalette(Ecmd.bin[0]->size,red,green,blue);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPalette");
+ break;
+}
+case wxPalette_Create: { // wxPalette::Create
+ wxPalette *This = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ const unsigned char * red = (const unsigned char*) Ecmd.bin[0]->base;
+ const unsigned char * green = (const unsigned char*) Ecmd.bin[1]->base;
+ const unsigned char * blue = (const unsigned char*) Ecmd.bin[2]->base;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(Ecmd.bin[0]->size,red,green,blue);
+ rt.addBool(Result);
+ break;
+}
+case wxPalette_GetColoursCount: { // wxPalette::GetColoursCount
+ wxPalette *This = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColoursCount();
+ rt.addInt(Result);
+ break;
+}
+case wxPalette_GetPixel: { // wxPalette::GetPixel
+ wxPalette *This = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ unsigned int * red = (unsigned int *) bp; bp += 4;
+ unsigned int * green = (unsigned int *) bp; bp += 4;
+ unsigned int * blue = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPixel((char) *red,(char) *green,(char) *blue);
+ rt.addInt(Result);
+ break;
+}
+case wxPalette_GetRGB: { // wxPalette::GetRGB
+ unsigned char red;
+ unsigned char green;
+ unsigned char blue;
+ wxPalette *This = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ int * pixel = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetRGB((int) *pixel,&red,&green,&blue);
+ rt.addBool(Result);
+ rt.addUint(red);
+ rt.addUint(green);
+ rt.addUint(blue);
+ rt.addTupleCount(4);
+ break;
+}
+case wxPalette_IsOk: { // wxPalette::IsOk
+ wxPalette *This = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxDirDialog_new: { // wxDirDialog::wxDirDialog
+ wxString title= wxDirSelectorPromptStr;
+ wxString defaultPath= wxEmptyString;
+ long style=(wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
+ wxPoint pos= wxDefaultPosition;
+ wxSize sz= wxDefaultSize;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * defaultPathLen = (int *) bp; bp += 4;
+ defaultPath = wxString(bp, wxConvUTF8);
+ bp += *defaultPathLen+((8-((0+ *defaultPathLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ sz = wxSize(*szW,*szH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxDirDialog * Result = new EwxDirDialog(parent,title,defaultPath,style,pos,sz);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDirDialog");
+ break;
+}
+case wxDirDialog_GetPath: { // wxDirDialog::GetPath
+ wxDirDialog *This = (wxDirDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxDirDialog_GetMessage: { // wxDirDialog::GetMessage
+ wxDirDialog *This = (wxDirDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetMessage();
+ rt.add(Result);
+ break;
+}
+case wxDirDialog_SetMessage: { // wxDirDialog::SetMessage
+ wxDirDialog *This = (wxDirDialog *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetMessage(message);
+ break;
+}
+case wxDirDialog_SetPath: { // wxDirDialog::SetPath
+ wxDirDialog *This = (wxDirDialog *) getPtr(bp,memenv); bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ wxString path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPath(path);
+ break;
+}
+case wxFileDialog_new: { // wxFileDialog::wxFileDialog
+ wxString message= wxFileSelectorPromptStr;
+ wxString defaultDir= wxEmptyString;
+ wxString defaultFile= wxEmptyString;
+ wxString wildCard= wxFileSelectorDefaultWildcardStr;
+ long style=wxFD_OPEN;
+ wxPoint pos= wxDefaultPosition;
+ wxSize sz= wxDefaultSize;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * defaultDirLen = (int *) bp; bp += 4;
+ defaultDir = wxString(bp, wxConvUTF8);
+ bp += *defaultDirLen+((8-((0+ *defaultDirLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * defaultFileLen = (int *) bp; bp += 4;
+ defaultFile = wxString(bp, wxConvUTF8);
+ bp += *defaultFileLen+((8-((0+ *defaultFileLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * wildCardLen = (int *) bp; bp += 4;
+ wildCard = wxString(bp, wxConvUTF8);
+ bp += *wildCardLen+((8-((0+ *wildCardLen) & 7)) & 7);
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 7: {bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ sz = wxSize(*szW,*szH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxFileDialog * Result = new EwxFileDialog(parent,message,defaultDir,defaultFile,wildCard,style,pos,sz);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFileDialog");
+ break;
+}
+case wxFileDialog_GetDirectory: { // wxFileDialog::GetDirectory
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetDirectory();
+ rt.add(Result);
+ break;
+}
+case wxFileDialog_GetFilename: { // wxFileDialog::GetFilename
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetFilename();
+ rt.add(Result);
+ break;
+}
+case wxFileDialog_GetFilenames: { // wxFileDialog::GetFilenames
+ wxArrayString files;
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetFilenames(files);
+ rt.add(files);
+ break;
+}
+case wxFileDialog_GetFilterIndex: { // wxFileDialog::GetFilterIndex
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFilterIndex();
+ rt.addInt(Result);
+ break;
+}
+case wxFileDialog_GetMessage: { // wxFileDialog::GetMessage
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetMessage();
+ rt.add(Result);
+ break;
+}
+case wxFileDialog_GetPath: { // wxFileDialog::GetPath
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxFileDialog_GetPaths: { // wxFileDialog::GetPaths
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * pathsLen = (int *) bp; bp += 4;
+ wxArrayString paths;
+ int pathsASz = 0, * pathsTemp;
+ for(int i=0; i < *pathsLen; i++) {
+ pathsTemp = (int *) bp; bp += 4;
+ paths.Add(wxString(bp, wxConvUTF8));
+ bp += *pathsTemp;
+ pathsASz += *pathsTemp+4;
+ }
+ bp += (8-((0+ pathsASz) & 7 )) & 7;
+ if(!This) throw wxe_badarg(0);
+ This->GetPaths(paths);
+ break;
+}
+case wxFileDialog_GetWildcard: { // wxFileDialog::GetWildcard
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetWildcard();
+ rt.add(Result);
+ break;
+}
+case wxFileDialog_SetDirectory: { // wxFileDialog::SetDirectory
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * dirLen = (int *) bp; bp += 4;
+ wxString dir = wxString(bp, wxConvUTF8);
+ bp += *dirLen+((8-((0+ *dirLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetDirectory(dir);
+ break;
+}
+case wxFileDialog_SetFilename: { // wxFileDialog::SetFilename
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetFilename(name);
+ break;
+}
+case wxFileDialog_SetFilterIndex: { // wxFileDialog::SetFilterIndex
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * filterIndex = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFilterIndex((int) *filterIndex);
+ break;
+}
+case wxFileDialog_SetMessage: { // wxFileDialog::SetMessage
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetMessage(message);
+ break;
+}
+case wxFileDialog_SetPath: { // wxFileDialog::SetPath
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ wxString path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPath(path);
+ break;
+}
+case wxFileDialog_SetWildcard: { // wxFileDialog::SetWildcard
+ wxFileDialog *This = (wxFileDialog *) getPtr(bp,memenv); bp += 4;
+ int * wildCardLen = (int *) bp; bp += 4;
+ wxString wildCard = wxString(bp, wxConvUTF8);
+ bp += *wildCardLen+((8-((0+ *wildCardLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetWildcard(wildCard);
+ break;
+}
+case wxPickerBase_SetInternalMargin: { // wxPickerBase::SetInternalMargin
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ int * newmargin = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInternalMargin((int) *newmargin);
+ break;
+}
+case wxPickerBase_GetInternalMargin: { // wxPickerBase::GetInternalMargin
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetInternalMargin();
+ rt.addInt(Result);
+ break;
+}
+case wxPickerBase_SetTextCtrlProportion: { // wxPickerBase::SetTextCtrlProportion
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ int * prop = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTextCtrlProportion((int) *prop);
+ break;
+}
+case wxPickerBase_SetPickerCtrlProportion: { // wxPickerBase::SetPickerCtrlProportion
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ int * prop = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPickerCtrlProportion((int) *prop);
+ break;
+}
+case wxPickerBase_GetTextCtrlProportion: { // wxPickerBase::GetTextCtrlProportion
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTextCtrlProportion();
+ rt.addInt(Result);
+ break;
+}
+case wxPickerBase_GetPickerCtrlProportion: { // wxPickerBase::GetPickerCtrlProportion
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPickerCtrlProportion();
+ rt.addInt(Result);
+ break;
+}
+case wxPickerBase_HasTextCtrl: { // wxPickerBase::HasTextCtrl
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasTextCtrl();
+ rt.addBool(Result);
+ break;
+}
+case wxPickerBase_GetTextCtrl: { // wxPickerBase::GetTextCtrl
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTextCtrl * Result = (wxTextCtrl*)This->GetTextCtrl();
+ rt.addRef(getRef((void *)Result,memenv), "wxTextCtrl");
+ break;
+}
+case wxPickerBase_IsTextCtrlGrowable: { // wxPickerBase::IsTextCtrlGrowable
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsTextCtrlGrowable();
+ rt.addBool(Result);
+ break;
+}
+case wxPickerBase_SetPickerCtrlGrowable: { // wxPickerBase::SetPickerCtrlGrowable
+ bool grow=true;
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ grow = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetPickerCtrlGrowable(grow);
+ break;
+}
+case wxPickerBase_SetTextCtrlGrowable: { // wxPickerBase::SetTextCtrlGrowable
+ bool grow=true;
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ grow = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetTextCtrlGrowable(grow);
+ break;
+}
+case wxPickerBase_IsPickerCtrlGrowable: { // wxPickerBase::IsPickerCtrlGrowable
+ wxPickerBase *This = (wxPickerBase *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsPickerCtrlGrowable();
+ rt.addBool(Result);
+ break;
+}
+case wxFilePickerCtrl_new_0: { // wxFilePickerCtrl::wxFilePickerCtrl
+ wxFilePickerCtrl * Result = new EwxFilePickerCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFilePickerCtrl");
+ break;
+}
+case wxFilePickerCtrl_new_3: { // wxFilePickerCtrl::wxFilePickerCtrl
+ wxString path= wxEmptyString;
+ wxString message= wxFileSelectorPromptStr;
+ wxString wildcard= wxFileSelectorDefaultWildcardStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0400|0x2000);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * wildcardLen = (int *) bp; bp += 4;
+ wildcard = wxString(bp, wxConvUTF8);
+ bp += *wildcardLen+((8-((0+ *wildcardLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 6: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 7: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxFilePickerCtrl * Result = new EwxFilePickerCtrl(parent,(wxWindowID) *id,path,message,wildcard,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFilePickerCtrl");
+ break;
+}
+case wxFilePickerCtrl_Create: { // wxFilePickerCtrl::Create
+ wxString path= wxEmptyString;
+ wxString message= wxFileSelectorPromptStr;
+ wxString wildcard= wxFileSelectorDefaultWildcardStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0400|0x2000);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxFilePickerCtrl *This = (wxFilePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * wildcardLen = (int *) bp; bp += 4;
+ wildcard = wxString(bp, wxConvUTF8);
+ bp += *wildcardLen+((8-((0+ *wildcardLen) & 7)) & 7);
+ } break;
+ case 4: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 6: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 7: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,path,message,wildcard,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxFilePickerCtrl_GetPath: { // wxFilePickerCtrl::GetPath
+ wxFilePickerCtrl *This = (wxFilePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxFilePickerCtrl_SetPath: { // wxFilePickerCtrl::SetPath
+ wxFilePickerCtrl *This = (wxFilePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPath(str);
+ break;
+}
+case wxDirPickerCtrl_new_0: { // wxDirPickerCtrl::wxDirPickerCtrl
+ wxDirPickerCtrl * Result = new EwxDirPickerCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDirPickerCtrl");
+ break;
+}
+case wxDirPickerCtrl_new_3: { // wxDirPickerCtrl::wxDirPickerCtrl
+ wxString path= wxEmptyString;
+ wxString message= wxDirSelectorPromptStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0008);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxDirPickerCtrl * Result = new EwxDirPickerCtrl(parent,(wxWindowID) *id,path,message,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDirPickerCtrl");
+ break;
+}
+case wxDirPickerCtrl_Create: { // wxDirPickerCtrl::Create
+ wxString path= wxEmptyString;
+ wxString message= wxDirSelectorPromptStr;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0008);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxDirPickerCtrl *This = (wxDirPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * pathLen = (int *) bp; bp += 4;
+ path = wxString(bp, wxConvUTF8);
+ bp += *pathLen+((8-((0+ *pathLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 5: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 6: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,path,message,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxDirPickerCtrl_GetPath: { // wxDirPickerCtrl::GetPath
+ wxDirPickerCtrl *This = (wxDirPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxDirPickerCtrl_SetPath: { // wxDirPickerCtrl::SetPath
+ wxDirPickerCtrl *This = (wxDirPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPath(str);
+ break;
+}
+case wxColourPickerCtrl_new_0: { // wxColourPickerCtrl::wxColourPickerCtrl
+ wxColourPickerCtrl * Result = new EwxColourPickerCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourPickerCtrl");
+ break;
+}
+case wxColourPickerCtrl_new_3: { // wxColourPickerCtrl::wxColourPickerCtrl
+ wxColour col= *wxBLACK;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ col = wxColour(*colR,*colG,*colB,*colA);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxColourPickerCtrl * Result = new EwxColourPickerCtrl(parent,(wxWindowID) *id,col,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxColourPickerCtrl");
+ break;
+}
+case wxColourPickerCtrl_Create: { // wxColourPickerCtrl::Create
+ wxColour col= *wxBLACK;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxColourPickerCtrl *This = (wxColourPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ col = wxColour(*colR,*colG,*colB,*colA);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,col,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxColourPickerCtrl_GetColour: { // wxColourPickerCtrl::GetColour
+ wxColourPickerCtrl *This = (wxColourPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetColour();
+ rt.add(Result);
+ break;
+}
+case wxColourPickerCtrl_SetColour_1_1: { // wxColourPickerCtrl::SetColour
+ wxColourPickerCtrl *This = (wxColourPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * colR = (int *) bp; bp += 4;
+ int * colG = (int *) bp; bp += 4;
+ int * colB = (int *) bp; bp += 4;
+ int * colA = (int *) bp; bp += 4;
+ wxColour col = wxColour(*colR,*colG,*colB,*colA);
+ if(!This) throw wxe_badarg(0);
+ This->SetColour(col);
+ break;
+}
+case wxColourPickerCtrl_SetColour_1_0: { // wxColourPickerCtrl::SetColour
+ wxColourPickerCtrl *This = (wxColourPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetColour(text);
+ rt.addBool(Result);
+ break;
+}
+case wxDatePickerCtrl_new_0: { // wxDatePickerCtrl::wxDatePickerCtrl
+ wxDatePickerCtrl * Result = new EwxDatePickerCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDatePickerCtrl");
+ break;
+}
+case wxDatePickerCtrl_new_3: { // wxDatePickerCtrl::wxDatePickerCtrl
+ wxDateTime date= wxDefaultDateTime;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDP_DEFAULT|wxDP_SHOWCENTURY;
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * dateD = (int *) bp; bp += 4;
+ int * dateMo = (int *) bp; bp += 4;
+ int * dateY = (int *) bp; bp += 4;
+ int * dateH = (int *) bp; bp += 4;
+ int * dateMi = (int *) bp; bp += 4;
+ int * dateS = (int *) bp; bp += 4;
+ date = wxDateTime((wxDateTime::wxDateTime_t) *dateD,(wxDateTime::Month) *dateMo,*dateY,(wxDateTime::wxDateTime_t) *dateH,(wxDateTime::wxDateTime_t) *dateMi,(wxDateTime::wxDateTime_t) *dateS);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxDatePickerCtrl * Result = new EwxDatePickerCtrl(parent,(wxWindowID) *id,date,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxDatePickerCtrl");
+ break;
+}
+case wxDatePickerCtrl_GetRange: { // wxDatePickerCtrl::GetRange
+ wxDatePickerCtrl *This = (wxDatePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * dt1D = (int *) bp; bp += 4;
+ int * dt1Mo = (int *) bp; bp += 4;
+ int * dt1Y = (int *) bp; bp += 4;
+ int * dt1H = (int *) bp; bp += 4;
+ int * dt1Mi = (int *) bp; bp += 4;
+ int * dt1S = (int *) bp; bp += 4;
+ wxDateTime dt1 = wxDateTime((wxDateTime::wxDateTime_t) *dt1D,(wxDateTime::Month) *dt1Mo,*dt1Y,(wxDateTime::wxDateTime_t) *dt1H,(wxDateTime::wxDateTime_t) *dt1Mi,(wxDateTime::wxDateTime_t) *dt1S);
+ int * dt2D = (int *) bp; bp += 4;
+ int * dt2Mo = (int *) bp; bp += 4;
+ int * dt2Y = (int *) bp; bp += 4;
+ int * dt2H = (int *) bp; bp += 4;
+ int * dt2Mi = (int *) bp; bp += 4;
+ int * dt2S = (int *) bp; bp += 4;
+ wxDateTime dt2 = wxDateTime((wxDateTime::wxDateTime_t) *dt2D,(wxDateTime::Month) *dt2Mo,*dt2Y,(wxDateTime::wxDateTime_t) *dt2H,(wxDateTime::wxDateTime_t) *dt2Mi,(wxDateTime::wxDateTime_t) *dt2S);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetRange(&dt1,&dt2);
+ rt.addBool(Result);
+ break;
+}
+case wxDatePickerCtrl_GetValue: { // wxDatePickerCtrl::GetValue
+ wxDatePickerCtrl *This = (wxDatePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDateTime Result = This->GetValue();
+ rt.add(Result);
+ break;
+}
+case wxDatePickerCtrl_SetRange: { // wxDatePickerCtrl::SetRange
+ wxDatePickerCtrl *This = (wxDatePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * dt1D = (int *) bp; bp += 4;
+ int * dt1Mo = (int *) bp; bp += 4;
+ int * dt1Y = (int *) bp; bp += 4;
+ int * dt1H = (int *) bp; bp += 4;
+ int * dt1Mi = (int *) bp; bp += 4;
+ int * dt1S = (int *) bp; bp += 4;
+ wxDateTime dt1 = wxDateTime((wxDateTime::wxDateTime_t) *dt1D,(wxDateTime::Month) *dt1Mo,*dt1Y,(wxDateTime::wxDateTime_t) *dt1H,(wxDateTime::wxDateTime_t) *dt1Mi,(wxDateTime::wxDateTime_t) *dt1S);
+ int * dt2D = (int *) bp; bp += 4;
+ int * dt2Mo = (int *) bp; bp += 4;
+ int * dt2Y = (int *) bp; bp += 4;
+ int * dt2H = (int *) bp; bp += 4;
+ int * dt2Mi = (int *) bp; bp += 4;
+ int * dt2S = (int *) bp; bp += 4;
+ wxDateTime dt2 = wxDateTime((wxDateTime::wxDateTime_t) *dt2D,(wxDateTime::Month) *dt2Mo,*dt2Y,(wxDateTime::wxDateTime_t) *dt2H,(wxDateTime::wxDateTime_t) *dt2Mi,(wxDateTime::wxDateTime_t) *dt2S);
+ if(!This) throw wxe_badarg(0);
+ This->SetRange(dt1,dt2);
+ break;
+}
+case wxDatePickerCtrl_SetValue: { // wxDatePickerCtrl::SetValue
+ wxDatePickerCtrl *This = (wxDatePickerCtrl *) getPtr(bp,memenv); bp += 4;
+ int * dateD = (int *) bp; bp += 4;
+ int * dateMo = (int *) bp; bp += 4;
+ int * dateY = (int *) bp; bp += 4;
+ int * dateH = (int *) bp; bp += 4;
+ int * dateMi = (int *) bp; bp += 4;
+ int * dateS = (int *) bp; bp += 4;
+ wxDateTime date = wxDateTime((wxDateTime::wxDateTime_t) *dateD,(wxDateTime::Month) *dateMo,*dateY,(wxDateTime::wxDateTime_t) *dateH,(wxDateTime::wxDateTime_t) *dateMi,(wxDateTime::wxDateTime_t) *dateS);
+ if(!This) throw wxe_badarg(0);
+ This->SetValue(date);
+ break;
+}
+case wxFontPickerCtrl_new_0: { // wxFontPickerCtrl::wxFontPickerCtrl
+ wxFontPickerCtrl * Result = new EwxFontPickerCtrl();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontPickerCtrl");
+ break;
+}
+case wxFontPickerCtrl_new_3: { // wxFontPickerCtrl::wxFontPickerCtrl
+ const wxFont * initial= &wxNullFont;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0008|0x0010);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+initial = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxFontPickerCtrl * Result = new EwxFontPickerCtrl(parent,(wxWindowID) *id,*initial,pos,size,style,*validator);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontPickerCtrl");
+ break;
+}
+case wxFontPickerCtrl_Create: { // wxFontPickerCtrl::Create
+ const wxFont * initial= &wxNullFont;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=(0x0008|0x0010);
+ const wxValidator * validator= &wxDefaultValidator;
+ wxFontPickerCtrl *This = (wxFontPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+initial = (wxFont *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+validator = (wxValidator *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,*initial,pos,size,style,*validator);
+ rt.addBool(Result);
+ break;
+}
+case wxFontPickerCtrl_GetSelectedFont: { // wxFontPickerCtrl::GetSelectedFont
+ wxFontPickerCtrl *This = (wxFontPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetSelectedFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFontPickerCtrl_SetSelectedFont: { // wxFontPickerCtrl::SetSelectedFont
+ wxFontPickerCtrl *This = (wxFontPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ wxFont *f = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectedFont(*f);
+ break;
+}
+case wxFontPickerCtrl_GetMaxPointSize: { // wxFontPickerCtrl::GetMaxPointSize
+ wxFontPickerCtrl *This = (wxFontPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaxPointSize();
+ rt.addUint(Result);
+ break;
+}
+case wxFontPickerCtrl_SetMaxPointSize: { // wxFontPickerCtrl::SetMaxPointSize
+ wxFontPickerCtrl *This = (wxFontPickerCtrl *) getPtr(bp,memenv); bp += 4;
+ unsigned int * max = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaxPointSize((int) *max);
+ break;
+}
+case wxFindReplaceDialog_new_0: { // wxFindReplaceDialog::wxFindReplaceDialog
+ wxFindReplaceDialog * Result = new EwxFindReplaceDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFindReplaceDialog");
+ break;
+}
+case wxFindReplaceDialog_new_4: { // wxFindReplaceDialog::wxFindReplaceDialog
+ int style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFindReplaceData *data = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxFindReplaceDialog * Result = new EwxFindReplaceDialog(parent,data,title,style);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFindReplaceDialog");
+ break;
+}
+case wxFindReplaceDialog_Create: { // wxFindReplaceDialog::Create
+ int style=0;
+ wxFindReplaceDialog *This = (wxFindReplaceDialog *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFindReplaceData *data = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,data,title,style);
+ rt.addBool(Result);
+ break;
+}
+case wxFindReplaceDialog_GetData: { // wxFindReplaceDialog::GetData
+ wxFindReplaceDialog *This = (wxFindReplaceDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFindReplaceData * Result = (wxFindReplaceData*)This->GetData();
+ rt.addRef(getRef((void *)Result,memenv), "wxFindReplaceData");
+ break;
+}
+case wxFindReplaceData_new_0: { // wxFindReplaceData::wxFindReplaceData
+ wxFindReplaceData * Result = new EwxFindReplaceData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFindReplaceData");
+ break;
+}
+case wxFindReplaceData_new_1: { // wxFindReplaceData::wxFindReplaceData
+ unsigned int * flags = (unsigned int *) bp; bp += 4;
+ wxFindReplaceData * Result = new EwxFindReplaceData((int) *flags);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFindReplaceData");
+ break;
+}
+case wxFindReplaceData_GetFindString: { // wxFindReplaceData::GetFindString
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetFindString();
+ rt.add(Result);
+ break;
+}
+case wxFindReplaceData_GetReplaceString: { // wxFindReplaceData::GetReplaceString
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetReplaceString();
+ rt.add(Result);
+ break;
+}
+case wxFindReplaceData_GetFlags: { // wxFindReplaceData::GetFlags
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxFindReplaceData_SetFlags: { // wxFindReplaceData::SetFlags
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ unsigned int * flags = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlags((int) *flags);
+ break;
+}
+case wxFindReplaceData_SetFindString: { // wxFindReplaceData::SetFindString
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetFindString(str);
+ break;
+}
+case wxFindReplaceData_SetReplaceString: { // wxFindReplaceData::SetReplaceString
+ wxFindReplaceData *This = (wxFindReplaceData *) getPtr(bp,memenv); bp += 4;
+ int * strLen = (int *) bp; bp += 4;
+ wxString str = wxString(bp, wxConvUTF8);
+ bp += *strLen+((8-((0+ *strLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetReplaceString(str);
+ break;
+}
+case wxMultiChoiceDialog_new_0: { // wxMultiChoiceDialog::wxMultiChoiceDialog
+ wxMultiChoiceDialog * Result = new EwxMultiChoiceDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMultiChoiceDialog");
+ break;
+}
+case wxMultiChoiceDialog_new_5: { // wxMultiChoiceDialog::wxMultiChoiceDialog
+ long style=(wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxOK|wxCANCEL|wxCENTRE);
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ int * captionLen = (int *) bp; bp += 4;
+ wxString caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((4+ *captionLen) & 7)) & 7);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxMultiChoiceDialog * Result = new EwxMultiChoiceDialog(parent,message,caption,choices,style,pos);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMultiChoiceDialog");
+ break;
+}
+case wxMultiChoiceDialog_GetSelections: { // wxMultiChoiceDialog::GetSelections
+ wxMultiChoiceDialog *This = (wxMultiChoiceDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxArrayInt Result = This->GetSelections();
+ rt.add(Result);
+ break;
+}
+case wxMultiChoiceDialog_SetSelections: { // wxMultiChoiceDialog::SetSelections
+ wxMultiChoiceDialog *This = (wxMultiChoiceDialog *) getPtr(bp,memenv); bp += 4;
+ int * selectionsLen = (int *) bp; bp += 4;
+ wxArrayInt selections;
+ for(int i=0; i < *selectionsLen; i++) { selections.Add(*(int *) bp); bp += 4;}
+ bp += ((*selectionsLen + 2) % 2 )*4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelections(selections);
+ break;
+}
+case wxSingleChoiceDialog_new_0: { // wxSingleChoiceDialog::wxSingleChoiceDialog
+ wxSingleChoiceDialog * Result = new EwxSingleChoiceDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSingleChoiceDialog");
+ break;
+}
+case wxSingleChoiceDialog_new_5: { // wxSingleChoiceDialog::wxSingleChoiceDialog
+ char ** clientData = (char **) NULL;
+ long style=(wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxOK|wxCANCEL|wxCENTRE);
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ int * captionLen = (int *) bp; bp += 4;
+ wxString caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((4+ *captionLen) & 7)) & 7);
+ int * choicesLen = (int *) bp; bp += 4;
+ wxArrayString choices;
+ int choicesASz = 0, * choicesTemp;
+ for(int i=0; i < *choicesLen; i++) {
+ choicesTemp = (int *) bp; bp += 4;
+ choices.Add(wxString(bp, wxConvUTF8));
+ bp += *choicesTemp;
+ choicesASz += *choicesTemp+4;
+ }
+ bp += (8-((4+ choicesASz) & 7 )) & 7;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxSingleChoiceDialog * Result = new EwxSingleChoiceDialog(parent,message,caption,choices,clientData,style,pos);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSingleChoiceDialog");
+ break;
+}
+case wxSingleChoiceDialog_GetSelection: { // wxSingleChoiceDialog::GetSelection
+ wxSingleChoiceDialog *This = (wxSingleChoiceDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxSingleChoiceDialog_GetStringSelection: { // wxSingleChoiceDialog::GetStringSelection
+ wxSingleChoiceDialog *This = (wxSingleChoiceDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetStringSelection();
+ rt.add(Result);
+ break;
+}
+case wxSingleChoiceDialog_SetSelection: { // wxSingleChoiceDialog::SetSelection
+ wxSingleChoiceDialog *This = (wxSingleChoiceDialog *) getPtr(bp,memenv); bp += 4;
+ int * sel = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *sel);
+ break;
+}
+case wxTextEntryDialog_new: { // wxTextEntryDialog::wxTextEntryDialog
+ wxString caption= wxGetTextFromUserPromptStr;
+ wxString value= wxEmptyString;
+ long style=(wxOK|wxCANCEL|wxCENTRE|wxWS_EX_VALIDATE_RECURSIVELY);
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((0+ *captionLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxTextEntryDialog * Result = new EwxTextEntryDialog(parent,message,caption,value,style,pos);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextEntryDialog");
+ break;
+}
+case wxTextEntryDialog_GetValue: { // wxTextEntryDialog::GetValue
+ wxTextEntryDialog *This = (wxTextEntryDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetValue();
+ rt.add(Result);
+ break;
+}
+case wxTextEntryDialog_SetValue: { // wxTextEntryDialog::SetValue
+ wxTextEntryDialog *This = (wxTextEntryDialog *) getPtr(bp,memenv); bp += 4;
+ int * valLen = (int *) bp; bp += 4;
+ wxString val = wxString(bp, wxConvUTF8);
+ bp += *valLen+((8-((0+ *valLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetValue(val);
+ break;
+}
+case wxPasswordEntryDialog_new: { // wxPasswordEntryDialog::wxPasswordEntryDialog
+ wxString caption= wxGetPasswordFromUserPromptStr;
+ wxString value= wxEmptyString;
+ long style=(wxOK|wxCANCEL|wxCENTRE|wxWS_EX_VALIDATE_RECURSIVELY);
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((0+ *captionLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * valueLen = (int *) bp; bp += 4;
+ value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((0+ *valueLen) & 7)) & 7);
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 4: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxPasswordEntryDialog * Result = new EwxPasswordEntryDialog(parent,message,caption,value,style,pos);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPasswordEntryDialog");
+ break;
+}
+case wxFontData_new_0: { // wxFontData::wxFontData
+ wxFontData * Result = new EwxFontData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontData");
+ break;
+}
+case wxFontData_new_1: { // wxFontData::wxFontData
+ wxFontData *data = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ wxFontData * Result = new EwxFontData(*data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontData");
+ break;
+}
+case wxFontData_EnableEffects: { // wxFontData::EnableEffects
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableEffects((bool) *flag);
+ break;
+}
+case wxFontData_GetAllowSymbols: { // wxFontData::GetAllowSymbols
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetAllowSymbols();
+ rt.addBool(Result);
+ break;
+}
+case wxFontData_GetColour: { // wxFontData::GetColour
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxColour * Result = &This->GetColour();
+ rt.add((*Result));
+ break;
+}
+case wxFontData_GetChosenFont: { // wxFontData::GetChosenFont
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetChosenFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFontData_GetEnableEffects: { // wxFontData::GetEnableEffects
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnableEffects();
+ rt.addBool(Result);
+ break;
+}
+case wxFontData_GetInitialFont: { // wxFontData::GetInitialFont
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetInitialFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxFontData_GetShowHelp: { // wxFontData::GetShowHelp
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetShowHelp();
+ rt.addBool(Result);
+ break;
+}
+case wxFontData_SetAllowSymbols: { // wxFontData::SetAllowSymbols
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAllowSymbols((bool) *flag);
+ break;
+}
+case wxFontData_SetChosenFont: { // wxFontData::SetChosenFont
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetChosenFont(*font);
+ break;
+}
+case wxFontData_SetColour: { // wxFontData::SetColour
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ int * colourR = (int *) bp; bp += 4;
+ int * colourG = (int *) bp; bp += 4;
+ int * colourB = (int *) bp; bp += 4;
+ int * colourA = (int *) bp; bp += 4;
+ wxColour colour = wxColour(*colourR,*colourG,*colourB,*colourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetColour(colour);
+ break;
+}
+case wxFontData_SetInitialFont: { // wxFontData::SetInitialFont
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInitialFont(*font);
+ break;
+}
+case wxFontData_SetRange: { // wxFontData::SetRange
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ int * minRange = (int *) bp; bp += 4;
+ int * maxRange = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRange((int) *minRange,(int) *maxRange);
+ break;
+}
+case wxFontData_SetShowHelp: { // wxFontData::SetShowHelp
+ wxFontData *This = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetShowHelp((bool) *flag);
+ break;
+}
+case wxFontDialog_new_0: { // wxFontDialog::wxFontDialog
+ wxFontDialog * Result = new EwxFontDialog();
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontDialog");
+ break;
+}
+case wxFontDialog_new_2: { // wxFontDialog::wxFontDialog
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFontData *data = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ wxFontDialog * Result = new EwxFontDialog(parent,*data);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFontDialog");
+ break;
+}
+case wxFontDialog_Create: { // wxFontDialog::Create
+ wxFontDialog *This = (wxFontDialog *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxFontData *data = (wxFontData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,*data);
+ rt.addBool(Result);
+ break;
+}
+case wxFontDialog_GetFontData: { // wxFontDialog::GetFontData
+ wxFontDialog *This = (wxFontDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxFontData * Result = &This->GetFontData();
+ rt.addRef(getRef((void *)Result,memenv), "wxFontData");
+ break;
+}
+case wxProgressDialog_new: { // wxProgressDialog::wxProgressDialog
+ int maximum=100;
+ wxWindow * parent=NULL;
+ int style=wxPD_APP_MODAL|wxPD_AUTO_HIDE;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((4+ *messageLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ maximum = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 3: {bp += 4;
+ style = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxProgressDialog * Result = new EwxProgressDialog(title,message,maximum,parent,style);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxProgressDialog");
+ break;
+}
+case wxProgressDialog_Resume: { // wxProgressDialog::Resume
+ wxProgressDialog *This = (wxProgressDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Resume();
+ break;
+}
+case wxProgressDialog_Update_2: { // wxProgressDialog::Update
+ wxString newmsg= wxEmptyString;
+ wxProgressDialog *This = (wxProgressDialog *) getPtr(bp,memenv); bp += 4;
+ int * value = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * newmsgLen = (int *) bp; bp += 4;
+ newmsg = wxString(bp, wxConvUTF8);
+ bp += *newmsgLen+((8-((0+ *newmsgLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Update((int) *value,newmsg);
+ rt.addBool(Result);
+ break;
+}
+case wxProgressDialog_Update_0: { // wxProgressDialog::Update
+ wxProgressDialog *This = (wxProgressDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Update();
+ break;
+}
+case wxMessageDialog_new: { // wxMessageDialog::wxMessageDialog
+ wxString caption= wxMessageBoxCaptionStr;
+ long style=wxOK|wxCENTRE;
+ wxPoint pos= wxDefaultPosition;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((0+ *captionLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 3: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxMessageDialog * Result = new EwxMessageDialog(parent,message,caption,style,pos);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMessageDialog");
+ break;
+}
+case wxPageSetupDialog_new: { // wxPageSetupDialog::wxPageSetupDialog
+ wxPageSetupDialogData * data=NULL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+data = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxPageSetupDialog * Result = new EwxPageSetupDialog(parent,data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialog");
+ break;
+}
+case wxPageSetupDialog_GetPageSetupData: { // wxPageSetupDialog::GetPageSetupData
+ wxPageSetupDialog *This = (wxPageSetupDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPageSetupDialogData * Result = &This->GetPageSetupData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialogData");
+ break;
+}
+case wxPageSetupDialog_ShowModal: { // wxPageSetupDialog::ShowModal
+ wxPageSetupDialog *This = (wxPageSetupDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ShowModal();
+ rt.addInt(Result);
+ break;
+}
+case wxPageSetupDialogData_new_0: { // wxPageSetupDialogData::wxPageSetupDialogData
+ wxPageSetupDialogData * Result = new EwxPageSetupDialogData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialogData");
+ break;
+}
+case wxPageSetupDialogData_new_1_0: { // wxPageSetupDialogData::wxPageSetupDialogData
+ wxPageSetupDialogData *dialogData = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ wxPageSetupDialogData * Result = new EwxPageSetupDialogData(*dialogData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialogData");
+ break;
+}
+case wxPageSetupDialogData_new_1_1: { // wxPageSetupDialogData::wxPageSetupDialogData
+ wxPrintData * printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPageSetupDialogData * Result = new EwxPageSetupDialogData(*printData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialogData");
+ break;
+}
+case wxPageSetupDialogData_EnableHelp: { // wxPageSetupDialogData::EnableHelp
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableHelp((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_EnableMargins: { // wxPageSetupDialogData::EnableMargins
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableMargins((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_EnableOrientation: { // wxPageSetupDialogData::EnableOrientation
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableOrientation((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_EnablePaper: { // wxPageSetupDialogData::EnablePaper
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnablePaper((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_EnablePrinter: { // wxPageSetupDialogData::EnablePrinter
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnablePrinter((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_GetDefaultMinMargins: { // wxPageSetupDialogData::GetDefaultMinMargins
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetDefaultMinMargins();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetEnableMargins: { // wxPageSetupDialogData::GetEnableMargins
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnableMargins();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetEnableOrientation: { // wxPageSetupDialogData::GetEnableOrientation
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnableOrientation();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetEnablePaper: { // wxPageSetupDialogData::GetEnablePaper
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnablePaper();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetEnablePrinter: { // wxPageSetupDialogData::GetEnablePrinter
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnablePrinter();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetEnableHelp: { // wxPageSetupDialogData::GetEnableHelp
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnableHelp();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetDefaultInfo: { // wxPageSetupDialogData::GetDefaultInfo
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetDefaultInfo();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_GetMarginTopLeft: { // wxPageSetupDialogData::GetMarginTopLeft
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetMarginTopLeft();
+ rt.add(Result);
+ break;
+}
+case wxPageSetupDialogData_GetMarginBottomRight: { // wxPageSetupDialogData::GetMarginBottomRight
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetMarginBottomRight();
+ rt.add(Result);
+ break;
+}
+case wxPageSetupDialogData_GetMinMarginTopLeft: { // wxPageSetupDialogData::GetMinMarginTopLeft
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetMinMarginTopLeft();
+ rt.add(Result);
+ break;
+}
+case wxPageSetupDialogData_GetMinMarginBottomRight: { // wxPageSetupDialogData::GetMinMarginBottomRight
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetMinMarginBottomRight();
+ rt.add(Result);
+ break;
+}
+case wxPageSetupDialogData_GetPaperId: { // wxPageSetupDialogData::GetPaperId
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPaperSize Result = This->GetPaperId();
+ rt.addInt(Result);
+ break;
+}
+case wxPageSetupDialogData_GetPaperSize: { // wxPageSetupDialogData::GetPaperSize
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetPaperSize();
+ rt.add(Result);
+ break;
+}
+case wxPageSetupDialogData_GetPrintData: { // wxPageSetupDialogData::GetPrintData
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxPrintData * Result = &This->GetPrintData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintData");
+ break;
+}
+case wxPageSetupDialogData_IsOk: { // wxPageSetupDialogData::IsOk
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxPageSetupDialogData_SetDefaultInfo: { // wxPageSetupDialogData::SetDefaultInfo
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultInfo((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_SetDefaultMinMargins: { // wxPageSetupDialogData::SetDefaultMinMargins
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDefaultMinMargins((bool) *flag);
+ break;
+}
+case wxPageSetupDialogData_SetMarginTopLeft: { // wxPageSetupDialogData::SetMarginTopLeft
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginTopLeft(pt);
+ break;
+}
+case wxPageSetupDialogData_SetMarginBottomRight: { // wxPageSetupDialogData::SetMarginBottomRight
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginBottomRight(pt);
+ break;
+}
+case wxPageSetupDialogData_SetMinMarginTopLeft: { // wxPageSetupDialogData::SetMinMarginTopLeft
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->SetMinMarginTopLeft(pt);
+ break;
+}
+case wxPageSetupDialogData_SetMinMarginBottomRight: { // wxPageSetupDialogData::SetMinMarginBottomRight
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ This->SetMinMarginBottomRight(pt);
+ break;
+}
+case wxPageSetupDialogData_SetPaperId: { // wxPageSetupDialogData::SetPaperId
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPaperId((wxPaperSize) *id);
+ break;
+}
+case wxPageSetupDialogData_SetPaperSize_1_1: { // wxPageSetupDialogData::SetPaperSize
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * szW = (int *) bp; bp += 4;
+ int * szH = (int *) bp; bp += 4;
+ wxSize sz = wxSize(*szW,*szH);
+ if(!This) throw wxe_badarg(0);
+ This->SetPaperSize(sz);
+ break;
+}
+case wxPageSetupDialogData_SetPaperSize_1_0: { // wxPageSetupDialogData::SetPaperSize
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPaperSize((wxPaperSize) *id);
+ break;
+}
+case wxPageSetupDialogData_SetPrintData: { // wxPageSetupDialogData::SetPrintData
+ wxPageSetupDialogData *This = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ wxPrintData *printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintData(*printData);
+ break;
+}
+case wxPrintDialog_new_2_0: { // wxPrintDialog::wxPrintDialog
+ wxPrintDialogData * data=NULL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+data = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxPrintDialog * Result = new EwxPrintDialog(parent,data);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialog");
+ break;
+}
+case wxPrintDialog_new_2_1: { // wxPrintDialog::wxPrintDialog
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPrintData *data = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPrintDialog * Result = new EwxPrintDialog(parent,data);
+ newPtr((void *) Result, 2, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialog");
+ break;
+}
+case wxPrintDialog_GetPrintDialogData: { // wxPrintDialog::GetPrintDialogData
+ wxPrintDialog *This = (wxPrintDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintDialogData * Result = &This->GetPrintDialogData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialogData");
+ break;
+}
+case wxPrintDialog_GetPrintDC: { // wxPrintDialog::GetPrintDC
+ wxPrintDialog *This = (wxPrintDialog *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDC * Result = (wxDC*)This->GetPrintDC();
+ rt.addRef(getRef((void *)Result,memenv), "wxDC");
+ break;
+}
+case wxPrintDialogData_new_0: { // wxPrintDialogData::wxPrintDialogData
+ wxPrintDialogData * Result = new EwxPrintDialogData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialogData");
+ break;
+}
+case wxPrintDialogData_new_1_1: { // wxPrintDialogData::wxPrintDialogData
+ wxPrintDialogData * dialogData = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ wxPrintDialogData * Result = new EwxPrintDialogData(*dialogData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialogData");
+ break;
+}
+case wxPrintDialogData_new_1_0: { // wxPrintDialogData::wxPrintDialogData
+ wxPrintData *printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPrintDialogData * Result = new EwxPrintDialogData(*printData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialogData");
+ break;
+}
+case wxPrintDialogData_EnableHelp: { // wxPrintDialogData::EnableHelp
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableHelp((bool) *flag);
+ break;
+}
+case wxPrintDialogData_EnablePageNumbers: { // wxPrintDialogData::EnablePageNumbers
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnablePageNumbers((bool) *flag);
+ break;
+}
+case wxPrintDialogData_EnablePrintToFile: { // wxPrintDialogData::EnablePrintToFile
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnablePrintToFile((bool) *flag);
+ break;
+}
+case wxPrintDialogData_EnableSelection: { // wxPrintDialogData::EnableSelection
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnableSelection((bool) *flag);
+ break;
+}
+case wxPrintDialogData_GetAllPages: { // wxPrintDialogData::GetAllPages
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetAllPages();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintDialogData_GetCollate: { // wxPrintDialogData::GetCollate
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetCollate();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintDialogData_GetFromPage: { // wxPrintDialogData::GetFromPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFromPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintDialogData_GetMaxPage: { // wxPrintDialogData::GetMaxPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaxPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintDialogData_GetMinPage: { // wxPrintDialogData::GetMinPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMinPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintDialogData_GetNoCopies: { // wxPrintDialogData::GetNoCopies
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNoCopies();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintDialogData_GetPrintData: { // wxPrintDialogData::GetPrintData
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintData * Result = &This->GetPrintData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintData");
+ break;
+}
+case wxPrintDialogData_GetPrintToFile: { // wxPrintDialogData::GetPrintToFile
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetPrintToFile();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintDialogData_GetSelection: { // wxPrintDialogData::GetSelection
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSelection();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintDialogData_GetToPage: { // wxPrintDialogData::GetToPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetToPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintDialogData_IsOk: { // wxPrintDialogData::IsOk
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintDialogData_SetCollate: { // wxPrintDialogData::SetCollate
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCollate((bool) *flag);
+ break;
+}
+case wxPrintDialogData_SetFromPage: { // wxPrintDialogData::SetFromPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFromPage((int) *v);
+ break;
+}
+case wxPrintDialogData_SetMaxPage: { // wxPrintDialogData::SetMaxPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMaxPage((int) *v);
+ break;
+}
+case wxPrintDialogData_SetMinPage: { // wxPrintDialogData::SetMinPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinPage((int) *v);
+ break;
+}
+case wxPrintDialogData_SetNoCopies: { // wxPrintDialogData::SetNoCopies
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetNoCopies((int) *v);
+ break;
+}
+case wxPrintDialogData_SetPrintData: { // wxPrintDialogData::SetPrintData
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ wxPrintData *printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintData(*printData);
+ break;
+}
+case wxPrintDialogData_SetPrintToFile: { // wxPrintDialogData::SetPrintToFile
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintToFile((bool) *flag);
+ break;
+}
+case wxPrintDialogData_SetSelection: { // wxPrintDialogData::SetSelection
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((bool) *flag);
+ break;
+}
+case wxPrintDialogData_SetToPage: { // wxPrintDialogData::SetToPage
+ wxPrintDialogData *This = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetToPage((int) *v);
+ break;
+}
+case wxPrintData_new_0: { // wxPrintData::wxPrintData
+ wxPrintData * Result = new EwxPrintData();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintData");
+ break;
+}
+case wxPrintData_new_1: { // wxPrintData::wxPrintData
+ wxPrintData *printData = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPrintData * Result = new EwxPrintData(*printData);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintData");
+ break;
+}
+case wxPrintData_GetCollate: { // wxPrintData::GetCollate
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetCollate();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintData_GetBin: { // wxPrintData::GetBin
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetBin();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_GetColour: { // wxPrintData::GetColour
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetColour();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintData_GetDuplex: { // wxPrintData::GetDuplex
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDuplex();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_GetNoCopies: { // wxPrintData::GetNoCopies
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetNoCopies();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_GetOrientation: { // wxPrintData::GetOrientation
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrientation();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_GetPaperId: { // wxPrintData::GetPaperId
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPaperSize Result = This->GetPaperId();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_GetPrinterName: { // wxPrintData::GetPrinterName
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetPrinterName();
+ rt.add(Result);
+ break;
+}
+case wxPrintData_GetQuality: { // wxPrintData::GetQuality
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintQuality Result = This->GetQuality();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintData_IsOk: { // wxPrintData::IsOk
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintData_SetBin: { // wxPrintData::SetBin
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPrintBin bin = *(wxPrintBin *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetBin((wxPrintBin) bin);
+ break;
+}
+case wxPrintData_SetCollate: { // wxPrintData::SetCollate
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ bool * flag = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCollate((bool) *flag);
+ break;
+}
+case wxPrintData_SetColour: { // wxPrintData::SetColour
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ bool * colour = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetColour((bool) *colour);
+ break;
+}
+case wxPrintData_SetDuplex: { // wxPrintData::SetDuplex
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxDuplexMode duplex = *(wxDuplexMode *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetDuplex((wxDuplexMode) duplex);
+ break;
+}
+case wxPrintData_SetNoCopies: { // wxPrintData::SetNoCopies
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ int * v = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetNoCopies((int) *v);
+ break;
+}
+case wxPrintData_SetOrientation: { // wxPrintData::SetOrientation
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ int * orient = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetOrientation((int) *orient);
+ break;
+}
+case wxPrintData_SetPaperId: { // wxPrintData::SetPaperId
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ int * sizeId = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPaperId((wxPaperSize) *sizeId);
+ break;
+}
+case wxPrintData_SetPrinterName: { // wxPrintData::SetPrinterName
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetPrinterName(name);
+ break;
+}
+case wxPrintData_SetQuality: { // wxPrintData::SetQuality
+ wxPrintData *This = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ int * quality = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetQuality((wxPrintQuality) *quality);
+ break;
+}
+case wxPrintPreview_new_2: { // wxPrintPreview::wxPrintPreview
+ wxPrintout * printoutForPrinting=(wxPrintout *) NULL;
+ wxPrintDialogData * data=(wxPrintDialogData *) NULL;
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+printoutForPrinting = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+data = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxPrintPreview * Result = new EwxPrintPreview(printout,printoutForPrinting,data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintPreview");
+ break;
+}
+case wxPrintPreview_new_3: { // wxPrintPreview::wxPrintPreview
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ wxPrintout *printoutForPrinting = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ wxPrintData *data = (wxPrintData *) getPtr(bp,memenv); bp += 4;
+ wxPrintPreview * Result = new EwxPrintPreview(printout,printoutForPrinting,data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintPreview");
+ break;
+}
+case wxPrintPreview_GetCanvas: { // wxPrintPreview::GetCanvas
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPreviewCanvas * Result = (wxPreviewCanvas*)This->GetCanvas();
+ rt.addRef(getRef((void *)Result,memenv), "wxPreviewCanvas");
+ break;
+}
+case wxPrintPreview_GetCurrentPage: { // wxPrintPreview::GetCurrentPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCurrentPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintPreview_GetFrame: { // wxPrintPreview::GetFrame
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFrame * Result = (wxFrame*)This->GetFrame();
+ rt.addRef(getRef((void *)Result,memenv), "wxFrame");
+ break;
+}
+case wxPrintPreview_GetMaxPage: { // wxPrintPreview::GetMaxPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaxPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintPreview_GetMinPage: { // wxPrintPreview::GetMinPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMinPage();
+ rt.addInt(Result);
+ break;
+}
+case wxPrintPreview_GetPrintout: { // wxPrintPreview::GetPrintout
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintout * Result = (wxPrintout*)This->GetPrintout();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintout");
+ break;
+}
+case wxPrintPreview_GetPrintoutForPrinting: { // wxPrintPreview::GetPrintoutForPrinting
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintout * Result = (wxPrintout*)This->GetPrintoutForPrinting();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintout");
+ break;
+}
+case wxPrintPreview_IsOk: { // wxPrintPreview::IsOk
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintPreview_PaintPage: { // wxPrintPreview::PaintPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ wxPreviewCanvas *canvas = (wxPreviewCanvas *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PaintPage(canvas,*dc);
+ rt.addBool(Result);
+ break;
+}
+case wxPrintPreview_Print: { // wxPrintPreview::Print
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ bool * interactive = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Print((bool) *interactive);
+ rt.addBool(Result);
+ break;
+}
+case wxPrintPreview_RenderPage: { // wxPrintPreview::RenderPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ int * pageNum = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RenderPage((int) *pageNum);
+ rt.addBool(Result);
+ break;
+}
+case wxPrintPreview_SetCanvas: { // wxPrintPreview::SetCanvas
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ wxPreviewCanvas *canvas = (wxPreviewCanvas *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCanvas(canvas);
+ break;
+}
+case wxPrintPreview_SetCurrentPage: { // wxPrintPreview::SetCurrentPage
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ int * pageNum = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetCurrentPage((int) *pageNum);
+ rt.addBool(Result);
+ break;
+}
+case wxPrintPreview_SetFrame: { // wxPrintPreview::SetFrame
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ wxFrame *frame = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFrame(frame);
+ break;
+}
+case wxPrintPreview_SetPrintout: { // wxPrintPreview::SetPrintout
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintout(printout);
+ break;
+}
+case wxPrintPreview_SetZoom: { // wxPrintPreview::SetZoom
+ wxPrintPreview *This = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ int * percent = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetZoom((int) *percent);
+ break;
+}
+case wxPreviewFrame_new: { // wxPreviewFrame::wxPreviewFrame
+ wxString title= wxT("Print Preview");
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE;
+ wxPrintPreview *preview = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxPreviewFrame * Result = new EwxPreviewFrame(preview,parent,title,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPreviewFrame");
+ break;
+}
+case wxPreviewFrame_CreateControlBar: { // wxPreviewFrame::CreateControlBar
+ wxPreviewFrame *This = (wxPreviewFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CreateControlBar();
+ break;
+}
+case wxPreviewFrame_CreateCanvas: { // wxPreviewFrame::CreateCanvas
+ wxPreviewFrame *This = (wxPreviewFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CreateCanvas();
+ break;
+}
+case wxPreviewFrame_Initialize: { // wxPreviewFrame::Initialize
+ wxPreviewFrame *This = (wxPreviewFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Initialize();
+ break;
+}
+case wxPreviewFrame_OnCloseWindow: { // wxPreviewFrame::OnCloseWindow
+ wxPreviewFrame *This = (wxPreviewFrame *) getPtr(bp,memenv); bp += 4;
+ wxCloseEvent *event = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->OnCloseWindow(*event);
+ break;
+}
+case wxPreviewControlBar_new: { // wxPreviewControlBar::wxPreviewControlBar
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxTAB_TRAVERSAL;
+ wxPrintPreview *preview = (wxPrintPreview *) getPtr(bp,memenv); bp += 4;
+ int * buttons = (int *) bp; bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxPreviewControlBar * Result = new EwxPreviewControlBar(preview,(long) *buttons,parent,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPreviewControlBar");
+ break;
+}
+case wxPreviewControlBar_CreateButtons: { // wxPreviewControlBar::CreateButtons
+ wxPreviewControlBar *This = (wxPreviewControlBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CreateButtons();
+ break;
+}
+case wxPreviewControlBar_GetPrintPreview: { // wxPreviewControlBar::GetPrintPreview
+ wxPreviewControlBar *This = (wxPreviewControlBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintPreview * Result = (wxPrintPreview*)This->GetPrintPreview();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintPreview");
+ break;
+}
+case wxPreviewControlBar_GetZoomControl: { // wxPreviewControlBar::GetZoomControl
+ wxPreviewControlBar *This = (wxPreviewControlBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetZoomControl();
+ rt.addInt(Result);
+ break;
+}
+case wxPreviewControlBar_SetZoomControl: { // wxPreviewControlBar::SetZoomControl
+ wxPreviewControlBar *This = (wxPreviewControlBar *) getPtr(bp,memenv); bp += 4;
+ int * zoom = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetZoomControl((int) *zoom);
+ break;
+}
+case wxPrinter_new: { // wxPrinter::wxPrinter
+ wxPrintDialogData * data=(wxPrintDialogData *) NULL;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+data = (wxPrintDialogData *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxPrinter * Result = new EwxPrinter(data);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxPrinter");
+ break;
+}
+case wxPrinter_CreateAbortWindow: { // wxPrinter::CreateAbortWindow
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->CreateAbortWindow(parent,printout);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxPrinter_GetAbort: { // wxPrinter::GetAbort
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetAbort();
+ rt.addBool(Result);
+ break;
+}
+case wxPrinter_GetLastError: { // wxPrinter::GetLastError
+ int Result = wxPrinter::GetLastError();
+ rt.addInt(Result);
+ break;
+}
+case wxPrinter_GetPrintDialogData: { // wxPrinter::GetPrintDialogData
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintDialogData * Result = &This->GetPrintDialogData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintDialogData");
+ break;
+}
+case wxPrinter_Print: { // wxPrinter::Print
+ bool prompt=true;
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ prompt = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Print(parent,printout,prompt);
+ rt.addBool(Result);
+ break;
+}
+case wxPrinter_PrintDialog: { // wxPrinter::PrintDialog
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDC * Result = (wxDC*)This->PrintDialog(parent);
+ rt.addRef(getRef((void *)Result,memenv), "wxDC");
+ break;
+}
+case wxPrinter_ReportError: { // wxPrinter::ReportError
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxPrintout *printout = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * messageLen = (int *) bp; bp += 4;
+ wxString message = wxString(bp, wxConvUTF8);
+ bp += *messageLen+((8-((0+ *messageLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->ReportError(parent,printout,message);
+ break;
+}
+case wxPrinter_Setup: { // wxPrinter::Setup
+ wxPrinter *This = (wxPrinter *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Setup(parent);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_new_1: { // wxXmlResource::wxXmlResource
+ int flags=wxXRC_USE_LOCALE;
+ wxString domain= wxEmptyString;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * domainLen = (int *) bp; bp += 4;
+ domain = wxString(bp, wxConvUTF8);
+ bp += *domainLen+((8-((0+ *domainLen) & 7)) & 7);
+ } break;
+ }};
+ wxXmlResource * Result = new EwxXmlResource(flags,domain);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxXmlResource");
+ break;
+}
+case wxXmlResource_new_2: { // wxXmlResource::wxXmlResource
+ int flags=wxXRC_USE_LOCALE;
+ wxString domain= wxEmptyString;
+ int * filemaskLen = (int *) bp; bp += 4;
+ wxString filemask = wxString(bp, wxConvUTF8);
+ bp += *filemaskLen+((8-((4+ *filemaskLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * domainLen = (int *) bp; bp += 4;
+ domain = wxString(bp, wxConvUTF8);
+ bp += *domainLen+((8-((0+ *domainLen) & 7)) & 7);
+ } break;
+ }};
+ wxXmlResource * Result = new EwxXmlResource(filemask,flags,domain);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxXmlResource");
+ break;
+}
+case wxXmlResource_AttachUnknownControl: { // wxXmlResource::AttachUnknownControl
+ wxWindow * parent=NULL;
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ wxWindow *control = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AttachUnknownControl(name,control,parent);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_ClearHandlers: { // wxXmlResource::ClearHandlers
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearHandlers();
+ break;
+}
+case wxXmlResource_CompareVersion: { // wxXmlResource::CompareVersion
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * major = (int *) bp; bp += 4;
+ int * minor = (int *) bp; bp += 4;
+ int * release = (int *) bp; bp += 4;
+ int * revision = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->CompareVersion((int) *major,(int) *minor,(int) *release,(int) *revision);
+ rt.addInt(Result);
+ break;
+}
+case wxXmlResource_Get: { // wxXmlResource::Get
+ wxXmlResource * Result = (wxXmlResource*)wxXmlResource::Get();
+ rt.addRef(getRef((void *)Result,memenv), "wxXmlResource");
+ break;
+}
+case wxXmlResource_GetFlags: { // wxXmlResource::GetFlags
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxXmlResource_GetVersion: { // wxXmlResource::GetVersion
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetVersion();
+ rt.addInt(Result);
+ break;
+}
+case wxXmlResource_GetXRCID: { // wxXmlResource::GetXRCID
+ int value_if_not_found=wxID_NONE;
+ int * str_idLen = (int *) bp; bp += 4;
+ wxString str_id = wxString(bp, wxConvUTF8);
+ bp += *str_idLen+((8-((4+ *str_idLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ value_if_not_found = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ int Result = wxXmlResource::GetXRCID(str_id,value_if_not_found);
+ rt.addInt(Result);
+ break;
+}
+case wxXmlResource_InitAllHandlers: { // wxXmlResource::InitAllHandlers
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->InitAllHandlers();
+ break;
+}
+case wxXmlResource_Load: { // wxXmlResource::Load
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * filemaskLen = (int *) bp; bp += 4;
+ wxString filemask = wxString(bp, wxConvUTF8);
+ bp += *filemaskLen+((8-((0+ *filemaskLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Load(filemask);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_LoadBitmap: { // wxXmlResource::LoadBitmap
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->LoadBitmap(name)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxXmlResource_LoadDialog_2: { // wxXmlResource::LoadDialog
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxDialog * Result = (wxDialog*)This->LoadDialog(parent,name);
+ rt.addRef(getRef((void *)Result,memenv), "wxDialog");
+ break;
+}
+case wxXmlResource_LoadDialog_3: { // wxXmlResource::LoadDialog
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxDialog *dlg = (wxDialog *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadDialog(dlg,parent,name);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_LoadFrame_2: { // wxXmlResource::LoadFrame
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxFrame * Result = (wxFrame*)This->LoadFrame(parent,name);
+ rt.addRef(getRef((void *)Result,memenv), "wxFrame");
+ break;
+}
+case wxXmlResource_LoadFrame_3: { // wxXmlResource::LoadFrame
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxFrame *frame = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFrame(frame,parent,name);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_LoadIcon: { // wxXmlResource::LoadIcon
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxIcon * Result = new wxIcon(This->LoadIcon(name)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxXmlResource_LoadMenu: { // wxXmlResource::LoadMenu
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->LoadMenu(name);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxXmlResource_LoadMenuBar_2: { // wxXmlResource::LoadMenuBar
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxMenuBar * Result = (wxMenuBar*)This->LoadMenuBar(parent,name);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuBar");
+ break;
+}
+case wxXmlResource_LoadMenuBar_1: { // wxXmlResource::LoadMenuBar
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxMenuBar * Result = (wxMenuBar*)This->LoadMenuBar(name);
+ rt.addRef(getRef((void *)Result,memenv), "wxMenuBar");
+ break;
+}
+case wxXmlResource_LoadPanel_2: { // wxXmlResource::LoadPanel
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxPanel * Result = (wxPanel*)This->LoadPanel(parent,name);
+ rt.addRef(getRef((void *)Result,memenv), "wxPanel");
+ break;
+}
+case wxXmlResource_LoadPanel_3: { // wxXmlResource::LoadPanel
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxPanel *panel = (wxPanel *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadPanel(panel,parent,name);
+ rt.addBool(Result);
+ break;
+}
+case wxXmlResource_LoadToolBar: { // wxXmlResource::LoadToolBar
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((4+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxToolBar * Result = (wxToolBar*)This->LoadToolBar(parent,name);
+ rt.addRef(getRef((void *)Result,memenv), "wxToolBar");
+ break;
+}
+case wxXmlResource_Set: { // wxXmlResource::Set
+ wxXmlResource *res = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ wxXmlResource * Result = (wxXmlResource*)wxXmlResource::Set(res);
+ rt.addRef(getRef((void *)Result,memenv), "wxXmlResource");
+ break;
+}
+case wxXmlResource_SetFlags: { // wxXmlResource::SetFlags
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlags((int) *flags);
+ break;
+}
+case wxXmlResource_Unload: { // wxXmlResource::Unload
+ wxXmlResource *This = (wxXmlResource *) getPtr(bp,memenv); bp += 4;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((0+ *filenameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Unload(filename);
+ rt.addBool(Result);
+ break;
+}
+
+// XRCTRL macro implemented in erlang funcid wxXmlResource_xrcctrl
+case wxHtmlEasyPrinting_new: { // wxHtmlEasyPrinting::wxHtmlEasyPrinting
+ wxString name= wxT("Printing");
+ wxWindow * parentWindow=NULL;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+parentWindow = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxHtmlEasyPrinting * Result = new EwxHtmlEasyPrinting(name,parentWindow);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxHtmlEasyPrinting");
+ break;
+}
+case wxHtmlEasyPrinting_GetPrintData: { // wxHtmlEasyPrinting::GetPrintData
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPrintData * Result = (wxPrintData*)This->GetPrintData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintData");
+ break;
+}
+case wxHtmlEasyPrinting_GetPageSetupData: { // wxHtmlEasyPrinting::GetPageSetupData
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPageSetupDialogData * Result = (wxPageSetupDialogData*)This->GetPageSetupData();
+ rt.addRef(getRef((void *)Result,memenv), "wxPageSetupDialogData");
+ break;
+}
+case wxHtmlEasyPrinting_PreviewFile: { // wxHtmlEasyPrinting::PreviewFile
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * htmlfileLen = (int *) bp; bp += 4;
+ wxString htmlfile = wxString(bp, wxConvUTF8);
+ bp += *htmlfileLen+((8-((0+ *htmlfileLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PreviewFile(htmlfile);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlEasyPrinting_PreviewText: { // wxHtmlEasyPrinting::PreviewText
+ wxString basepath= wxEmptyString;
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * htmltextLen = (int *) bp; bp += 4;
+ wxString htmltext = wxString(bp, wxConvUTF8);
+ bp += *htmltextLen+((8-((0+ *htmltextLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * basepathLen = (int *) bp; bp += 4;
+ basepath = wxString(bp, wxConvUTF8);
+ bp += *basepathLen+((8-((0+ *basepathLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PreviewText(htmltext,basepath);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlEasyPrinting_PrintFile: { // wxHtmlEasyPrinting::PrintFile
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * htmlfileLen = (int *) bp; bp += 4;
+ wxString htmlfile = wxString(bp, wxConvUTF8);
+ bp += *htmlfileLen+((8-((0+ *htmlfileLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PrintFile(htmlfile);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlEasyPrinting_PrintText: { // wxHtmlEasyPrinting::PrintText
+ wxString basepath= wxEmptyString;
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * htmltextLen = (int *) bp; bp += 4;
+ wxString htmltext = wxString(bp, wxConvUTF8);
+ bp += *htmltextLen+((8-((0+ *htmltextLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * basepathLen = (int *) bp; bp += 4;
+ basepath = wxString(bp, wxConvUTF8);
+ bp += *basepathLen+((8-((0+ *basepathLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->PrintText(htmltext,basepath);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlEasyPrinting_PageSetup: { // wxHtmlEasyPrinting::PageSetup
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageSetup();
+ break;
+}
+case wxHtmlEasyPrinting_SetFonts: { // wxHtmlEasyPrinting::SetFonts
+ int * sizesLen = 0;
+ int * sizes = (int *) NULL;
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * normal_faceLen = (int *) bp; bp += 4;
+ wxString normal_face = wxString(bp, wxConvUTF8);
+ bp += *normal_faceLen+((8-((0+ *normal_faceLen) & 7)) & 7);
+ int * fixed_faceLen = (int *) bp; bp += 4;
+ wxString fixed_face = wxString(bp, wxConvUTF8);
+ bp += *fixed_faceLen+((8-((4+ *fixed_faceLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sizesLen = (int *) bp; bp += 4;
+ sizes = (int *) bp; bp += *sizesLen*4+((0+ *sizesLen)%2 )*4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetFonts(normal_face,fixed_face,sizes);
+ break;
+}
+case wxHtmlEasyPrinting_SetHeader: { // wxHtmlEasyPrinting::SetHeader
+ int pg=wxPAGE_ALL;
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * headerLen = (int *) bp; bp += 4;
+ wxString header = wxString(bp, wxConvUTF8);
+ bp += *headerLen+((8-((0+ *headerLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pg = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetHeader(header,pg);
+ break;
+}
+case wxHtmlEasyPrinting_SetFooter: { // wxHtmlEasyPrinting::SetFooter
+ int pg=wxPAGE_ALL;
+ wxHtmlEasyPrinting *This = (wxHtmlEasyPrinting *) getPtr(bp,memenv); bp += 4;
+ int * footerLen = (int *) bp; bp += 4;
+ wxString footer = wxString(bp, wxConvUTF8);
+ bp += *footerLen+((8-((0+ *footerLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ pg = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetFooter(footer,pg);
+ break;
+}
+case wxGLCanvas_new_2: { // wxGLCanvas::wxGLCanvas
+ wxWindowID id=-1;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxString name= wxGLCanvasName;
+ int * attribListLen = 0;
+ int * attribList = (int *) NULL;
+ const wxPalette * palette= &wxNullPalette;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ } break;
+ case 6: {bp += 4;
+ attribListLen = (int *) bp; bp += 4;
+ attribList = (int *) bp; bp += *attribListLen*4+((0+ *attribListLen)%2 )*4;
+ } break;
+ case 7: {bp += 4;
+palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxGLCanvas * Result = new EwxGLCanvas(parent,id,pos,size,style,name,attribList,*palette);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGLCanvas");
+ break;
+}
+case wxGLCanvas_new_3_1: { // wxGLCanvas::wxGLCanvas
+ wxWindowID id=-1;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxString name= wxGLCanvasName;
+ int * attribListLen = 0;
+ int * attribList = (int *) NULL;
+ const wxPalette * palette= &wxNullPalette;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxGLContext * shared = (wxGLContext *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ } break;
+ case 6: {bp += 4;
+ attribListLen = (int *) bp; bp += 4;
+ attribList = (int *) bp; bp += *attribListLen*4+((0+ *attribListLen)%2 )*4;
+ } break;
+ case 7: {bp += 4;
+palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxGLCanvas * Result = new EwxGLCanvas(parent,shared,id,pos,size,style,name,attribList,*palette);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGLCanvas");
+ break;
+}
+case wxGLCanvas_new_3_0: { // wxGLCanvas::wxGLCanvas
+ wxWindowID id=-1;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxString name= wxGLCanvasName;
+ int * attribListLen = 0;
+ int * attribList = (int *) NULL;
+ const wxPalette * palette= &wxNullPalette;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxGLCanvas *shared = (wxGLCanvas *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ case 5: {bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ } break;
+ case 6: {bp += 4;
+ attribListLen = (int *) bp; bp += 4;
+ attribList = (int *) bp; bp += *attribListLen*4+((0+ *attribListLen)%2 )*4;
+ } break;
+ case 7: {bp += 4;
+palette = (wxPalette *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxGLCanvas * Result = new EwxGLCanvas(parent,shared,id,pos,size,style,name,attribList,*palette);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxGLCanvas");
+ break;
+}
+case wxGLCanvas_GetContext: { // wxGLCanvas::GetContext
+ wxGLCanvas *This = (wxGLCanvas *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxGLContext * Result = (wxGLContext*)This->GetContext();
+ rt.addRef(getRef((void *)Result,memenv), "wxGLContext");
+ break;
+}
+case wxGLCanvas_SetCurrent: { // wxGLCanvas::SetCurrent
+ wxGLCanvas *This = (wxGLCanvas *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCurrent();
+ if(This->GetContext()) setActiveGL(Ecmd.caller,This);
+ break;
+}
+case wxGLCanvas_SwapBuffers: { // wxGLCanvas::SwapBuffers
+ wxGLCanvas *This = (wxGLCanvas *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SwapBuffers();
+ break;
+}
+#if wxUSE_AUI
+case wxAuiManager_new: { // wxAuiManager::wxAuiManager
+ wxWindow * managed_wnd=NULL;
+ int flags=wxAUI_MGR_DEFAULT;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+managed_wnd = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ case 2: {bp += 4;
+ flags = (int)*(unsigned int *) bp; bp += 4;
+ } break;
+ }};
+ wxAuiManager * Result = new EwxAuiManager(managed_wnd,flags);
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiManager");
+ break;
+}
+case wxAuiManager_AddPane_2_1: { // wxAuiManager::AddPane
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *pane_info = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPane(window,*pane_info);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_AddPane_3: { // wxAuiManager::AddPane
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *pane_info = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * drop_posX = (int *) bp; bp += 4;
+ int * drop_posY = (int *) bp; bp += 4;
+ wxPoint drop_pos = wxPoint(*drop_posX,*drop_posY);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPane(window,*pane_info,drop_pos);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_AddPane_2_0: { // wxAuiManager::AddPane
+ int direction=wxLEFT;
+ wxString caption= wxEmptyString;
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ direction = (int)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((0+ *captionLen) & 7)) & 7);
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPane(window,direction,caption);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_DetachPane: { // wxAuiManager::DetachPane
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DetachPane(window);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_GetAllPanes: { // wxAuiManager::GetAllPanes
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfoArray * Result = &This->GetAllPanes();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfoArray");
+ break;
+}
+case wxAuiManager_GetArtProvider: { // wxAuiManager::GetArtProvider
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiDockArt * Result = (wxAuiDockArt*)This->GetArtProvider();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiDockArt");
+ break;
+}
+case wxAuiManager_GetDockSizeConstraint: { // wxAuiManager::GetDockSizeConstraint
+ double width_pct;
+ double height_pct;
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetDockSizeConstraint(&width_pct,&height_pct);
+ rt.addFloat(width_pct);
+ rt.addFloat(height_pct);
+ rt.addTupleCount(2);
+ break;
+}
+case wxAuiManager_GetFlags: { // wxAuiManager::GetFlags
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFlags();
+ rt.addUint(Result);
+ break;
+}
+case wxAuiManager_GetManagedWindow: { // wxAuiManager::GetManagedWindow
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetManagedWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxAuiManager_GetManager: { // wxAuiManager::GetManager
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxAuiManager * Result = (wxAuiManager*)wxAuiManager::GetManager(window);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiManager");
+ break;
+}
+case wxAuiManager_GetPane_1_1: { // wxAuiManager::GetPane
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->GetPane(window);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiManager_GetPane_1_0: { // wxAuiManager::GetPane
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ int * nameLen = (int *) bp; bp += 4;
+ wxString name = wxString(bp, wxConvUTF8);
+ bp += *nameLen+((8-((0+ *nameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->GetPane(name);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiManager_HideHint: { // wxAuiManager::HideHint
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HideHint();
+ break;
+}
+case wxAuiManager_InsertPane: { // wxAuiManager::InsertPane
+ int insert_level=wxAUI_INSERT_PANE;
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *insert_location = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ insert_level = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPane(window,*insert_location,insert_level);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_LoadPaneInfo: { // wxAuiManager::LoadPaneInfo
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ int * pane_partLen = (int *) bp; bp += 4;
+ wxString pane_part = wxString(bp, wxConvUTF8);
+ bp += *pane_partLen+((8-((0+ *pane_partLen) & 7)) & 7);
+ wxAuiPaneInfo *pane = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LoadPaneInfo(pane_part,*pane);
+ break;
+}
+case wxAuiManager_LoadPerspective: { // wxAuiManager::LoadPerspective
+ bool update=true;
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ int * perspectiveLen = (int *) bp; bp += 4;
+ wxString perspective = wxString(bp, wxConvUTF8);
+ bp += *perspectiveLen+((8-((0+ *perspectiveLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ update = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadPerspective(perspective,update);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManager_SavePaneInfo: { // wxAuiManager::SavePaneInfo
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *pane = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->SavePaneInfo(*pane);
+ rt.add(Result);
+ break;
+}
+case wxAuiManager_SavePerspective: { // wxAuiManager::SavePerspective
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->SavePerspective();
+ rt.add(Result);
+ break;
+}
+case wxAuiManager_SetArtProvider: { // wxAuiManager::SetArtProvider
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxAuiDockArt *art_provider = (wxAuiDockArt *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetArtProvider(art_provider);
+ break;
+}
+case wxAuiManager_SetDockSizeConstraint: { // wxAuiManager::SetDockSizeConstraint
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ double * width_pct = (double *) bp; bp += 8;
+ double * height_pct = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->SetDockSizeConstraint((double) *width_pct,(double) *height_pct);
+ break;
+}
+case wxAuiManager_SetFlags: { // wxAuiManager::SetFlags
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ unsigned int * flags = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFlags((int) *flags);
+ break;
+}
+case wxAuiManager_SetManagedWindow: { // wxAuiManager::SetManagedWindow
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ wxWindow *managed_wnd = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetManagedWindow(managed_wnd);
+ break;
+}
+case wxAuiManager_ShowHint: { // wxAuiManager::ShowHint
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ wxRect rect = wxRect(*rectX,*rectY,*rectW,*rectH);
+ if(!This) throw wxe_badarg(0);
+ This->ShowHint(rect);
+ break;
+}
+case wxAuiManager_UnInit: { // wxAuiManager::UnInit
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UnInit();
+ break;
+}
+case wxAuiManager_Update: { // wxAuiManager::Update
+ wxAuiManager *This = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Update();
+ break;
+}
+#endif // wxUSE_AUI
+#if wxUSE_AUI
+case wxAuiPaneInfo_new_0: { // wxAuiPaneInfo::wxAuiPaneInfo
+ wxAuiPaneInfo * Result = new wxAuiPaneInfo();
+ newPtr((void *) Result, 154, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_new_1: { // wxAuiPaneInfo::wxAuiPaneInfo
+ wxAuiPaneInfo *c = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo * Result = new wxAuiPaneInfo(*c);
+ newPtr((void *) Result, 154, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_destruct: { // wxAuiPaneInfo::~wxAuiPaneInfo
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxAuiPaneInfo_BestSize_1: { // wxAuiPaneInfo::BestSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->BestSize(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_BestSize_2: { // wxAuiPaneInfo::BestSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->BestSize((int) *x,(int) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Bottom: { // wxAuiPaneInfo::Bottom
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Bottom();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_BottomDockable: { // wxAuiPaneInfo::BottomDockable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->BottomDockable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Caption: { // wxAuiPaneInfo::Caption
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * cLen = (int *) bp; bp += 4;
+ wxString c = wxString(bp, wxConvUTF8);
+ bp += *cLen+((8-((0+ *cLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Caption(c);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_CaptionVisible: { // wxAuiPaneInfo::CaptionVisible
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->CaptionVisible(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Centre: { // wxAuiPaneInfo::Centre
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Centre();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_CentrePane: { // wxAuiPaneInfo::CentrePane
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->CentrePane();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_CloseButton: { // wxAuiPaneInfo::CloseButton
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->CloseButton(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_DefaultPane: { // wxAuiPaneInfo::DefaultPane
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->DefaultPane();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_DestroyOnClose: { // wxAuiPaneInfo::DestroyOnClose
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->DestroyOnClose(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Direction: { // wxAuiPaneInfo::Direction
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * direction = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Direction((int) *direction);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Dock: { // wxAuiPaneInfo::Dock
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Dock();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Dockable: { // wxAuiPaneInfo::Dockable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Dockable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Fixed: { // wxAuiPaneInfo::Fixed
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Fixed();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Float: { // wxAuiPaneInfo::Float
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Float();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Floatable: { // wxAuiPaneInfo::Floatable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Floatable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_FloatingPosition_1: { // wxAuiPaneInfo::FloatingPosition
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->FloatingPosition(pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_FloatingPosition_2: { // wxAuiPaneInfo::FloatingPosition
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->FloatingPosition((int) *x,(int) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_FloatingSize_1: { // wxAuiPaneInfo::FloatingSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->FloatingSize(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_FloatingSize_2: { // wxAuiPaneInfo::FloatingSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->FloatingSize((int) *x,(int) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Gripper: { // wxAuiPaneInfo::Gripper
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Gripper(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_GripperTop: { // wxAuiPaneInfo::GripperTop
+ bool attop=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ attop = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->GripperTop(attop);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_HasBorder: { // wxAuiPaneInfo::HasBorder
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasBorder();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasCaption: { // wxAuiPaneInfo::HasCaption
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasCaption();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasCloseButton: { // wxAuiPaneInfo::HasCloseButton
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasCloseButton();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasFlag: { // wxAuiPaneInfo::HasFlag
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ unsigned int * flag = (unsigned int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasFlag((int) *flag);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasGripper: { // wxAuiPaneInfo::HasGripper
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasGripper();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasGripperTop: { // wxAuiPaneInfo::HasGripperTop
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasGripperTop();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasMaximizeButton: { // wxAuiPaneInfo::HasMaximizeButton
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasMaximizeButton();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasMinimizeButton: { // wxAuiPaneInfo::HasMinimizeButton
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasMinimizeButton();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_HasPinButton: { // wxAuiPaneInfo::HasPinButton
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasPinButton();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_Hide: { // wxAuiPaneInfo::Hide
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Hide();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_IsBottomDockable: { // wxAuiPaneInfo::IsBottomDockable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsBottomDockable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsDocked: { // wxAuiPaneInfo::IsDocked
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsDocked();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsFixed: { // wxAuiPaneInfo::IsFixed
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFixed();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsFloatable: { // wxAuiPaneInfo::IsFloatable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFloatable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsFloating: { // wxAuiPaneInfo::IsFloating
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFloating();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsLeftDockable: { // wxAuiPaneInfo::IsLeftDockable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsLeftDockable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsMovable: { // wxAuiPaneInfo::IsMovable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsMovable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsOk: { // wxAuiPaneInfo::IsOk
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOk();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsResizable: { // wxAuiPaneInfo::IsResizable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsResizable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsRightDockable: { // wxAuiPaneInfo::IsRightDockable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsRightDockable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsShown: { // wxAuiPaneInfo::IsShown
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsShown();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsToolbar: { // wxAuiPaneInfo::IsToolbar
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsToolbar();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_IsTopDockable: { // wxAuiPaneInfo::IsTopDockable
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsTopDockable();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiPaneInfo_Layer: { // wxAuiPaneInfo::Layer
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * layer = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Layer((int) *layer);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Left: { // wxAuiPaneInfo::Left
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Left();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_LeftDockable: { // wxAuiPaneInfo::LeftDockable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->LeftDockable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MaxSize_1: { // wxAuiPaneInfo::MaxSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MaxSize(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MaxSize_2: { // wxAuiPaneInfo::MaxSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MaxSize((int) *x,(int) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MaximizeButton: { // wxAuiPaneInfo::MaximizeButton
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MaximizeButton(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MinSize_1: { // wxAuiPaneInfo::MinSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MinSize(size);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MinSize_2: { // wxAuiPaneInfo::MinSize
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MinSize((int) *x,(int) *y);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_MinimizeButton: { // wxAuiPaneInfo::MinimizeButton
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->MinimizeButton(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Movable: { // wxAuiPaneInfo::Movable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Movable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Name: { // wxAuiPaneInfo::Name
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * nLen = (int *) bp; bp += 4;
+ wxString n = wxString(bp, wxConvUTF8);
+ bp += *nLen+((8-((0+ *nLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Name(n);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_PaneBorder: { // wxAuiPaneInfo::PaneBorder
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->PaneBorder(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_PinButton: { // wxAuiPaneInfo::PinButton
+ bool visible=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ visible = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->PinButton(visible);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Position: { // wxAuiPaneInfo::Position
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Position((int) *pos);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Resizable: { // wxAuiPaneInfo::Resizable
+ bool resizable=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ resizable = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Resizable(resizable);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Right: { // wxAuiPaneInfo::Right
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Right();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_RightDockable: { // wxAuiPaneInfo::RightDockable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->RightDockable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Row: { // wxAuiPaneInfo::Row
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ int * row = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Row((int) *row);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_SafeSet: { // wxAuiPaneInfo::SafeSet
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *source = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SafeSet(*source);
+ break;
+}
+case wxAuiPaneInfo_SetFlag: { // wxAuiPaneInfo::SetFlag
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ unsigned int * flag = (unsigned int *) bp; bp += 4;
+ bool * option_state = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->SetFlag((int) *flag,(bool) *option_state);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Show: { // wxAuiPaneInfo::Show
+ bool show=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ show = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Show(show);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_ToolbarPane: { // wxAuiPaneInfo::ToolbarPane
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->ToolbarPane();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Top: { // wxAuiPaneInfo::Top
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Top();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_TopDockable: { // wxAuiPaneInfo::TopDockable
+ bool b=true;
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ b = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->TopDockable(b);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiPaneInfo_Window: { // wxAuiPaneInfo::Window
+ wxAuiPaneInfo *This = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ wxWindow *w = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = &This->Window(w);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+#endif // wxUSE_AUI
+#if wxUSE_AUI
+case wxAuiNotebook_new_0: { // wxAuiNotebook::wxAuiNotebook
+ wxAuiNotebook * Result = new EwxAuiNotebook();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiNotebook");
+ break;
+}
+case wxAuiNotebook_new_2: { // wxAuiNotebook::wxAuiNotebook
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxAUI_NB_DEFAULT_STYLE;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxAuiNotebook * Result = new EwxAuiNotebook(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiNotebook");
+ break;
+}
+case wxAuiNotebook_AddPage: { // wxAuiNotebook::AddPage
+ bool select=false;
+ const wxBitmap * bitmap= &wxNullBitmap;
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ wxString caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((4+ *captionLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ select = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddPage(page,caption,select,*bitmap);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_Create: { // wxAuiNotebook::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_DeletePage: { // wxAuiNotebook::DeletePage
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DeletePage((size_t) *page);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_GetArtProvider: { // wxAuiNotebook::GetArtProvider
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiTabArt * Result = (wxAuiTabArt*)This->GetArtProvider();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiTabArt");
+ break;
+}
+case wxAuiNotebook_GetPage: { // wxAuiNotebook::GetPage
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page_idx = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetPage((size_t) *page_idx);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxAuiNotebook_GetPageBitmap: { // wxAuiNotebook::GetPageBitmap
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page_idx = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->GetPageBitmap((size_t) *page_idx)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxAuiNotebook_GetPageCount: { // wxAuiNotebook::GetPageCount
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetPageCount();
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebook_GetPageIndex: { // wxAuiNotebook::GetPageIndex
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ wxWindow *page_wnd = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPageIndex(page_wnd);
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebook_GetPageText: { // wxAuiNotebook::GetPageText
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page_idx = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPageText((size_t) *page_idx);
+ rt.add(Result);
+ break;
+}
+case wxAuiNotebook_GetSelection: { // wxAuiNotebook::GetSelection
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebook_InsertPage: { // wxAuiNotebook::InsertPage
+ bool select=false;
+ const wxBitmap * bitmap= &wxNullBitmap;
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page_idx = (int *) bp; bp += 4;
+ wxWindow *page = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * captionLen = (int *) bp; bp += 4;
+ wxString caption = wxString(bp, wxConvUTF8);
+ bp += *captionLen+((8-((0+ *captionLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ select = *(bool *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->InsertPage((size_t) *page_idx,page,caption,select,*bitmap);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_RemovePage: { // wxAuiNotebook::RemovePage
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RemovePage((size_t) *page);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_SetArtProvider: { // wxAuiNotebook::SetArtProvider
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ wxAuiTabArt *art = (wxAuiTabArt *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetArtProvider(art);
+ break;
+}
+case wxAuiNotebook_SetFont: { // wxAuiNotebook::SetFont
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetFont(*font);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_SetPageBitmap: { // wxAuiNotebook::SetPageBitmap
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page = (int *) bp; bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageBitmap((size_t) *page,*bitmap);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_SetPageText: { // wxAuiNotebook::SetPageText
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * page = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPageText((size_t) *page,text);
+ rt.addBool(Result);
+ break;
+}
+case wxAuiNotebook_SetSelection: { // wxAuiNotebook::SetSelection
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * new_page = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->SetSelection((size_t) *new_page);
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebook_SetTabCtrlHeight: { // wxAuiNotebook::SetTabCtrlHeight
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * height = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTabCtrlHeight((int) *height);
+ break;
+}
+case wxAuiNotebook_SetUniformBitmapSize: { // wxAuiNotebook::SetUniformBitmapSize
+ wxAuiNotebook *This = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ wxSize size = wxSize(*sizeW,*sizeH);
+ if(!This) throw wxe_badarg(0);
+ This->SetUniformBitmapSize(size);
+ break;
+}
+#endif // wxUSE_AUI
+#if wxUSE_AUI
+#endif // wxUSE_AUI
+#if wxUSE_AUI
+#endif // wxUSE_AUI
+case wxMDIParentFrame_new_0: { // wxMDIParentFrame::wxMDIParentFrame
+ wxMDIParentFrame * Result = new EwxMDIParentFrame();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIParentFrame");
+ break;
+}
+case wxMDIParentFrame_new_4: { // wxMDIParentFrame::wxMDIParentFrame
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMDIParentFrame * Result = new EwxMDIParentFrame(parent,(wxWindowID) *id,title,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIParentFrame");
+ break;
+}
+case wxMDIParentFrame_ActivateNext: { // wxMDIParentFrame::ActivateNext
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ActivateNext();
+ break;
+}
+case wxMDIParentFrame_ActivatePrevious: { // wxMDIParentFrame::ActivatePrevious
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ActivatePrevious();
+ break;
+}
+case wxMDIParentFrame_ArrangeIcons: { // wxMDIParentFrame::ArrangeIcons
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ArrangeIcons();
+ break;
+}
+case wxMDIParentFrame_Cascade: { // wxMDIParentFrame::Cascade
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Cascade();
+ break;
+}
+case wxMDIParentFrame_Create: { // wxMDIParentFrame::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxMDIParentFrame_GetActiveChild: { // wxMDIParentFrame::GetActiveChild
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMDIChildFrame * Result = (wxMDIChildFrame*)This->GetActiveChild();
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIChildFrame");
+ break;
+}
+case wxMDIParentFrame_GetClientWindow: { // wxMDIParentFrame::GetClientWindow
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMDIClientWindow * Result = (wxMDIClientWindow*)This->GetClientWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIClientWindow");
+ break;
+}
+case wxMDIParentFrame_Tile: { // wxMDIParentFrame::Tile
+ wxOrientation orient=wxHORIZONTAL;
+ wxMDIParentFrame *This = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+orient = *(wxOrientation *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Tile((wxOrientation) orient);
+ break;
+}
+case wxMDIChildFrame_new_0: { // wxMDIChildFrame::wxMDIChildFrame
+ wxMDIChildFrame * Result = new EwxMDIChildFrame();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIChildFrame");
+ break;
+}
+case wxMDIChildFrame_new_4: { // wxMDIChildFrame::wxMDIChildFrame
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE;
+ wxMDIParentFrame *parent = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMDIChildFrame * Result = new EwxMDIChildFrame(parent,(wxWindowID) *id,title,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIChildFrame");
+ break;
+}
+case wxMDIChildFrame_Activate: { // wxMDIChildFrame::Activate
+ wxMDIChildFrame *This = (wxMDIChildFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Activate();
+ break;
+}
+case wxMDIChildFrame_Create: { // wxMDIChildFrame::Create
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxDEFAULT_FRAME_STYLE;
+ wxMDIChildFrame *This = (wxMDIChildFrame *) getPtr(bp,memenv); bp += 4;
+ wxMDIParentFrame *parent = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ int * id = (int *) bp; bp += 4;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((0+ *titleLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,(wxWindowID) *id,title,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxMDIChildFrame_Maximize: { // wxMDIChildFrame::Maximize
+ bool maximize=true;
+ wxMDIChildFrame *This = (wxMDIChildFrame *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ maximize = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Maximize(maximize);
+ break;
+}
+case wxMDIChildFrame_Restore: { // wxMDIChildFrame::Restore
+ wxMDIChildFrame *This = (wxMDIChildFrame *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Restore();
+ break;
+}
+case wxMDIClientWindow_new_0: { // wxMDIClientWindow::wxMDIClientWindow
+ wxMDIClientWindow * Result = new EwxMDIClientWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIClientWindow");
+ break;
+}
+case wxMDIClientWindow_new_2: { // wxMDIClientWindow::wxMDIClientWindow
+ long style=0;
+ wxMDIParentFrame *parent = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxMDIClientWindow * Result = new EwxMDIClientWindow(parent,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxMDIClientWindow");
+ break;
+}
+case wxMDIClientWindow_CreateClient: { // wxMDIClientWindow::CreateClient
+ long style=wxVSCROLL|wxHSCROLL;
+ wxMDIClientWindow *This = (wxMDIClientWindow *) getPtr(bp,memenv); bp += 4;
+ wxMDIParentFrame *parent = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CreateClient(parent,style);
+ rt.addBool(Result);
+ break;
+}
+case wxLayoutAlgorithm_new: { // wxLayoutAlgorithm::wxLayoutAlgorithm
+ wxLayoutAlgorithm * Result = new EwxLayoutAlgorithm();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxLayoutAlgorithm");
+ break;
+}
+case wxLayoutAlgorithm_LayoutFrame: { // wxLayoutAlgorithm::LayoutFrame
+ wxWindow * mainWindow=(wxWindow *) NULL;
+ wxLayoutAlgorithm *This = (wxLayoutAlgorithm *) getPtr(bp,memenv); bp += 4;
+ wxFrame *frame = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+mainWindow = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LayoutFrame(frame,mainWindow);
+ rt.addBool(Result);
+ break;
+}
+case wxLayoutAlgorithm_LayoutMDIFrame: { // wxLayoutAlgorithm::LayoutMDIFrame
+ wxRect *rect=(wxRect *) NULL; wxRect rectTmp;
+ wxLayoutAlgorithm *This = (wxLayoutAlgorithm *) getPtr(bp,memenv); bp += 4;
+ wxMDIParentFrame *frame = (wxMDIParentFrame *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * rectX = (int *) bp; bp += 4;
+ int * rectY = (int *) bp; bp += 4;
+ int * rectW = (int *) bp; bp += 4;
+ int * rectH = (int *) bp; bp += 4;
+ rectTmp = wxRect(*rectX,*rectY,*rectW,*rectH); rect = & rectTmp;
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LayoutMDIFrame(frame,rect);
+ rt.addBool(Result);
+ break;
+}
+case wxLayoutAlgorithm_LayoutWindow: { // wxLayoutAlgorithm::LayoutWindow
+ wxWindow * mainWindow=(wxWindow *) NULL;
+ wxLayoutAlgorithm *This = (wxLayoutAlgorithm *) getPtr(bp,memenv); bp += 4;
+ wxWindow *frame = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+mainWindow = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LayoutWindow(frame,mainWindow);
+ rt.addBool(Result);
+ break;
+}
+case wxEvent_GetId: { // wxEvent::GetId
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetId();
+ rt.addInt(Result);
+ break;
+}
+case wxEvent_GetSkipped: { // wxEvent::GetSkipped
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSkipped();
+ rt.addBool(Result);
+ break;
+}
+case wxEvent_GetTimestamp: { // wxEvent::GetTimestamp
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetTimestamp();
+ rt.addUint(Result);
+ break;
+}
+case wxEvent_IsCommandEvent: { // wxEvent::IsCommandEvent
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsCommandEvent();
+ rt.addBool(Result);
+ break;
+}
+case wxEvent_ResumePropagation: { // wxEvent::ResumePropagation
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ int * propagationLevel = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ResumePropagation((int) *propagationLevel);
+ break;
+}
+case wxEvent_ShouldPropagate: { // wxEvent::ShouldPropagate
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShouldPropagate();
+ rt.addBool(Result);
+ break;
+}
+case wxEvent_Skip: { // wxEvent::Skip
+ bool skip=true;
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ skip = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Skip(skip);
+ break;
+}
+case wxEvent_StopPropagation: { // wxEvent::StopPropagation
+ wxEvent *This = (wxEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->StopPropagation();
+ rt.addInt(Result);
+ break;
+}
+case wxCommandEvent_getClientData: { // wxCommandEvent::GetClientObject
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxeErlTerm * Result = (wxeErlTerm*)This->GetClientObject();
+ rt.addExt2Term(Result);
+ break;
+}
+case wxCommandEvent_GetExtraLong: { // wxCommandEvent::GetExtraLong
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetExtraLong();
+ rt.addInt(Result);
+ break;
+}
+case wxCommandEvent_GetInt: { // wxCommandEvent::GetInt
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetInt();
+ rt.addInt(Result);
+ break;
+}
+case wxCommandEvent_GetSelection: { // wxCommandEvent::GetSelection
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxCommandEvent_GetString: { // wxCommandEvent::GetString
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetString();
+ rt.add(Result);
+ break;
+}
+case wxCommandEvent_IsChecked: { // wxCommandEvent::IsChecked
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsChecked();
+ rt.addBool(Result);
+ break;
+}
+case wxCommandEvent_IsSelection: { // wxCommandEvent::IsSelection
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSelection();
+ rt.addBool(Result);
+ break;
+}
+case wxCommandEvent_SetInt: { // wxCommandEvent::SetInt
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ int * i = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetInt((int) *i);
+ break;
+}
+case wxCommandEvent_SetString: { // wxCommandEvent::SetString
+ wxCommandEvent *This = (wxCommandEvent *) getPtr(bp,memenv); bp += 4;
+ int * sLen = (int *) bp; bp += 4;
+ wxString s = wxString(bp, wxConvUTF8);
+ bp += *sLen+((8-((0+ *sLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetString(s);
+ break;
+}
+case wxScrollEvent_GetOrientation: { // wxScrollEvent::GetOrientation
+ wxScrollEvent *This = (wxScrollEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrientation();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollEvent_GetPosition: { // wxScrollEvent::GetPosition
+ wxScrollEvent *This = (wxScrollEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollWinEvent_GetOrientation: { // wxScrollWinEvent::GetOrientation
+ wxScrollWinEvent *This = (wxScrollWinEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrientation();
+ rt.addInt(Result);
+ break;
+}
+case wxScrollWinEvent_GetPosition: { // wxScrollWinEvent::GetPosition
+ wxScrollWinEvent *This = (wxScrollWinEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_AltDown: { // wxMouseEvent::AltDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AltDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_Button: { // wxMouseEvent::Button
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ int * but = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Button((int) *but);
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_ButtonDClick: { // wxMouseEvent::ButtonDClick
+ int but=wxMOUSE_BTN_ANY;
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonDClick(but);
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_ButtonDown: { // wxMouseEvent::ButtonDown
+ int but=wxMOUSE_BTN_ANY;
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonDown(but);
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_ButtonUp: { // wxMouseEvent::ButtonUp
+ int but=wxMOUSE_BTN_ANY;
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonUp(but);
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_CmdDown: { // wxMouseEvent::CmdDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CmdDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_ControlDown: { // wxMouseEvent::ControlDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ControlDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_Dragging: { // wxMouseEvent::Dragging
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Dragging();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_Entering: { // wxMouseEvent::Entering
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Entering();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_GetButton: { // wxMouseEvent::GetButton
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetButton();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_GetPosition: { // wxMouseEvent::GetPosition
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxMouseEvent_GetLogicalPosition: { // wxMouseEvent::GetLogicalPosition
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ wxDC *dc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetLogicalPosition(*dc);
+ rt.add(Result);
+ break;
+}
+case wxMouseEvent_GetLinesPerAction: { // wxMouseEvent::GetLinesPerAction
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLinesPerAction();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_GetWheelRotation: { // wxMouseEvent::GetWheelRotation
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWheelRotation();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_GetWheelDelta: { // wxMouseEvent::GetWheelDelta
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWheelDelta();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_GetX: { // wxMouseEvent::GetX
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetX();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_GetY: { // wxMouseEvent::GetY
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetY();
+ rt.addInt(Result);
+ break;
+}
+case wxMouseEvent_IsButton: { // wxMouseEvent::IsButton
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsButton();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_IsPageScroll: { // wxMouseEvent::IsPageScroll
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsPageScroll();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_Leaving: { // wxMouseEvent::Leaving
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Leaving();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_LeftDClick: { // wxMouseEvent::LeftDClick
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LeftDClick();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_LeftDown: { // wxMouseEvent::LeftDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LeftDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_LeftIsDown: { // wxMouseEvent::LeftIsDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LeftIsDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_LeftUp: { // wxMouseEvent::LeftUp
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LeftUp();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_MetaDown: { // wxMouseEvent::MetaDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MetaDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_MiddleDClick: { // wxMouseEvent::MiddleDClick
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MiddleDClick();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_MiddleDown: { // wxMouseEvent::MiddleDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MiddleDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_MiddleIsDown: { // wxMouseEvent::MiddleIsDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MiddleIsDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_MiddleUp: { // wxMouseEvent::MiddleUp
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MiddleUp();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_Moving: { // wxMouseEvent::Moving
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Moving();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_RightDClick: { // wxMouseEvent::RightDClick
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RightDClick();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_RightDown: { // wxMouseEvent::RightDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RightDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_RightIsDown: { // wxMouseEvent::RightIsDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RightIsDown();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_RightUp: { // wxMouseEvent::RightUp
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->RightUp();
+ rt.addBool(Result);
+ break;
+}
+case wxMouseEvent_ShiftDown: { // wxMouseEvent::ShiftDown
+ wxMouseEvent *This = (wxMouseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShiftDown();
+ rt.addBool(Result);
+ break;
+}
+case wxSetCursorEvent_GetCursor: { // wxSetCursorEvent::GetCursor
+ wxSetCursorEvent *This = (wxSetCursorEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxCursor * Result = &This->GetCursor();
+ rt.addRef(getRef((void *)Result,memenv), "wxCursor");
+ break;
+}
+case wxSetCursorEvent_GetX: { // wxSetCursorEvent::GetX
+ wxSetCursorEvent *This = (wxSetCursorEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetX();
+ rt.addInt(Result);
+ break;
+}
+case wxSetCursorEvent_GetY: { // wxSetCursorEvent::GetY
+ wxSetCursorEvent *This = (wxSetCursorEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetY();
+ rt.addInt(Result);
+ break;
+}
+case wxSetCursorEvent_HasCursor: { // wxSetCursorEvent::HasCursor
+ wxSetCursorEvent *This = (wxSetCursorEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasCursor();
+ rt.addBool(Result);
+ break;
+}
+case wxSetCursorEvent_SetCursor: { // wxSetCursorEvent::SetCursor
+ wxSetCursorEvent *This = (wxSetCursorEvent *) getPtr(bp,memenv); bp += 4;
+ wxCursor *cursor = (wxCursor *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCursor(*cursor);
+ break;
+}
+case wxKeyEvent_AltDown: { // wxKeyEvent::AltDown
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AltDown();
+ rt.addBool(Result);
+ break;
+}
+case wxKeyEvent_CmdDown: { // wxKeyEvent::CmdDown
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CmdDown();
+ rt.addBool(Result);
+ break;
+}
+case wxKeyEvent_ControlDown: { // wxKeyEvent::ControlDown
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ControlDown();
+ rt.addBool(Result);
+ break;
+}
+case wxKeyEvent_GetKeyCode: { // wxKeyEvent::GetKeyCode
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKeyCode();
+ rt.addInt(Result);
+ break;
+}
+case wxKeyEvent_GetModifiers: { // wxKeyEvent::GetModifiers
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetModifiers();
+ rt.addInt(Result);
+ break;
+}
+case wxKeyEvent_GetPosition: { // wxKeyEvent::GetPosition
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxKeyEvent_GetRawKeyCode: { // wxKeyEvent::GetRawKeyCode
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRawKeyCode();
+ rt.addUint(Result);
+ break;
+}
+case wxKeyEvent_GetRawKeyFlags: { // wxKeyEvent::GetRawKeyFlags
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRawKeyFlags();
+ rt.addUint(Result);
+ break;
+}
+case wxKeyEvent_GetUnicodeKey: { // wxKeyEvent::GetUnicodeKey
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxChar Result = This->GetUnicodeKey();
+ rt.addInt(Result);
+ break;
+}
+case wxKeyEvent_GetX: { // wxKeyEvent::GetX
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetX();
+ rt.addInt(Result);
+ break;
+}
+case wxKeyEvent_GetY: { // wxKeyEvent::GetY
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxCoord Result = This->GetY();
+ rt.addInt(Result);
+ break;
+}
+case wxKeyEvent_HasModifiers: { // wxKeyEvent::HasModifiers
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HasModifiers();
+ rt.addBool(Result);
+ break;
+}
+case wxKeyEvent_MetaDown: { // wxKeyEvent::MetaDown
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MetaDown();
+ rt.addBool(Result);
+ break;
+}
+case wxKeyEvent_ShiftDown: { // wxKeyEvent::ShiftDown
+ wxKeyEvent *This = (wxKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShiftDown();
+ rt.addBool(Result);
+ break;
+}
+case wxSizeEvent_GetSize: { // wxSizeEvent::GetSize
+ wxSizeEvent *This = (wxSizeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxSize Result = This->GetSize();
+ rt.add(Result);
+ break;
+}
+case wxMoveEvent_GetPosition: { // wxMoveEvent::GetPosition
+ wxMoveEvent *This = (wxMoveEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxEraseEvent_GetDC: { // wxEraseEvent::GetDC
+ wxEraseEvent *This = (wxEraseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDC * Result = (wxDC*)This->GetDC();
+ rt.addRef(getRef((void *)Result,memenv), "wxDC");
+ break;
+}
+case wxFocusEvent_GetWindow: { // wxFocusEvent::GetWindow
+ wxFocusEvent *This = (wxFocusEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxChildFocusEvent_GetWindow: { // wxChildFocusEvent::GetWindow
+ wxChildFocusEvent *This = (wxChildFocusEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxMenuEvent_GetMenu: { // wxMenuEvent::GetMenu
+ wxMenuEvent *This = (wxMenuEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMenu * Result = (wxMenu*)This->GetMenu();
+ rt.addRef(getRef((void *)Result,memenv), "wxMenu");
+ break;
+}
+case wxMenuEvent_GetMenuId: { // wxMenuEvent::GetMenuId
+ wxMenuEvent *This = (wxMenuEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMenuId();
+ rt.addInt(Result);
+ break;
+}
+case wxMenuEvent_IsPopup: { // wxMenuEvent::IsPopup
+ wxMenuEvent *This = (wxMenuEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsPopup();
+ rt.addBool(Result);
+ break;
+}
+case wxCloseEvent_CanVeto: { // wxCloseEvent::CanVeto
+ wxCloseEvent *This = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanVeto();
+ rt.addBool(Result);
+ break;
+}
+case wxCloseEvent_GetLoggingOff: { // wxCloseEvent::GetLoggingOff
+ wxCloseEvent *This = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetLoggingOff();
+ rt.addBool(Result);
+ break;
+}
+case wxCloseEvent_SetCanVeto: { // wxCloseEvent::SetCanVeto
+ wxCloseEvent *This = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ bool * canVeto = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCanVeto((bool) *canVeto);
+ break;
+}
+case wxCloseEvent_SetLoggingOff: { // wxCloseEvent::SetLoggingOff
+ wxCloseEvent *This = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ bool * logOff = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLoggingOff((bool) *logOff);
+ break;
+}
+case wxCloseEvent_Veto: { // wxCloseEvent::Veto
+ bool veto=true;
+ wxCloseEvent *This = (wxCloseEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ veto = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Veto(veto);
+ break;
+}
+case wxShowEvent_SetShow: { // wxShowEvent::SetShow
+ wxShowEvent *This = (wxShowEvent *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetShow((bool) *show);
+ break;
+}
+case wxShowEvent_GetShow: { // wxShowEvent::GetShow
+ wxShowEvent *This = (wxShowEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetShow();
+ rt.addBool(Result);
+ break;
+}
+case wxIconizeEvent_Iconized: { // wxIconizeEvent::Iconized
+ wxIconizeEvent *This = (wxIconizeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Iconized();
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_ButtonDown: { // wxJoystickEvent::ButtonDown
+ int but=wxJOY_BUTTON_ANY;
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonDown(but);
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_ButtonIsDown: { // wxJoystickEvent::ButtonIsDown
+ int but=wxJOY_BUTTON_ANY;
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonIsDown(but);
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_ButtonUp: { // wxJoystickEvent::ButtonUp
+ int but=wxJOY_BUTTON_ANY;
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ but = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ButtonUp(but);
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_GetButtonChange: { // wxJoystickEvent::GetButtonChange
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetButtonChange();
+ rt.addInt(Result);
+ break;
+}
+case wxJoystickEvent_GetButtonState: { // wxJoystickEvent::GetButtonState
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetButtonState();
+ rt.addInt(Result);
+ break;
+}
+case wxJoystickEvent_GetJoystick: { // wxJoystickEvent::GetJoystick
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetJoystick();
+ rt.addInt(Result);
+ break;
+}
+case wxJoystickEvent_GetPosition: { // wxJoystickEvent::GetPosition
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxJoystickEvent_GetZPosition: { // wxJoystickEvent::GetZPosition
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetZPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxJoystickEvent_IsButton: { // wxJoystickEvent::IsButton
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsButton();
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_IsMove: { // wxJoystickEvent::IsMove
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsMove();
+ rt.addBool(Result);
+ break;
+}
+case wxJoystickEvent_IsZMove: { // wxJoystickEvent::IsZMove
+ wxJoystickEvent *This = (wxJoystickEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsZMove();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_CanUpdate: { // wxUpdateUIEvent::CanUpdate
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bool Result = wxUpdateUIEvent::CanUpdate(win);
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_Check: { // wxUpdateUIEvent::Check
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ bool * check = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Check((bool) *check);
+ break;
+}
+case wxUpdateUIEvent_Enable: { // wxUpdateUIEvent::Enable
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ bool * enable = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Enable((bool) *enable);
+ break;
+}
+case wxUpdateUIEvent_Show: { // wxUpdateUIEvent::Show
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Show((bool) *show);
+ break;
+}
+case wxUpdateUIEvent_GetChecked: { // wxUpdateUIEvent::GetChecked
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetChecked();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetEnabled: { // wxUpdateUIEvent::GetEnabled
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetShown: { // wxUpdateUIEvent::GetShown
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetShown();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetSetChecked: { // wxUpdateUIEvent::GetSetChecked
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSetChecked();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetSetEnabled: { // wxUpdateUIEvent::GetSetEnabled
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSetEnabled();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetSetShown: { // wxUpdateUIEvent::GetSetShown
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSetShown();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetSetText: { // wxUpdateUIEvent::GetSetText
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSetText();
+ rt.addBool(Result);
+ break;
+}
+case wxUpdateUIEvent_GetText: { // wxUpdateUIEvent::GetText
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxUpdateUIEvent_GetMode: { // wxUpdateUIEvent::GetMode
+ int Result = wxUpdateUIEvent::GetMode();
+ rt.addInt(Result);
+ break;
+}
+case wxUpdateUIEvent_GetUpdateInterval: { // wxUpdateUIEvent::GetUpdateInterval
+ long Result = wxUpdateUIEvent::GetUpdateInterval();
+ rt.addInt(Result);
+ break;
+}
+case wxUpdateUIEvent_ResetUpdateTime: { // wxUpdateUIEvent::ResetUpdateTime
+ wxUpdateUIEvent::ResetUpdateTime();
+ break;
+}
+case wxUpdateUIEvent_SetMode: { // wxUpdateUIEvent::SetMode
+ wxUpdateUIMode mode = *(wxUpdateUIMode *) bp; bp += 4;;
+ wxUpdateUIEvent::SetMode((wxUpdateUIMode) mode);
+ break;
+}
+case wxUpdateUIEvent_SetText: { // wxUpdateUIEvent::SetText
+ wxUpdateUIEvent *This = (wxUpdateUIEvent *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetText(text);
+ break;
+}
+case wxUpdateUIEvent_SetUpdateInterval: { // wxUpdateUIEvent::SetUpdateInterval
+ int * updateInterval = (int *) bp; bp += 4;
+ wxUpdateUIEvent::SetUpdateInterval((long) *updateInterval);
+ break;
+}
+case wxMouseCaptureChangedEvent_GetCapturedWindow: { // wxMouseCaptureChangedEvent::GetCapturedWindow
+ wxMouseCaptureChangedEvent *This = (wxMouseCaptureChangedEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCapturedWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxPaletteChangedEvent_SetChangedWindow: { // wxPaletteChangedEvent::SetChangedWindow
+ wxPaletteChangedEvent *This = (wxPaletteChangedEvent *) getPtr(bp,memenv); bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetChangedWindow(win);
+ break;
+}
+case wxPaletteChangedEvent_GetChangedWindow: { // wxPaletteChangedEvent::GetChangedWindow
+ wxPaletteChangedEvent *This = (wxPaletteChangedEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetChangedWindow();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxQueryNewPaletteEvent_SetPaletteRealized: { // wxQueryNewPaletteEvent::SetPaletteRealized
+ wxQueryNewPaletteEvent *This = (wxQueryNewPaletteEvent *) getPtr(bp,memenv); bp += 4;
+ bool * realized = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPaletteRealized((bool) *realized);
+ break;
+}
+case wxQueryNewPaletteEvent_GetPaletteRealized: { // wxQueryNewPaletteEvent::GetPaletteRealized
+ wxQueryNewPaletteEvent *This = (wxQueryNewPaletteEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetPaletteRealized();
+ rt.addBool(Result);
+ break;
+}
+case wxNavigationKeyEvent_GetDirection: { // wxNavigationKeyEvent::GetDirection
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetDirection();
+ rt.addBool(Result);
+ break;
+}
+case wxNavigationKeyEvent_SetDirection: { // wxNavigationKeyEvent::SetDirection
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ bool * bForward = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDirection((bool) *bForward);
+ break;
+}
+case wxNavigationKeyEvent_IsWindowChange: { // wxNavigationKeyEvent::IsWindowChange
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsWindowChange();
+ rt.addBool(Result);
+ break;
+}
+case wxNavigationKeyEvent_SetWindowChange: { // wxNavigationKeyEvent::SetWindowChange
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ bool * bIs = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWindowChange((bool) *bIs);
+ break;
+}
+case wxNavigationKeyEvent_IsFromTab: { // wxNavigationKeyEvent::IsFromTab
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsFromTab();
+ rt.addBool(Result);
+ break;
+}
+case wxNavigationKeyEvent_SetFromTab: { // wxNavigationKeyEvent::SetFromTab
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ bool * bIs = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFromTab((bool) *bIs);
+ break;
+}
+case wxNavigationKeyEvent_GetCurrentFocus: { // wxNavigationKeyEvent::GetCurrentFocus
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetCurrentFocus();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxNavigationKeyEvent_SetCurrentFocus: { // wxNavigationKeyEvent::SetCurrentFocus
+ wxNavigationKeyEvent *This = (wxNavigationKeyEvent *) getPtr(bp,memenv); bp += 4;
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCurrentFocus(win);
+ break;
+}
+case wxHelpEvent_GetOrigin: { // wxHelpEvent::GetOrigin
+ wxHelpEvent *This = (wxHelpEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOrigin();
+ rt.addInt(Result);
+ break;
+}
+case wxHelpEvent_GetPosition: { // wxHelpEvent::GetPosition
+ wxHelpEvent *This = (wxHelpEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxPoint * Result = &This->GetPosition();
+ rt.add((*Result));
+ break;
+}
+case wxHelpEvent_SetOrigin: { // wxHelpEvent::SetOrigin
+ wxHelpEvent *This = (wxHelpEvent *) getPtr(bp,memenv); bp += 4;
+ wxHelpEvent::Origin origin = *(wxHelpEvent::Origin *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->SetOrigin((wxHelpEvent::Origin) origin);
+ break;
+}
+case wxHelpEvent_SetPosition: { // wxHelpEvent::SetPosition
+ wxHelpEvent *This = (wxHelpEvent *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ This->SetPosition(pos);
+ break;
+}
+case wxContextMenuEvent_GetPosition: { // wxContextMenuEvent::GetPosition
+ wxContextMenuEvent *This = (wxContextMenuEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxPoint * Result = &This->GetPosition();
+ rt.add((*Result));
+ break;
+}
+case wxContextMenuEvent_SetPosition: { // wxContextMenuEvent::SetPosition
+ wxContextMenuEvent *This = (wxContextMenuEvent *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ This->SetPosition(pos);
+ break;
+}
+case wxIdleEvent_CanSend: { // wxIdleEvent::CanSend
+ wxWindow *win = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bool Result = wxIdleEvent::CanSend(win);
+ rt.addBool(Result);
+ break;
+}
+case wxIdleEvent_GetMode: { // wxIdleEvent::GetMode
+ int Result = wxIdleEvent::GetMode();
+ rt.addInt(Result);
+ break;
+}
+case wxIdleEvent_RequestMore: { // wxIdleEvent::RequestMore
+ bool needMore=true;
+ wxIdleEvent *This = (wxIdleEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ needMore = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->RequestMore(needMore);
+ break;
+}
+case wxIdleEvent_MoreRequested: { // wxIdleEvent::MoreRequested
+ wxIdleEvent *This = (wxIdleEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MoreRequested();
+ rt.addBool(Result);
+ break;
+}
+case wxIdleEvent_SetMode: { // wxIdleEvent::SetMode
+ wxIdleMode mode = *(wxIdleMode *) bp; bp += 4;;
+ wxIdleEvent::SetMode((wxIdleMode) mode);
+ break;
+}
+case wxGridEvent_AltDown: { // wxGridEvent::AltDown
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AltDown();
+ rt.addBool(Result);
+ break;
+}
+case wxGridEvent_ControlDown: { // wxGridEvent::ControlDown
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ControlDown();
+ rt.addBool(Result);
+ break;
+}
+case wxGridEvent_GetCol: { // wxGridEvent::GetCol
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCol();
+ rt.addInt(Result);
+ break;
+}
+case wxGridEvent_GetPosition: { // wxGridEvent::GetPosition
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPosition();
+ rt.add(Result);
+ break;
+}
+case wxGridEvent_GetRow: { // wxGridEvent::GetRow
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetRow();
+ rt.addInt(Result);
+ break;
+}
+case wxGridEvent_MetaDown: { // wxGridEvent::MetaDown
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->MetaDown();
+ rt.addBool(Result);
+ break;
+}
+case wxGridEvent_Selecting: { // wxGridEvent::Selecting
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Selecting();
+ rt.addBool(Result);
+ break;
+}
+case wxGridEvent_ShiftDown: { // wxGridEvent::ShiftDown
+ wxGridEvent *This = (wxGridEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ShiftDown();
+ rt.addBool(Result);
+ break;
+}
+case wxNotifyEvent_Allow: { // wxNotifyEvent::Allow
+ wxNotifyEvent *This = (wxNotifyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Allow();
+ break;
+}
+case wxNotifyEvent_IsAllowed: { // wxNotifyEvent::IsAllowed
+ wxNotifyEvent *This = (wxNotifyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsAllowed();
+ rt.addBool(Result);
+ break;
+}
+case wxNotifyEvent_Veto: { // wxNotifyEvent::Veto
+ wxNotifyEvent *This = (wxNotifyEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Veto();
+ break;
+}
+case wxSashEvent_GetEdge: { // wxSashEvent::GetEdge
+ wxSashEvent *This = (wxSashEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetEdge();
+ rt.addInt(Result);
+ break;
+}
+case wxSashEvent_GetDragRect: { // wxSashEvent::GetDragRect
+ wxSashEvent *This = (wxSashEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetDragRect();
+ rt.add(Result);
+ break;
+}
+case wxSashEvent_GetDragStatus: { // wxSashEvent::GetDragStatus
+ wxSashEvent *This = (wxSashEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDragStatus();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetCacheFrom: { // wxListEvent::GetCacheFrom
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetCacheFrom();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetCacheTo: { // wxListEvent::GetCacheTo
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetCacheTo();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetKeyCode: { // wxListEvent::GetKeyCode
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKeyCode();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetIndex: { // wxListEvent::GetIndex
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetIndex();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetColumn: { // wxListEvent::GetColumn
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumn();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetPoint: { // wxListEvent::GetPoint
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPoint();
+ rt.add(Result);
+ break;
+}
+case wxListEvent_GetLabel: { // wxListEvent::GetLabel
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxListEvent_GetText: { // wxListEvent::GetText
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxListEvent_GetImage: { // wxListEvent::GetImage
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetImage();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetData: { // wxListEvent::GetData
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetData();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetMask: { // wxListEvent::GetMask
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ long Result = This->GetMask();
+ rt.addInt(Result);
+ break;
+}
+case wxListEvent_GetItem: { // wxListEvent::GetItem
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxListItem * Result = &This->GetItem();
+ rt.addRef(getRef((void *)Result,memenv), "wxListItem");
+ break;
+}
+case wxListEvent_IsEditCancelled: { // wxListEvent::IsEditCancelled
+ wxListEvent *This = (wxListEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEditCancelled();
+ rt.addBool(Result);
+ break;
+}
+case wxDateEvent_GetDate: { // wxDateEvent::GetDate
+ wxDateEvent *This = (wxDateEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxDateTime * Result = &This->GetDate();
+ rt.add((*Result));
+ break;
+}
+case wxCalendarEvent_GetWeekDay: { // wxCalendarEvent::GetWeekDay
+ wxCalendarEvent *This = (wxCalendarEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWeekDay();
+ rt.addInt(Result);
+ break;
+}
+case wxFileDirPickerEvent_GetPath: { // wxFileDirPickerEvent::GetPath
+ wxFileDirPickerEvent *This = (wxFileDirPickerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetPath();
+ rt.add(Result);
+ break;
+}
+case wxColourPickerEvent_GetColour: { // wxColourPickerEvent::GetColour
+ wxColourPickerEvent *This = (wxColourPickerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetColour();
+ rt.add(Result);
+ break;
+}
+case wxFontPickerEvent_GetFont: { // wxFontPickerEvent::GetFont
+ wxFontPickerEvent *This = (wxFontPickerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFont * Result = new wxFont(This->GetFont()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxFont");
+ break;
+}
+case wxStyledTextEvent_GetPosition: { // wxStyledTextEvent::GetPosition
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetKey: { // wxStyledTextEvent::GetKey
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKey();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetModifiers: { // wxStyledTextEvent::GetModifiers
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetModifiers();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetModificationType: { // wxStyledTextEvent::GetModificationType
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetModificationType();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetText: { // wxStyledTextEvent::GetText
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextEvent_GetLength: { // wxStyledTextEvent::GetLength
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLength();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetLinesAdded: { // wxStyledTextEvent::GetLinesAdded
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLinesAdded();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetLine: { // wxStyledTextEvent::GetLine
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLine();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetFoldLevelNow: { // wxStyledTextEvent::GetFoldLevelNow
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFoldLevelNow();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetFoldLevelPrev: { // wxStyledTextEvent::GetFoldLevelPrev
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFoldLevelPrev();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetMargin: { // wxStyledTextEvent::GetMargin
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMargin();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetMessage: { // wxStyledTextEvent::GetMessage
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMessage();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetWParam: { // wxStyledTextEvent::GetWParam
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWParam();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetLParam: { // wxStyledTextEvent::GetLParam
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLParam();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetListType: { // wxStyledTextEvent::GetListType
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetListType();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetX: { // wxStyledTextEvent::GetX
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetX();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetY: { // wxStyledTextEvent::GetY
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetY();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetDragText: { // wxStyledTextEvent::GetDragText
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetDragText();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextEvent_GetDragAllowMove: { // wxStyledTextEvent::GetDragAllowMove
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetDragAllowMove();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextEvent_GetDragResult: { // wxStyledTextEvent::GetDragResult
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetDragResult();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextEvent_GetShift: { // wxStyledTextEvent::GetShift
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetShift();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextEvent_GetControl: { // wxStyledTextEvent::GetControl
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetControl();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextEvent_GetAlt: { // wxStyledTextEvent::GetAlt
+ wxStyledTextEvent *This = (wxStyledTextEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetAlt();
+ rt.addBool(Result);
+ break;
+}
+case utils_wxGetKeyState: { // utils::wxGetKeyState
+ wxKeyCode key = *(wxKeyCode *) bp; bp += 4;;
+ bool Result = ::wxGetKeyState((wxKeyCode) key);
+ rt.addBool(Result);
+ break;
+}
+case utils_wxGetMousePosition: { // utils::wxGetMousePosition
+ int x;
+ int y;
+ ::wxGetMousePosition(&x,&y);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(2);
+ break;
+}
+case utils_wxGetMouseState: { // utils::wxGetMouseState
+ wxMouseState Result = ::wxGetMouseState();
+ rt.add(Result);
+ break;
+}
+case utils_wxSetDetectableAutoRepeat: { // utils::wxSetDetectableAutoRepeat
+ bool * flag = (bool *) bp; bp += 4;
+ bool Result = ::wxSetDetectableAutoRepeat((bool) *flag);
+ rt.addBool(Result);
+ break;
+}
+case utils_wxBell: { // utils::wxBell
+ ::wxBell();
+ break;
+}
+case utils_wxFindMenuItemId: { // utils::wxFindMenuItemId
+ wxFrame *frame = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * menuStringLen = (int *) bp; bp += 4;
+ wxString menuString = wxString(bp, wxConvUTF8);
+ bp += *menuStringLen+((8-((0+ *menuStringLen) & 7)) & 7);
+ int * itemStringLen = (int *) bp; bp += 4;
+ wxString itemString = wxString(bp, wxConvUTF8);
+ bp += *itemStringLen+((8-((4+ *itemStringLen) & 7)) & 7);
+ int Result = ::wxFindMenuItemId(frame,menuString,itemString);
+ rt.addInt(Result);
+ break;
+}
+case utils_wxGenericFindWindowAtPoint: { // utils::wxGenericFindWindowAtPoint
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ wxWindow * Result = (wxWindow*)::wxGenericFindWindowAtPoint(pt);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case utils_wxFindWindowAtPoint: { // utils::wxFindWindowAtPoint
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ wxWindow * Result = (wxWindow*)::wxFindWindowAtPoint(pt);
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case utils_wxBeginBusyCursor: { // utils::wxBeginBusyCursor
+ const wxCursor * cursor=wxHOURGLASS_CURSOR;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+cursor = (wxCursor *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ ::wxBeginBusyCursor(cursor);
+ break;
+}
+case utils_wxEndBusyCursor: { // utils::wxEndBusyCursor
+ ::wxEndBusyCursor();
+ break;
+}
+case utils_wxIsBusy: { // utils::wxIsBusy
+ bool Result = ::wxIsBusy();
+ rt.addBool(Result);
+ break;
+}
+case utils_wxShutdown: { // utils::wxShutdown
+ wxShutdownFlags wFlags = *(wxShutdownFlags *) bp; bp += 4;;
+ bool Result = ::wxShutdown((wxShutdownFlags) wFlags);
+ rt.addBool(Result);
+ break;
+}
+case utils_wxShell: { // utils::wxShell
+ wxString command= wxEmptyString;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * commandLen = (int *) bp; bp += 4;
+ command = wxString(bp, wxConvUTF8);
+ bp += *commandLen+((8-((0+ *commandLen) & 7)) & 7);
+ } break;
+ }};
+ bool Result = ::wxShell(command);
+ rt.addBool(Result);
+ break;
+}
+case utils_wxLaunchDefaultBrowser: { // utils::wxLaunchDefaultBrowser
+ int flags=0;
+ int * urlLen = (int *) bp; bp += 4;
+ wxString url = wxString(bp, wxConvUTF8);
+ bp += *urlLen+((8-((4+ *urlLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ bool Result = ::wxLaunchDefaultBrowser(url,flags);
+ rt.addBool(Result);
+ break;
+}
+case utils_wxGetEmailAddress: { // utils::wxGetEmailAddress
+ wxString Result = ::wxGetEmailAddress();
+ rt.add(Result);
+ break;
+}
+case utils_wxGetUserId: { // utils::wxGetUserId
+ wxString Result = ::wxGetUserId();
+ rt.add(Result);
+ break;
+}
+case utils_wxGetHomeDir: { // utils::wxGetHomeDir
+ wxString Result = ::wxGetHomeDir();
+ rt.add(Result);
+ break;
+}
+case utils_wxNewId: { // utils::wxNewId
+ long Result = ::wxNewId();
+ rt.addInt(Result);
+ break;
+}
+case utils_wxRegisterId: { // utils::wxRegisterId
+ int * id = (int *) bp; bp += 4;
+ ::wxRegisterId((long) *id);
+ break;
+}
+case utils_wxGetCurrentId: { // utils::wxGetCurrentId
+ long Result = ::wxGetCurrentId();
+ rt.addInt(Result);
+ break;
+}
+case utils_wxGetOsDescription: { // utils::wxGetOsDescription
+ wxString Result = ::wxGetOsDescription();
+ rt.add(Result);
+ break;
+}
+case utils_wxIsPlatformLittleEndian: { // utils::wxIsPlatformLittleEndian
+ bool Result = ::wxIsPlatformLittleEndian();
+ rt.addBool(Result);
+ break;
+}
+case utils_wxIsPlatform64Bit: { // utils::wxIsPlatform64Bit
+ bool Result = ::wxIsPlatform64Bit();
+ rt.addBool(Result);
+ break;
+}
+
+case wxPrintout_new: { // wxPrintout::wxPrintout taylormade
+ int onPreparePrinting=0,onBeginPrinting=0,onEndPrinting=0,onBeginDocument=0,
+ onEndDocument=0,hasPage=0,getPageInfo=0;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ int onPrintPage=*(int *) bp; bp += 4;
+ while( * (int*) bp) {
+ switch (* (int*) bp) {
+ case 1: {bp += 4; onPreparePrinting = *(int *) bp; bp += 4;} break;
+ case 2: {bp += 4; onBeginPrinting = *(int *) bp; bp += 4;} break;
+ case 3: {bp += 4; onEndPrinting = *(int *) bp; bp += 4;} break;
+ case 4: {bp += 4; onBeginDocument = *(int *) bp; bp += 4;} break;
+ case 5: {bp += 4; onEndDocument = *(int *) bp; bp += 4;} break;
+ case 6: {bp += 4; hasPage = *(int *) bp; bp += 4;} break;
+ case 7: {bp += 4; getPageInfo = *(int *) bp; bp += 4;} break;
+ }
+ }
+ wxEPrintout *Result = new wxEPrintout(title,onPrintPage,
+ onPreparePrinting,
+ onBeginPrinting,onEndPrinting,
+ onBeginDocument,onEndDocument,
+ hasPage,getPageInfo, Ecmd.port);
+
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintout");
+ break;
+}
+case wxPrintout_GetDC: { // wxPrintout::GetDC
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDC * Result = (wxDC*)This->GetDC();
+ rt.addRef(getRef((void *)Result,memenv), "wxDC");
+ break;
+}
+case wxPrintout_GetPageSizeMM: { // wxPrintout::GetPageSizeMM
+ int w;
+ int h;
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetPageSizeMM(&w,&h);
+ rt.addInt(w);
+ rt.addInt(h);
+ rt.addTupleCount(2);
+ break;
+}
+case wxPrintout_GetPageSizePixels: { // wxPrintout::GetPageSizePixels
+ int w;
+ int h;
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetPageSizePixels(&w,&h);
+ rt.addInt(w);
+ rt.addInt(h);
+ rt.addTupleCount(2);
+ break;
+}
+case wxPrintout_GetPaperRectPixels: { // wxPrintout::GetPaperRectPixels
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetPaperRectPixels();
+ rt.add(Result);
+ break;
+}
+case wxPrintout_GetPPIPrinter: { // wxPrintout::GetPPIPrinter
+ int x;
+ int y;
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetPPIPrinter(&x,&y);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxPrintout_GetPPIScreen: { // wxPrintout::GetPPIScreen
+ int x;
+ int y;
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetPPIScreen(&x,&y);
+ rt.addInt(x);
+ rt.addInt(y);
+ rt.addTupleCount(2);
+ break;
+}
+case wxPrintout_GetTitle: { // wxPrintout::GetTitle
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetTitle();
+ rt.add(Result);
+ break;
+}
+case wxPrintout_IsPreview: { // wxPrintout::IsPreview
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsPreview();
+ rt.addBool(Result);
+ break;
+}
+case wxPrintout_FitThisSizeToPaper: { // wxPrintout::FitThisSizeToPaper
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * imageSizeW = (int *) bp; bp += 4;
+ int * imageSizeH = (int *) bp; bp += 4;
+ wxSize imageSize = wxSize(*imageSizeW,*imageSizeH);
+ if(!This) throw wxe_badarg(0);
+ This->FitThisSizeToPaper(imageSize);
+ break;
+}
+case wxPrintout_FitThisSizeToPage: { // wxPrintout::FitThisSizeToPage
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * imageSizeW = (int *) bp; bp += 4;
+ int * imageSizeH = (int *) bp; bp += 4;
+ wxSize imageSize = wxSize(*imageSizeW,*imageSizeH);
+ if(!This) throw wxe_badarg(0);
+ This->FitThisSizeToPage(imageSize);
+ break;
+}
+case wxPrintout_FitThisSizeToPageMargins: { // wxPrintout::FitThisSizeToPageMargins
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * imageSizeW = (int *) bp; bp += 4;
+ int * imageSizeH = (int *) bp; bp += 4;
+ wxSize imageSize = wxSize(*imageSizeW,*imageSizeH);
+ wxPageSetupDialogData *pageSetupData = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->FitThisSizeToPageMargins(imageSize,*pageSetupData);
+ break;
+}
+case wxPrintout_MapScreenSizeToPaper: { // wxPrintout::MapScreenSizeToPaper
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MapScreenSizeToPaper();
+ break;
+}
+case wxPrintout_MapScreenSizeToPage: { // wxPrintout::MapScreenSizeToPage
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MapScreenSizeToPage();
+ break;
+}
+case wxPrintout_MapScreenSizeToPageMargins: { // wxPrintout::MapScreenSizeToPageMargins
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ wxPageSetupDialogData *pageSetupData = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MapScreenSizeToPageMargins(*pageSetupData);
+ break;
+}
+case wxPrintout_MapScreenSizeToDevice: { // wxPrintout::MapScreenSizeToDevice
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MapScreenSizeToDevice();
+ break;
+}
+case wxPrintout_GetLogicalPaperRect: { // wxPrintout::GetLogicalPaperRect
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetLogicalPaperRect();
+ rt.add(Result);
+ break;
+}
+case wxPrintout_GetLogicalPageRect: { // wxPrintout::GetLogicalPageRect
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetLogicalPageRect();
+ rt.add(Result);
+ break;
+}
+case wxPrintout_GetLogicalPageMarginsRect: { // wxPrintout::GetLogicalPageMarginsRect
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ wxPageSetupDialogData *pageSetupData = (wxPageSetupDialogData *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxRect Result = This->GetLogicalPageMarginsRect(*pageSetupData);
+ rt.add(Result);
+ break;
+}
+case wxPrintout_SetLogicalOrigin: { // wxPrintout::SetLogicalOrigin
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLogicalOrigin((wxCoord) *x,(wxCoord) *y);
+ break;
+}
+case wxPrintout_OffsetLogicalOrigin: { // wxPrintout::OffsetLogicalOrigin
+ wxPrintout *This = (wxPrintout *) getPtr(bp,memenv); bp += 4;
+ int * xoff = (int *) bp; bp += 4;
+ int * yoff = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->OffsetLogicalOrigin((wxCoord) *xoff,(wxCoord) *yoff);
+ break;
+}
+case wxStyledTextCtrl_new_2: { // wxStyledTextCtrl::wxStyledTextCtrl
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxStyledTextCtrl * Result = new wxStyledTextCtrl(parent,id,pos,size,style);
+ /* Possible memory leak here, class is missing virt dest */
+ rt.addRef(getRef((void *)Result,memenv), "wxStyledTextCtrl");
+ break;
+}
+case wxStyledTextCtrl_new_0: { // wxStyledTextCtrl::wxStyledTextCtrl
+ wxStyledTextCtrl * Result = new wxStyledTextCtrl();
+ /* Possible memory leak here, class is missing virt dest */
+ rt.addRef(getRef((void *)Result,memenv), "wxStyledTextCtrl");
+ break;
+}
+case wxStyledTextCtrl_Create: { // wxStyledTextCtrl::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AddText: { // wxStyledTextCtrl::AddText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AddText(text);
+ break;
+}
+case wxStyledTextCtrl_AddStyledText: { // wxStyledTextCtrl::AddStyledText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxMemoryBuffer *data = (wxMemoryBuffer *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AddStyledText(*data);
+ break;
+}
+case wxStyledTextCtrl_InsertText: { // wxStyledTextCtrl::InsertText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->InsertText((int) *pos,text);
+ break;
+}
+case wxStyledTextCtrl_ClearAll: { // wxStyledTextCtrl::ClearAll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearAll();
+ break;
+}
+case wxStyledTextCtrl_ClearDocumentStyle: { // wxStyledTextCtrl::ClearDocumentStyle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearDocumentStyle();
+ break;
+}
+case wxStyledTextCtrl_GetLength: { // wxStyledTextCtrl::GetLength
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLength();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCharAt: { // wxStyledTextCtrl::GetCharAt
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCharAt((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCurrentPos: { // wxStyledTextCtrl::GetCurrentPos
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCurrentPos();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetAnchor: { // wxStyledTextCtrl::GetAnchor
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetAnchor();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetStyleAt: { // wxStyledTextCtrl::GetStyleAt
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyleAt((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_Redo: { // wxStyledTextCtrl::Redo
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Redo();
+ break;
+}
+case wxStyledTextCtrl_SetUndoCollection: { // wxStyledTextCtrl::SetUndoCollection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * collectUndo = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetUndoCollection((bool) *collectUndo);
+ break;
+}
+case wxStyledTextCtrl_SelectAll: { // wxStyledTextCtrl::SelectAll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectAll();
+ break;
+}
+case wxStyledTextCtrl_SetSavePoint: { // wxStyledTextCtrl::SetSavePoint
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSavePoint();
+ break;
+}
+case wxStyledTextCtrl_GetStyledText: { // wxStyledTextCtrl::GetStyledText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * startPos = (int *) bp; bp += 4;
+ int * endPos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxMemoryBuffer * Result = new wxMemoryBuffer(This->GetStyledText((int) *startPos,(int) *endPos)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxMemoryBuffer");
+ break;
+}
+case wxStyledTextCtrl_CanRedo: { // wxStyledTextCtrl::CanRedo
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanRedo();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerLineFromHandle: { // wxStyledTextCtrl::MarkerLineFromHandle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * handle = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->MarkerLineFromHandle((int) *handle);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerDeleteHandle: { // wxStyledTextCtrl::MarkerDeleteHandle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * handle = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerDeleteHandle((int) *handle);
+ break;
+}
+case wxStyledTextCtrl_GetUndoCollection: { // wxStyledTextCtrl::GetUndoCollection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUndoCollection();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_GetViewWhiteSpace: { // wxStyledTextCtrl::GetViewWhiteSpace
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetViewWhiteSpace();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetViewWhiteSpace: { // wxStyledTextCtrl::SetViewWhiteSpace
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * viewWS = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetViewWhiteSpace((int) *viewWS);
+ break;
+}
+case wxStyledTextCtrl_PositionFromPoint: { // wxStyledTextCtrl::PositionFromPoint
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * ptX = (int *) bp; bp += 4;
+ int * ptY = (int *) bp; bp += 4;
+ wxPoint pt = wxPoint(*ptX,*ptY);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->PositionFromPoint(pt);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_PositionFromPointClose: { // wxStyledTextCtrl::PositionFromPointClose
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->PositionFromPointClose((int) *x,(int) *y);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GotoLine: { // wxStyledTextCtrl::GotoLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GotoLine((int) *line);
+ break;
+}
+case wxStyledTextCtrl_GotoPos: { // wxStyledTextCtrl::GotoPos
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GotoPos((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_SetAnchor: { // wxStyledTextCtrl::SetAnchor
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * posAnchor = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetAnchor((int) *posAnchor);
+ break;
+}
+case wxStyledTextCtrl_GetCurLine: { // wxStyledTextCtrl::GetCurLine
+ int linePos;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetCurLine(&linePos);
+ rt.add(Result);
+ rt.addInt(linePos);
+ rt.addTupleCount(2);
+ break;
+}
+case wxStyledTextCtrl_GetEndStyled: { // wxStyledTextCtrl::GetEndStyled
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetEndStyled();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_ConvertEOLs: { // wxStyledTextCtrl::ConvertEOLs
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * eolMode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ConvertEOLs((int) *eolMode);
+ break;
+}
+case wxStyledTextCtrl_GetEOLMode: { // wxStyledTextCtrl::GetEOLMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetEOLMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetEOLMode: { // wxStyledTextCtrl::SetEOLMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * eolMode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetEOLMode((int) *eolMode);
+ break;
+}
+case wxStyledTextCtrl_StartStyling: { // wxStyledTextCtrl::StartStyling
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * mask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StartStyling((int) *pos,(int) *mask);
+ break;
+}
+case wxStyledTextCtrl_SetStyling: { // wxStyledTextCtrl::SetStyling
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * length = (int *) bp; bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStyling((int) *length,(int) *style);
+ break;
+}
+case wxStyledTextCtrl_GetBufferedDraw: { // wxStyledTextCtrl::GetBufferedDraw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetBufferedDraw();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetBufferedDraw: { // wxStyledTextCtrl::SetBufferedDraw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * buffered = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBufferedDraw((bool) *buffered);
+ break;
+}
+case wxStyledTextCtrl_SetTabWidth: { // wxStyledTextCtrl::SetTabWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * tabWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTabWidth((int) *tabWidth);
+ break;
+}
+case wxStyledTextCtrl_GetTabWidth: { // wxStyledTextCtrl::GetTabWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTabWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCodePage: { // wxStyledTextCtrl::SetCodePage
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * codePage = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCodePage((int) *codePage);
+ break;
+}
+case wxStyledTextCtrl_MarkerDefine: { // wxStyledTextCtrl::MarkerDefine
+ wxColour foreground= wxNullColour;
+ wxColour background= wxNullColour;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ int * markerSymbol = (int *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * foregroundR = (int *) bp; bp += 4;
+ int * foregroundG = (int *) bp; bp += 4;
+ int * foregroundB = (int *) bp; bp += 4;
+ int * foregroundA = (int *) bp; bp += 4;
+ foreground = wxColour(*foregroundR,*foregroundG,*foregroundB,*foregroundA);
+ bp += 4; /* Align */
+ } break;
+ case 2: {bp += 4;
+ int * backgroundR = (int *) bp; bp += 4;
+ int * backgroundG = (int *) bp; bp += 4;
+ int * backgroundB = (int *) bp; bp += 4;
+ int * backgroundA = (int *) bp; bp += 4;
+ background = wxColour(*backgroundR,*backgroundG,*backgroundB,*backgroundA);
+ bp += 4; /* Align */
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->MarkerDefine((int) *markerNumber,(int) *markerSymbol,foreground,background);
+ break;
+}
+case wxStyledTextCtrl_MarkerSetForeground: { // wxStyledTextCtrl::MarkerSetForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->MarkerSetForeground((int) *markerNumber,fore);
+ break;
+}
+case wxStyledTextCtrl_MarkerSetBackground: { // wxStyledTextCtrl::MarkerSetBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->MarkerSetBackground((int) *markerNumber,back);
+ break;
+}
+case wxStyledTextCtrl_MarkerAdd: { // wxStyledTextCtrl::MarkerAdd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->MarkerAdd((int) *line,(int) *markerNumber);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerDelete: { // wxStyledTextCtrl::MarkerDelete
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerDelete((int) *line,(int) *markerNumber);
+ break;
+}
+case wxStyledTextCtrl_MarkerDeleteAll: { // wxStyledTextCtrl::MarkerDeleteAll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerDeleteAll((int) *markerNumber);
+ break;
+}
+case wxStyledTextCtrl_MarkerGet: { // wxStyledTextCtrl::MarkerGet
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->MarkerGet((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerNext: { // wxStyledTextCtrl::MarkerNext
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineStart = (int *) bp; bp += 4;
+ int * markerMask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->MarkerNext((int) *lineStart,(int) *markerMask);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerPrevious: { // wxStyledTextCtrl::MarkerPrevious
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineStart = (int *) bp; bp += 4;
+ int * markerMask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->MarkerPrevious((int) *lineStart,(int) *markerMask);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_MarkerDefineBitmap: { // wxStyledTextCtrl::MarkerDefineBitmap
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerDefineBitmap((int) *markerNumber,*bmp);
+ break;
+}
+case wxStyledTextCtrl_MarkerAddSet: { // wxStyledTextCtrl::MarkerAddSet
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * set = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerAddSet((int) *line,(int) *set);
+ break;
+}
+case wxStyledTextCtrl_MarkerSetAlpha: { // wxStyledTextCtrl::MarkerSetAlpha
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * markerNumber = (int *) bp; bp += 4;
+ int * alpha = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MarkerSetAlpha((int) *markerNumber,(int) *alpha);
+ break;
+}
+case wxStyledTextCtrl_SetMarginType: { // wxStyledTextCtrl::SetMarginType
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ int * marginType = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginType((int) *margin,(int) *marginType);
+ break;
+}
+case wxStyledTextCtrl_GetMarginType: { // wxStyledTextCtrl::GetMarginType
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMarginType((int) *margin);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMarginWidth: { // wxStyledTextCtrl::SetMarginWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginWidth((int) *margin,(int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_GetMarginWidth: { // wxStyledTextCtrl::GetMarginWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMarginWidth((int) *margin);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMarginMask: { // wxStyledTextCtrl::SetMarginMask
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ int * mask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginMask((int) *margin,(int) *mask);
+ break;
+}
+case wxStyledTextCtrl_GetMarginMask: { // wxStyledTextCtrl::GetMarginMask
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMarginMask((int) *margin);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMarginSensitive: { // wxStyledTextCtrl::SetMarginSensitive
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ bool * sensitive = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginSensitive((int) *margin,(bool) *sensitive);
+ break;
+}
+case wxStyledTextCtrl_GetMarginSensitive: { // wxStyledTextCtrl::GetMarginSensitive
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * margin = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetMarginSensitive((int) *margin);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_StyleClearAll: { // wxStyledTextCtrl::StyleClearAll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleClearAll();
+ break;
+}
+case wxStyledTextCtrl_StyleSetForeground: { // wxStyledTextCtrl::StyleSetForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetForeground((int) *style,fore);
+ break;
+}
+case wxStyledTextCtrl_StyleSetBackground: { // wxStyledTextCtrl::StyleSetBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetBackground((int) *style,back);
+ break;
+}
+case wxStyledTextCtrl_StyleSetBold: { // wxStyledTextCtrl::StyleSetBold
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * bold = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetBold((int) *style,(bool) *bold);
+ break;
+}
+case wxStyledTextCtrl_StyleSetItalic: { // wxStyledTextCtrl::StyleSetItalic
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * italic = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetItalic((int) *style,(bool) *italic);
+ break;
+}
+case wxStyledTextCtrl_StyleSetSize: { // wxStyledTextCtrl::StyleSetSize
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * sizePoints = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetSize((int) *style,(int) *sizePoints);
+ break;
+}
+case wxStyledTextCtrl_StyleSetFaceName: { // wxStyledTextCtrl::StyleSetFaceName
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * fontNameLen = (int *) bp; bp += 4;
+ wxString fontName = wxString(bp, wxConvUTF8);
+ bp += *fontNameLen+((8-((4+ *fontNameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetFaceName((int) *style,fontName);
+ break;
+}
+case wxStyledTextCtrl_StyleSetEOLFilled: { // wxStyledTextCtrl::StyleSetEOLFilled
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * filled = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetEOLFilled((int) *style,(bool) *filled);
+ break;
+}
+case wxStyledTextCtrl_StyleResetDefault: { // wxStyledTextCtrl::StyleResetDefault
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleResetDefault();
+ break;
+}
+case wxStyledTextCtrl_StyleSetUnderline: { // wxStyledTextCtrl::StyleSetUnderline
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * underline = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetUnderline((int) *style,(bool) *underline);
+ break;
+}
+case wxStyledTextCtrl_StyleSetCase: { // wxStyledTextCtrl::StyleSetCase
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * caseForce = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetCase((int) *style,(int) *caseForce);
+ break;
+}
+case wxStyledTextCtrl_StyleSetHotSpot: { // wxStyledTextCtrl::StyleSetHotSpot
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * hotspot = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetHotSpot((int) *style,(bool) *hotspot);
+ break;
+}
+case wxStyledTextCtrl_SetSelForeground: { // wxStyledTextCtrl::SetSelForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->SetSelForeground((bool) *useSetting,fore);
+ break;
+}
+case wxStyledTextCtrl_SetSelBackground: { // wxStyledTextCtrl::SetSelBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->SetSelBackground((bool) *useSetting,back);
+ break;
+}
+case wxStyledTextCtrl_GetSelAlpha: { // wxStyledTextCtrl::GetSelAlpha
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelAlpha();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSelAlpha: { // wxStyledTextCtrl::SetSelAlpha
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * alpha = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelAlpha((int) *alpha);
+ break;
+}
+case wxStyledTextCtrl_SetCaretForeground: { // wxStyledTextCtrl::SetCaretForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretForeground(fore);
+ break;
+}
+case wxStyledTextCtrl_CmdKeyAssign: { // wxStyledTextCtrl::CmdKeyAssign
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * key = (int *) bp; bp += 4;
+ int * modifiers = (int *) bp; bp += 4;
+ int * cmd = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CmdKeyAssign((int) *key,(int) *modifiers,(int) *cmd);
+ break;
+}
+case wxStyledTextCtrl_CmdKeyClear: { // wxStyledTextCtrl::CmdKeyClear
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * key = (int *) bp; bp += 4;
+ int * modifiers = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CmdKeyClear((int) *key,(int) *modifiers);
+ break;
+}
+case wxStyledTextCtrl_CmdKeyClearAll: { // wxStyledTextCtrl::CmdKeyClearAll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CmdKeyClearAll();
+ break;
+}
+case wxStyledTextCtrl_SetStyleBytes: { // wxStyledTextCtrl::SetStyleBytes
+ char styleBytes;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * length = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStyleBytes((int) *length,&styleBytes);
+ rt.addInt(styleBytes);
+ break;
+}
+case wxStyledTextCtrl_StyleSetVisible: { // wxStyledTextCtrl::StyleSetVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ bool * visible = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetVisible((int) *style,(bool) *visible);
+ break;
+}
+case wxStyledTextCtrl_GetCaretPeriod: { // wxStyledTextCtrl::GetCaretPeriod
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCaretPeriod();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCaretPeriod: { // wxStyledTextCtrl::SetCaretPeriod
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * periodMilliseconds = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretPeriod((int) *periodMilliseconds);
+ break;
+}
+case wxStyledTextCtrl_SetWordChars: { // wxStyledTextCtrl::SetWordChars
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * charactersLen = (int *) bp; bp += 4;
+ wxString characters = wxString(bp, wxConvUTF8);
+ bp += *charactersLen+((8-((0+ *charactersLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetWordChars(characters);
+ break;
+}
+case wxStyledTextCtrl_BeginUndoAction: { // wxStyledTextCtrl::BeginUndoAction
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BeginUndoAction();
+ break;
+}
+case wxStyledTextCtrl_EndUndoAction: { // wxStyledTextCtrl::EndUndoAction
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EndUndoAction();
+ break;
+}
+case wxStyledTextCtrl_IndicatorSetStyle: { // wxStyledTextCtrl::IndicatorSetStyle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indic = (int *) bp; bp += 4;
+ int * style = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->IndicatorSetStyle((int) *indic,(int) *style);
+ break;
+}
+case wxStyledTextCtrl_IndicatorGetStyle: { // wxStyledTextCtrl::IndicatorGetStyle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indic = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->IndicatorGetStyle((int) *indic);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_IndicatorSetForeground: { // wxStyledTextCtrl::IndicatorSetForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indic = (int *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->IndicatorSetForeground((int) *indic,fore);
+ break;
+}
+case wxStyledTextCtrl_IndicatorGetForeground: { // wxStyledTextCtrl::IndicatorGetForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indic = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->IndicatorGetForeground((int) *indic);
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_SetWhitespaceForeground: { // wxStyledTextCtrl::SetWhitespaceForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->SetWhitespaceForeground((bool) *useSetting,fore);
+ break;
+}
+case wxStyledTextCtrl_SetWhitespaceBackground: { // wxStyledTextCtrl::SetWhitespaceBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->SetWhitespaceBackground((bool) *useSetting,back);
+ break;
+}
+case wxStyledTextCtrl_GetStyleBits: { // wxStyledTextCtrl::GetStyleBits
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyleBits();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetLineState: { // wxStyledTextCtrl::SetLineState
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * state = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLineState((int) *line,(int) *state);
+ break;
+}
+case wxStyledTextCtrl_GetLineState: { // wxStyledTextCtrl::GetLineState
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineState((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetMaxLineState: { // wxStyledTextCtrl::GetMaxLineState
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMaxLineState();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCaretLineVisible: { // wxStyledTextCtrl::GetCaretLineVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetCaretLineVisible();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCaretLineVisible: { // wxStyledTextCtrl::SetCaretLineVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretLineVisible((bool) *show);
+ break;
+}
+case wxStyledTextCtrl_GetCaretLineBackground: { // wxStyledTextCtrl::GetCaretLineBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetCaretLineBackground();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCaretLineBackground: { // wxStyledTextCtrl::SetCaretLineBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretLineBackground(back);
+ break;
+}
+case wxStyledTextCtrl_AutoCompShow: { // wxStyledTextCtrl::AutoCompShow
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lenEntered = (int *) bp; bp += 4;
+ int * itemListLen = (int *) bp; bp += 4;
+ wxString itemList = wxString(bp, wxConvUTF8);
+ bp += *itemListLen+((8-((4+ *itemListLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompShow((int) *lenEntered,itemList);
+ break;
+}
+case wxStyledTextCtrl_AutoCompCancel: { // wxStyledTextCtrl::AutoCompCancel
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompCancel();
+ break;
+}
+case wxStyledTextCtrl_AutoCompActive: { // wxStyledTextCtrl::AutoCompActive
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompActive();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompPosStart: { // wxStyledTextCtrl::AutoCompPosStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompPosStart();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompComplete: { // wxStyledTextCtrl::AutoCompComplete
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompComplete();
+ break;
+}
+case wxStyledTextCtrl_AutoCompStops: { // wxStyledTextCtrl::AutoCompStops
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * characterSetLen = (int *) bp; bp += 4;
+ wxString characterSet = wxString(bp, wxConvUTF8);
+ bp += *characterSetLen+((8-((0+ *characterSetLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompStops(characterSet);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetSeparator: { // wxStyledTextCtrl::AutoCompSetSeparator
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * separatorCharacter = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetSeparator((int) *separatorCharacter);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetSeparator: { // wxStyledTextCtrl::AutoCompGetSeparator
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompGetSeparator();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSelect: { // wxStyledTextCtrl::AutoCompSelect
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSelect(text);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetCancelAtStart: { // wxStyledTextCtrl::AutoCompSetCancelAtStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * cancel = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetCancelAtStart((bool) *cancel);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetCancelAtStart: { // wxStyledTextCtrl::AutoCompGetCancelAtStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompGetCancelAtStart();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetFillUps: { // wxStyledTextCtrl::AutoCompSetFillUps
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * characterSetLen = (int *) bp; bp += 4;
+ wxString characterSet = wxString(bp, wxConvUTF8);
+ bp += *characterSetLen+((8-((0+ *characterSetLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetFillUps(characterSet);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetChooseSingle: { // wxStyledTextCtrl::AutoCompSetChooseSingle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * chooseSingle = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetChooseSingle((bool) *chooseSingle);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetChooseSingle: { // wxStyledTextCtrl::AutoCompGetChooseSingle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompGetChooseSingle();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetIgnoreCase: { // wxStyledTextCtrl::AutoCompSetIgnoreCase
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * ignoreCase = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetIgnoreCase((bool) *ignoreCase);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetIgnoreCase: { // wxStyledTextCtrl::AutoCompGetIgnoreCase
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompGetIgnoreCase();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_UserListShow: { // wxStyledTextCtrl::UserListShow
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * listType = (int *) bp; bp += 4;
+ int * itemListLen = (int *) bp; bp += 4;
+ wxString itemList = wxString(bp, wxConvUTF8);
+ bp += *itemListLen+((8-((4+ *itemListLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->UserListShow((int) *listType,itemList);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetAutoHide: { // wxStyledTextCtrl::AutoCompSetAutoHide
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * autoHide = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetAutoHide((bool) *autoHide);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetAutoHide: { // wxStyledTextCtrl::AutoCompGetAutoHide
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompGetAutoHide();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetDropRestOfWord: { // wxStyledTextCtrl::AutoCompSetDropRestOfWord
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * dropRestOfWord = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetDropRestOfWord((bool) *dropRestOfWord);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetDropRestOfWord: { // wxStyledTextCtrl::AutoCompGetDropRestOfWord
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AutoCompGetDropRestOfWord();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_RegisterImage: { // wxStyledTextCtrl::RegisterImage
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * type = (int *) bp; bp += 4;
+ wxBitmap *bmp = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->RegisterImage((int) *type,*bmp);
+ break;
+}
+case wxStyledTextCtrl_ClearRegisteredImages: { // wxStyledTextCtrl::ClearRegisteredImages
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ClearRegisteredImages();
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetTypeSeparator: { // wxStyledTextCtrl::AutoCompGetTypeSeparator
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompGetTypeSeparator();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetTypeSeparator: { // wxStyledTextCtrl::AutoCompSetTypeSeparator
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * separatorCharacter = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetTypeSeparator((int) *separatorCharacter);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetMaxWidth: { // wxStyledTextCtrl::AutoCompSetMaxWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * characterCount = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetMaxWidth((int) *characterCount);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetMaxWidth: { // wxStyledTextCtrl::AutoCompGetMaxWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompGetMaxWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_AutoCompSetMaxHeight: { // wxStyledTextCtrl::AutoCompSetMaxHeight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * rowCount = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->AutoCompSetMaxHeight((int) *rowCount);
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetMaxHeight: { // wxStyledTextCtrl::AutoCompGetMaxHeight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompGetMaxHeight();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetIndent: { // wxStyledTextCtrl::SetIndent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indentSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetIndent((int) *indentSize);
+ break;
+}
+case wxStyledTextCtrl_GetIndent: { // wxStyledTextCtrl::GetIndent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetIndent();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetUseTabs: { // wxStyledTextCtrl::SetUseTabs
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useTabs = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetUseTabs((bool) *useTabs);
+ break;
+}
+case wxStyledTextCtrl_GetUseTabs: { // wxStyledTextCtrl::GetUseTabs
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUseTabs();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetLineIndentation: { // wxStyledTextCtrl::SetLineIndentation
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * indentSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLineIndentation((int) *line,(int) *indentSize);
+ break;
+}
+case wxStyledTextCtrl_GetLineIndentation: { // wxStyledTextCtrl::GetLineIndentation
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineIndentation((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetLineIndentPosition: { // wxStyledTextCtrl::GetLineIndentPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineIndentPosition((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetColumn: { // wxStyledTextCtrl::GetColumn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetColumn((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetUseHorizontalScrollBar: { // wxStyledTextCtrl::SetUseHorizontalScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetUseHorizontalScrollBar((bool) *show);
+ break;
+}
+case wxStyledTextCtrl_GetUseHorizontalScrollBar: { // wxStyledTextCtrl::GetUseHorizontalScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUseHorizontalScrollBar();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetIndentationGuides: { // wxStyledTextCtrl::SetIndentationGuides
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetIndentationGuides((bool) *show);
+ break;
+}
+case wxStyledTextCtrl_GetIndentationGuides: { // wxStyledTextCtrl::GetIndentationGuides
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetIndentationGuides();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetHighlightGuide: { // wxStyledTextCtrl::SetHighlightGuide
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * column = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHighlightGuide((int) *column);
+ break;
+}
+case wxStyledTextCtrl_GetHighlightGuide: { // wxStyledTextCtrl::GetHighlightGuide
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetHighlightGuide();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetLineEndPosition: { // wxStyledTextCtrl::GetLineEndPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineEndPosition((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCodePage: { // wxStyledTextCtrl::GetCodePage
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCodePage();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCaretForeground: { // wxStyledTextCtrl::GetCaretForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetCaretForeground();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_GetReadOnly: { // wxStyledTextCtrl::GetReadOnly
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetReadOnly();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCurrentPos: { // wxStyledTextCtrl::SetCurrentPos
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCurrentPos((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_SetSelectionStart: { // wxStyledTextCtrl::SetSelectionStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionStart((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_GetSelectionStart: { // wxStyledTextCtrl::GetSelectionStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelectionStart();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSelectionEnd: { // wxStyledTextCtrl::SetSelectionEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionEnd((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_GetSelectionEnd: { // wxStyledTextCtrl::GetSelectionEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelectionEnd();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetPrintMagnification: { // wxStyledTextCtrl::SetPrintMagnification
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * magnification = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintMagnification((int) *magnification);
+ break;
+}
+case wxStyledTextCtrl_GetPrintMagnification: { // wxStyledTextCtrl::GetPrintMagnification
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPrintMagnification();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetPrintColourMode: { // wxStyledTextCtrl::SetPrintColourMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPrintColourMode((int) *mode);
+ break;
+}
+case wxStyledTextCtrl_GetPrintColourMode: { // wxStyledTextCtrl::GetPrintColourMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPrintColourMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_FindText: { // wxStyledTextCtrl::FindText
+ int flags=0;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * minPos = (int *) bp; bp += 4;
+ int * maxPos = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ flags = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindText((int) *minPos,(int) *maxPos,text,flags);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_FormatRange: { // wxStyledTextCtrl::FormatRange
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * doDraw = (bool *) bp; bp += 4;
+ int * startPos = (int *) bp; bp += 4;
+ int * endPos = (int *) bp; bp += 4;
+ wxDC *draw = (wxDC *) getPtr(bp,memenv); bp += 4;
+ wxDC *target = (wxDC *) getPtr(bp,memenv); bp += 4;
+ int * renderRectX = (int *) bp; bp += 4;
+ int * renderRectY = (int *) bp; bp += 4;
+ int * renderRectW = (int *) bp; bp += 4;
+ int * renderRectH = (int *) bp; bp += 4;
+ wxRect renderRect = wxRect(*renderRectX,*renderRectY,*renderRectW,*renderRectH);
+ int * pageRectX = (int *) bp; bp += 4;
+ int * pageRectY = (int *) bp; bp += 4;
+ int * pageRectW = (int *) bp; bp += 4;
+ int * pageRectH = (int *) bp; bp += 4;
+ wxRect pageRect = wxRect(*pageRectX,*pageRectY,*pageRectW,*pageRectH);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FormatRange((bool) *doDraw,(int) *startPos,(int) *endPos,draw,target,renderRect,pageRect);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetFirstVisibleLine: { // wxStyledTextCtrl::GetFirstVisibleLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFirstVisibleLine();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetLine: { // wxStyledTextCtrl::GetLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetLine((int) *line);
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_GetLineCount: { // wxStyledTextCtrl::GetLineCount
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLineCount();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMarginLeft: { // wxStyledTextCtrl::SetMarginLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginLeft((int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_GetMarginLeft: { // wxStyledTextCtrl::GetMarginLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMarginLeft();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMarginRight: { // wxStyledTextCtrl::SetMarginRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMarginRight((int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_GetMarginRight: { // wxStyledTextCtrl::GetMarginRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMarginRight();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetModify: { // wxStyledTextCtrl::GetModify
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetModify();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSelection: { // wxStyledTextCtrl::SetSelection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * end = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *start,(int) *end);
+ break;
+}
+case wxStyledTextCtrl_GetSelectedText: { // wxStyledTextCtrl::GetSelectedText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetSelectedText();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_GetTextRange: { // wxStyledTextCtrl::GetTextRange
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * startPos = (int *) bp; bp += 4;
+ int * endPos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetTextRange((int) *startPos,(int) *endPos);
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_HideSelection: { // wxStyledTextCtrl::HideSelection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * normal = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HideSelection((bool) *normal);
+ break;
+}
+case wxStyledTextCtrl_LineFromPosition: { // wxStyledTextCtrl::LineFromPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->LineFromPosition((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_PositionFromLine: { // wxStyledTextCtrl::PositionFromLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->PositionFromLine((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_LineScroll: { // wxStyledTextCtrl::LineScroll
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * columns = (int *) bp; bp += 4;
+ int * lines = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineScroll((int) *columns,(int) *lines);
+ break;
+}
+case wxStyledTextCtrl_EnsureCaretVisible: { // wxStyledTextCtrl::EnsureCaretVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnsureCaretVisible();
+ break;
+}
+case wxStyledTextCtrl_ReplaceSelection: { // wxStyledTextCtrl::ReplaceSelection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->ReplaceSelection(text);
+ break;
+}
+case wxStyledTextCtrl_SetReadOnly: { // wxStyledTextCtrl::SetReadOnly
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * readOnly = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetReadOnly((bool) *readOnly);
+ break;
+}
+case wxStyledTextCtrl_CanPaste: { // wxStyledTextCtrl::CanPaste
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanPaste();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_CanUndo: { // wxStyledTextCtrl::CanUndo
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanUndo();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_EmptyUndoBuffer: { // wxStyledTextCtrl::EmptyUndoBuffer
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EmptyUndoBuffer();
+ break;
+}
+case wxStyledTextCtrl_Undo: { // wxStyledTextCtrl::Undo
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Undo();
+ break;
+}
+case wxStyledTextCtrl_Cut: { // wxStyledTextCtrl::Cut
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Cut();
+ break;
+}
+case wxStyledTextCtrl_Copy: { // wxStyledTextCtrl::Copy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Copy();
+ break;
+}
+case wxStyledTextCtrl_Paste: { // wxStyledTextCtrl::Paste
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Paste();
+ break;
+}
+case wxStyledTextCtrl_Clear: { // wxStyledTextCtrl::Clear
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxStyledTextCtrl_SetText: { // wxStyledTextCtrl::SetText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetText(text);
+ break;
+}
+case wxStyledTextCtrl_GetText: { // wxStyledTextCtrl::GetText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_GetTextLength: { // wxStyledTextCtrl::GetTextLength
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTextLength();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetOvertype: { // wxStyledTextCtrl::GetOvertype
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetOvertype();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCaretWidth: { // wxStyledTextCtrl::SetCaretWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretWidth((int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_GetCaretWidth: { // wxStyledTextCtrl::GetCaretWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCaretWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetTargetStart: { // wxStyledTextCtrl::SetTargetStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTargetStart((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_GetTargetStart: { // wxStyledTextCtrl::GetTargetStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTargetStart();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetTargetEnd: { // wxStyledTextCtrl::SetTargetEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTargetEnd((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_GetTargetEnd: { // wxStyledTextCtrl::GetTargetEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetTargetEnd();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_ReplaceTarget: { // wxStyledTextCtrl::ReplaceTarget
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->ReplaceTarget(text);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SearchInTarget: { // wxStyledTextCtrl::SearchInTarget
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SearchInTarget(text);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSearchFlags: { // wxStyledTextCtrl::SetSearchFlags
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSearchFlags((int) *flags);
+ break;
+}
+case wxStyledTextCtrl_GetSearchFlags: { // wxStyledTextCtrl::GetSearchFlags
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSearchFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_CallTipShow: { // wxStyledTextCtrl::CallTipShow
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ int * definitionLen = (int *) bp; bp += 4;
+ wxString definition = wxString(bp, wxConvUTF8);
+ bp += *definitionLen+((8-((4+ *definitionLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->CallTipShow((int) *pos,definition);
+ break;
+}
+case wxStyledTextCtrl_CallTipCancel: { // wxStyledTextCtrl::CallTipCancel
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CallTipCancel();
+ break;
+}
+case wxStyledTextCtrl_CallTipActive: { // wxStyledTextCtrl::CallTipActive
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CallTipActive();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_CallTipPosAtStart: { // wxStyledTextCtrl::CallTipPosAtStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->CallTipPosAtStart();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_CallTipSetHighlight: { // wxStyledTextCtrl::CallTipSetHighlight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * end = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CallTipSetHighlight((int) *start,(int) *end);
+ break;
+}
+case wxStyledTextCtrl_CallTipSetBackground: { // wxStyledTextCtrl::CallTipSetBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->CallTipSetBackground(back);
+ break;
+}
+case wxStyledTextCtrl_CallTipSetForeground: { // wxStyledTextCtrl::CallTipSetForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->CallTipSetForeground(fore);
+ break;
+}
+case wxStyledTextCtrl_CallTipSetForegroundHighlight: { // wxStyledTextCtrl::CallTipSetForegroundHighlight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->CallTipSetForegroundHighlight(fore);
+ break;
+}
+case wxStyledTextCtrl_CallTipUseStyle: { // wxStyledTextCtrl::CallTipUseStyle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * tabSize = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CallTipUseStyle((int) *tabSize);
+ break;
+}
+case wxStyledTextCtrl_VisibleFromDocLine: { // wxStyledTextCtrl::VisibleFromDocLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->VisibleFromDocLine((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_DocLineFromVisible: { // wxStyledTextCtrl::DocLineFromVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineDisplay = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->DocLineFromVisible((int) *lineDisplay);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_WrapCount: { // wxStyledTextCtrl::WrapCount
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->WrapCount((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetFoldLevel: { // wxStyledTextCtrl::SetFoldLevel
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * level = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFoldLevel((int) *line,(int) *level);
+ break;
+}
+case wxStyledTextCtrl_GetFoldLevel: { // wxStyledTextCtrl::GetFoldLevel
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFoldLevel((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetLastChild: { // wxStyledTextCtrl::GetLastChild
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * level = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLastChild((int) *line,(int) *level);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetFoldParent: { // wxStyledTextCtrl::GetFoldParent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetFoldParent((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_ShowLines: { // wxStyledTextCtrl::ShowLines
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineStart = (int *) bp; bp += 4;
+ int * lineEnd = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ShowLines((int) *lineStart,(int) *lineEnd);
+ break;
+}
+case wxStyledTextCtrl_HideLines: { // wxStyledTextCtrl::HideLines
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lineStart = (int *) bp; bp += 4;
+ int * lineEnd = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HideLines((int) *lineStart,(int) *lineEnd);
+ break;
+}
+case wxStyledTextCtrl_GetLineVisible: { // wxStyledTextCtrl::GetLineVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetLineVisible((int) *line);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetFoldExpanded: { // wxStyledTextCtrl::SetFoldExpanded
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ bool * expanded = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFoldExpanded((int) *line,(bool) *expanded);
+ break;
+}
+case wxStyledTextCtrl_GetFoldExpanded: { // wxStyledTextCtrl::GetFoldExpanded
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetFoldExpanded((int) *line);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_ToggleFold: { // wxStyledTextCtrl::ToggleFold
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ToggleFold((int) *line);
+ break;
+}
+case wxStyledTextCtrl_EnsureVisible: { // wxStyledTextCtrl::EnsureVisible
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnsureVisible((int) *line);
+ break;
+}
+case wxStyledTextCtrl_SetFoldFlags: { // wxStyledTextCtrl::SetFoldFlags
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetFoldFlags((int) *flags);
+ break;
+}
+case wxStyledTextCtrl_EnsureVisibleEnforcePolicy: { // wxStyledTextCtrl::EnsureVisibleEnforcePolicy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EnsureVisibleEnforcePolicy((int) *line);
+ break;
+}
+case wxStyledTextCtrl_SetTabIndents: { // wxStyledTextCtrl::SetTabIndents
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * tabIndents = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTabIndents((bool) *tabIndents);
+ break;
+}
+case wxStyledTextCtrl_GetTabIndents: { // wxStyledTextCtrl::GetTabIndents
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetTabIndents();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetBackSpaceUnIndents: { // wxStyledTextCtrl::SetBackSpaceUnIndents
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * bsUnIndents = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBackSpaceUnIndents((bool) *bsUnIndents);
+ break;
+}
+case wxStyledTextCtrl_GetBackSpaceUnIndents: { // wxStyledTextCtrl::GetBackSpaceUnIndents
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetBackSpaceUnIndents();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMouseDwellTime: { // wxStyledTextCtrl::SetMouseDwellTime
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * periodMilliseconds = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMouseDwellTime((int) *periodMilliseconds);
+ break;
+}
+case wxStyledTextCtrl_GetMouseDwellTime: { // wxStyledTextCtrl::GetMouseDwellTime
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMouseDwellTime();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_WordStartPosition: { // wxStyledTextCtrl::WordStartPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ bool * onlyWordCharacters = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->WordStartPosition((int) *pos,(bool) *onlyWordCharacters);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_WordEndPosition: { // wxStyledTextCtrl::WordEndPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ bool * onlyWordCharacters = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->WordEndPosition((int) *pos,(bool) *onlyWordCharacters);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetWrapMode: { // wxStyledTextCtrl::SetWrapMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWrapMode((int) *mode);
+ break;
+}
+case wxStyledTextCtrl_GetWrapMode: { // wxStyledTextCtrl::GetWrapMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWrapMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetWrapVisualFlags: { // wxStyledTextCtrl::SetWrapVisualFlags
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * wrapVisualFlags = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWrapVisualFlags((int) *wrapVisualFlags);
+ break;
+}
+case wxStyledTextCtrl_GetWrapVisualFlags: { // wxStyledTextCtrl::GetWrapVisualFlags
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWrapVisualFlags();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetWrapVisualFlagsLocation: { // wxStyledTextCtrl::SetWrapVisualFlagsLocation
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * wrapVisualFlagsLocation = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWrapVisualFlagsLocation((int) *wrapVisualFlagsLocation);
+ break;
+}
+case wxStyledTextCtrl_GetWrapVisualFlagsLocation: { // wxStyledTextCtrl::GetWrapVisualFlagsLocation
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWrapVisualFlagsLocation();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetWrapStartIndent: { // wxStyledTextCtrl::SetWrapStartIndent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * indent = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetWrapStartIndent((int) *indent);
+ break;
+}
+case wxStyledTextCtrl_GetWrapStartIndent: { // wxStyledTextCtrl::GetWrapStartIndent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetWrapStartIndent();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetLayoutCache: { // wxStyledTextCtrl::SetLayoutCache
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLayoutCache((int) *mode);
+ break;
+}
+case wxStyledTextCtrl_GetLayoutCache: { // wxStyledTextCtrl::GetLayoutCache
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLayoutCache();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetScrollWidth: { // wxStyledTextCtrl::SetScrollWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetScrollWidth((int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_GetScrollWidth: { // wxStyledTextCtrl::GetScrollWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetScrollWidth();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_TextWidth: { // wxStyledTextCtrl::TextWidth
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->TextWidth((int) *style,text);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetEndAtLastLine: { // wxStyledTextCtrl::GetEndAtLastLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetEndAtLastLine();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_TextHeight: { // wxStyledTextCtrl::TextHeight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->TextHeight((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetUseVerticalScrollBar: { // wxStyledTextCtrl::SetUseVerticalScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * show = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetUseVerticalScrollBar((bool) *show);
+ break;
+}
+case wxStyledTextCtrl_GetUseVerticalScrollBar: { // wxStyledTextCtrl::GetUseVerticalScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUseVerticalScrollBar();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AppendText: { // wxStyledTextCtrl::AppendText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AppendText(text);
+ break;
+}
+case wxStyledTextCtrl_GetTwoPhaseDraw: { // wxStyledTextCtrl::GetTwoPhaseDraw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetTwoPhaseDraw();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetTwoPhaseDraw: { // wxStyledTextCtrl::SetTwoPhaseDraw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * twoPhase = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetTwoPhaseDraw((bool) *twoPhase);
+ break;
+}
+case wxStyledTextCtrl_TargetFromSelection: { // wxStyledTextCtrl::TargetFromSelection
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->TargetFromSelection();
+ break;
+}
+case wxStyledTextCtrl_LinesJoin: { // wxStyledTextCtrl::LinesJoin
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LinesJoin();
+ break;
+}
+case wxStyledTextCtrl_LinesSplit: { // wxStyledTextCtrl::LinesSplit
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pixelWidth = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LinesSplit((int) *pixelWidth);
+ break;
+}
+case wxStyledTextCtrl_SetFoldMarginColour: { // wxStyledTextCtrl::SetFoldMarginColour
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->SetFoldMarginColour((bool) *useSetting,back);
+ break;
+}
+case wxStyledTextCtrl_SetFoldMarginHiColour: { // wxStyledTextCtrl::SetFoldMarginHiColour
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->SetFoldMarginHiColour((bool) *useSetting,fore);
+ break;
+}
+case wxStyledTextCtrl_LineDown: { // wxStyledTextCtrl::LineDown
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineDown();
+ break;
+}
+case wxStyledTextCtrl_LineDownExtend: { // wxStyledTextCtrl::LineDownExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineDownExtend();
+ break;
+}
+case wxStyledTextCtrl_LineUp: { // wxStyledTextCtrl::LineUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineUp();
+ break;
+}
+case wxStyledTextCtrl_LineUpExtend: { // wxStyledTextCtrl::LineUpExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineUpExtend();
+ break;
+}
+case wxStyledTextCtrl_CharLeft: { // wxStyledTextCtrl::CharLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharLeft();
+ break;
+}
+case wxStyledTextCtrl_CharLeftExtend: { // wxStyledTextCtrl::CharLeftExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharLeftExtend();
+ break;
+}
+case wxStyledTextCtrl_CharRight: { // wxStyledTextCtrl::CharRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharRight();
+ break;
+}
+case wxStyledTextCtrl_CharRightExtend: { // wxStyledTextCtrl::CharRightExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharRightExtend();
+ break;
+}
+case wxStyledTextCtrl_WordLeft: { // wxStyledTextCtrl::WordLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordLeft();
+ break;
+}
+case wxStyledTextCtrl_WordLeftExtend: { // wxStyledTextCtrl::WordLeftExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordLeftExtend();
+ break;
+}
+case wxStyledTextCtrl_WordRight: { // wxStyledTextCtrl::WordRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordRight();
+ break;
+}
+case wxStyledTextCtrl_WordRightExtend: { // wxStyledTextCtrl::WordRightExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordRightExtend();
+ break;
+}
+case wxStyledTextCtrl_Home: { // wxStyledTextCtrl::Home
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Home();
+ break;
+}
+case wxStyledTextCtrl_HomeExtend: { // wxStyledTextCtrl::HomeExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HomeExtend();
+ break;
+}
+case wxStyledTextCtrl_LineEnd: { // wxStyledTextCtrl::LineEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEnd();
+ break;
+}
+case wxStyledTextCtrl_LineEndExtend: { // wxStyledTextCtrl::LineEndExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndExtend();
+ break;
+}
+case wxStyledTextCtrl_DocumentStart: { // wxStyledTextCtrl::DocumentStart
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DocumentStart();
+ break;
+}
+case wxStyledTextCtrl_DocumentStartExtend: { // wxStyledTextCtrl::DocumentStartExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DocumentStartExtend();
+ break;
+}
+case wxStyledTextCtrl_DocumentEnd: { // wxStyledTextCtrl::DocumentEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DocumentEnd();
+ break;
+}
+case wxStyledTextCtrl_DocumentEndExtend: { // wxStyledTextCtrl::DocumentEndExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DocumentEndExtend();
+ break;
+}
+case wxStyledTextCtrl_PageUp: { // wxStyledTextCtrl::PageUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageUp();
+ break;
+}
+case wxStyledTextCtrl_PageUpExtend: { // wxStyledTextCtrl::PageUpExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageUpExtend();
+ break;
+}
+case wxStyledTextCtrl_PageDown: { // wxStyledTextCtrl::PageDown
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageDown();
+ break;
+}
+case wxStyledTextCtrl_PageDownExtend: { // wxStyledTextCtrl::PageDownExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageDownExtend();
+ break;
+}
+case wxStyledTextCtrl_EditToggleOvertype: { // wxStyledTextCtrl::EditToggleOvertype
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->EditToggleOvertype();
+ break;
+}
+case wxStyledTextCtrl_Cancel: { // wxStyledTextCtrl::Cancel
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Cancel();
+ break;
+}
+case wxStyledTextCtrl_DeleteBack: { // wxStyledTextCtrl::DeleteBack
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DeleteBack();
+ break;
+}
+case wxStyledTextCtrl_Tab: { // wxStyledTextCtrl::Tab
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Tab();
+ break;
+}
+case wxStyledTextCtrl_BackTab: { // wxStyledTextCtrl::BackTab
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BackTab();
+ break;
+}
+case wxStyledTextCtrl_NewLine: { // wxStyledTextCtrl::NewLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->NewLine();
+ break;
+}
+case wxStyledTextCtrl_FormFeed: { // wxStyledTextCtrl::FormFeed
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->FormFeed();
+ break;
+}
+case wxStyledTextCtrl_VCHome: { // wxStyledTextCtrl::VCHome
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->VCHome();
+ break;
+}
+case wxStyledTextCtrl_VCHomeExtend: { // wxStyledTextCtrl::VCHomeExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->VCHomeExtend();
+ break;
+}
+case wxStyledTextCtrl_ZoomIn: { // wxStyledTextCtrl::ZoomIn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ZoomIn();
+ break;
+}
+case wxStyledTextCtrl_ZoomOut: { // wxStyledTextCtrl::ZoomOut
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ZoomOut();
+ break;
+}
+case wxStyledTextCtrl_DelWordLeft: { // wxStyledTextCtrl::DelWordLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DelWordLeft();
+ break;
+}
+case wxStyledTextCtrl_DelWordRight: { // wxStyledTextCtrl::DelWordRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DelWordRight();
+ break;
+}
+case wxStyledTextCtrl_LineCut: { // wxStyledTextCtrl::LineCut
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineCut();
+ break;
+}
+case wxStyledTextCtrl_LineDelete: { // wxStyledTextCtrl::LineDelete
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineDelete();
+ break;
+}
+case wxStyledTextCtrl_LineTranspose: { // wxStyledTextCtrl::LineTranspose
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineTranspose();
+ break;
+}
+case wxStyledTextCtrl_LineDuplicate: { // wxStyledTextCtrl::LineDuplicate
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineDuplicate();
+ break;
+}
+case wxStyledTextCtrl_LowerCase: { // wxStyledTextCtrl::LowerCase
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LowerCase();
+ break;
+}
+case wxStyledTextCtrl_UpperCase: { // wxStyledTextCtrl::UpperCase
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UpperCase();
+ break;
+}
+case wxStyledTextCtrl_LineScrollDown: { // wxStyledTextCtrl::LineScrollDown
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineScrollDown();
+ break;
+}
+case wxStyledTextCtrl_LineScrollUp: { // wxStyledTextCtrl::LineScrollUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineScrollUp();
+ break;
+}
+case wxStyledTextCtrl_DeleteBackNotLine: { // wxStyledTextCtrl::DeleteBackNotLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DeleteBackNotLine();
+ break;
+}
+case wxStyledTextCtrl_HomeDisplay: { // wxStyledTextCtrl::HomeDisplay
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HomeDisplay();
+ break;
+}
+case wxStyledTextCtrl_HomeDisplayExtend: { // wxStyledTextCtrl::HomeDisplayExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HomeDisplayExtend();
+ break;
+}
+case wxStyledTextCtrl_LineEndDisplay: { // wxStyledTextCtrl::LineEndDisplay
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndDisplay();
+ break;
+}
+case wxStyledTextCtrl_LineEndDisplayExtend: { // wxStyledTextCtrl::LineEndDisplayExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndDisplayExtend();
+ break;
+}
+case wxStyledTextCtrl_HomeWrapExtend: { // wxStyledTextCtrl::HomeWrapExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HomeWrapExtend();
+ break;
+}
+case wxStyledTextCtrl_LineEndWrap: { // wxStyledTextCtrl::LineEndWrap
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndWrap();
+ break;
+}
+case wxStyledTextCtrl_LineEndWrapExtend: { // wxStyledTextCtrl::LineEndWrapExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndWrapExtend();
+ break;
+}
+case wxStyledTextCtrl_VCHomeWrap: { // wxStyledTextCtrl::VCHomeWrap
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->VCHomeWrap();
+ break;
+}
+case wxStyledTextCtrl_VCHomeWrapExtend: { // wxStyledTextCtrl::VCHomeWrapExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->VCHomeWrapExtend();
+ break;
+}
+case wxStyledTextCtrl_LineCopy: { // wxStyledTextCtrl::LineCopy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineCopy();
+ break;
+}
+case wxStyledTextCtrl_MoveCaretInsideView: { // wxStyledTextCtrl::MoveCaretInsideView
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->MoveCaretInsideView();
+ break;
+}
+case wxStyledTextCtrl_LineLength: { // wxStyledTextCtrl::LineLength
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->LineLength((int) *line);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_BraceHighlight: { // wxStyledTextCtrl::BraceHighlight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos1 = (int *) bp; bp += 4;
+ int * pos2 = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BraceHighlight((int) *pos1,(int) *pos2);
+ break;
+}
+case wxStyledTextCtrl_BraceBadLight: { // wxStyledTextCtrl::BraceBadLight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->BraceBadLight((int) *pos);
+ break;
+}
+case wxStyledTextCtrl_BraceMatch: { // wxStyledTextCtrl::BraceMatch
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->BraceMatch((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetViewEOL: { // wxStyledTextCtrl::GetViewEOL
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetViewEOL();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetViewEOL: { // wxStyledTextCtrl::SetViewEOL
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * visible = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetViewEOL((bool) *visible);
+ break;
+}
+case wxStyledTextCtrl_SetModEventMask: { // wxStyledTextCtrl::SetModEventMask
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * mask = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetModEventMask((int) *mask);
+ break;
+}
+case wxStyledTextCtrl_GetEdgeColumn: { // wxStyledTextCtrl::GetEdgeColumn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetEdgeColumn();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetEdgeColumn: { // wxStyledTextCtrl::SetEdgeColumn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * column = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetEdgeColumn((int) *column);
+ break;
+}
+case wxStyledTextCtrl_GetEdgeMode: { // wxStyledTextCtrl::GetEdgeMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetEdgeMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetEdgeColour: { // wxStyledTextCtrl::GetEdgeColour
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxColour Result = This->GetEdgeColour();
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_SetEdgeColour: { // wxStyledTextCtrl::SetEdgeColour
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * edgeColourR = (int *) bp; bp += 4;
+ int * edgeColourG = (int *) bp; bp += 4;
+ int * edgeColourB = (int *) bp; bp += 4;
+ int * edgeColourA = (int *) bp; bp += 4;
+ wxColour edgeColour = wxColour(*edgeColourR,*edgeColourG,*edgeColourB,*edgeColourA);
+ if(!This) throw wxe_badarg(0);
+ This->SetEdgeColour(edgeColour);
+ break;
+}
+case wxStyledTextCtrl_SearchAnchor: { // wxStyledTextCtrl::SearchAnchor
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SearchAnchor();
+ break;
+}
+case wxStyledTextCtrl_SearchNext: { // wxStyledTextCtrl::SearchNext
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SearchNext((int) *flags,text);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SearchPrev: { // wxStyledTextCtrl::SearchPrev
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * flags = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ int Result = This->SearchPrev((int) *flags,text);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_LinesOnScreen: { // wxStyledTextCtrl::LinesOnScreen
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->LinesOnScreen();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_UsePopUp: { // wxStyledTextCtrl::UsePopUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * allowPopUp = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UsePopUp((bool) *allowPopUp);
+ break;
+}
+case wxStyledTextCtrl_SelectionIsRectangle: { // wxStyledTextCtrl::SelectionIsRectangle
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SelectionIsRectangle();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetZoom: { // wxStyledTextCtrl::SetZoom
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * zoom = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetZoom((int) *zoom);
+ break;
+}
+case wxStyledTextCtrl_GetZoom: { // wxStyledTextCtrl::GetZoom
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetZoom();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetModEventMask: { // wxStyledTextCtrl::GetModEventMask
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetModEventMask();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSTCFocus: { // wxStyledTextCtrl::SetSTCFocus
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * focus = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSTCFocus((bool) *focus);
+ break;
+}
+case wxStyledTextCtrl_GetSTCFocus: { // wxStyledTextCtrl::GetSTCFocus
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetSTCFocus();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetStatus: { // wxStyledTextCtrl::SetStatus
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * statusCode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetStatus((int) *statusCode);
+ break;
+}
+case wxStyledTextCtrl_GetStatus: { // wxStyledTextCtrl::GetStatus
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStatus();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetMouseDownCaptures: { // wxStyledTextCtrl::SetMouseDownCaptures
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * captures = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMouseDownCaptures((bool) *captures);
+ break;
+}
+case wxStyledTextCtrl_GetMouseDownCaptures: { // wxStyledTextCtrl::GetMouseDownCaptures
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetMouseDownCaptures();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetSTCCursor: { // wxStyledTextCtrl::SetSTCCursor
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * cursorType = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSTCCursor((int) *cursorType);
+ break;
+}
+case wxStyledTextCtrl_GetSTCCursor: { // wxStyledTextCtrl::GetSTCCursor
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSTCCursor();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetControlCharSymbol: { // wxStyledTextCtrl::SetControlCharSymbol
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * symbol = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetControlCharSymbol((int) *symbol);
+ break;
+}
+case wxStyledTextCtrl_GetControlCharSymbol: { // wxStyledTextCtrl::GetControlCharSymbol
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetControlCharSymbol();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_WordPartLeft: { // wxStyledTextCtrl::WordPartLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordPartLeft();
+ break;
+}
+case wxStyledTextCtrl_WordPartLeftExtend: { // wxStyledTextCtrl::WordPartLeftExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordPartLeftExtend();
+ break;
+}
+case wxStyledTextCtrl_WordPartRight: { // wxStyledTextCtrl::WordPartRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordPartRight();
+ break;
+}
+case wxStyledTextCtrl_WordPartRightExtend: { // wxStyledTextCtrl::WordPartRightExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordPartRightExtend();
+ break;
+}
+case wxStyledTextCtrl_SetVisiblePolicy: { // wxStyledTextCtrl::SetVisiblePolicy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * visiblePolicy = (int *) bp; bp += 4;
+ int * visibleSlop = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetVisiblePolicy((int) *visiblePolicy,(int) *visibleSlop);
+ break;
+}
+case wxStyledTextCtrl_DelLineLeft: { // wxStyledTextCtrl::DelLineLeft
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DelLineLeft();
+ break;
+}
+case wxStyledTextCtrl_DelLineRight: { // wxStyledTextCtrl::DelLineRight
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->DelLineRight();
+ break;
+}
+case wxStyledTextCtrl_GetXOffset: { // wxStyledTextCtrl::GetXOffset
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetXOffset();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_ChooseCaretX: { // wxStyledTextCtrl::ChooseCaretX
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ChooseCaretX();
+ break;
+}
+case wxStyledTextCtrl_SetXCaretPolicy: { // wxStyledTextCtrl::SetXCaretPolicy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * caretPolicy = (int *) bp; bp += 4;
+ int * caretSlop = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetXCaretPolicy((int) *caretPolicy,(int) *caretSlop);
+ break;
+}
+case wxStyledTextCtrl_SetYCaretPolicy: { // wxStyledTextCtrl::SetYCaretPolicy
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * caretPolicy = (int *) bp; bp += 4;
+ int * caretSlop = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetYCaretPolicy((int) *caretPolicy,(int) *caretSlop);
+ break;
+}
+case wxStyledTextCtrl_GetPrintWrapMode: { // wxStyledTextCtrl::GetPrintWrapMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPrintWrapMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetHotspotActiveForeground: { // wxStyledTextCtrl::SetHotspotActiveForeground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * foreR = (int *) bp; bp += 4;
+ int * foreG = (int *) bp; bp += 4;
+ int * foreB = (int *) bp; bp += 4;
+ int * foreA = (int *) bp; bp += 4;
+ wxColour fore = wxColour(*foreR,*foreG,*foreB,*foreA);
+ if(!This) throw wxe_badarg(0);
+ This->SetHotspotActiveForeground((bool) *useSetting,fore);
+ break;
+}
+case wxStyledTextCtrl_SetHotspotActiveBackground: { // wxStyledTextCtrl::SetHotspotActiveBackground
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useSetting = (bool *) bp; bp += 4;
+ int * backR = (int *) bp; bp += 4;
+ int * backG = (int *) bp; bp += 4;
+ int * backB = (int *) bp; bp += 4;
+ int * backA = (int *) bp; bp += 4;
+ wxColour back = wxColour(*backR,*backG,*backB,*backA);
+ if(!This) throw wxe_badarg(0);
+ This->SetHotspotActiveBackground((bool) *useSetting,back);
+ break;
+}
+case wxStyledTextCtrl_SetHotspotActiveUnderline: { // wxStyledTextCtrl::SetHotspotActiveUnderline
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * underline = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHotspotActiveUnderline((bool) *underline);
+ break;
+}
+case wxStyledTextCtrl_SetHotspotSingleLine: { // wxStyledTextCtrl::SetHotspotSingleLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * singleLine = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHotspotSingleLine((bool) *singleLine);
+ break;
+}
+case wxStyledTextCtrl_ParaDownExtend: { // wxStyledTextCtrl::ParaDownExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ParaDownExtend();
+ break;
+}
+case wxStyledTextCtrl_ParaUp: { // wxStyledTextCtrl::ParaUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ParaUp();
+ break;
+}
+case wxStyledTextCtrl_ParaUpExtend: { // wxStyledTextCtrl::ParaUpExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ParaUpExtend();
+ break;
+}
+case wxStyledTextCtrl_PositionBefore: { // wxStyledTextCtrl::PositionBefore
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->PositionBefore((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_PositionAfter: { // wxStyledTextCtrl::PositionAfter
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->PositionAfter((int) *pos);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_CopyRange: { // wxStyledTextCtrl::CopyRange
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * end = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CopyRange((int) *start,(int) *end);
+ break;
+}
+case wxStyledTextCtrl_CopyText: { // wxStyledTextCtrl::CopyText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * length = (int *) bp; bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((4+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->CopyText((int) *length,text);
+ break;
+}
+case wxStyledTextCtrl_SetSelectionMode: { // wxStyledTextCtrl::SetSelectionMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelectionMode((int) *mode);
+ break;
+}
+case wxStyledTextCtrl_GetSelectionMode: { // wxStyledTextCtrl::GetSelectionMode
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelectionMode();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_LineDownRectExtend: { // wxStyledTextCtrl::LineDownRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineDownRectExtend();
+ break;
+}
+case wxStyledTextCtrl_LineUpRectExtend: { // wxStyledTextCtrl::LineUpRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineUpRectExtend();
+ break;
+}
+case wxStyledTextCtrl_CharLeftRectExtend: { // wxStyledTextCtrl::CharLeftRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharLeftRectExtend();
+ break;
+}
+case wxStyledTextCtrl_CharRightRectExtend: { // wxStyledTextCtrl::CharRightRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CharRightRectExtend();
+ break;
+}
+case wxStyledTextCtrl_HomeRectExtend: { // wxStyledTextCtrl::HomeRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HomeRectExtend();
+ break;
+}
+case wxStyledTextCtrl_VCHomeRectExtend: { // wxStyledTextCtrl::VCHomeRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->VCHomeRectExtend();
+ break;
+}
+case wxStyledTextCtrl_LineEndRectExtend: { // wxStyledTextCtrl::LineEndRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->LineEndRectExtend();
+ break;
+}
+case wxStyledTextCtrl_PageUpRectExtend: { // wxStyledTextCtrl::PageUpRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageUpRectExtend();
+ break;
+}
+case wxStyledTextCtrl_PageDownRectExtend: { // wxStyledTextCtrl::PageDownRectExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->PageDownRectExtend();
+ break;
+}
+case wxStyledTextCtrl_StutteredPageUp: { // wxStyledTextCtrl::StutteredPageUp
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StutteredPageUp();
+ break;
+}
+case wxStyledTextCtrl_StutteredPageUpExtend: { // wxStyledTextCtrl::StutteredPageUpExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StutteredPageUpExtend();
+ break;
+}
+case wxStyledTextCtrl_StutteredPageDown: { // wxStyledTextCtrl::StutteredPageDown
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StutteredPageDown();
+ break;
+}
+case wxStyledTextCtrl_StutteredPageDownExtend: { // wxStyledTextCtrl::StutteredPageDownExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StutteredPageDownExtend();
+ break;
+}
+case wxStyledTextCtrl_WordLeftEnd: { // wxStyledTextCtrl::WordLeftEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordLeftEnd();
+ break;
+}
+case wxStyledTextCtrl_WordLeftEndExtend: { // wxStyledTextCtrl::WordLeftEndExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordLeftEndExtend();
+ break;
+}
+case wxStyledTextCtrl_WordRightEnd: { // wxStyledTextCtrl::WordRightEnd
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordRightEnd();
+ break;
+}
+case wxStyledTextCtrl_WordRightEndExtend: { // wxStyledTextCtrl::WordRightEndExtend
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->WordRightEndExtend();
+ break;
+}
+case wxStyledTextCtrl_SetWhitespaceChars: { // wxStyledTextCtrl::SetWhitespaceChars
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * charactersLen = (int *) bp; bp += 4;
+ wxString characters = wxString(bp, wxConvUTF8);
+ bp += *charactersLen+((8-((0+ *charactersLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetWhitespaceChars(characters);
+ break;
+}
+case wxStyledTextCtrl_SetCharsDefault: { // wxStyledTextCtrl::SetCharsDefault
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCharsDefault();
+ break;
+}
+case wxStyledTextCtrl_AutoCompGetCurrent: { // wxStyledTextCtrl::AutoCompGetCurrent
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->AutoCompGetCurrent();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_Allocate: { // wxStyledTextCtrl::Allocate
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * bytes = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Allocate((int) *bytes);
+ break;
+}
+case wxStyledTextCtrl_FindColumn: { // wxStyledTextCtrl::FindColumn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ int * column = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->FindColumn((int) *line,(int) *column);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCaretSticky: { // wxStyledTextCtrl::GetCaretSticky
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetCaretSticky();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetCaretSticky: { // wxStyledTextCtrl::SetCaretSticky
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * useCaretStickyBehaviour = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretSticky((bool) *useCaretStickyBehaviour);
+ break;
+}
+case wxStyledTextCtrl_ToggleCaretSticky: { // wxStyledTextCtrl::ToggleCaretSticky
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ToggleCaretSticky();
+ break;
+}
+case wxStyledTextCtrl_SetPasteConvertEndings: { // wxStyledTextCtrl::SetPasteConvertEndings
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * convert = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPasteConvertEndings((bool) *convert);
+ break;
+}
+case wxStyledTextCtrl_GetPasteConvertEndings: { // wxStyledTextCtrl::GetPasteConvertEndings
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetPasteConvertEndings();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SelectionDuplicate: { // wxStyledTextCtrl::SelectionDuplicate
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectionDuplicate();
+ break;
+}
+case wxStyledTextCtrl_SetCaretLineBackAlpha: { // wxStyledTextCtrl::SetCaretLineBackAlpha
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * alpha = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCaretLineBackAlpha((int) *alpha);
+ break;
+}
+case wxStyledTextCtrl_GetCaretLineBackAlpha: { // wxStyledTextCtrl::GetCaretLineBackAlpha
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCaretLineBackAlpha();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_StartRecord: { // wxStyledTextCtrl::StartRecord
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StartRecord();
+ break;
+}
+case wxStyledTextCtrl_StopRecord: { // wxStyledTextCtrl::StopRecord
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StopRecord();
+ break;
+}
+case wxStyledTextCtrl_SetLexer: { // wxStyledTextCtrl::SetLexer
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * lexer = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLexer((int) *lexer);
+ break;
+}
+case wxStyledTextCtrl_GetLexer: { // wxStyledTextCtrl::GetLexer
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetLexer();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_Colourise: { // wxStyledTextCtrl::Colourise
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * start = (int *) bp; bp += 4;
+ int * end = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Colourise((int) *start,(int) *end);
+ break;
+}
+case wxStyledTextCtrl_SetProperty: { // wxStyledTextCtrl::SetProperty
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * keyLen = (int *) bp; bp += 4;
+ wxString key = wxString(bp, wxConvUTF8);
+ bp += *keyLen+((8-((0+ *keyLen) & 7)) & 7);
+ int * valueLen = (int *) bp; bp += 4;
+ wxString value = wxString(bp, wxConvUTF8);
+ bp += *valueLen+((8-((4+ *valueLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetProperty(key,value);
+ break;
+}
+case wxStyledTextCtrl_SetKeyWords: { // wxStyledTextCtrl::SetKeyWords
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * keywordSet = (int *) bp; bp += 4;
+ int * keyWordsLen = (int *) bp; bp += 4;
+ wxString keyWords = wxString(bp, wxConvUTF8);
+ bp += *keyWordsLen+((8-((4+ *keyWordsLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetKeyWords((int) *keywordSet,keyWords);
+ break;
+}
+case wxStyledTextCtrl_SetLexerLanguage: { // wxStyledTextCtrl::SetLexerLanguage
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * languageLen = (int *) bp; bp += 4;
+ wxString language = wxString(bp, wxConvUTF8);
+ bp += *languageLen+((8-((0+ *languageLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetLexerLanguage(language);
+ break;
+}
+case wxStyledTextCtrl_GetProperty: { // wxStyledTextCtrl::GetProperty
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * keyLen = (int *) bp; bp += 4;
+ wxString key = wxString(bp, wxConvUTF8);
+ bp += *keyLen+((8-((0+ *keyLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetProperty(key);
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_GetStyleBitsNeeded: { // wxStyledTextCtrl::GetStyleBitsNeeded
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetStyleBitsNeeded();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_GetCurrentLine: { // wxStyledTextCtrl::GetCurrentLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetCurrentLine();
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_StyleSetSpec: { // wxStyledTextCtrl::StyleSetSpec
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * styleNum = (int *) bp; bp += 4;
+ int * specLen = (int *) bp; bp += 4;
+ wxString spec = wxString(bp, wxConvUTF8);
+ bp += *specLen+((8-((4+ *specLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetSpec((int) *styleNum,spec);
+ break;
+}
+case wxStyledTextCtrl_StyleSetFont: { // wxStyledTextCtrl::StyleSetFont
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * styleNum = (int *) bp; bp += 4;
+ wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetFont((int) *styleNum,*font);
+ break;
+}
+case wxStyledTextCtrl_StyleSetFontAttr: { // wxStyledTextCtrl::StyleSetFontAttr
+ wxFontEncoding encoding=wxFONTENCODING_DEFAULT;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * styleNum = (int *) bp; bp += 4;
+ int * size = (int *) bp; bp += 4;
+ int * faceNameLen = (int *) bp; bp += 4;
+ wxString faceName = wxString(bp, wxConvUTF8);
+ bp += *faceNameLen+((8-((0+ *faceNameLen) & 7)) & 7);
+ bool * bold = (bool *) bp; bp += 4;
+ bool * italic = (bool *) bp; bp += 4;
+ bool * underline = (bool *) bp; bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+encoding = *(wxFontEncoding *) bp; bp += 4;;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetFontAttr((int) *styleNum,(int) *size,faceName,(bool) *bold,(bool) *italic,(bool) *underline,(wxFontEncoding) encoding);
+ break;
+}
+case wxStyledTextCtrl_StyleSetCharacterSet: { // wxStyledTextCtrl::StyleSetCharacterSet
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ int * characterSet = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetCharacterSet((int) *style,(int) *characterSet);
+ break;
+}
+case wxStyledTextCtrl_StyleSetFontEncoding: { // wxStyledTextCtrl::StyleSetFontEncoding
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * style = (int *) bp; bp += 4;
+ wxFontEncoding encoding = *(wxFontEncoding *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ This->StyleSetFontEncoding((int) *style,(wxFontEncoding) encoding);
+ break;
+}
+case wxStyledTextCtrl_CmdKeyExecute: { // wxStyledTextCtrl::CmdKeyExecute
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * cmd = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->CmdKeyExecute((int) *cmd);
+ break;
+}
+case wxStyledTextCtrl_SetMargins: { // wxStyledTextCtrl::SetMargins
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * left = (int *) bp; bp += 4;
+ int * right = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMargins((int) *left,(int) *right);
+ break;
+}
+case wxStyledTextCtrl_GetSelection: { // wxStyledTextCtrl::GetSelection
+ int startPos;
+ int endPos;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->GetSelection(&startPos,&endPos);
+ rt.addInt(startPos);
+ rt.addInt(endPos);
+ rt.addTupleCount(2);
+ break;
+}
+case wxStyledTextCtrl_PointFromPosition: { // wxStyledTextCtrl::PointFromPosition
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->PointFromPosition((int) *pos);
+ rt.add(Result);
+ break;
+}
+case wxStyledTextCtrl_ScrollToLine: { // wxStyledTextCtrl::ScrollToLine
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ScrollToLine((int) *line);
+ break;
+}
+case wxStyledTextCtrl_ScrollToColumn: { // wxStyledTextCtrl::ScrollToColumn
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * column = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->ScrollToColumn((int) *column);
+ break;
+}
+case wxStyledTextCtrl_SendMsg: { // wxStyledTextCtrl::SendMsg
+ long wp=0;
+ long lp=0;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * msg = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ wp = (long)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ lp = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ long Result = This->SendMsg((int) *msg,wp,lp);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_SetVScrollBar: { // wxStyledTextCtrl::SetVScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxScrollBar *bar = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetVScrollBar(bar);
+ break;
+}
+case wxStyledTextCtrl_SetHScrollBar: { // wxStyledTextCtrl::SetHScrollBar
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ wxScrollBar *bar = (wxScrollBar *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetHScrollBar(bar);
+ break;
+}
+case wxStyledTextCtrl_GetLastKeydownProcessed: { // wxStyledTextCtrl::GetLastKeydownProcessed
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetLastKeydownProcessed();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_SetLastKeydownProcessed: { // wxStyledTextCtrl::SetLastKeydownProcessed
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ bool * val = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetLastKeydownProcessed((bool) *val);
+ break;
+}
+case wxStyledTextCtrl_SaveFile: { // wxStyledTextCtrl::SaveFile
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((0+ *filenameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SaveFile(filename);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_LoadFile: { // wxStyledTextCtrl::LoadFile
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((0+ *filenameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(filename);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_DoDragOver: { // wxStyledTextCtrl::DoDragOver
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ wxDragResult def = *(wxDragResult *) bp; bp += 4;;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->DoDragOver((wxCoord) *x,(wxCoord) *y,(wxDragResult) def);
+ rt.addInt(Result);
+ break;
+}
+case wxStyledTextCtrl_DoDropText: { // wxStyledTextCtrl::DoDropText
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * x = (int *) bp; bp += 4;
+ int * y = (int *) bp; bp += 4;
+ int * dataLen = (int *) bp; bp += 4;
+ wxString data = wxString(bp, wxConvUTF8);
+ bp += *dataLen+((8-((0+ *dataLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->DoDropText((long) *x,(long) *y,data);
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_GetUseAntiAliasing: { // wxStyledTextCtrl::GetUseAntiAliasing
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetUseAntiAliasing();
+ rt.addBool(Result);
+ break;
+}
+case wxStyledTextCtrl_AddTextRaw: { // wxStyledTextCtrl::AddTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ const char * text = (const char*) Ecmd.bin[0]->base;
+ if(!This) throw wxe_badarg(0);
+ This->AddTextRaw(text);
+ break;
+}
+case wxStyledTextCtrl_InsertTextRaw: { // wxStyledTextCtrl::InsertTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ const char * text = (const char*) Ecmd.bin[0]->base;
+ if(!This) throw wxe_badarg(0);
+ This->InsertTextRaw((int) *pos,text);
+ break;
+}
+case wxStyledTextCtrl_GetCurLineRaw: { // wxStyledTextCtrl::GetCurLineRaw
+ int linePos;
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = This->GetCurLineRaw(&linePos).data();
+ if(Result) {
+ rt.addBinary(Result, strlen(Result));
+ } else {rt.addAtom("null");};
+ rt.addInt(linePos);
+ rt.addTupleCount(2);
+ break;
+}
+case wxStyledTextCtrl_GetLineRaw: { // wxStyledTextCtrl::GetLineRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * line = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = This->GetLineRaw((int) *line).data();
+ if(Result) {
+ rt.addBinary(Result, strlen(Result));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxStyledTextCtrl_GetSelectedTextRaw: { // wxStyledTextCtrl::GetSelectedTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = This->GetSelectedTextRaw().data();
+ if(Result) {
+ rt.addBinary(Result, strlen(Result));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxStyledTextCtrl_GetTextRangeRaw: { // wxStyledTextCtrl::GetTextRangeRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ int * startPos = (int *) bp; bp += 4;
+ int * endPos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = This->GetTextRangeRaw((int) *startPos,(int) *endPos).data();
+ if(Result) {
+ rt.addBinary(Result, strlen(Result));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxStyledTextCtrl_SetTextRaw: { // wxStyledTextCtrl::SetTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ const char * text = (const char*) Ecmd.bin[0]->base;
+ if(!This) throw wxe_badarg(0);
+ This->SetTextRaw(text);
+ break;
+}
+case wxStyledTextCtrl_GetTextRaw: { // wxStyledTextCtrl::GetTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ char * Result = This->GetTextRaw().data();
+ if(Result) {
+ rt.addBinary(Result, strlen(Result));
+ } else {rt.addAtom("null");};
+ break;
+}
+case wxStyledTextCtrl_AppendTextRaw: { // wxStyledTextCtrl::AppendTextRaw
+ wxStyledTextCtrl *This = (wxStyledTextCtrl *) getPtr(bp,memenv); bp += 4;
+ const char * text = (const char*) Ecmd.bin[0]->base;
+ if(!This) throw wxe_badarg(0);
+ This->AppendTextRaw(text);
+ break;
+}
+case wxArtProvider_GetBitmap: { // wxArtProvider::GetBitmap
+ wxArtClient client= wxART_OTHER;
+ wxSize size= wxDefaultSize;
+ int * idLen = (int *) bp; bp += 4;
+ wxString id = wxString(bp, wxConvUTF8);
+ bp += *idLen+((8-((4+ *idLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * clientLen = (int *) bp; bp += 4;
+ client = wxString(bp, wxConvUTF8);
+ bp += *clientLen+((8-((0+ *clientLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxBitmap * Result = new wxBitmap(wxArtProvider::GetBitmap(id,client,size)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxArtProvider_GetIcon: { // wxArtProvider::GetIcon
+ wxArtClient client= wxART_OTHER;
+ wxSize size= wxDefaultSize;
+ int * idLen = (int *) bp; bp += 4;
+ wxString id = wxString(bp, wxConvUTF8);
+ bp += *idLen+((8-((4+ *idLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * clientLen = (int *) bp; bp += 4;
+ client = wxString(bp, wxConvUTF8);
+ bp += *clientLen+((8-((0+ *clientLen) & 7)) & 7);
+ } break;
+ case 2: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ }};
+ wxIcon * Result = new wxIcon(wxArtProvider::GetIcon(id,client,size)); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxIcon");
+ break;
+}
+case wxTreeEvent_GetKeyCode: { // wxTreeEvent::GetKeyCode
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetKeyCode();
+ rt.addInt(Result);
+ break;
+}
+case wxTreeEvent_GetItem: { // wxTreeEvent::GetItem
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetItem();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeEvent_GetKeyEvent: { // wxTreeEvent::GetKeyEvent
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxKeyEvent * Result = &This->GetKeyEvent();
+ rt.addRef(getRef((void *)Result,memenv), "wxKeyEvent");
+ break;
+}
+case wxTreeEvent_GetLabel: { // wxTreeEvent::GetLabel
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxString * Result = &This->GetLabel();
+ rt.add(Result);
+ break;
+}
+case wxTreeEvent_GetOldItem: { // wxTreeEvent::GetOldItem
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxTreeItemId Result = This->GetOldItem();
+ rt.addRef(getRef((void *)Result.m_pItem,memenv), "wxTreeItemId");
+ break;
+}
+case wxTreeEvent_GetPoint: { // wxTreeEvent::GetPoint
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxPoint Result = This->GetPoint();
+ rt.add(Result);
+ break;
+}
+case wxTreeEvent_IsEditCancelled: { // wxTreeEvent::IsEditCancelled
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsEditCancelled();
+ rt.addBool(Result);
+ break;
+}
+case wxTreeEvent_SetToolTip: { // wxTreeEvent::SetToolTip
+ wxTreeEvent *This = (wxTreeEvent *) getPtr(bp,memenv); bp += 4;
+ int * toolTipLen = (int *) bp; bp += 4;
+ wxString toolTip = wxString(bp, wxConvUTF8);
+ bp += *toolTipLen+((8-((0+ *toolTipLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetToolTip(toolTip);
+ break;
+}
+case wxNotebookEvent_GetOldSelection: { // wxNotebookEvent::GetOldSelection
+ wxNotebookEvent *This = (wxNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOldSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxNotebookEvent_GetSelection: { // wxNotebookEvent::GetSelection
+ wxNotebookEvent *This = (wxNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxNotebookEvent_SetOldSelection: { // wxNotebookEvent::SetOldSelection
+ wxNotebookEvent *This = (wxNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ int * nOldSel = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetOldSelection((int) *nOldSel);
+ break;
+}
+case wxNotebookEvent_SetSelection: { // wxNotebookEvent::SetSelection
+ wxNotebookEvent *This = (wxNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ int * nSel = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *nSel);
+ break;
+}
+case wxFileDataObject_new: { // wxFileDataObject::wxFileDataObject
+ wxFileDataObject * Result = new wxFileDataObject();
+ newPtr((void *) Result, 211, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxFileDataObject");
+ break;
+}
+case wxFileDataObject_AddFile: { // wxFileDataObject::AddFile
+ wxFileDataObject *This = (wxFileDataObject *) getPtr(bp,memenv); bp += 4;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filename = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((0+ *filenameLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->AddFile(filename);
+ break;
+}
+case wxFileDataObject_GetFilenames: { // wxFileDataObject::GetFilenames
+ wxFileDataObject *This = (wxFileDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxArrayString Result = This->GetFilenames();
+ rt.add(Result);
+ break;
+}
+case wxFileDataObject_destroy: { // wxFileDataObject::destroy
+ wxFileDataObject *This = (wxFileDataObject *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxTextDataObject_new: { // wxTextDataObject::wxTextDataObject
+ wxString text= wxEmptyString;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ } break;
+ }};
+ wxTextDataObject * Result = new wxTextDataObject(text);
+ newPtr((void *) Result, 212, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxTextDataObject");
+ break;
+}
+case wxTextDataObject_GetTextLength: { // wxTextDataObject::GetTextLength
+ wxTextDataObject *This = (wxTextDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ size_t Result = This->GetTextLength();
+ rt.addInt(Result);
+ break;
+}
+case wxTextDataObject_GetText: { // wxTextDataObject::GetText
+ wxTextDataObject *This = (wxTextDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetText();
+ rt.add(Result);
+ break;
+}
+case wxTextDataObject_SetText: { // wxTextDataObject::SetText
+ wxTextDataObject *This = (wxTextDataObject *) getPtr(bp,memenv); bp += 4;
+ int * textLen = (int *) bp; bp += 4;
+ wxString text = wxString(bp, wxConvUTF8);
+ bp += *textLen+((8-((0+ *textLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetText(text);
+ break;
+}
+case wxTextDataObject_destroy: { // wxTextDataObject::destroy
+ wxTextDataObject *This = (wxTextDataObject *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxBitmapDataObject_new_1_1: { // wxBitmapDataObject::wxBitmapDataObject
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ wxBitmapDataObject * Result = new wxBitmapDataObject(*bitmap);
+ newPtr((void *) Result, 213, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmapDataObject");
+ break;
+}
+case wxBitmapDataObject_new_1_0: { // wxBitmapDataObject::wxBitmapDataObject
+ const wxBitmap * bitmap= &wxNullBitmap;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ wxBitmapDataObject * Result = new wxBitmapDataObject(*bitmap);
+ newPtr((void *) Result, 213, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmapDataObject");
+ break;
+}
+case wxBitmapDataObject_GetBitmap: { // wxBitmapDataObject::GetBitmap
+ wxBitmapDataObject *This = (wxBitmapDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxBitmap * Result = new wxBitmap(This->GetBitmap()); newPtr((void *) Result,3, memenv);;
+ rt.addRef(getRef((void *)Result,memenv), "wxBitmap");
+ break;
+}
+case wxBitmapDataObject_SetBitmap: { // wxBitmapDataObject::SetBitmap
+ wxBitmapDataObject *This = (wxBitmapDataObject *) getPtr(bp,memenv); bp += 4;
+ wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBitmap(*bitmap);
+ break;
+}
+case wxBitmapDataObject_destroy: { // wxBitmapDataObject::destroy
+ wxBitmapDataObject *This = (wxBitmapDataObject *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+case wxClipboard_new: { // wxClipboard::wxClipboard
+ wxClipboard * Result = new EwxClipboard();
+ newPtr((void *) Result, 1, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxClipboard");
+ break;
+}
+case wxClipboard_AddData: { // wxClipboard::AddData
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ wxDataObject *data = (wxDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AddData(data);
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_Clear: { // wxClipboard::Clear
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Clear();
+ break;
+}
+case wxClipboard_Close: { // wxClipboard::Close
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Close();
+ break;
+}
+case wxClipboard_Flush: { // wxClipboard::Flush
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Flush();
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_GetData: { // wxClipboard::GetData
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ wxDataObject *data = (wxDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetData(*data);
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_IsOpened: { // wxClipboard::IsOpened
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsOpened();
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_Open: { // wxClipboard::Open
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Open();
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_SetData: { // wxClipboard::SetData
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ wxDataObject *data = (wxDataObject *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetData(data);
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_UsePrimarySelection: { // wxClipboard::UsePrimarySelection
+ bool primary=false;
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ primary = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->UsePrimarySelection(primary);
+ break;
+}
+case wxClipboard_IsSupported: { // wxClipboard::IsSupported
+ wxClipboard *This = (wxClipboard *) getPtr(bp,memenv); bp += 4;
+ const int * format = (const int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSupported((wxDataFormatId) *format);
+ rt.addBool(Result);
+ break;
+}
+case wxClipboard_Get: { // wxClipboard::Get
+ wxClipboard * Result = (wxClipboard*)wxClipboard::Get();
+ rt.addRef(getRef((void *)Result,memenv), "wxClipboard");
+ break;
+}
+case wxSpinEvent_GetPosition: { // wxSpinEvent::GetPosition
+ wxSpinEvent *This = (wxSpinEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxSpinEvent_SetPosition: { // wxSpinEvent::SetPosition
+ wxSpinEvent *This = (wxSpinEvent *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPosition((int) *pos);
+ break;
+}
+case wxSplitterWindow_new_0: { // wxSplitterWindow::wxSplitterWindow
+ wxSplitterWindow * Result = new EwxSplitterWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSplitterWindow");
+ break;
+}
+case wxSplitterWindow_new_2: { // wxSplitterWindow::wxSplitterWindow
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_3D;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxSplitterWindow * Result = new EwxSplitterWindow(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxSplitterWindow");
+ break;
+}
+case wxSplitterWindow_Create: { // wxSplitterWindow::Create
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=wxSP_3D;
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Create(parent,id,pos,size,style);
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_GetMinimumPaneSize: { // wxSplitterWindow::GetMinimumPaneSize
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetMinimumPaneSize();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterWindow_GetSashGravity: { // wxSplitterWindow::GetSashGravity
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ double Result = This->GetSashGravity();
+ rt.addFloat(Result);
+ break;
+}
+case wxSplitterWindow_GetSashPosition: { // wxSplitterWindow::GetSashPosition
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSashPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterWindow_GetSplitMode: { // wxSplitterWindow::GetSplitMode
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSplitMode();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterWindow_GetWindow1: { // wxSplitterWindow::GetWindow1
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow1();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxSplitterWindow_GetWindow2: { // wxSplitterWindow::GetWindow2
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindow2();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxSplitterWindow_Initialize: { // wxSplitterWindow::Initialize
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->Initialize(window);
+ break;
+}
+case wxSplitterWindow_IsSplit: { // wxSplitterWindow::IsSplit
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->IsSplit();
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_ReplaceWindow: { // wxSplitterWindow::ReplaceWindow
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *winOld = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *winNew = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->ReplaceWindow(winOld,winNew);
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_SetSashGravity: { // wxSplitterWindow::SetSashGravity
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ double * gravity = (double *) bp; bp += 8;
+ if(!This) throw wxe_badarg(0);
+ This->SetSashGravity((double) *gravity);
+ break;
+}
+case wxSplitterWindow_SetSashPosition: { // wxSplitterWindow::SetSashPosition
+ bool redraw=true;
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ int * position = (int *) bp; bp += 4;
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ redraw = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetSashPosition((int) *position,redraw);
+ break;
+}
+case wxSplitterWindow_SetSashSize: { // wxSplitterWindow::SetSashSize
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ int * width = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSashSize((int) *width);
+ break;
+}
+case wxSplitterWindow_SetMinimumPaneSize: { // wxSplitterWindow::SetMinimumPaneSize
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ int * min = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetMinimumPaneSize((int) *min);
+ break;
+}
+case wxSplitterWindow_SetSplitMode: { // wxSplitterWindow::SetSplitMode
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ int * mode = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSplitMode((int) *mode);
+ break;
+}
+case wxSplitterWindow_SplitHorizontally: { // wxSplitterWindow::SplitHorizontally
+ int sashPosition=0;
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window1 = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window2 = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sashPosition = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SplitHorizontally(window1,window2,sashPosition);
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_SplitVertically: { // wxSplitterWindow::SplitVertically
+ int sashPosition=0;
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window1 = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ wxWindow *window2 = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sashPosition = (int)*(int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SplitVertically(window1,window2,sashPosition);
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_Unsplit: { // wxSplitterWindow::Unsplit
+ wxWindow * toRemove=(wxWindow *) NULL;
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+toRemove = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->Unsplit(toRemove);
+ rt.addBool(Result);
+ break;
+}
+case wxSplitterWindow_UpdateSize: { // wxSplitterWindow::UpdateSize
+ wxSplitterWindow *This = (wxSplitterWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->UpdateSize();
+ break;
+}
+case wxSplitterEvent_GetSashPosition: { // wxSplitterEvent::GetSashPosition
+ wxSplitterEvent *This = (wxSplitterEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSashPosition();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterEvent_GetX: { // wxSplitterEvent::GetX
+ wxSplitterEvent *This = (wxSplitterEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetX();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterEvent_GetY: { // wxSplitterEvent::GetY
+ wxSplitterEvent *This = (wxSplitterEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetY();
+ rt.addInt(Result);
+ break;
+}
+case wxSplitterEvent_GetWindowBeingRemoved: { // wxSplitterEvent::GetWindowBeingRemoved
+ wxSplitterEvent *This = (wxSplitterEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxWindow * Result = (wxWindow*)This->GetWindowBeingRemoved();
+ rt.addRef(getRef((void *)Result,memenv), "wxWindow");
+ break;
+}
+case wxSplitterEvent_SetSashPosition: { // wxSplitterEvent::SetSashPosition
+ wxSplitterEvent *This = (wxSplitterEvent *) getPtr(bp,memenv); bp += 4;
+ int * pos = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSashPosition((int) *pos);
+ break;
+}
+case wxHtmlWindow_new_0: { // wxHtmlWindow::wxHtmlWindow
+ wxHtmlWindow * Result = new EwxHtmlWindow();
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxHtmlWindow");
+ break;
+}
+case wxHtmlWindow_new_2: { // wxHtmlWindow::wxHtmlWindow
+ wxWindowID id=wxID_ANY;
+ wxPoint pos= wxDefaultPosition;
+ wxSize size= wxDefaultSize;
+ long style=0x0004;
+ wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ id = (wxWindowID)*(int *) bp; bp += 4;
+ } break;
+ case 2: {bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ pos = wxPoint(*posX,*posY);
+ bp += 4; /* Align */
+ } break;
+ case 3: {bp += 4;
+ int * sizeW = (int *) bp; bp += 4;
+ int * sizeH = (int *) bp; bp += 4;
+ size = wxSize(*sizeW,*sizeH);
+ bp += 4; /* Align */
+ } break;
+ case 4: {bp += 4;
+ style = (long)*(int *) bp; bp += 4;
+ } break;
+ }};
+ wxHtmlWindow * Result = new EwxHtmlWindow(parent,id,pos,size,style);
+ newPtr((void *) Result, 0, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxHtmlWindow");
+ break;
+}
+case wxHtmlWindow_AppendToPage: { // wxHtmlWindow::AppendToPage
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * sourceLen = (int *) bp; bp += 4;
+ wxString source = wxString(bp, wxConvUTF8);
+ bp += *sourceLen+((8-((0+ *sourceLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->AppendToPage(source);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_GetOpenedAnchor: { // wxHtmlWindow::GetOpenedAnchor
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetOpenedAnchor();
+ rt.add(Result);
+ break;
+}
+case wxHtmlWindow_GetOpenedPage: { // wxHtmlWindow::GetOpenedPage
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetOpenedPage();
+ rt.add(Result);
+ break;
+}
+case wxHtmlWindow_GetOpenedPageTitle: { // wxHtmlWindow::GetOpenedPageTitle
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->GetOpenedPageTitle();
+ rt.add(Result);
+ break;
+}
+case wxHtmlWindow_GetRelatedFrame: { // wxHtmlWindow::GetRelatedFrame
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxFrame * Result = (wxFrame*)This->GetRelatedFrame();
+ rt.addRef(getRef((void *)Result,memenv), "wxFrame");
+ break;
+}
+case wxHtmlWindow_HistoryBack: { // wxHtmlWindow::HistoryBack
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HistoryBack();
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_HistoryCanBack: { // wxHtmlWindow::HistoryCanBack
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HistoryCanBack();
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_HistoryCanForward: { // wxHtmlWindow::HistoryCanForward
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HistoryCanForward();
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_HistoryClear: { // wxHtmlWindow::HistoryClear
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->HistoryClear();
+ break;
+}
+case wxHtmlWindow_HistoryForward: { // wxHtmlWindow::HistoryForward
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->HistoryForward();
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_LoadFile: { // wxHtmlWindow::LoadFile
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * filenameLen = (int *) bp; bp += 4;
+ wxString filenameStr = wxString(bp, wxConvUTF8);
+ bp += *filenameLen+((8-((0+ *filenameLen) & 7)) & 7);
+ wxFileName filename = wxFileName(filenameStr);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadFile(filename);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_LoadPage: { // wxHtmlWindow::LoadPage
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * locationLen = (int *) bp; bp += 4;
+ wxString location = wxString(bp, wxConvUTF8);
+ bp += *locationLen+((8-((0+ *locationLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->LoadPage(location);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_SelectAll: { // wxHtmlWindow::SelectAll
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SelectAll();
+ break;
+}
+case wxHtmlWindow_SelectionToText: { // wxHtmlWindow::SelectionToText
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->SelectionToText();
+ rt.add(Result);
+ break;
+}
+case wxHtmlWindow_SelectLine: { // wxHtmlWindow::SelectLine
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ This->SelectLine(pos);
+ break;
+}
+case wxHtmlWindow_SelectWord: { // wxHtmlWindow::SelectWord
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * posX = (int *) bp; bp += 4;
+ int * posY = (int *) bp; bp += 4;
+ wxPoint pos = wxPoint(*posX,*posY);
+ if(!This) throw wxe_badarg(0);
+ This->SelectWord(pos);
+ break;
+}
+case wxHtmlWindow_SetBorders: { // wxHtmlWindow::SetBorders
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * b = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetBorders((int) *b);
+ break;
+}
+case wxHtmlWindow_SetFonts: { // wxHtmlWindow::SetFonts
+ int *sizes=NULL;
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * normal_faceLen = (int *) bp; bp += 4;
+ wxString normal_face = wxString(bp, wxConvUTF8);
+ bp += *normal_faceLen+((8-((0+ *normal_faceLen) & 7)) & 7);
+ int * fixed_faceLen = (int *) bp; bp += 4;
+ wxString fixed_face = wxString(bp, wxConvUTF8);
+ bp += *fixed_faceLen+((8-((4+ *fixed_faceLen) & 7)) & 7);
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ sizes = (int *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->SetFonts(normal_face,fixed_face,sizes);
+ break;
+}
+case wxHtmlWindow_SetPage: { // wxHtmlWindow::SetPage
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * sourceLen = (int *) bp; bp += 4;
+ wxString source = wxString(bp, wxConvUTF8);
+ bp += *sourceLen+((8-((0+ *sourceLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->SetPage(source);
+ rt.addBool(Result);
+ break;
+}
+case wxHtmlWindow_SetRelatedFrame: { // wxHtmlWindow::SetRelatedFrame
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ wxFrame *frame = (wxFrame *) getPtr(bp,memenv); bp += 4;
+ int * formatLen = (int *) bp; bp += 4;
+ wxString format = wxString(bp, wxConvUTF8);
+ bp += *formatLen+((8-((4+ *formatLen) & 7)) & 7);
+ if(!This) throw wxe_badarg(0);
+ This->SetRelatedFrame(frame,format);
+ break;
+}
+case wxHtmlWindow_SetRelatedStatusBar: { // wxHtmlWindow::SetRelatedStatusBar
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ int * bar = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetRelatedStatusBar((int) *bar);
+ break;
+}
+case wxHtmlWindow_ToText: { // wxHtmlWindow::ToText
+ wxHtmlWindow *This = (wxHtmlWindow *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxString Result = This->ToText();
+ rt.add(Result);
+ break;
+}
+case wxHtmlLinkEvent_GetLinkInfo: { // wxHtmlLinkEvent::GetLinkInfo
+ wxHtmlLinkEvent *This = (wxHtmlLinkEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ const wxHtmlLinkInfo * Result = &This->GetLinkInfo();
+ rt.add(Result);
+ break;
+}
+case wxAuiNotebookEvent_SetSelection: { // wxAuiNotebookEvent::SetSelection
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ int * s = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetSelection((int) *s);
+ break;
+}
+case wxAuiNotebookEvent_GetSelection: { // wxAuiNotebookEvent::GetSelection
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebookEvent_SetOldSelection: { // wxAuiNotebookEvent::SetOldSelection
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ int * s = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetOldSelection((int) *s);
+ break;
+}
+case wxAuiNotebookEvent_GetOldSelection: { // wxAuiNotebookEvent::GetOldSelection
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetOldSelection();
+ rt.addInt(Result);
+ break;
+}
+case wxAuiNotebookEvent_SetDragSource: { // wxAuiNotebookEvent::SetDragSource
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ wxAuiNotebook *s = (wxAuiNotebook *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDragSource(s);
+ break;
+}
+case wxAuiNotebookEvent_GetDragSource: { // wxAuiNotebookEvent::GetDragSource
+ wxAuiNotebookEvent *This = (wxAuiNotebookEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiNotebook * Result = (wxAuiNotebook*)This->GetDragSource();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiNotebook");
+ break;
+}
+case wxAuiManagerEvent_SetManager: { // wxAuiManagerEvent::SetManager
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ wxAuiManager *mgr = (wxAuiManager *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetManager(mgr);
+ break;
+}
+case wxAuiManagerEvent_GetManager: { // wxAuiManagerEvent::GetManager
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiManager * Result = (wxAuiManager*)This->GetManager();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiManager");
+ break;
+}
+case wxAuiManagerEvent_SetPane: { // wxAuiManagerEvent::SetPane
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ wxAuiPaneInfo *p = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetPane(p);
+ break;
+}
+case wxAuiManagerEvent_GetPane: { // wxAuiManagerEvent::GetPane
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxAuiPaneInfo * Result = (wxAuiPaneInfo*)This->GetPane();
+ rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo");
+ break;
+}
+case wxAuiManagerEvent_SetButton: { // wxAuiManagerEvent::SetButton
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ int * b = (int *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetButton((int) *b);
+ break;
+}
+case wxAuiManagerEvent_GetButton: { // wxAuiManagerEvent::GetButton
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ int Result = This->GetButton();
+ rt.addInt(Result);
+ break;
+}
+case wxAuiManagerEvent_SetDC: { // wxAuiManagerEvent::SetDC
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ wxDC *pdc = (wxDC *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetDC(pdc);
+ break;
+}
+case wxAuiManagerEvent_GetDC: { // wxAuiManagerEvent::GetDC
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ wxDC * Result = (wxDC*)This->GetDC();
+ rt.addRef(getRef((void *)Result,memenv), "wxDC");
+ break;
+}
+case wxAuiManagerEvent_Veto: { // wxAuiManagerEvent::Veto
+ bool veto=true;
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ bp += 4; /* Align */
+ while( * (int*) bp) { switch (* (int*) bp) {
+ case 1: {bp += 4;
+ veto = *(bool *) bp; bp += 4;
+ } break;
+ }};
+ if(!This) throw wxe_badarg(0);
+ This->Veto(veto);
+ break;
+}
+case wxAuiManagerEvent_GetVeto: { // wxAuiManagerEvent::GetVeto
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->GetVeto();
+ rt.addBool(Result);
+ break;
+}
+case wxAuiManagerEvent_SetCanVeto: { // wxAuiManagerEvent::SetCanVeto
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ bool * can_veto = (bool *) bp; bp += 4;
+ if(!This) throw wxe_badarg(0);
+ This->SetCanVeto((bool) *can_veto);
+ break;
+}
+case wxAuiManagerEvent_CanVeto: { // wxAuiManagerEvent::CanVeto
+ wxAuiManagerEvent *This = (wxAuiManagerEvent *) getPtr(bp,memenv); bp += 4;
+ if(!This) throw wxe_badarg(0);
+ bool Result = This->CanVeto();
+ rt.addBool(Result);
+ break;
+}
+case wxLogNull_new: { // wxLogNull::wxLogNull
+ wxLogNull * Result = new wxLogNull();
+ newPtr((void *) Result, 222, memenv);
+ rt.addRef(getRef((void *)Result,memenv), "wxLogNull");
+ break;
+}
+case wxLogNull_destroy: { // wxLogNull::destroy
+ wxLogNull *This = (wxLogNull *) getPtr(bp,memenv); bp += 4;
+ if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This);
+ delete This;}
+ break;
+}
+ default: {
+ wxeReturn error = wxeReturn(WXE_DRV_PORT, Ecmd.caller, false); error.addAtom("_wxe_error_");
+ error.addInt((int) Ecmd.op);
+ error.addAtom("not_supported");
+ error.addTupleCount(3);
+ error.send();
+ return ;
+ }
+} // switch
+ rt.send();
+} catch (wxe_badarg badarg) { // try
+ wxeReturn error = wxeReturn(WXE_DRV_PORT, Ecmd.caller, false); error.addAtom("_wxe_error_");
+ error.addInt((int) Ecmd.op);
+ error.addAtom("badarg");
+ error.addInt((int) badarg.ref);
+ error.addTupleCount(2);
+ error.addTupleCount(3);
+ error.send();
+}} /* The End */
diff --git a/lib/wx/c_src/gen/wxe_init.cpp b/lib/wx/c_src/gen/wxe_init.cpp
new file mode 100644
index 0000000000..c69f853203
--- /dev/null
+++ b/lib/wx/c_src/gen/wxe_init.cpp
@@ -0,0 +1,136 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+ /* This file is also generated */
+#include <wx/wx.h>
+#include "../wxe_impl.h"
+#include "wxe_macros.h"
+#include "../wxe_return.h"
+void WxeApp::init_nonconsts(wxeMemEnv *memenv, ErlDrvTermData caller) {
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, caller);
+ rt.addAtom((char*)"wx_consts");
+ rt.addAtom("wxBYTE_ORDER"); rt.addInt(wxBYTE_ORDER);
+ rt.addTupleCount(2);
+ rt.addAtom("wxDEFAULT_CONTROL_BORDER"); rt.addInt(wxDEFAULT_CONTROL_BORDER);
+ rt.addTupleCount(2);
+ rt.addAtom("wxHAS_INT64"); rt.addInt(wxHAS_INT64);
+ rt.addTupleCount(2);
+ rt.addAtom("wxRETAINED"); rt.addInt(wxRETAINED);
+ rt.addTupleCount(2);
+ rt.addAtom("wxBETA_NUMBER"); rt.addInt(wxBETA_NUMBER);
+ rt.addTupleCount(2);
+ rt.addAtom("wxMAJOR_VERSION"); rt.addInt(wxMAJOR_VERSION);
+ rt.addTupleCount(2);
+ rt.addAtom("wxMINOR_VERSION"); rt.addInt(wxMINOR_VERSION);
+ rt.addTupleCount(2);
+ rt.addAtom("wxRELEASE_NUMBER"); rt.addInt(wxRELEASE_NUMBER);
+ rt.addTupleCount(2);
+ rt.addAtom("wxSUBRELEASE_NUMBER"); rt.addInt(wxSUBRELEASE_NUMBER);
+ rt.addTupleCount(2);
+ rt.addAtom("wxFONTENCODING_UTF16"); rt.addInt(wxFONTENCODING_UTF16);
+ rt.addTupleCount(2);
+ rt.addAtom("wxFONTENCODING_UTF32"); rt.addInt(wxFONTENCODING_UTF32);
+ rt.addTupleCount(2);
+ rt.addAtom("wxMOD_CMD"); rt.addInt(wxMOD_CMD);
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLACK"); rt.add(*(wxBLACK));
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLACK_BRUSH"); rt.addRef(getRef((void *)wxBLACK_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLACK_DASHED_PEN"); rt.addRef(getRef((void *)wxBLACK_DASHED_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLACK_PEN"); rt.addRef(getRef((void *)wxBLACK_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLUE"); rt.add(*(wxBLUE));
+ rt.addTupleCount(2);
+ rt.addAtom("wxBLUE_BRUSH"); rt.addRef(getRef((void *)wxBLUE_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxCROSS_CURSOR"); rt.addRef(getRef((void *)wxCROSS_CURSOR,memenv),"wxCursor");
+ rt.addTupleCount(2);
+ rt.addAtom("wxCYAN"); rt.add(*(wxCYAN));
+ rt.addTupleCount(2);
+ rt.addAtom("wxCYAN_BRUSH"); rt.addRef(getRef((void *)wxCYAN_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxCYAN_PEN"); rt.addRef(getRef((void *)wxCYAN_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxGREEN"); rt.add(*(wxGREEN));
+ rt.addTupleCount(2);
+ rt.addAtom("wxGREEN_BRUSH"); rt.addRef(getRef((void *)wxGREEN_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxGREEN_PEN"); rt.addRef(getRef((void *)wxGREEN_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxGREY_BRUSH"); rt.addRef(getRef((void *)wxGREY_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxGREY_PEN"); rt.addRef(getRef((void *)wxGREY_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxHOURGLASS_CURSOR"); rt.addRef(getRef((void *)wxHOURGLASS_CURSOR,memenv),"wxCursor");
+ rt.addTupleCount(2);
+ rt.addAtom("wxITALIC_FONT"); rt.addRef(getRef((void *)wxITALIC_FONT,memenv),"wxFont");
+ rt.addTupleCount(2);
+ rt.addAtom("wxLIGHT_GREY"); rt.add(*(wxLIGHT_GREY));
+ rt.addTupleCount(2);
+ rt.addAtom("wxLIGHT_GREY_BRUSH"); rt.addRef(getRef((void *)wxLIGHT_GREY_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxLIGHT_GREY_PEN"); rt.addRef(getRef((void *)wxLIGHT_GREY_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxMEDIUM_GREY_BRUSH"); rt.addRef(getRef((void *)wxMEDIUM_GREY_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxMEDIUM_GREY_PEN"); rt.addRef(getRef((void *)wxMEDIUM_GREY_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNORMAL_FONT"); rt.addRef(getRef((void *)wxNORMAL_FONT,memenv),"wxFont");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullBitmap"); rt.addRef(getRef((void *)&wxNullBitmap,memenv), "wxBitmap");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullBrush"); rt.addRef(getRef((void *)&wxNullBrush,memenv), "wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullCursor"); rt.addRef(getRef((void *)&wxNullCursor,memenv), "wxCursor");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullFont"); rt.addRef(getRef((void *)&wxNullFont,memenv), "wxFont");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullIcon"); rt.addRef(getRef((void *)&wxNullIcon,memenv), "wxIcon");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullPalette"); rt.addRef(getRef((void *)&wxNullPalette,memenv), "wxPalette");
+ rt.addTupleCount(2);
+ rt.addAtom("wxNullPen"); rt.addRef(getRef((void *)&wxNullPen,memenv), "wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxRED"); rt.add(*(wxRED));
+ rt.addTupleCount(2);
+ rt.addAtom("wxRED_BRUSH"); rt.addRef(getRef((void *)wxRED_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxRED_PEN"); rt.addRef(getRef((void *)wxRED_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxSMALL_FONT"); rt.addRef(getRef((void *)wxSMALL_FONT,memenv),"wxFont");
+ rt.addTupleCount(2);
+ rt.addAtom("wxSTANDARD_CURSOR"); rt.addRef(getRef((void *)wxSTANDARD_CURSOR,memenv),"wxCursor");
+ rt.addTupleCount(2);
+ rt.addAtom("wxSWISS_FONT"); rt.addRef(getRef((void *)wxSWISS_FONT,memenv),"wxFont");
+ rt.addTupleCount(2);
+ rt.addAtom("wxTRANSPARENT_BRUSH"); rt.addRef(getRef((void *)wxTRANSPARENT_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxTRANSPARENT_PEN"); rt.addRef(getRef((void *)wxTRANSPARENT_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.addAtom("wxWHITE"); rt.add(*(wxWHITE));
+ rt.addTupleCount(2);
+ rt.addAtom("wxWHITE_BRUSH"); rt.addRef(getRef((void *)wxWHITE_BRUSH,memenv),"wxBrush");
+ rt.addTupleCount(2);
+ rt.addAtom("wxWHITE_PEN"); rt.addRef(getRef((void *)wxWHITE_PEN,memenv),"wxPen");
+ rt.addTupleCount(2);
+ rt.endList(53);
+ rt.addTupleCount(2);
+ rt.send();
+}
diff --git a/lib/wx/c_src/gen/wxe_macros.h b/lib/wx/c_src/gen/wxe_macros.h
new file mode 100644
index 0000000000..5e4b4deb9c
--- /dev/null
+++ b/lib/wx/c_src/gen/wxe_macros.h
@@ -0,0 +1,3318 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+*/
+#include <wx/caret.h>
+#include <wx/tooltip.h>
+#include <wx/gbsizer.h>
+#include <wx/splash.h>
+#include <wx/grid.h>
+#include <wx/image.h>
+#include <wx/tglbtn.h>
+#include <wx/calctrl.h>
+#include <wx/dirctrl.h>
+#include <wx/listctrl.h>
+#include <wx/treectrl.h>
+#include <wx/spinbutt.h>
+#include <wx/spinctrl.h>
+#include <wx/colordlg.h>
+#include <wx/fdrepdlg.h>
+#include <wx/fontdlg.h>
+#include <wx/progdlg.h>
+#include <wx/printdlg.h>
+#include <wx/dcbuffer.h>
+#include <wx/dcmirror.h>
+#include <wx/glcanvas.h>
+#include <wx/dcps.h>
+#include <wx/xrc/xmlres.h>
+#include <wx/html/htmprint.h>
+#include <wx/stc/stc.h>
+#include <wx/minifram.h>
+#include <wx/sashwin.h>
+#include <wx/laywin.h>
+#include <wx/graphics.h>
+#include <wx/aui/aui.h>
+#include <wx/datectrl.h>
+#include <wx/filepicker.h>
+#include <wx/fontpicker.h>
+#include <wx/clrpicker.h>
+#include <wx/statline.h>
+#include <wx/clipbrd.h>
+#include <wx/splitter.h>
+#include <wx/choicebk.h>
+#include <wx/toolbook.h>
+#include <wx/listbook.h>
+#include <wx/treebook.h>
+#include <wx/html/htmlwin.h>
+#include <wx/html/htmlcell.h>
+#include <wx/filename.h>
+
+
+#define wxEvtHandler_Connect 100
+#define wxEvtHandler_Disconnect_2 101
+#define wxEvtHandler_Disconnect_1 102
+#define wxEvtHandler_Disconnect_0 103
+#define wxWindow_new_0 105
+#define wxWindow_new_3 106
+#define wxWindow_destruct 108
+#define wxWindow_CacheBestSize 109
+#define wxWindow_CaptureMouse 110
+#define wxWindow_Center 111
+#define wxWindow_CenterOnParent 112
+#define wxWindow_Centre 113
+#define wxWindow_CentreOnParent 114
+#define wxWindow_ClearBackground 115
+#define wxWindow_ClientToScreen_2 116
+#define wxWindow_ClientToScreen_1 117
+#define wxWindow_Close 118
+#define wxWindow_ConvertDialogToPixels 120
+#define wxWindow_ConvertPixelsToDialog 122
+#define wxWindow_Destroy 123
+#define wxWindow_DestroyChildren 124
+#define wxWindow_Disable 125
+#define wxWindow_Enable 126
+#define wxWindow_FindFocus 127
+#define wxWindow_FindWindow_1_0 128
+#define wxWindow_FindWindow_1_1 129
+#define wxWindow_FindWindowById 130
+#define wxWindow_FindWindowByName 131
+#define wxWindow_FindWindowByLabel 132
+#define wxWindow_Fit 133
+#define wxWindow_FitInside 134
+#define wxWindow_Freeze 135
+#define wxWindow_GetAcceleratorTable 136
+#define wxWindow_GetBackgroundColour 137
+#define wxWindow_GetBackgroundStyle 138
+#define wxWindow_GetBestSize 139
+#define wxWindow_GetCaret 141
+#define wxWindow_GetCapture 142
+#define wxWindow_GetCharHeight 143
+#define wxWindow_GetCharWidth 144
+#define wxWindow_GetChildren 145
+#define wxWindow_GetClientSize 148
+#define wxWindow_GetContainingSizer 149
+#define wxWindow_GetCursor 150
+#define wxWindow_GetDropTarget 151
+#define wxWindow_GetEventHandler 152
+#define wxWindow_GetExtraStyle 153
+#define wxWindow_GetFont 154
+#define wxWindow_GetForegroundColour 155
+#define wxWindow_GetGrandParent 156
+#define wxWindow_GetHandle 157
+#define wxWindow_GetHelpText 158
+#define wxWindow_GetId 159
+#define wxWindow_GetLabel 160
+#define wxWindow_GetMaxSize 161
+#define wxWindow_GetMinSize 162
+#define wxWindow_GetName 163
+#define wxWindow_GetParent 164
+#define wxWindow_GetPosition 166
+#define wxWindow_GetRect 167
+#define wxWindow_GetScreenPosition 169
+#define wxWindow_GetScreenRect 170
+#define wxWindow_GetScrollPos 171
+#define wxWindow_GetScrollRange 172
+#define wxWindow_GetScrollThumb 173
+#define wxWindow_GetSize 175
+#define wxWindow_GetSizer 176
+#define wxWindow_GetTextExtent 177
+#define wxWindow_GetToolTip 178
+#define wxWindow_GetUpdateRegion 179
+#define wxWindow_GetVirtualSize 181
+#define wxWindow_GetWindowStyleFlag 183
+#define wxWindow_GetWindowVariant 184
+#define wxWindow_HasCapture 185
+#define wxWindow_HasScrollbar 186
+#define wxWindow_HasTransparentBackground 187
+#define wxWindow_Hide 188
+#define wxWindow_InheritAttributes 189
+#define wxWindow_InitDialog 190
+#define wxWindow_InvalidateBestSize 191
+#define wxWindow_IsEnabled 192
+#define wxWindow_IsExposed_2 193
+#define wxWindow_IsExposed_4 194
+#define wxWindow_IsExposed_1_0 195
+#define wxWindow_IsExposed_1_1 196
+#define wxWindow_IsRetained 197
+#define wxWindow_IsShown 198
+#define wxWindow_IsTopLevel 199
+#define wxWindow_Layout 200
+#define wxWindow_LineDown 201
+#define wxWindow_LineUp 202
+#define wxWindow_Lower 203
+#define wxWindow_MakeModal 204
+#define wxWindow_Move_3 205
+#define wxWindow_Move_2 206
+#define wxWindow_MoveAfterInTabOrder 207
+#define wxWindow_MoveBeforeInTabOrder 208
+#define wxWindow_Navigate 209
+#define wxWindow_PageDown 210
+#define wxWindow_PageUp 211
+#define wxWindow_PopEventHandler 212
+#define wxWindow_PopupMenu_2 213
+#define wxWindow_PopupMenu_3 214
+#define wxWindow_Raise 215
+#define wxWindow_Refresh 216
+#define wxWindow_RefreshRect 217
+#define wxWindow_ReleaseMouse 218
+#define wxWindow_RemoveChild 219
+#define wxWindow_Reparent 220
+#define wxWindow_ScreenToClient_2 221
+#define wxWindow_ScreenToClient_1 222
+#define wxWindow_ScrollLines 224
+#define wxWindow_ScrollPages 226
+#define wxWindow_ScrollWindow 227
+#define wxWindow_SetAcceleratorTable 228
+#define wxWindow_SetAutoLayout 229
+#define wxWindow_SetBackgroundColour 230
+#define wxWindow_SetBackgroundStyle 231
+#define wxWindow_SetCaret 232
+#define wxWindow_SetClientSize_2 233
+#define wxWindow_SetClientSize_1_0 234
+#define wxWindow_SetClientSize_1_1 235
+#define wxWindow_SetContainingSizer 236
+#define wxWindow_SetCursor 237
+#define wxWindow_SetMaxSize 238
+#define wxWindow_SetMinSize 239
+#define wxWindow_SetOwnBackgroundColour 240
+#define wxWindow_SetOwnFont 241
+#define wxWindow_SetOwnForegroundColour 242
+#define wxWindow_SetDropTarget 243
+#define wxWindow_SetExtraStyle 244
+#define wxWindow_SetFocus 245
+#define wxWindow_SetFocusFromKbd 246
+#define wxWindow_SetFont 247
+#define wxWindow_SetForegroundColour 248
+#define wxWindow_SetHelpText 249
+#define wxWindow_SetId 250
+#define wxWindow_SetLabel 252
+#define wxWindow_SetName 253
+#define wxWindow_SetPalette 254
+#define wxWindow_SetScrollbar 255
+#define wxWindow_SetScrollPos 256
+#define wxWindow_SetSize_5 257
+#define wxWindow_SetSize_2_0 258
+#define wxWindow_SetSize_1 259
+#define wxWindow_SetSize_2_1 260
+#define wxWindow_SetSizeHints_3 261
+#define wxWindow_SetSizeHints_2 262
+#define wxWindow_SetSizer 263
+#define wxWindow_SetSizerAndFit 264
+#define wxWindow_SetThemeEnabled 265
+#define wxWindow_SetToolTip_1_0 266
+#define wxWindow_SetToolTip_1_1 267
+#define wxWindow_SetVirtualSize_1 268
+#define wxWindow_SetVirtualSize_2 269
+#define wxWindow_SetVirtualSizeHints_3 270
+#define wxWindow_SetVirtualSizeHints_2 271
+#define wxWindow_SetWindowStyle 272
+#define wxWindow_SetWindowStyleFlag 273
+#define wxWindow_SetWindowVariant 274
+#define wxWindow_ShouldInheritColours 275
+#define wxWindow_Show 276
+#define wxWindow_Thaw 277
+#define wxWindow_TransferDataFromWindow 278
+#define wxWindow_TransferDataToWindow 279
+#define wxWindow_Update 280
+#define wxWindow_UpdateWindowUI 281
+#define wxWindow_Validate 282
+#define wxWindow_WarpPointer 283
+#define wxTopLevelWindow_GetIcon 284
+#define wxTopLevelWindow_GetIcons 285
+#define wxTopLevelWindow_GetTitle 286
+#define wxTopLevelWindow_IsActive 287
+#define wxTopLevelWindow_Iconize 288
+#define wxTopLevelWindow_IsFullScreen 289
+#define wxTopLevelWindow_IsIconized 290
+#define wxTopLevelWindow_IsMaximized 291
+#define wxTopLevelWindow_Maximize 292
+#define wxTopLevelWindow_RequestUserAttention 293
+#define wxTopLevelWindow_SetIcon 294
+#define wxTopLevelWindow_SetIcons 295
+#define wxTopLevelWindow_CenterOnScreen 296
+#define wxTopLevelWindow_CentreOnScreen 297
+#define wxTopLevelWindow_SetShape 299
+#define wxTopLevelWindow_SetTitle 300
+#define wxTopLevelWindow_ShowFullScreen 301
+#define wxFrame_new_4 303
+#define wxFrame_new_0 304
+#define wxFrame_destruct 306
+#define wxFrame_Create 307
+#define wxFrame_CreateStatusBar 308
+#define wxFrame_CreateToolBar 309
+#define wxFrame_GetClientAreaOrigin 310
+#define wxFrame_GetMenuBar 311
+#define wxFrame_GetStatusBar 312
+#define wxFrame_GetStatusBarPane 313
+#define wxFrame_GetToolBar 314
+#define wxFrame_ProcessCommand 315
+#define wxFrame_SendSizeEvent 316
+#define wxFrame_SetMenuBar 317
+#define wxFrame_SetStatusBar 318
+#define wxFrame_SetStatusBarPane 319
+#define wxFrame_SetStatusText 320
+#define wxFrame_SetStatusWidths 321
+#define wxFrame_SetToolBar 322
+#define wxMiniFrame_new_0 323
+#define wxMiniFrame_new_4 324
+#define wxMiniFrame_Create 325
+#define wxMiniFrame_destroy 326
+#define wxSplashScreen_new_0 327
+#define wxSplashScreen_new_6 328
+#define wxSplashScreen_destruct 329
+#define wxSplashScreen_GetSplashStyle 330
+#define wxSplashScreen_GetTimeout 331
+#define wxPanel_new_0 332
+#define wxPanel_new_6 333
+#define wxPanel_new_2 334
+#define wxPanel_destruct 335
+#define wxPanel_InitDialog 336
+#define wxScrolledWindow_new_0 337
+#define wxScrolledWindow_new_2 338
+#define wxScrolledWindow_destruct 339
+#define wxScrolledWindow_CalcScrolledPosition_4 340
+#define wxScrolledWindow_CalcScrolledPosition_1 341
+#define wxScrolledWindow_CalcUnscrolledPosition_4 342
+#define wxScrolledWindow_CalcUnscrolledPosition_1 343
+#define wxScrolledWindow_EnableScrolling 344
+#define wxScrolledWindow_GetScrollPixelsPerUnit 345
+#define wxScrolledWindow_GetViewStart 346
+#define wxScrolledWindow_DoPrepareDC 347
+#define wxScrolledWindow_PrepareDC 348
+#define wxScrolledWindow_Scroll 349
+#define wxScrolledWindow_SetScrollbars 350
+#define wxScrolledWindow_SetScrollRate 351
+#define wxScrolledWindow_SetTargetWindow 352
+#define wxSashWindow_new_0 353
+#define wxSashWindow_new_2 354
+#define wxSashWindow_destruct 355
+#define wxSashWindow_GetSashVisible 356
+#define wxSashWindow_GetMaximumSizeX 357
+#define wxSashWindow_GetMaximumSizeY 358
+#define wxSashWindow_GetMinimumSizeX 359
+#define wxSashWindow_GetMinimumSizeY 360
+#define wxSashWindow_SetMaximumSizeX 361
+#define wxSashWindow_SetMaximumSizeY 362
+#define wxSashWindow_SetMinimumSizeX 363
+#define wxSashWindow_SetMinimumSizeY 364
+#define wxSashWindow_SetSashVisible 365
+#define wxSashLayoutWindow_new_0 366
+#define wxSashLayoutWindow_new_2 367
+#define wxSashLayoutWindow_Create 368
+#define wxSashLayoutWindow_GetAlignment 369
+#define wxSashLayoutWindow_GetOrientation 370
+#define wxSashLayoutWindow_SetAlignment 371
+#define wxSashLayoutWindow_SetDefaultSize 372
+#define wxSashLayoutWindow_SetOrientation 373
+#define wxSashLayoutWindow_destroy 374
+#define wxGrid_new_0 375
+#define wxGrid_new_3 376
+#define wxGrid_new_4 377
+#define wxGrid_destruct 378
+#define wxGrid_AppendCols 379
+#define wxGrid_AppendRows 380
+#define wxGrid_AutoSize 381
+#define wxGrid_AutoSizeColumn 382
+#define wxGrid_AutoSizeColumns 383
+#define wxGrid_AutoSizeRow 384
+#define wxGrid_AutoSizeRows 385
+#define wxGrid_BeginBatch 386
+#define wxGrid_BlockToDeviceRect 387
+#define wxGrid_CanDragColSize 388
+#define wxGrid_CanDragRowSize 389
+#define wxGrid_CanDragGridSize 390
+#define wxGrid_CanEnableCellControl 391
+#define wxGrid_CellToRect_2 392
+#define wxGrid_CellToRect_1 393
+#define wxGrid_ClearGrid 394
+#define wxGrid_ClearSelection 395
+#define wxGrid_CreateGrid 396
+#define wxGrid_DeleteCols 397
+#define wxGrid_DeleteRows 398
+#define wxGrid_DisableCellEditControl 399
+#define wxGrid_DisableDragColSize 400
+#define wxGrid_DisableDragGridSize 401
+#define wxGrid_DisableDragRowSize 402
+#define wxGrid_EnableCellEditControl 403
+#define wxGrid_EnableDragColSize 404
+#define wxGrid_EnableDragGridSize 405
+#define wxGrid_EnableDragRowSize 406
+#define wxGrid_EnableEditing 407
+#define wxGrid_EnableGridLines 408
+#define wxGrid_EndBatch 409
+#define wxGrid_Fit 410
+#define wxGrid_ForceRefresh 411
+#define wxGrid_GetBatchCount 412
+#define wxGrid_GetCellAlignment 413
+#define wxGrid_GetCellBackgroundColour 414
+#define wxGrid_GetCellEditor 415
+#define wxGrid_GetCellFont 416
+#define wxGrid_GetCellRenderer 417
+#define wxGrid_GetCellTextColour 418
+#define wxGrid_GetCellValue_2 419
+#define wxGrid_GetCellValue_1 420
+#define wxGrid_GetColLabelAlignment 421
+#define wxGrid_GetColLabelSize 422
+#define wxGrid_GetColLabelValue 423
+#define wxGrid_GetColMinimalAcceptableWidth 424
+#define wxGrid_GetDefaultCellAlignment 425
+#define wxGrid_GetDefaultCellBackgroundColour 426
+#define wxGrid_GetDefaultCellFont 427
+#define wxGrid_GetDefaultCellTextColour 428
+#define wxGrid_GetDefaultColLabelSize 429
+#define wxGrid_GetDefaultColSize 430
+#define wxGrid_GetDefaultEditor 431
+#define wxGrid_GetDefaultEditorForCell_2 432
+#define wxGrid_GetDefaultEditorForCell_1 433
+#define wxGrid_GetDefaultEditorForType 434
+#define wxGrid_GetDefaultRenderer 435
+#define wxGrid_GetDefaultRendererForCell 436
+#define wxGrid_GetDefaultRendererForType 437
+#define wxGrid_GetDefaultRowLabelSize 438
+#define wxGrid_GetDefaultRowSize 439
+#define wxGrid_GetGridCursorCol 440
+#define wxGrid_GetGridCursorRow 441
+#define wxGrid_GetGridLineColour 442
+#define wxGrid_GridLinesEnabled 443
+#define wxGrid_GetLabelBackgroundColour 444
+#define wxGrid_GetLabelFont 445
+#define wxGrid_GetLabelTextColour 446
+#define wxGrid_GetNumberCols 447
+#define wxGrid_GetNumberRows 448
+#define wxGrid_GetOrCreateCellAttr 449
+#define wxGrid_GetRowMinimalAcceptableHeight 450
+#define wxGrid_GetRowLabelAlignment 451
+#define wxGrid_GetRowLabelSize 452
+#define wxGrid_GetRowLabelValue 453
+#define wxGrid_GetRowSize 454
+#define wxGrid_GetScrollLineX 455
+#define wxGrid_GetScrollLineY 456
+#define wxGrid_GetSelectedCells 457
+#define wxGrid_GetSelectedCols 458
+#define wxGrid_GetSelectedRows 459
+#define wxGrid_GetSelectionBackground 460
+#define wxGrid_GetSelectionBlockTopLeft 461
+#define wxGrid_GetSelectionBlockBottomRight 462
+#define wxGrid_GetSelectionForeground 463
+#define wxGrid_GetViewWidth 464
+#define wxGrid_GetGridWindow 465
+#define wxGrid_GetGridRowLabelWindow 466
+#define wxGrid_GetGridColLabelWindow 467
+#define wxGrid_GetGridCornerLabelWindow 468
+#define wxGrid_HideCellEditControl 469
+#define wxGrid_InsertCols 470
+#define wxGrid_InsertRows 471
+#define wxGrid_IsCellEditControlEnabled 472
+#define wxGrid_IsCurrentCellReadOnly 473
+#define wxGrid_IsEditable 474
+#define wxGrid_IsInSelection_2 475
+#define wxGrid_IsInSelection_1 476
+#define wxGrid_IsReadOnly 477
+#define wxGrid_IsSelection 478
+#define wxGrid_IsVisible_3 479
+#define wxGrid_IsVisible_2 480
+#define wxGrid_MakeCellVisible_2 481
+#define wxGrid_MakeCellVisible_1 482
+#define wxGrid_MoveCursorDown 483
+#define wxGrid_MoveCursorLeft 484
+#define wxGrid_MoveCursorRight 485
+#define wxGrid_MoveCursorUp 486
+#define wxGrid_MoveCursorDownBlock 487
+#define wxGrid_MoveCursorLeftBlock 488
+#define wxGrid_MoveCursorRightBlock 489
+#define wxGrid_MoveCursorUpBlock 490
+#define wxGrid_MovePageDown 491
+#define wxGrid_MovePageUp 492
+#define wxGrid_RegisterDataType 493
+#define wxGrid_SaveEditControlValue 494
+#define wxGrid_SelectAll 495
+#define wxGrid_SelectBlock_5 496
+#define wxGrid_SelectBlock_3 497
+#define wxGrid_SelectCol 498
+#define wxGrid_SelectRow 499
+#define wxGrid_SetCellAlignment_4 500
+#define wxGrid_SetCellAlignment_3 501
+#define wxGrid_SetCellAlignment_1 502
+#define wxGrid_SetCellBackgroundColour_3_0 503
+#define wxGrid_SetCellBackgroundColour_1 504
+#define wxGrid_SetCellBackgroundColour_3_1 505
+#define wxGrid_SetCellEditor 506
+#define wxGrid_SetCellFont 507
+#define wxGrid_SetCellRenderer 508
+#define wxGrid_SetCellTextColour_3_0 509
+#define wxGrid_SetCellTextColour_3_1 510
+#define wxGrid_SetCellTextColour_1 511
+#define wxGrid_SetCellValue_3_0 512
+#define wxGrid_SetCellValue_2 513
+#define wxGrid_SetCellValue_3_1 514
+#define wxGrid_SetColAttr 515
+#define wxGrid_SetColFormatBool 516
+#define wxGrid_SetColFormatNumber 517
+#define wxGrid_SetColFormatFloat 518
+#define wxGrid_SetColFormatCustom 519
+#define wxGrid_SetColLabelAlignment 520
+#define wxGrid_SetColLabelSize 521
+#define wxGrid_SetColLabelValue 522
+#define wxGrid_SetColMinimalWidth 523
+#define wxGrid_SetColMinimalAcceptableWidth 524
+#define wxGrid_SetColSize 525
+#define wxGrid_SetDefaultCellAlignment 526
+#define wxGrid_SetDefaultCellBackgroundColour 527
+#define wxGrid_SetDefaultCellFont 528
+#define wxGrid_SetDefaultCellTextColour 529
+#define wxGrid_SetDefaultEditor 530
+#define wxGrid_SetDefaultRenderer 531
+#define wxGrid_SetDefaultColSize 532
+#define wxGrid_SetDefaultRowSize 533
+#define wxGrid_SetGridCursor 534
+#define wxGrid_SetGridLineColour 535
+#define wxGrid_SetLabelBackgroundColour 536
+#define wxGrid_SetLabelFont 537
+#define wxGrid_SetLabelTextColour 538
+#define wxGrid_SetMargins 539
+#define wxGrid_SetReadOnly 540
+#define wxGrid_SetRowAttr 541
+#define wxGrid_SetRowLabelAlignment 542
+#define wxGrid_SetRowLabelSize 543
+#define wxGrid_SetRowLabelValue 544
+#define wxGrid_SetRowMinimalHeight 545
+#define wxGrid_SetRowMinimalAcceptableHeight 546
+#define wxGrid_SetRowSize 547
+#define wxGrid_SetScrollLineX 548
+#define wxGrid_SetScrollLineY 549
+#define wxGrid_SetSelectionBackground 550
+#define wxGrid_SetSelectionForeground 551
+#define wxGrid_SetSelectionMode 552
+#define wxGrid_ShowCellEditControl 553
+#define wxGrid_XToCol 554
+#define wxGrid_XToEdgeOfCol 555
+#define wxGrid_YToEdgeOfRow 556
+#define wxGrid_YToRow 557
+#define wxGridCellRenderer_Draw 558
+#define wxGridCellRenderer_GetBestSize 559
+#define wxGridCellEditor_Create 560
+#define wxGridCellEditor_IsCreated 561
+#define wxGridCellEditor_SetSize 562
+#define wxGridCellEditor_Show 563
+#define wxGridCellEditor_PaintBackground 564
+#define wxGridCellEditor_BeginEdit 565
+#define wxGridCellEditor_EndEdit 566
+#define wxGridCellEditor_Reset 567
+#define wxGridCellEditor_StartingKey 568
+#define wxGridCellEditor_StartingClick 569
+#define wxGridCellEditor_HandleReturn 570
+#define wxGridCellBoolRenderer_new 571
+#define wxGridCellBoolRenderer_destroy 572
+#define wxGridCellBoolEditor_new 573
+#define wxGridCellBoolEditor_IsTrueValue 574
+#define wxGridCellBoolEditor_UseStringValues 575
+#define wxGridCellBoolEditor_destroy 576
+#define wxGridCellFloatRenderer_new 577
+#define wxGridCellFloatRenderer_GetPrecision 578
+#define wxGridCellFloatRenderer_GetWidth 579
+#define wxGridCellFloatRenderer_SetParameters 580
+#define wxGridCellFloatRenderer_SetPrecision 581
+#define wxGridCellFloatRenderer_SetWidth 582
+#define wxGridCellFloatRenderer_destroy 583
+#define wxGridCellFloatEditor_new 584
+#define wxGridCellFloatEditor_SetParameters 585
+#define wxGridCellFloatEditor_destroy 586
+#define wxGridCellStringRenderer_new 587
+#define wxGridCellStringRenderer_destroy 588
+#define wxGridCellTextEditor_new 589
+#define wxGridCellTextEditor_SetParameters 590
+#define wxGridCellTextEditor_destroy 591
+#define wxGridCellChoiceEditor_new 593
+#define wxGridCellChoiceEditor_SetParameters 594
+#define wxGridCellChoiceEditor_destroy 595
+#define wxGridCellNumberRenderer_new 596
+#define wxGridCellNumberRenderer_destroy 597
+#define wxGridCellNumberEditor_new 598
+#define wxGridCellNumberEditor_GetValue 599
+#define wxGridCellNumberEditor_SetParameters 600
+#define wxGridCellNumberEditor_destroy 601
+#define wxGridCellAttr_SetTextColour 602
+#define wxGridCellAttr_SetBackgroundColour 603
+#define wxGridCellAttr_SetFont 604
+#define wxGridCellAttr_SetAlignment 605
+#define wxGridCellAttr_SetReadOnly 606
+#define wxGridCellAttr_SetRenderer 607
+#define wxGridCellAttr_SetEditor 608
+#define wxGridCellAttr_HasTextColour 609
+#define wxGridCellAttr_HasBackgroundColour 610
+#define wxGridCellAttr_HasFont 611
+#define wxGridCellAttr_HasAlignment 612
+#define wxGridCellAttr_HasRenderer 613
+#define wxGridCellAttr_HasEditor 614
+#define wxGridCellAttr_GetTextColour 615
+#define wxGridCellAttr_GetBackgroundColour 616
+#define wxGridCellAttr_GetFont 617
+#define wxGridCellAttr_GetAlignment 618
+#define wxGridCellAttr_GetRenderer 619
+#define wxGridCellAttr_GetEditor 620
+#define wxGridCellAttr_IsReadOnly 621
+#define wxGridCellAttr_SetDefAttr 622
+#define wxDC_Blit 623
+#define wxDC_CalcBoundingBox 624
+#define wxDC_Clear 625
+#define wxDC_ComputeScaleAndOrigin 626
+#define wxDC_CrossHair 627
+#define wxDC_DestroyClippingRegion 628
+#define wxDC_DeviceToLogicalX 629
+#define wxDC_DeviceToLogicalXRel 630
+#define wxDC_DeviceToLogicalY 631
+#define wxDC_DeviceToLogicalYRel 632
+#define wxDC_DrawArc 633
+#define wxDC_DrawBitmap 634
+#define wxDC_DrawCheckMark 635
+#define wxDC_DrawCircle 636
+#define wxDC_DrawEllipse_2 638
+#define wxDC_DrawEllipse_1 639
+#define wxDC_DrawEllipticArc 640
+#define wxDC_DrawIcon 641
+#define wxDC_DrawLabel 642
+#define wxDC_DrawLine 643
+#define wxDC_DrawLines 644
+#define wxDC_DrawPolygon 646
+#define wxDC_DrawPoint 648
+#define wxDC_DrawRectangle_2 650
+#define wxDC_DrawRectangle_1 651
+#define wxDC_DrawRotatedText 652
+#define wxDC_DrawRoundedRectangle_3 654
+#define wxDC_DrawRoundedRectangle_2 655
+#define wxDC_DrawText 656
+#define wxDC_EndDoc 657
+#define wxDC_EndPage 658
+#define wxDC_FloodFill 659
+#define wxDC_GetBackground 660
+#define wxDC_GetBackgroundMode 661
+#define wxDC_GetBrush 662
+#define wxDC_GetCharHeight 663
+#define wxDC_GetCharWidth 664
+#define wxDC_GetClippingBox 665
+#define wxDC_GetFont 666
+#define wxDC_GetLayoutDirection 667
+#define wxDC_GetLogicalFunction 668
+#define wxDC_GetMapMode 669
+#define wxDC_GetMultiLineTextExtent_4 670
+#define wxDC_GetMultiLineTextExtent_1 671
+#define wxDC_GetPartialTextExtents 672
+#define wxDC_GetPen 673
+#define wxDC_GetPixel 674
+#define wxDC_GetPPI 675
+#define wxDC_GetSize 677
+#define wxDC_GetSizeMM 679
+#define wxDC_GetTextBackground 680
+#define wxDC_GetTextExtent_4 681
+#define wxDC_GetTextExtent_1 682
+#define wxDC_GetTextForeground 684
+#define wxDC_GetUserScale 685
+#define wxDC_GradientFillConcentric_3 686
+#define wxDC_GradientFillConcentric_4 687
+#define wxDC_GradientFillLinear 688
+#define wxDC_LogicalToDeviceX 689
+#define wxDC_LogicalToDeviceXRel 690
+#define wxDC_LogicalToDeviceY 691
+#define wxDC_LogicalToDeviceYRel 692
+#define wxDC_MaxX 693
+#define wxDC_MaxY 694
+#define wxDC_MinX 695
+#define wxDC_MinY 696
+#define wxDC_IsOk 697
+#define wxDC_ResetBoundingBox 698
+#define wxDC_SetAxisOrientation 699
+#define wxDC_SetBackground 700
+#define wxDC_SetBackgroundMode 701
+#define wxDC_SetBrush 702
+#define wxDC_SetClippingRegion_2 704
+#define wxDC_SetClippingRegion_1_1 705
+#define wxDC_SetClippingRegion_1_0 706
+#define wxDC_SetDeviceOrigin 707
+#define wxDC_SetFont 708
+#define wxDC_SetLayoutDirection 709
+#define wxDC_SetLogicalFunction 710
+#define wxDC_SetMapMode 711
+#define wxDC_SetPalette 712
+#define wxDC_SetPen 713
+#define wxDC_SetTextBackground 714
+#define wxDC_SetTextForeground 715
+#define wxDC_SetUserScale 716
+#define wxDC_StartDoc 717
+#define wxDC_StartPage 718
+#define wxMirrorDC_new 719
+#define wxMirrorDC_destroy 720
+#define wxScreenDC_new 721
+#define wxScreenDC_destruct 722
+#define wxPostScriptDC_new_0 723
+#define wxPostScriptDC_new_1 724
+#define wxPostScriptDC_destruct 725
+#define wxPostScriptDC_SetResolution 726
+#define wxPostScriptDC_GetResolution 727
+#define wxWindowDC_new_0 728
+#define wxWindowDC_new_1 729
+#define wxWindowDC_destruct 730
+#define wxClientDC_new_0 731
+#define wxClientDC_new_1 732
+#define wxClientDC_destroy 733
+#define wxPaintDC_new_0 734
+#define wxPaintDC_new_1 735
+#define wxPaintDC_destroy 736
+#define wxMemoryDC_new_1_0 738
+#define wxMemoryDC_new_1_1 739
+#define wxMemoryDC_new_0 740
+#define wxMemoryDC_destruct 742
+#define wxMemoryDC_SelectObject 743
+#define wxMemoryDC_SelectObjectAsSource 744
+#define wxBufferedDC_new_0 745
+#define wxBufferedDC_new_2 746
+#define wxBufferedDC_new_3 747
+#define wxBufferedDC_destruct 748
+#define wxBufferedDC_Init_2 749
+#define wxBufferedDC_Init_3 750
+#define wxBufferedPaintDC_new_3 751
+#define wxBufferedPaintDC_new_2 752
+#define wxBufferedPaintDC_destruct 753
+#define wxGraphicsObject_GetRenderer 754
+#define wxGraphicsObject_IsNull 755
+#define wxGraphicsContext_Create_1_1 756
+#define wxGraphicsContext_Create_1_0 757
+#define wxGraphicsContext_Create_0 758
+#define wxGraphicsContext_CreatePen 759
+#define wxGraphicsContext_CreateBrush 760
+#define wxGraphicsContext_CreateRadialGradientBrush 761
+#define wxGraphicsContext_CreateLinearGradientBrush 762
+#define wxGraphicsContext_CreateFont 763
+#define wxGraphicsContext_CreateMatrix 764
+#define wxGraphicsContext_CreatePath 765
+#define wxGraphicsContext_Clip_1 766
+#define wxGraphicsContext_Clip_4 767
+#define wxGraphicsContext_ResetClip 768
+#define wxGraphicsContext_DrawBitmap 769
+#define wxGraphicsContext_DrawEllipse 770
+#define wxGraphicsContext_DrawIcon 771
+#define wxGraphicsContext_DrawLines 772
+#define wxGraphicsContext_DrawPath 773
+#define wxGraphicsContext_DrawRectangle 774
+#define wxGraphicsContext_DrawRoundedRectangle 775
+#define wxGraphicsContext_DrawText_3 776
+#define wxGraphicsContext_DrawText_4_0 777
+#define wxGraphicsContext_DrawText_4_1 778
+#define wxGraphicsContext_DrawText_5 779
+#define wxGraphicsContext_FillPath 780
+#define wxGraphicsContext_StrokePath 781
+#define wxGraphicsContext_GetNativeContext 782
+#define wxGraphicsContext_GetPartialTextExtents 783
+#define wxGraphicsContext_GetTextExtent 784
+#define wxGraphicsContext_Rotate 785
+#define wxGraphicsContext_Scale 786
+#define wxGraphicsContext_Translate 787
+#define wxGraphicsContext_GetTransform 788
+#define wxGraphicsContext_SetTransform 789
+#define wxGraphicsContext_ConcatTransform 790
+#define wxGraphicsContext_SetBrush_1_1 791
+#define wxGraphicsContext_SetBrush_1_0 792
+#define wxGraphicsContext_SetFont_1 793
+#define wxGraphicsContext_SetFont_2 794
+#define wxGraphicsContext_SetPen_1_0 795
+#define wxGraphicsContext_SetPen_1_1 796
+#define wxGraphicsContext_StrokeLine 797
+#define wxGraphicsContext_StrokeLines_2 798
+#define wxGraphicsContext_StrokeLines_3 799
+#define wxGraphicsMatrix_Concat 800
+#define wxGraphicsMatrix_Get 802
+#define wxGraphicsMatrix_GetNativeMatrix 803
+#define wxGraphicsMatrix_Invert 804
+#define wxGraphicsMatrix_IsEqual 805
+#define wxGraphicsMatrix_IsIdentity 807
+#define wxGraphicsMatrix_Rotate 808
+#define wxGraphicsMatrix_Scale 809
+#define wxGraphicsMatrix_Translate 810
+#define wxGraphicsMatrix_Set 811
+#define wxGraphicsMatrix_TransformPoint 812
+#define wxGraphicsMatrix_TransformDistance 813
+#define wxGraphicsPath_MoveToPoint_2 814
+#define wxGraphicsPath_MoveToPoint_1 815
+#define wxGraphicsPath_AddArc_6 816
+#define wxGraphicsPath_AddArc_5 817
+#define wxGraphicsPath_AddArcToPoint 818
+#define wxGraphicsPath_AddCircle 819
+#define wxGraphicsPath_AddCurveToPoint_6 820
+#define wxGraphicsPath_AddCurveToPoint_3 821
+#define wxGraphicsPath_AddEllipse 822
+#define wxGraphicsPath_AddLineToPoint_2 823
+#define wxGraphicsPath_AddLineToPoint_1 824
+#define wxGraphicsPath_AddPath 825
+#define wxGraphicsPath_AddQuadCurveToPoint 826
+#define wxGraphicsPath_AddRectangle 827
+#define wxGraphicsPath_AddRoundedRectangle 828
+#define wxGraphicsPath_CloseSubpath 829
+#define wxGraphicsPath_Contains_3 830
+#define wxGraphicsPath_Contains_2 831
+#define wxGraphicsPath_GetBox 833
+#define wxGraphicsPath_GetCurrentPoint 835
+#define wxGraphicsPath_Transform 836
+#define wxGraphicsRenderer_GetDefaultRenderer 837
+#define wxGraphicsRenderer_CreateContext_1_1 838
+#define wxGraphicsRenderer_CreateContext_1_0 839
+#define wxGraphicsRenderer_CreatePen 840
+#define wxGraphicsRenderer_CreateBrush 841
+#define wxGraphicsRenderer_CreateLinearGradientBrush 842
+#define wxGraphicsRenderer_CreateRadialGradientBrush 843
+#define wxGraphicsRenderer_CreateFont 844
+#define wxGraphicsRenderer_CreateMatrix 845
+#define wxGraphicsRenderer_CreatePath 846
+#define wxMenuBar_new_1 848
+#define wxMenuBar_new_0 850
+#define wxMenuBar_destruct 852
+#define wxMenuBar_Append 853
+#define wxMenuBar_Check 854
+#define wxMenuBar_Enable_2 855
+#define wxMenuBar_Enable_1 856
+#define wxMenuBar_EnableTop 857
+#define wxMenuBar_FindMenu 858
+#define wxMenuBar_FindMenuItem 859
+#define wxMenuBar_FindItem 860
+#define wxMenuBar_GetHelpString 861
+#define wxMenuBar_GetLabel_1 862
+#define wxMenuBar_GetLabel_0 863
+#define wxMenuBar_GetLabelTop 864
+#define wxMenuBar_GetMenu 865
+#define wxMenuBar_GetMenuCount 866
+#define wxMenuBar_Insert 867
+#define wxMenuBar_IsChecked 868
+#define wxMenuBar_IsEnabled_1 869
+#define wxMenuBar_IsEnabled_0 870
+#define wxMenuBar_Remove 871
+#define wxMenuBar_Replace 872
+#define wxMenuBar_SetHelpString 873
+#define wxMenuBar_SetLabel_2 874
+#define wxMenuBar_SetLabel_1 875
+#define wxMenuBar_SetLabelTop 876
+#define wxControl_GetLabel 877
+#define wxControl_SetLabel 878
+#define wxControlWithItems_Append_1 879
+#define wxControlWithItems_Append_2 880
+#define wxControlWithItems_appendStrings_1 881
+#define wxControlWithItems_Clear 882
+#define wxControlWithItems_Delete 883
+#define wxControlWithItems_FindString 884
+#define wxControlWithItems_getClientData 886
+#define wxControlWithItems_setClientData 888
+#define wxControlWithItems_GetCount 889
+#define wxControlWithItems_GetSelection 890
+#define wxControlWithItems_GetString 891
+#define wxControlWithItems_GetStringSelection 892
+#define wxControlWithItems_Insert_2 893
+#define wxControlWithItems_Insert_3 894
+#define wxControlWithItems_IsEmpty 895
+#define wxControlWithItems_Select 896
+#define wxControlWithItems_SetSelection 897
+#define wxControlWithItems_SetString 898
+#define wxControlWithItems_SetStringSelection 899
+#define wxMenu_new_2 902
+#define wxMenu_new_1 903
+#define wxMenu_destruct 905
+#define wxMenu_Append_3 906
+#define wxMenu_Append_1 907
+#define wxMenu_Append_4_0 908
+#define wxMenu_Append_4_1 909
+#define wxMenu_AppendCheckItem 910
+#define wxMenu_AppendRadioItem 911
+#define wxMenu_AppendSeparator 912
+#define wxMenu_Break 913
+#define wxMenu_Check 914
+#define wxMenu_Delete_1_0 915
+#define wxMenu_Delete_1_1 916
+#define wxMenu_Destroy_1_0 917
+#define wxMenu_Destroy_1_1 918
+#define wxMenu_Enable 919
+#define wxMenu_FindItem_1 920
+#define wxMenu_FindItem_2 921
+#define wxMenu_FindItemByPosition 922
+#define wxMenu_GetHelpString 923
+#define wxMenu_GetLabel 924
+#define wxMenu_GetMenuItemCount 925
+#define wxMenu_GetMenuItems 926
+#define wxMenu_GetTitle 928
+#define wxMenu_Insert_2 929
+#define wxMenu_Insert_3 930
+#define wxMenu_Insert_5_1 931
+#define wxMenu_Insert_5_0 932
+#define wxMenu_InsertCheckItem 933
+#define wxMenu_InsertRadioItem 934
+#define wxMenu_InsertSeparator 935
+#define wxMenu_IsChecked 936
+#define wxMenu_IsEnabled 937
+#define wxMenu_Prepend_1 938
+#define wxMenu_Prepend_2 939
+#define wxMenu_Prepend_4_1 940
+#define wxMenu_Prepend_4_0 941
+#define wxMenu_PrependCheckItem 942
+#define wxMenu_PrependRadioItem 943
+#define wxMenu_PrependSeparator 944
+#define wxMenu_Remove_1_0 945
+#define wxMenu_Remove_1_1 946
+#define wxMenu_SetHelpString 947
+#define wxMenu_SetLabel 948
+#define wxMenu_SetTitle 949
+#define wxMenuItem_new 950
+#define wxMenuItem_destruct 952
+#define wxMenuItem_Check 953
+#define wxMenuItem_Enable 954
+#define wxMenuItem_GetBitmap 955
+#define wxMenuItem_GetHelp 956
+#define wxMenuItem_GetId 957
+#define wxMenuItem_GetKind 958
+#define wxMenuItem_GetLabel 959
+#define wxMenuItem_GetLabelFromText 960
+#define wxMenuItem_GetMenu 961
+#define wxMenuItem_GetText 962
+#define wxMenuItem_GetSubMenu 963
+#define wxMenuItem_IsCheckable 964
+#define wxMenuItem_IsChecked 965
+#define wxMenuItem_IsEnabled 966
+#define wxMenuItem_IsSeparator 967
+#define wxMenuItem_IsSubMenu 968
+#define wxMenuItem_SetBitmap 969
+#define wxMenuItem_SetHelp 970
+#define wxMenuItem_SetMenu 971
+#define wxMenuItem_SetSubMenu 972
+#define wxMenuItem_SetText 973
+#define wxToolBar_AddControl 974
+#define wxToolBar_AddSeparator 975
+#define wxToolBar_AddTool_5 976
+#define wxToolBar_AddTool_4_0 977
+#define wxToolBar_AddTool_1 978
+#define wxToolBar_AddTool_4_1 979
+#define wxToolBar_AddTool_3 980
+#define wxToolBar_AddTool_6 981
+#define wxToolBar_AddCheckTool 982
+#define wxToolBar_AddRadioTool 983
+#define wxToolBar_DeleteTool 984
+#define wxToolBar_DeleteToolByPos 985
+#define wxToolBar_EnableTool 986
+#define wxToolBar_FindById 987
+#define wxToolBar_FindControl 988
+#define wxToolBar_FindToolForPosition 989
+#define wxToolBar_GetToolSize 990
+#define wxToolBar_GetToolBitmapSize 991
+#define wxToolBar_GetMargins 992
+#define wxToolBar_GetToolEnabled 993
+#define wxToolBar_GetToolLongHelp 994
+#define wxToolBar_GetToolPacking 995
+#define wxToolBar_GetToolPos 996
+#define wxToolBar_GetToolSeparation 997
+#define wxToolBar_GetToolShortHelp 998
+#define wxToolBar_GetToolState 999
+#define wxToolBar_InsertControl 1000
+#define wxToolBar_InsertSeparator 1001
+#define wxToolBar_InsertTool_5 1002
+#define wxToolBar_InsertTool_2 1003
+#define wxToolBar_InsertTool_4 1004
+#define wxToolBar_Realize 1005
+#define wxToolBar_RemoveTool 1006
+#define wxToolBar_SetMargins 1007
+#define wxToolBar_SetToolBitmapSize 1008
+#define wxToolBar_SetToolLongHelp 1009
+#define wxToolBar_SetToolPacking 1010
+#define wxToolBar_SetToolShortHelp 1011
+#define wxToolBar_SetToolSeparation 1012
+#define wxToolBar_ToggleTool 1013
+#define wxStatusBar_new_0 1015
+#define wxStatusBar_new_2 1016
+#define wxStatusBar_destruct 1018
+#define wxStatusBar_Create 1019
+#define wxStatusBar_GetFieldRect 1020
+#define wxStatusBar_GetFieldsCount 1021
+#define wxStatusBar_GetStatusText 1022
+#define wxStatusBar_PopStatusText 1023
+#define wxStatusBar_PushStatusText 1024
+#define wxStatusBar_SetFieldsCount 1025
+#define wxStatusBar_SetMinHeight 1026
+#define wxStatusBar_SetStatusText 1027
+#define wxStatusBar_SetStatusWidths 1028
+#define wxStatusBar_SetStatusStyles 1029
+#define wxBitmap_new_0 1030
+#define wxBitmap_new_3 1031
+#define wxBitmap_new_4 1032
+#define wxBitmap_new_2_0 1033
+#define wxBitmap_new_2_1 1034
+#define wxBitmap_destruct 1035
+#define wxBitmap_ConvertToImage 1036
+#define wxBitmap_CopyFromIcon 1037
+#define wxBitmap_Create 1038
+#define wxBitmap_GetDepth 1039
+#define wxBitmap_GetHeight 1040
+#define wxBitmap_GetPalette 1041
+#define wxBitmap_GetMask 1042
+#define wxBitmap_GetWidth 1043
+#define wxBitmap_GetSubBitmap 1044
+#define wxBitmap_LoadFile 1045
+#define wxBitmap_Ok 1046
+#define wxBitmap_SaveFile 1047
+#define wxBitmap_SetDepth 1048
+#define wxBitmap_SetHeight 1049
+#define wxBitmap_SetMask 1050
+#define wxBitmap_SetPalette 1051
+#define wxBitmap_SetWidth 1052
+#define wxIcon_new_0 1053
+#define wxIcon_new_2 1054
+#define wxIcon_new_1 1055
+#define wxIcon_CopyFromBitmap 1056
+#define wxIcon_destroy 1057
+#define wxIconBundle_new_0 1058
+#define wxIconBundle_new_2 1059
+#define wxIconBundle_new_1_0 1060
+#define wxIconBundle_new_1_1 1061
+#define wxIconBundle_destruct 1062
+#define wxIconBundle_AddIcon_2 1063
+#define wxIconBundle_AddIcon_1 1064
+#define wxIconBundle_GetIcon_1_1 1065
+#define wxIconBundle_GetIcon_1_0 1066
+#define wxCursor_new_0 1067
+#define wxCursor_new_1_0 1068
+#define wxCursor_new_1_1 1069
+#define wxCursor_new_4 1070
+#define wxCursor_destruct 1071
+#define wxCursor_Ok 1072
+#define wxMask_new_0 1073
+#define wxMask_new_2_1 1074
+#define wxMask_new_2_0 1075
+#define wxMask_new_1 1076
+#define wxMask_destruct 1077
+#define wxMask_Create_2_1 1078
+#define wxMask_Create_2_0 1079
+#define wxMask_Create_1 1080
+#define wxImage_new_0 1081
+#define wxImage_new_3_0 1082
+#define wxImage_new_4 1083
+#define wxImage_new_5 1084
+#define wxImage_new_2 1085
+#define wxImage_new_3_1 1086
+#define wxImage_Blur 1087
+#define wxImage_BlurHorizontal 1088
+#define wxImage_BlurVertical 1089
+#define wxImage_ConvertAlphaToMask 1090
+#define wxImage_ConvertToGreyscale 1091
+#define wxImage_ConvertToMono 1092
+#define wxImage_Copy 1093
+#define wxImage_Create_3 1094
+#define wxImage_Create_4 1095
+#define wxImage_Create_5 1096
+#define wxImage_Destroy 1097
+#define wxImage_FindFirstUnusedColour 1098
+#define wxImage_GetImageExtWildcard 1099
+#define wxImage_GetAlpha_2 1100
+#define wxImage_GetAlpha_0 1101
+#define wxImage_GetBlue 1102
+#define wxImage_GetData 1103
+#define wxImage_GetGreen 1104
+#define wxImage_GetImageCount 1105
+#define wxImage_GetHeight 1106
+#define wxImage_GetMaskBlue 1107
+#define wxImage_GetMaskGreen 1108
+#define wxImage_GetMaskRed 1109
+#define wxImage_GetOrFindMaskColour 1110
+#define wxImage_GetPalette 1111
+#define wxImage_GetRed 1112
+#define wxImage_GetSubImage 1113
+#define wxImage_GetWidth 1114
+#define wxImage_HasAlpha 1115
+#define wxImage_HasMask 1116
+#define wxImage_GetOption 1117
+#define wxImage_GetOptionInt 1118
+#define wxImage_HasOption 1119
+#define wxImage_InitAlpha 1120
+#define wxImage_InitStandardHandlers 1121
+#define wxImage_IsTransparent 1122
+#define wxImage_LoadFile_2 1123
+#define wxImage_LoadFile_3 1124
+#define wxImage_Ok 1125
+#define wxImage_RemoveHandler 1126
+#define wxImage_Mirror 1127
+#define wxImage_Replace 1128
+#define wxImage_Rescale 1129
+#define wxImage_Resize 1130
+#define wxImage_Rotate 1131
+#define wxImage_RotateHue 1132
+#define wxImage_Rotate90 1133
+#define wxImage_SaveFile_1 1134
+#define wxImage_SaveFile_2_0 1135
+#define wxImage_SaveFile_2_1 1136
+#define wxImage_Scale 1137
+#define wxImage_Size 1138
+#define wxImage_SetAlpha_3 1139
+#define wxImage_SetAlpha_2 1140
+#define wxImage_SetData_2 1141
+#define wxImage_SetData_4 1142
+#define wxImage_SetMask 1143
+#define wxImage_SetMaskColour 1144
+#define wxImage_SetMaskFromImage 1145
+#define wxImage_SetOption_2_1 1146
+#define wxImage_SetOption_2_0 1147
+#define wxImage_SetPalette 1148
+#define wxImage_SetRGB_5 1149
+#define wxImage_SetRGB_4 1150
+#define wxImage_destroy 1151
+#define wxBrush_new_0 1152
+#define wxBrush_new_2 1153
+#define wxBrush_new_1 1154
+#define wxBrush_destruct 1156
+#define wxBrush_GetColour 1157
+#define wxBrush_GetStipple 1158
+#define wxBrush_GetStyle 1159
+#define wxBrush_IsHatch 1160
+#define wxBrush_IsOk 1161
+#define wxBrush_SetColour_1 1162
+#define wxBrush_SetColour_3 1163
+#define wxBrush_SetStipple 1164
+#define wxBrush_SetStyle 1165
+#define wxPen_new_0 1166
+#define wxPen_new_2 1167
+#define wxPen_destruct 1168
+#define wxPen_GetCap 1169
+#define wxPen_GetColour 1170
+#define wxPen_GetJoin 1171
+#define wxPen_GetStyle 1172
+#define wxPen_GetWidth 1173
+#define wxPen_IsOk 1174
+#define wxPen_SetCap 1175
+#define wxPen_SetColour_1 1176
+#define wxPen_SetColour_3 1177
+#define wxPen_SetJoin 1178
+#define wxPen_SetStyle 1179
+#define wxPen_SetWidth 1180
+#define wxRegion_new_0 1181
+#define wxRegion_new_4 1182
+#define wxRegion_new_2 1183
+#define wxRegion_new_1_1 1184
+#define wxRegion_new_1_0 1186
+#define wxRegion_destruct 1188
+#define wxRegion_Clear 1189
+#define wxRegion_Contains_2 1190
+#define wxRegion_Contains_1_0 1191
+#define wxRegion_Contains_4 1192
+#define wxRegion_Contains_1_1 1193
+#define wxRegion_ConvertToBitmap 1194
+#define wxRegion_GetBox 1195
+#define wxRegion_Intersect_4 1196
+#define wxRegion_Intersect_1_1 1197
+#define wxRegion_Intersect_1_0 1198
+#define wxRegion_IsEmpty 1199
+#define wxRegion_Subtract_4 1200
+#define wxRegion_Subtract_1_1 1201
+#define wxRegion_Subtract_1_0 1202
+#define wxRegion_Offset_2 1203
+#define wxRegion_Offset_1 1204
+#define wxRegion_Union_4 1205
+#define wxRegion_Union_1_2 1206
+#define wxRegion_Union_1_1 1207
+#define wxRegion_Union_1_0 1208
+#define wxRegion_Union_3 1209
+#define wxRegion_Xor_4 1210
+#define wxRegion_Xor_1_1 1211
+#define wxRegion_Xor_1_0 1212
+#define wxAcceleratorTable_new_0 1213
+#define wxAcceleratorTable_new_2 1214
+#define wxAcceleratorTable_destruct 1215
+#define wxAcceleratorTable_Ok 1216
+#define wxAcceleratorEntry_new_1_0 1217
+#define wxAcceleratorEntry_new_1_1 1218
+#define wxAcceleratorEntry_GetCommand 1219
+#define wxAcceleratorEntry_GetFlags 1220
+#define wxAcceleratorEntry_GetKeyCode 1221
+#define wxAcceleratorEntry_Set 1222
+#define wxAcceleratorEntry_destroy 1223
+#define wxCaret_new_3 1228
+#define wxCaret_new_2 1229
+#define wxCaret_destruct 1231
+#define wxCaret_Create_3 1232
+#define wxCaret_Create_2 1233
+#define wxCaret_GetBlinkTime 1234
+#define wxCaret_GetPosition 1236
+#define wxCaret_GetSize 1238
+#define wxCaret_GetWindow 1239
+#define wxCaret_Hide 1240
+#define wxCaret_IsOk 1241
+#define wxCaret_IsVisible 1242
+#define wxCaret_Move_2 1243
+#define wxCaret_Move_1 1244
+#define wxCaret_SetBlinkTime 1245
+#define wxCaret_SetSize_2 1246
+#define wxCaret_SetSize_1 1247
+#define wxCaret_Show 1248
+#define wxSizer_Add_2_1 1249
+#define wxSizer_Add_2_0 1250
+#define wxSizer_Add_3 1251
+#define wxSizer_Add_2_3 1252
+#define wxSizer_Add_2_2 1253
+#define wxSizer_AddSpacer 1254
+#define wxSizer_AddStretchSpacer 1255
+#define wxSizer_CalcMin 1256
+#define wxSizer_Clear 1257
+#define wxSizer_Detach_1_2 1258
+#define wxSizer_Detach_1_1 1259
+#define wxSizer_Detach_1_0 1260
+#define wxSizer_Fit 1261
+#define wxSizer_FitInside 1262
+#define wxSizer_GetChildren 1263
+#define wxSizer_GetItem_2_1 1264
+#define wxSizer_GetItem_2_0 1265
+#define wxSizer_GetItem_1 1266
+#define wxSizer_GetSize 1267
+#define wxSizer_GetPosition 1268
+#define wxSizer_GetMinSize 1269
+#define wxSizer_Hide_2_0 1270
+#define wxSizer_Hide_2_1 1271
+#define wxSizer_Hide_1 1272
+#define wxSizer_Insert_3_1 1273
+#define wxSizer_Insert_3_0 1274
+#define wxSizer_Insert_4 1275
+#define wxSizer_Insert_3_3 1276
+#define wxSizer_Insert_3_2 1277
+#define wxSizer_Insert_2 1278
+#define wxSizer_InsertSpacer 1279
+#define wxSizer_InsertStretchSpacer 1280
+#define wxSizer_IsShown_1_2 1281
+#define wxSizer_IsShown_1_1 1282
+#define wxSizer_IsShown_1_0 1283
+#define wxSizer_Layout 1284
+#define wxSizer_Prepend_2_1 1285
+#define wxSizer_Prepend_2_0 1286
+#define wxSizer_Prepend_3 1287
+#define wxSizer_Prepend_2_3 1288
+#define wxSizer_Prepend_2_2 1289
+#define wxSizer_Prepend_1 1290
+#define wxSizer_PrependSpacer 1291
+#define wxSizer_PrependStretchSpacer 1292
+#define wxSizer_RecalcSizes 1293
+#define wxSizer_Remove_1_1 1294
+#define wxSizer_Remove_1_0 1295
+#define wxSizer_Replace_3_1 1296
+#define wxSizer_Replace_3_0 1297
+#define wxSizer_Replace_2 1298
+#define wxSizer_SetDimension 1299
+#define wxSizer_SetMinSize_2 1300
+#define wxSizer_SetMinSize_1 1301
+#define wxSizer_SetItemMinSize_3_2 1302
+#define wxSizer_SetItemMinSize_2_2 1303
+#define wxSizer_SetItemMinSize_3_1 1304
+#define wxSizer_SetItemMinSize_2_1 1305
+#define wxSizer_SetItemMinSize_3_0 1306
+#define wxSizer_SetItemMinSize_2_0 1307
+#define wxSizer_SetSizeHints 1308
+#define wxSizer_SetVirtualSizeHints 1309
+#define wxSizer_Show_2_2 1310
+#define wxSizer_Show_2_1 1311
+#define wxSizer_Show_2_0 1312
+#define wxSizer_Show_1 1313
+#define wxSizerFlags_new 1314
+#define wxSizerFlags_Align 1315
+#define wxSizerFlags_Border_2 1316
+#define wxSizerFlags_Border_1 1317
+#define wxSizerFlags_Center 1318
+#define wxSizerFlags_Centre 1319
+#define wxSizerFlags_Expand 1320
+#define wxSizerFlags_Left 1321
+#define wxSizerFlags_Proportion 1322
+#define wxSizerFlags_Right 1323
+#define wxSizerFlags_destroy 1324
+#define wxSizerItem_new_5_1 1325
+#define wxSizerItem_new_2_1 1326
+#define wxSizerItem_new_5_0 1327
+#define wxSizerItem_new_2_0 1328
+#define wxSizerItem_new_6 1329
+#define wxSizerItem_new_3 1330
+#define wxSizerItem_new_0 1331
+#define wxSizerItem_destruct 1332
+#define wxSizerItem_CalcMin 1333
+#define wxSizerItem_DeleteWindows 1334
+#define wxSizerItem_DetachSizer 1335
+#define wxSizerItem_GetBorder 1336
+#define wxSizerItem_GetFlag 1337
+#define wxSizerItem_GetMinSize 1338
+#define wxSizerItem_GetPosition 1339
+#define wxSizerItem_GetProportion 1340
+#define wxSizerItem_GetRatio 1341
+#define wxSizerItem_GetRect 1342
+#define wxSizerItem_GetSize 1343
+#define wxSizerItem_GetSizer 1344
+#define wxSizerItem_GetSpacer 1345
+#define wxSizerItem_GetUserData 1346
+#define wxSizerItem_GetWindow 1347
+#define wxSizerItem_IsSizer 1348
+#define wxSizerItem_IsShown 1349
+#define wxSizerItem_IsSpacer 1350
+#define wxSizerItem_IsWindow 1351
+#define wxSizerItem_SetBorder 1352
+#define wxSizerItem_SetDimension 1353
+#define wxSizerItem_SetFlag 1354
+#define wxSizerItem_SetInitSize 1355
+#define wxSizerItem_SetMinSize_1 1356
+#define wxSizerItem_SetMinSize_2 1357
+#define wxSizerItem_SetProportion 1358
+#define wxSizerItem_SetRatio_2 1359
+#define wxSizerItem_SetRatio_1_1 1360
+#define wxSizerItem_SetRatio_1_0 1361
+#define wxSizerItem_SetSizer 1362
+#define wxSizerItem_SetSpacer_1 1363
+#define wxSizerItem_SetSpacer_2 1364
+#define wxSizerItem_SetWindow 1365
+#define wxSizerItem_Show 1366
+#define wxBoxSizer_new 1367
+#define wxBoxSizer_GetOrientation 1368
+#define wxBoxSizer_destroy 1369
+#define wxStaticBoxSizer_new_2 1370
+#define wxStaticBoxSizer_new_3 1371
+#define wxStaticBoxSizer_GetStaticBox 1372
+#define wxStaticBoxSizer_destroy 1373
+#define wxGridSizer_new_4 1374
+#define wxGridSizer_new_2 1375
+#define wxGridSizer_GetCols 1376
+#define wxGridSizer_GetHGap 1377
+#define wxGridSizer_GetRows 1378
+#define wxGridSizer_GetVGap 1379
+#define wxGridSizer_SetCols 1380
+#define wxGridSizer_SetHGap 1381
+#define wxGridSizer_SetRows 1382
+#define wxGridSizer_SetVGap 1383
+#define wxGridSizer_destroy 1384
+#define wxFlexGridSizer_new_4 1385
+#define wxFlexGridSizer_new_2 1386
+#define wxFlexGridSizer_AddGrowableCol 1387
+#define wxFlexGridSizer_AddGrowableRow 1388
+#define wxFlexGridSizer_GetFlexibleDirection 1389
+#define wxFlexGridSizer_GetNonFlexibleGrowMode 1390
+#define wxFlexGridSizer_RemoveGrowableCol 1391
+#define wxFlexGridSizer_RemoveGrowableRow 1392
+#define wxFlexGridSizer_SetFlexibleDirection 1393
+#define wxFlexGridSizer_SetNonFlexibleGrowMode 1394
+#define wxFlexGridSizer_destroy 1395
+#define wxGridBagSizer_new 1396
+#define wxGridBagSizer_Add_3_2 1397
+#define wxGridBagSizer_Add_3_1 1398
+#define wxGridBagSizer_Add_4 1399
+#define wxGridBagSizer_Add_1_0 1400
+#define wxGridBagSizer_Add_2_1 1401
+#define wxGridBagSizer_Add_2_0 1402
+#define wxGridBagSizer_Add_3_0 1403
+#define wxGridBagSizer_Add_1_1 1404
+#define wxGridBagSizer_CalcMin 1405
+#define wxGridBagSizer_CheckForIntersection_2 1406
+#define wxGridBagSizer_CheckForIntersection_3 1407
+#define wxGridBagSizer_FindItem_1_1 1408
+#define wxGridBagSizer_FindItem_1_0 1409
+#define wxGridBagSizer_FindItemAtPoint 1410
+#define wxGridBagSizer_FindItemAtPosition 1411
+#define wxGridBagSizer_FindItemWithData 1412
+#define wxGridBagSizer_GetCellSize 1413
+#define wxGridBagSizer_GetEmptyCellSize 1414
+#define wxGridBagSizer_GetItemPosition_1_2 1415
+#define wxGridBagSizer_GetItemPosition_1_1 1416
+#define wxGridBagSizer_GetItemPosition_1_0 1417
+#define wxGridBagSizer_GetItemSpan_1_2 1418
+#define wxGridBagSizer_GetItemSpan_1_1 1419
+#define wxGridBagSizer_GetItemSpan_1_0 1420
+#define wxGridBagSizer_SetEmptyCellSize 1421
+#define wxGridBagSizer_SetItemPosition_2_2 1422
+#define wxGridBagSizer_SetItemPosition_2_1 1423
+#define wxGridBagSizer_SetItemPosition_2_0 1424
+#define wxGridBagSizer_SetItemSpan_2_2 1425
+#define wxGridBagSizer_SetItemSpan_2_1 1426
+#define wxGridBagSizer_SetItemSpan_2_0 1427
+#define wxGridBagSizer_destroy 1428
+#define wxStdDialogButtonSizer_new 1429
+#define wxStdDialogButtonSizer_AddButton 1430
+#define wxStdDialogButtonSizer_Realize 1431
+#define wxStdDialogButtonSizer_SetAffirmativeButton 1432
+#define wxStdDialogButtonSizer_SetCancelButton 1433
+#define wxStdDialogButtonSizer_SetNegativeButton 1434
+#define wxStdDialogButtonSizer_destroy 1435
+#define wxFont_new_0 1436
+#define wxFont_new_1 1437
+#define wxFont_new_5 1438
+#define wxFont_destruct 1440
+#define wxFont_IsFixedWidth 1441
+#define wxFont_GetDefaultEncoding 1442
+#define wxFont_GetFaceName 1443
+#define wxFont_GetFamily 1444
+#define wxFont_GetNativeFontInfoDesc 1445
+#define wxFont_GetNativeFontInfoUserDesc 1446
+#define wxFont_GetPointSize 1447
+#define wxFont_GetStyle 1448
+#define wxFont_GetUnderlined 1449
+#define wxFont_GetWeight 1450
+#define wxFont_Ok 1451
+#define wxFont_SetDefaultEncoding 1452
+#define wxFont_SetFaceName 1453
+#define wxFont_SetFamily 1454
+#define wxFont_SetPointSize 1455
+#define wxFont_SetStyle 1456
+#define wxFont_SetUnderlined 1457
+#define wxFont_SetWeight 1458
+#define wxToolTip_Enable 1459
+#define wxToolTip_SetDelay 1460
+#define wxToolTip_new 1461
+#define wxToolTip_SetTip 1462
+#define wxToolTip_GetTip 1463
+#define wxToolTip_GetWindow 1464
+#define wxToolTip_destroy 1465
+#define wxButton_new_3 1467
+#define wxButton_new_0 1468
+#define wxButton_destruct 1469
+#define wxButton_Create 1470
+#define wxButton_GetDefaultSize 1471
+#define wxButton_SetDefault 1472
+#define wxButton_SetLabel 1473
+#define wxBitmapButton_new_4 1475
+#define wxBitmapButton_new_0 1476
+#define wxBitmapButton_Create 1477
+#define wxBitmapButton_GetBitmapDisabled 1478
+#define wxBitmapButton_GetBitmapFocus 1480
+#define wxBitmapButton_GetBitmapLabel 1482
+#define wxBitmapButton_GetBitmapSelected 1484
+#define wxBitmapButton_SetBitmapDisabled 1486
+#define wxBitmapButton_SetBitmapFocus 1487
+#define wxBitmapButton_SetBitmapLabel 1488
+#define wxBitmapButton_SetBitmapSelected 1489
+#define wxBitmapButton_destroy 1490
+#define wxToggleButton_new_0 1491
+#define wxToggleButton_new_4 1492
+#define wxToggleButton_Create 1493
+#define wxToggleButton_GetValue 1494
+#define wxToggleButton_SetValue 1495
+#define wxToggleButton_destroy 1496
+#define wxCalendarCtrl_new_0 1497
+#define wxCalendarCtrl_new_3 1498
+#define wxCalendarCtrl_Create 1499
+#define wxCalendarCtrl_destruct 1500
+#define wxCalendarCtrl_SetDate 1501
+#define wxCalendarCtrl_GetDate 1502
+#define wxCalendarCtrl_EnableYearChange 1503
+#define wxCalendarCtrl_EnableMonthChange 1504
+#define wxCalendarCtrl_EnableHolidayDisplay 1505
+#define wxCalendarCtrl_SetHeaderColours 1506
+#define wxCalendarCtrl_GetHeaderColourFg 1507
+#define wxCalendarCtrl_GetHeaderColourBg 1508
+#define wxCalendarCtrl_SetHighlightColours 1509
+#define wxCalendarCtrl_GetHighlightColourFg 1510
+#define wxCalendarCtrl_GetHighlightColourBg 1511
+#define wxCalendarCtrl_SetHolidayColours 1512
+#define wxCalendarCtrl_GetHolidayColourFg 1513
+#define wxCalendarCtrl_GetHolidayColourBg 1514
+#define wxCalendarCtrl_GetAttr 1515
+#define wxCalendarCtrl_SetAttr 1516
+#define wxCalendarCtrl_SetHoliday 1517
+#define wxCalendarCtrl_ResetAttr 1518
+#define wxCalendarCtrl_HitTest 1519
+#define wxCalendarDateAttr_new_0 1520
+#define wxCalendarDateAttr_new_2_1 1521
+#define wxCalendarDateAttr_new_2_0 1522
+#define wxCalendarDateAttr_SetTextColour 1523
+#define wxCalendarDateAttr_SetBackgroundColour 1524
+#define wxCalendarDateAttr_SetBorderColour 1525
+#define wxCalendarDateAttr_SetFont 1526
+#define wxCalendarDateAttr_SetBorder 1527
+#define wxCalendarDateAttr_SetHoliday 1528
+#define wxCalendarDateAttr_HasTextColour 1529
+#define wxCalendarDateAttr_HasBackgroundColour 1530
+#define wxCalendarDateAttr_HasBorderColour 1531
+#define wxCalendarDateAttr_HasFont 1532
+#define wxCalendarDateAttr_HasBorder 1533
+#define wxCalendarDateAttr_IsHoliday 1534
+#define wxCalendarDateAttr_GetTextColour 1535
+#define wxCalendarDateAttr_GetBackgroundColour 1536
+#define wxCalendarDateAttr_GetBorderColour 1537
+#define wxCalendarDateAttr_GetFont 1538
+#define wxCalendarDateAttr_GetBorder 1539
+#define wxCalendarDateAttr_destroy 1540
+#define wxCheckBox_new_4 1542
+#define wxCheckBox_new_0 1543
+#define wxCheckBox_Create 1544
+#define wxCheckBox_GetValue 1545
+#define wxCheckBox_Get3StateValue 1546
+#define wxCheckBox_Is3rdStateAllowedForUser 1547
+#define wxCheckBox_Is3State 1548
+#define wxCheckBox_IsChecked 1549
+#define wxCheckBox_SetValue 1550
+#define wxCheckBox_Set3StateValue 1551
+#define wxCheckBox_destroy 1552
+#define wxCheckListBox_new_0 1553
+#define wxCheckListBox_new_3 1555
+#define wxCheckListBox_Check 1556
+#define wxCheckListBox_IsChecked 1557
+#define wxCheckListBox_destroy 1558
+#define wxChoice_new_3 1561
+#define wxChoice_new_0 1562
+#define wxChoice_destruct 1564
+#define wxChoice_Create 1566
+#define wxChoice_Delete 1567
+#define wxChoice_GetColumns 1568
+#define wxChoice_SetColumns 1569
+#define wxComboBox_new_0 1570
+#define wxComboBox_new_3 1572
+#define wxComboBox_destruct 1573
+#define wxComboBox_Create 1575
+#define wxComboBox_CanCopy 1576
+#define wxComboBox_CanCut 1577
+#define wxComboBox_CanPaste 1578
+#define wxComboBox_CanRedo 1579
+#define wxComboBox_CanUndo 1580
+#define wxComboBox_Copy 1581
+#define wxComboBox_Cut 1582
+#define wxComboBox_GetInsertionPoint 1583
+#define wxComboBox_GetLastPosition 1584
+#define wxComboBox_GetValue 1585
+#define wxComboBox_Paste 1586
+#define wxComboBox_Redo 1587
+#define wxComboBox_Replace 1588
+#define wxComboBox_Remove 1589
+#define wxComboBox_SetInsertionPoint 1590
+#define wxComboBox_SetInsertionPointEnd 1591
+#define wxComboBox_SetSelection_1 1592
+#define wxComboBox_SetSelection_2 1593
+#define wxComboBox_SetValue 1594
+#define wxComboBox_Undo 1595
+#define wxGauge_new_0 1596
+#define wxGauge_new_4 1597
+#define wxGauge_Create 1598
+#define wxGauge_GetBezelFace 1599
+#define wxGauge_GetRange 1600
+#define wxGauge_GetShadowWidth 1601
+#define wxGauge_GetValue 1602
+#define wxGauge_IsVertical 1603
+#define wxGauge_SetBezelFace 1604
+#define wxGauge_SetRange 1605
+#define wxGauge_SetShadowWidth 1606
+#define wxGauge_SetValue 1607
+#define wxGauge_Pulse 1608
+#define wxGauge_destroy 1609
+#define wxGenericDirCtrl_new_0 1610
+#define wxGenericDirCtrl_new_2 1611
+#define wxGenericDirCtrl_destruct 1612
+#define wxGenericDirCtrl_Create 1613
+#define wxGenericDirCtrl_Init 1614
+#define wxGenericDirCtrl_CollapseTree 1615
+#define wxGenericDirCtrl_ExpandPath 1616
+#define wxGenericDirCtrl_GetDefaultPath 1617
+#define wxGenericDirCtrl_GetPath 1618
+#define wxGenericDirCtrl_GetFilePath 1619
+#define wxGenericDirCtrl_GetFilter 1620
+#define wxGenericDirCtrl_GetFilterIndex 1621
+#define wxGenericDirCtrl_GetRootId 1622
+#define wxGenericDirCtrl_GetTreeCtrl 1623
+#define wxGenericDirCtrl_ReCreateTree 1624
+#define wxGenericDirCtrl_SetDefaultPath 1625
+#define wxGenericDirCtrl_SetFilter 1626
+#define wxGenericDirCtrl_SetFilterIndex 1627
+#define wxGenericDirCtrl_SetPath 1628
+#define wxStaticBox_new_4 1630
+#define wxStaticBox_new_0 1631
+#define wxStaticBox_Create 1632
+#define wxStaticBox_destroy 1633
+#define wxStaticLine_new_2 1635
+#define wxStaticLine_new_0 1636
+#define wxStaticLine_Create 1637
+#define wxStaticLine_IsVertical 1638
+#define wxStaticLine_GetDefaultSize 1639
+#define wxStaticLine_destroy 1640
+#define wxListBox_new_3 1643
+#define wxListBox_new_0 1644
+#define wxListBox_destruct 1646
+#define wxListBox_Create 1648
+#define wxListBox_Deselect 1649
+#define wxListBox_GetSelections 1650
+#define wxListBox_InsertItems 1651
+#define wxListBox_IsSelected 1652
+#define wxListBox_Set 1654
+#define wxListBox_HitTest 1655
+#define wxListBox_SetFirstItem_1_0 1656
+#define wxListBox_SetFirstItem_1_1 1657
+#define wxListCtrl_new_0 1658
+#define wxListCtrl_new_2 1659
+#define wxListCtrl_Arrange 1660
+#define wxListCtrl_AssignImageList 1661
+#define wxListCtrl_ClearAll 1662
+#define wxListCtrl_Create 1663
+#define wxListCtrl_DeleteAllItems 1664
+#define wxListCtrl_DeleteColumn 1665
+#define wxListCtrl_DeleteItem 1666
+#define wxListCtrl_EditLabel 1667
+#define wxListCtrl_EnsureVisible 1668
+#define wxListCtrl_FindItem_3_0 1669
+#define wxListCtrl_FindItem_3_1 1670
+#define wxListCtrl_GetColumn 1671
+#define wxListCtrl_GetColumnCount 1672
+#define wxListCtrl_GetColumnWidth 1673
+#define wxListCtrl_GetCountPerPage 1674
+#define wxListCtrl_GetImageList 1675
+#define wxListCtrl_GetItem 1676
+#define wxListCtrl_GetItemBackgroundColour 1677
+#define wxListCtrl_GetItemCount 1678
+#define wxListCtrl_GetItemData 1679
+#define wxListCtrl_GetItemFont 1680
+#define wxListCtrl_GetItemPosition 1681
+#define wxListCtrl_GetItemRect 1682
+#define wxListCtrl_GetItemSpacing 1683
+#define wxListCtrl_GetItemState 1684
+#define wxListCtrl_GetItemText 1685
+#define wxListCtrl_GetItemTextColour 1686
+#define wxListCtrl_GetNextItem 1687
+#define wxListCtrl_GetSelectedItemCount 1688
+#define wxListCtrl_GetTextColour 1689
+#define wxListCtrl_GetTopItem 1690
+#define wxListCtrl_GetViewRect 1691
+#define wxListCtrl_HitTest 1692
+#define wxListCtrl_InsertColumn_2 1693
+#define wxListCtrl_InsertColumn_3 1694
+#define wxListCtrl_InsertItem_1 1695
+#define wxListCtrl_InsertItem_2_1 1696
+#define wxListCtrl_InsertItem_2_0 1697
+#define wxListCtrl_InsertItem_3 1698
+#define wxListCtrl_RefreshItem 1699
+#define wxListCtrl_RefreshItems 1700
+#define wxListCtrl_ScrollList 1701
+#define wxListCtrl_SetBackgroundColour 1702
+#define wxListCtrl_SetColumn 1703
+#define wxListCtrl_SetColumnWidth 1704
+#define wxListCtrl_SetImageList 1705
+#define wxListCtrl_SetItem_1 1706
+#define wxListCtrl_SetItem_4 1707
+#define wxListCtrl_SetItemBackgroundColour 1708
+#define wxListCtrl_SetItemCount 1709
+#define wxListCtrl_SetItemData 1710
+#define wxListCtrl_SetItemFont 1711
+#define wxListCtrl_SetItemImage 1712
+#define wxListCtrl_SetItemColumnImage 1713
+#define wxListCtrl_SetItemPosition 1714
+#define wxListCtrl_SetItemState 1715
+#define wxListCtrl_SetItemText 1716
+#define wxListCtrl_SetItemTextColour 1717
+#define wxListCtrl_SetSingleStyle 1718
+#define wxListCtrl_SetTextColour 1719
+#define wxListCtrl_SetWindowStyleFlag 1720
+#define wxListCtrl_SortItems 1721
+#define wxListCtrl_destroy 1722
+#define wxListView_ClearColumnImage 1723
+#define wxListView_Focus 1724
+#define wxListView_GetFirstSelected 1725
+#define wxListView_GetFocusedItem 1726
+#define wxListView_GetNextSelected 1727
+#define wxListView_IsSelected 1728
+#define wxListView_Select 1729
+#define wxListView_SetColumnImage 1730
+#define wxListItem_new_0 1731
+#define wxListItem_new_1 1732
+#define wxListItem_destruct 1733
+#define wxListItem_Clear 1734
+#define wxListItem_GetAlign 1735
+#define wxListItem_GetBackgroundColour 1736
+#define wxListItem_GetColumn 1737
+#define wxListItem_GetFont 1738
+#define wxListItem_GetId 1739
+#define wxListItem_GetImage 1740
+#define wxListItem_GetMask 1741
+#define wxListItem_GetState 1742
+#define wxListItem_GetText 1743
+#define wxListItem_GetTextColour 1744
+#define wxListItem_GetWidth 1745
+#define wxListItem_SetAlign 1746
+#define wxListItem_SetBackgroundColour 1747
+#define wxListItem_SetColumn 1748
+#define wxListItem_SetFont 1749
+#define wxListItem_SetId 1750
+#define wxListItem_SetImage 1751
+#define wxListItem_SetMask 1752
+#define wxListItem_SetState 1753
+#define wxListItem_SetStateMask 1754
+#define wxListItem_SetText 1755
+#define wxListItem_SetTextColour 1756
+#define wxListItem_SetWidth 1757
+#define wxImageList_new_0 1758
+#define wxImageList_new_3 1759
+#define wxImageList_Add_1 1760
+#define wxImageList_Add_2_0 1761
+#define wxImageList_Add_2_1 1762
+#define wxImageList_Create 1763
+#define wxImageList_Draw 1765
+#define wxImageList_GetBitmap 1766
+#define wxImageList_GetIcon 1767
+#define wxImageList_GetImageCount 1768
+#define wxImageList_GetSize 1769
+#define wxImageList_Remove 1770
+#define wxImageList_RemoveAll 1771
+#define wxImageList_Replace_2 1772
+#define wxImageList_Replace_3 1773
+#define wxImageList_destroy 1774
+#define wxTextAttr_new_0 1775
+#define wxTextAttr_new_2 1776
+#define wxTextAttr_GetAlignment 1777
+#define wxTextAttr_GetBackgroundColour 1778
+#define wxTextAttr_GetFont 1779
+#define wxTextAttr_GetLeftIndent 1780
+#define wxTextAttr_GetLeftSubIndent 1781
+#define wxTextAttr_GetRightIndent 1782
+#define wxTextAttr_GetTabs 1783
+#define wxTextAttr_GetTextColour 1784
+#define wxTextAttr_HasBackgroundColour 1785
+#define wxTextAttr_HasFont 1786
+#define wxTextAttr_HasTextColour 1787
+#define wxTextAttr_GetFlags 1788
+#define wxTextAttr_IsDefault 1789
+#define wxTextAttr_SetAlignment 1790
+#define wxTextAttr_SetBackgroundColour 1791
+#define wxTextAttr_SetFlags 1792
+#define wxTextAttr_SetFont 1793
+#define wxTextAttr_SetLeftIndent 1794
+#define wxTextAttr_SetRightIndent 1795
+#define wxTextAttr_SetTabs 1796
+#define wxTextAttr_SetTextColour 1797
+#define wxTextAttr_destroy 1798
+#define wxTextCtrl_new_3 1800
+#define wxTextCtrl_new_0 1801
+#define wxTextCtrl_destruct 1803
+#define wxTextCtrl_AppendText 1804
+#define wxTextCtrl_CanCopy 1805
+#define wxTextCtrl_CanCut 1806
+#define wxTextCtrl_CanPaste 1807
+#define wxTextCtrl_CanRedo 1808
+#define wxTextCtrl_CanUndo 1809
+#define wxTextCtrl_Clear 1810
+#define wxTextCtrl_Copy 1811
+#define wxTextCtrl_Create 1812
+#define wxTextCtrl_Cut 1813
+#define wxTextCtrl_DiscardEdits 1814
+#define wxTextCtrl_EmulateKeyPress 1815
+#define wxTextCtrl_GetDefaultStyle 1816
+#define wxTextCtrl_GetInsertionPoint 1817
+#define wxTextCtrl_GetLastPosition 1818
+#define wxTextCtrl_GetLineLength 1819
+#define wxTextCtrl_GetLineText 1820
+#define wxTextCtrl_GetNumberOfLines 1821
+#define wxTextCtrl_GetRange 1822
+#define wxTextCtrl_GetSelection 1823
+#define wxTextCtrl_GetStringSelection 1824
+#define wxTextCtrl_GetStyle 1825
+#define wxTextCtrl_GetValue 1826
+#define wxTextCtrl_IsEditable 1827
+#define wxTextCtrl_IsModified 1828
+#define wxTextCtrl_IsMultiLine 1829
+#define wxTextCtrl_IsSingleLine 1830
+#define wxTextCtrl_LoadFile 1831
+#define wxTextCtrl_MarkDirty 1832
+#define wxTextCtrl_Paste 1833
+#define wxTextCtrl_PositionToXY 1834
+#define wxTextCtrl_Redo 1835
+#define wxTextCtrl_Remove 1836
+#define wxTextCtrl_Replace 1837
+#define wxTextCtrl_SaveFile 1838
+#define wxTextCtrl_SetDefaultStyle 1839
+#define wxTextCtrl_SetEditable 1840
+#define wxTextCtrl_SetInsertionPoint 1841
+#define wxTextCtrl_SetInsertionPointEnd 1842
+#define wxTextCtrl_SetMaxLength 1844
+#define wxTextCtrl_SetSelection 1845
+#define wxTextCtrl_SetStyle 1846
+#define wxTextCtrl_SetValue 1847
+#define wxTextCtrl_ShowPosition 1848
+#define wxTextCtrl_Undo 1849
+#define wxTextCtrl_WriteText 1850
+#define wxTextCtrl_XYToPosition 1851
+#define wxNotebook_new_0 1854
+#define wxNotebook_new_3 1855
+#define wxNotebook_destruct 1856
+#define wxNotebook_AddPage 1857
+#define wxNotebook_AdvanceSelection 1858
+#define wxNotebook_AssignImageList 1859
+#define wxNotebook_Create 1860
+#define wxNotebook_DeleteAllPages 1861
+#define wxNotebook_DeletePage 1862
+#define wxNotebook_RemovePage 1863
+#define wxNotebook_GetCurrentPage 1864
+#define wxNotebook_GetImageList 1865
+#define wxNotebook_GetPage 1867
+#define wxNotebook_GetPageCount 1868
+#define wxNotebook_GetPageImage 1869
+#define wxNotebook_GetPageText 1870
+#define wxNotebook_GetRowCount 1871
+#define wxNotebook_GetSelection 1872
+#define wxNotebook_GetThemeBackgroundColour 1873
+#define wxNotebook_HitTest 1875
+#define wxNotebook_InsertPage 1877
+#define wxNotebook_SetImageList 1878
+#define wxNotebook_SetPadding 1879
+#define wxNotebook_SetPageSize 1880
+#define wxNotebook_SetPageImage 1881
+#define wxNotebook_SetPageText 1882
+#define wxNotebook_SetSelection 1883
+#define wxNotebook_ChangeSelection 1884
+#define wxChoicebook_new_0 1885
+#define wxChoicebook_new_3 1886
+#define wxChoicebook_AddPage 1887
+#define wxChoicebook_AdvanceSelection 1888
+#define wxChoicebook_AssignImageList 1889
+#define wxChoicebook_Create 1890
+#define wxChoicebook_DeleteAllPages 1891
+#define wxChoicebook_DeletePage 1892
+#define wxChoicebook_RemovePage 1893
+#define wxChoicebook_GetCurrentPage 1894
+#define wxChoicebook_GetImageList 1895
+#define wxChoicebook_GetPage 1897
+#define wxChoicebook_GetPageCount 1898
+#define wxChoicebook_GetPageImage 1899
+#define wxChoicebook_GetPageText 1900
+#define wxChoicebook_GetSelection 1901
+#define wxChoicebook_HitTest 1902
+#define wxChoicebook_InsertPage 1903
+#define wxChoicebook_SetImageList 1904
+#define wxChoicebook_SetPageSize 1905
+#define wxChoicebook_SetPageImage 1906
+#define wxChoicebook_SetPageText 1907
+#define wxChoicebook_SetSelection 1908
+#define wxChoicebook_ChangeSelection 1909
+#define wxChoicebook_destroy 1910
+#define wxToolbook_new_0 1911
+#define wxToolbook_new_3 1912
+#define wxToolbook_AddPage 1913
+#define wxToolbook_AdvanceSelection 1914
+#define wxToolbook_AssignImageList 1915
+#define wxToolbook_Create 1916
+#define wxToolbook_DeleteAllPages 1917
+#define wxToolbook_DeletePage 1918
+#define wxToolbook_RemovePage 1919
+#define wxToolbook_GetCurrentPage 1920
+#define wxToolbook_GetImageList 1921
+#define wxToolbook_GetPage 1923
+#define wxToolbook_GetPageCount 1924
+#define wxToolbook_GetPageImage 1925
+#define wxToolbook_GetPageText 1926
+#define wxToolbook_GetSelection 1927
+#define wxToolbook_HitTest 1929
+#define wxToolbook_InsertPage 1930
+#define wxToolbook_SetImageList 1931
+#define wxToolbook_SetPageSize 1932
+#define wxToolbook_SetPageImage 1933
+#define wxToolbook_SetPageText 1934
+#define wxToolbook_SetSelection 1935
+#define wxToolbook_ChangeSelection 1936
+#define wxToolbook_destroy 1937
+#define wxListbook_new_0 1938
+#define wxListbook_new_3 1939
+#define wxListbook_AddPage 1940
+#define wxListbook_AdvanceSelection 1941
+#define wxListbook_AssignImageList 1942
+#define wxListbook_Create 1943
+#define wxListbook_DeleteAllPages 1944
+#define wxListbook_DeletePage 1945
+#define wxListbook_RemovePage 1946
+#define wxListbook_GetCurrentPage 1947
+#define wxListbook_GetImageList 1948
+#define wxListbook_GetPage 1950
+#define wxListbook_GetPageCount 1951
+#define wxListbook_GetPageImage 1952
+#define wxListbook_GetPageText 1953
+#define wxListbook_GetSelection 1954
+#define wxListbook_HitTest 1956
+#define wxListbook_InsertPage 1957
+#define wxListbook_SetImageList 1958
+#define wxListbook_SetPageSize 1959
+#define wxListbook_SetPageImage 1960
+#define wxListbook_SetPageText 1961
+#define wxListbook_SetSelection 1962
+#define wxListbook_ChangeSelection 1963
+#define wxListbook_destroy 1964
+#define wxTreebook_new_0 1965
+#define wxTreebook_new_3 1966
+#define wxTreebook_AddPage 1967
+#define wxTreebook_AdvanceSelection 1968
+#define wxTreebook_AssignImageList 1969
+#define wxTreebook_Create 1970
+#define wxTreebook_DeleteAllPages 1971
+#define wxTreebook_DeletePage 1972
+#define wxTreebook_RemovePage 1973
+#define wxTreebook_GetCurrentPage 1974
+#define wxTreebook_GetImageList 1975
+#define wxTreebook_GetPage 1977
+#define wxTreebook_GetPageCount 1978
+#define wxTreebook_GetPageImage 1979
+#define wxTreebook_GetPageText 1980
+#define wxTreebook_GetSelection 1981
+#define wxTreebook_ExpandNode 1982
+#define wxTreebook_IsNodeExpanded 1983
+#define wxTreebook_HitTest 1985
+#define wxTreebook_InsertPage 1986
+#define wxTreebook_InsertSubPage 1987
+#define wxTreebook_SetImageList 1988
+#define wxTreebook_SetPageSize 1989
+#define wxTreebook_SetPageImage 1990
+#define wxTreebook_SetPageText 1991
+#define wxTreebook_SetSelection 1992
+#define wxTreebook_ChangeSelection 1993
+#define wxTreebook_destroy 1994
+#define wxTreeCtrl_new_2 1997
+#define wxTreeCtrl_new_0 1998
+#define wxTreeCtrl_destruct 2000
+#define wxTreeCtrl_AddRoot 2001
+#define wxTreeCtrl_AppendItem 2002
+#define wxTreeCtrl_AssignImageList 2003
+#define wxTreeCtrl_AssignStateImageList 2004
+#define wxTreeCtrl_Collapse 2005
+#define wxTreeCtrl_CollapseAndReset 2006
+#define wxTreeCtrl_Create 2007
+#define wxTreeCtrl_Delete 2008
+#define wxTreeCtrl_DeleteAllItems 2009
+#define wxTreeCtrl_DeleteChildren 2010
+#define wxTreeCtrl_EnsureVisible 2011
+#define wxTreeCtrl_Expand 2012
+#define wxTreeCtrl_GetBoundingRect 2013
+#define wxTreeCtrl_GetChildrenCount 2015
+#define wxTreeCtrl_GetCount 2016
+#define wxTreeCtrl_GetEditControl 2017
+#define wxTreeCtrl_GetFirstVisibleItem 2018
+#define wxTreeCtrl_GetImageList 2019
+#define wxTreeCtrl_GetIndent 2020
+#define wxTreeCtrl_GetItemBackgroundColour 2021
+#define wxTreeCtrl_GetItemData 2022
+#define wxTreeCtrl_GetItemFont 2023
+#define wxTreeCtrl_GetItemImage_1 2024
+#define wxTreeCtrl_GetItemImage_2 2025
+#define wxTreeCtrl_GetItemText 2026
+#define wxTreeCtrl_GetItemTextColour 2027
+#define wxTreeCtrl_GetLastChild 2028
+#define wxTreeCtrl_GetNextSibling 2029
+#define wxTreeCtrl_GetNextVisible 2030
+#define wxTreeCtrl_GetItemParent 2031
+#define wxTreeCtrl_GetPrevSibling 2032
+#define wxTreeCtrl_GetPrevVisible 2033
+#define wxTreeCtrl_GetRootItem 2034
+#define wxTreeCtrl_GetSelection 2035
+#define wxTreeCtrl_GetSelections 2036
+#define wxTreeCtrl_GetStateImageList 2037
+#define wxTreeCtrl_HitTest 2038
+#define wxTreeCtrl_InsertItem_4_1 2039
+#define wxTreeCtrl_InsertItem_4_0 2040
+#define wxTreeCtrl_IsBold 2041
+#define wxTreeCtrl_IsExpanded 2042
+#define wxTreeCtrl_IsSelected 2043
+#define wxTreeCtrl_IsVisible 2044
+#define wxTreeCtrl_ItemHasChildren 2045
+#define wxTreeCtrl_PrependItem 2046
+#define wxTreeCtrl_ScrollTo 2047
+#define wxTreeCtrl_SelectItem_1 2048
+#define wxTreeCtrl_SelectItem_2 2049
+#define wxTreeCtrl_SetIndent 2050
+#define wxTreeCtrl_SetImageList 2051
+#define wxTreeCtrl_SetItemBackgroundColour 2052
+#define wxTreeCtrl_SetItemBold 2053
+#define wxTreeCtrl_SetItemData 2054
+#define wxTreeCtrl_SetItemDropHighlight 2055
+#define wxTreeCtrl_SetItemFont 2056
+#define wxTreeCtrl_SetItemHasChildren 2057
+#define wxTreeCtrl_SetItemImage_2 2058
+#define wxTreeCtrl_SetItemImage_3 2059
+#define wxTreeCtrl_SetItemText 2060
+#define wxTreeCtrl_SetItemTextColour 2061
+#define wxTreeCtrl_SetStateImageList 2062
+#define wxTreeCtrl_SetWindowStyle 2063
+#define wxTreeCtrl_SortChildren 2064
+#define wxTreeCtrl_Toggle 2065
+#define wxTreeCtrl_ToggleItemSelection 2066
+#define wxTreeCtrl_Unselect 2067
+#define wxTreeCtrl_UnselectAll 2068
+#define wxTreeCtrl_UnselectItem 2069
+#define wxScrollBar_new_0 2070
+#define wxScrollBar_new_3 2071
+#define wxScrollBar_destruct 2072
+#define wxScrollBar_Create 2073
+#define wxScrollBar_GetRange 2074
+#define wxScrollBar_GetPageSize 2075
+#define wxScrollBar_GetThumbPosition 2076
+#define wxScrollBar_GetThumbSize 2077
+#define wxScrollBar_SetThumbPosition 2078
+#define wxScrollBar_SetScrollbar 2079
+#define wxSpinButton_new_2 2081
+#define wxSpinButton_new_0 2082
+#define wxSpinButton_Create 2083
+#define wxSpinButton_GetMax 2084
+#define wxSpinButton_GetMin 2085
+#define wxSpinButton_GetValue 2086
+#define wxSpinButton_SetRange 2087
+#define wxSpinButton_SetValue 2088
+#define wxSpinButton_destroy 2089
+#define wxSpinCtrl_new_0 2090
+#define wxSpinCtrl_new_2 2091
+#define wxSpinCtrl_Create 2093
+#define wxSpinCtrl_SetValue_1_1 2096
+#define wxSpinCtrl_SetValue_1_0 2097
+#define wxSpinCtrl_GetValue 2099
+#define wxSpinCtrl_SetRange 2101
+#define wxSpinCtrl_SetSelection 2102
+#define wxSpinCtrl_GetMin 2104
+#define wxSpinCtrl_GetMax 2106
+#define wxSpinCtrl_destroy 2107
+#define wxStaticText_new_0 2108
+#define wxStaticText_new_4 2109
+#define wxStaticText_Create 2110
+#define wxStaticText_GetLabel 2111
+#define wxStaticText_SetLabel 2112
+#define wxStaticText_Wrap 2113
+#define wxStaticText_destroy 2114
+#define wxStaticBitmap_new_0 2115
+#define wxStaticBitmap_new_4 2116
+#define wxStaticBitmap_Create 2117
+#define wxStaticBitmap_GetBitmap 2118
+#define wxStaticBitmap_SetBitmap 2119
+#define wxStaticBitmap_destroy 2120
+#define wxRadioBox_new 2121
+#define wxRadioBox_destruct 2123
+#define wxRadioBox_Create 2124
+#define wxRadioBox_Enable_2 2125
+#define wxRadioBox_Enable_1 2126
+#define wxRadioBox_GetSelection 2127
+#define wxRadioBox_GetString 2128
+#define wxRadioBox_SetSelection 2129
+#define wxRadioBox_Show_2 2130
+#define wxRadioBox_Show_1 2131
+#define wxRadioBox_GetColumnCount 2132
+#define wxRadioBox_GetItemHelpText 2133
+#define wxRadioBox_GetItemToolTip 2134
+#define wxRadioBox_GetItemFromPoint 2136
+#define wxRadioBox_GetRowCount 2137
+#define wxRadioBox_IsItemEnabled 2138
+#define wxRadioBox_IsItemShown 2139
+#define wxRadioBox_SetItemHelpText 2140
+#define wxRadioBox_SetItemToolTip 2141
+#define wxRadioButton_new_0 2142
+#define wxRadioButton_new_4 2143
+#define wxRadioButton_Create 2144
+#define wxRadioButton_GetValue 2145
+#define wxRadioButton_SetValue 2146
+#define wxRadioButton_destroy 2147
+#define wxSlider_new_6 2149
+#define wxSlider_new_0 2150
+#define wxSlider_Create 2151
+#define wxSlider_GetLineSize 2152
+#define wxSlider_GetMax 2153
+#define wxSlider_GetMin 2154
+#define wxSlider_GetPageSize 2155
+#define wxSlider_GetThumbLength 2156
+#define wxSlider_GetValue 2157
+#define wxSlider_SetLineSize 2158
+#define wxSlider_SetPageSize 2159
+#define wxSlider_SetRange 2160
+#define wxSlider_SetThumbLength 2161
+#define wxSlider_SetValue 2162
+#define wxSlider_destroy 2163
+#define wxDialog_new_4 2165
+#define wxDialog_new_0 2166
+#define wxDialog_destruct 2168
+#define wxDialog_Create 2169
+#define wxDialog_CreateButtonSizer 2170
+#define wxDialog_CreateStdDialogButtonSizer 2171
+#define wxDialog_EndModal 2172
+#define wxDialog_GetAffirmativeId 2173
+#define wxDialog_GetReturnCode 2174
+#define wxDialog_IsModal 2175
+#define wxDialog_SetAffirmativeId 2176
+#define wxDialog_SetReturnCode 2177
+#define wxDialog_Show 2178
+#define wxDialog_ShowModal 2179
+#define wxColourDialog_new_0 2180
+#define wxColourDialog_new_2 2181
+#define wxColourDialog_destruct 2182
+#define wxColourDialog_Create 2183
+#define wxColourDialog_GetColourData 2184
+#define wxColourData_new_0 2185
+#define wxColourData_new_1 2186
+#define wxColourData_destruct 2187
+#define wxColourData_GetChooseFull 2188
+#define wxColourData_GetColour 2189
+#define wxColourData_GetCustomColour 2191
+#define wxColourData_SetChooseFull 2192
+#define wxColourData_SetColour 2193
+#define wxColourData_SetCustomColour 2194
+#define wxPalette_new_0 2195
+#define wxPalette_new_4 2196
+#define wxPalette_destruct 2198
+#define wxPalette_Create 2199
+#define wxPalette_GetColoursCount 2200
+#define wxPalette_GetPixel 2201
+#define wxPalette_GetRGB 2202
+#define wxPalette_IsOk 2203
+#define wxDirDialog_new 2207
+#define wxDirDialog_destruct 2208
+#define wxDirDialog_GetPath 2209
+#define wxDirDialog_GetMessage 2210
+#define wxDirDialog_SetMessage 2211
+#define wxDirDialog_SetPath 2212
+#define wxFileDialog_new 2216
+#define wxFileDialog_destruct 2217
+#define wxFileDialog_GetDirectory 2218
+#define wxFileDialog_GetFilename 2219
+#define wxFileDialog_GetFilenames 2220
+#define wxFileDialog_GetFilterIndex 2221
+#define wxFileDialog_GetMessage 2222
+#define wxFileDialog_GetPath 2223
+#define wxFileDialog_GetPaths 2224
+#define wxFileDialog_GetWildcard 2225
+#define wxFileDialog_SetDirectory 2226
+#define wxFileDialog_SetFilename 2227
+#define wxFileDialog_SetFilterIndex 2228
+#define wxFileDialog_SetMessage 2229
+#define wxFileDialog_SetPath 2230
+#define wxFileDialog_SetWildcard 2231
+#define wxPickerBase_SetInternalMargin 2232
+#define wxPickerBase_GetInternalMargin 2233
+#define wxPickerBase_SetTextCtrlProportion 2234
+#define wxPickerBase_SetPickerCtrlProportion 2235
+#define wxPickerBase_GetTextCtrlProportion 2236
+#define wxPickerBase_GetPickerCtrlProportion 2237
+#define wxPickerBase_HasTextCtrl 2238
+#define wxPickerBase_GetTextCtrl 2239
+#define wxPickerBase_IsTextCtrlGrowable 2240
+#define wxPickerBase_SetPickerCtrlGrowable 2241
+#define wxPickerBase_SetTextCtrlGrowable 2242
+#define wxPickerBase_IsPickerCtrlGrowable 2243
+#define wxFilePickerCtrl_new_0 2244
+#define wxFilePickerCtrl_new_3 2245
+#define wxFilePickerCtrl_Create 2246
+#define wxFilePickerCtrl_GetPath 2247
+#define wxFilePickerCtrl_SetPath 2248
+#define wxFilePickerCtrl_destroy 2249
+#define wxDirPickerCtrl_new_0 2250
+#define wxDirPickerCtrl_new_3 2251
+#define wxDirPickerCtrl_Create 2252
+#define wxDirPickerCtrl_GetPath 2253
+#define wxDirPickerCtrl_SetPath 2254
+#define wxDirPickerCtrl_destroy 2255
+#define wxColourPickerCtrl_new_0 2256
+#define wxColourPickerCtrl_new_3 2257
+#define wxColourPickerCtrl_Create 2258
+#define wxColourPickerCtrl_GetColour 2259
+#define wxColourPickerCtrl_SetColour_1_1 2260
+#define wxColourPickerCtrl_SetColour_1_0 2261
+#define wxColourPickerCtrl_destroy 2262
+#define wxDatePickerCtrl_new_0 2263
+#define wxDatePickerCtrl_new_3 2264
+#define wxDatePickerCtrl_GetRange 2265
+#define wxDatePickerCtrl_GetValue 2266
+#define wxDatePickerCtrl_SetRange 2267
+#define wxDatePickerCtrl_SetValue 2268
+#define wxDatePickerCtrl_destroy 2269
+#define wxFontPickerCtrl_new_0 2270
+#define wxFontPickerCtrl_new_3 2271
+#define wxFontPickerCtrl_Create 2272
+#define wxFontPickerCtrl_GetSelectedFont 2273
+#define wxFontPickerCtrl_SetSelectedFont 2274
+#define wxFontPickerCtrl_GetMaxPointSize 2275
+#define wxFontPickerCtrl_SetMaxPointSize 2276
+#define wxFontPickerCtrl_destroy 2277
+#define wxFindReplaceDialog_new_0 2280
+#define wxFindReplaceDialog_new_4 2281
+#define wxFindReplaceDialog_destruct 2282
+#define wxFindReplaceDialog_Create 2283
+#define wxFindReplaceDialog_GetData 2284
+#define wxFindReplaceData_new_0 2285
+#define wxFindReplaceData_new_1 2286
+#define wxFindReplaceData_GetFindString 2287
+#define wxFindReplaceData_GetReplaceString 2288
+#define wxFindReplaceData_GetFlags 2289
+#define wxFindReplaceData_SetFlags 2290
+#define wxFindReplaceData_SetFindString 2291
+#define wxFindReplaceData_SetReplaceString 2292
+#define wxFindReplaceData_destroy 2293
+#define wxMultiChoiceDialog_new_0 2294
+#define wxMultiChoiceDialog_new_5 2296
+#define wxMultiChoiceDialog_GetSelections 2297
+#define wxMultiChoiceDialog_SetSelections 2298
+#define wxMultiChoiceDialog_destroy 2299
+#define wxSingleChoiceDialog_new_0 2300
+#define wxSingleChoiceDialog_new_5 2302
+#define wxSingleChoiceDialog_GetSelection 2303
+#define wxSingleChoiceDialog_GetStringSelection 2304
+#define wxSingleChoiceDialog_SetSelection 2305
+#define wxSingleChoiceDialog_destroy 2306
+#define wxTextEntryDialog_new 2307
+#define wxTextEntryDialog_GetValue 2308
+#define wxTextEntryDialog_SetValue 2309
+#define wxTextEntryDialog_destroy 2310
+#define wxPasswordEntryDialog_new 2311
+#define wxPasswordEntryDialog_destroy 2312
+#define wxFontData_new_0 2313
+#define wxFontData_new_1 2314
+#define wxFontData_destruct 2315
+#define wxFontData_EnableEffects 2316
+#define wxFontData_GetAllowSymbols 2317
+#define wxFontData_GetColour 2318
+#define wxFontData_GetChosenFont 2319
+#define wxFontData_GetEnableEffects 2320
+#define wxFontData_GetInitialFont 2321
+#define wxFontData_GetShowHelp 2322
+#define wxFontData_SetAllowSymbols 2323
+#define wxFontData_SetChosenFont 2324
+#define wxFontData_SetColour 2325
+#define wxFontData_SetInitialFont 2326
+#define wxFontData_SetRange 2327
+#define wxFontData_SetShowHelp 2328
+#define wxFontDialog_new_0 2332
+#define wxFontDialog_new_2 2334
+#define wxFontDialog_Create 2336
+#define wxFontDialog_GetFontData 2337
+#define wxFontDialog_destroy 2339
+#define wxProgressDialog_new 2340
+#define wxProgressDialog_destruct 2341
+#define wxProgressDialog_Resume 2342
+#define wxProgressDialog_Update_2 2343
+#define wxProgressDialog_Update_0 2344
+#define wxMessageDialog_new 2345
+#define wxMessageDialog_destruct 2346
+#define wxPageSetupDialog_new 2347
+#define wxPageSetupDialog_destruct 2348
+#define wxPageSetupDialog_GetPageSetupData 2349
+#define wxPageSetupDialog_ShowModal 2350
+#define wxPageSetupDialogData_new_0 2351
+#define wxPageSetupDialogData_new_1_0 2352
+#define wxPageSetupDialogData_new_1_1 2353
+#define wxPageSetupDialogData_destruct 2354
+#define wxPageSetupDialogData_EnableHelp 2355
+#define wxPageSetupDialogData_EnableMargins 2356
+#define wxPageSetupDialogData_EnableOrientation 2357
+#define wxPageSetupDialogData_EnablePaper 2358
+#define wxPageSetupDialogData_EnablePrinter 2359
+#define wxPageSetupDialogData_GetDefaultMinMargins 2360
+#define wxPageSetupDialogData_GetEnableMargins 2361
+#define wxPageSetupDialogData_GetEnableOrientation 2362
+#define wxPageSetupDialogData_GetEnablePaper 2363
+#define wxPageSetupDialogData_GetEnablePrinter 2364
+#define wxPageSetupDialogData_GetEnableHelp 2365
+#define wxPageSetupDialogData_GetDefaultInfo 2366
+#define wxPageSetupDialogData_GetMarginTopLeft 2367
+#define wxPageSetupDialogData_GetMarginBottomRight 2368
+#define wxPageSetupDialogData_GetMinMarginTopLeft 2369
+#define wxPageSetupDialogData_GetMinMarginBottomRight 2370
+#define wxPageSetupDialogData_GetPaperId 2371
+#define wxPageSetupDialogData_GetPaperSize 2372
+#define wxPageSetupDialogData_GetPrintData 2374
+#define wxPageSetupDialogData_IsOk 2375
+#define wxPageSetupDialogData_SetDefaultInfo 2376
+#define wxPageSetupDialogData_SetDefaultMinMargins 2377
+#define wxPageSetupDialogData_SetMarginTopLeft 2378
+#define wxPageSetupDialogData_SetMarginBottomRight 2379
+#define wxPageSetupDialogData_SetMinMarginTopLeft 2380
+#define wxPageSetupDialogData_SetMinMarginBottomRight 2381
+#define wxPageSetupDialogData_SetPaperId 2382
+#define wxPageSetupDialogData_SetPaperSize_1_1 2383
+#define wxPageSetupDialogData_SetPaperSize_1_0 2384
+#define wxPageSetupDialogData_SetPrintData 2385
+#define wxPrintDialog_new_2_0 2386
+#define wxPrintDialog_new_2_1 2387
+#define wxPrintDialog_destruct 2388
+#define wxPrintDialog_GetPrintDialogData 2389
+#define wxPrintDialog_GetPrintDC 2390
+#define wxPrintDialogData_new_0 2391
+#define wxPrintDialogData_new_1_1 2392
+#define wxPrintDialogData_new_1_0 2393
+#define wxPrintDialogData_destruct 2394
+#define wxPrintDialogData_EnableHelp 2395
+#define wxPrintDialogData_EnablePageNumbers 2396
+#define wxPrintDialogData_EnablePrintToFile 2397
+#define wxPrintDialogData_EnableSelection 2398
+#define wxPrintDialogData_GetAllPages 2399
+#define wxPrintDialogData_GetCollate 2400
+#define wxPrintDialogData_GetFromPage 2401
+#define wxPrintDialogData_GetMaxPage 2402
+#define wxPrintDialogData_GetMinPage 2403
+#define wxPrintDialogData_GetNoCopies 2404
+#define wxPrintDialogData_GetPrintData 2405
+#define wxPrintDialogData_GetPrintToFile 2406
+#define wxPrintDialogData_GetSelection 2407
+#define wxPrintDialogData_GetToPage 2408
+#define wxPrintDialogData_IsOk 2409
+#define wxPrintDialogData_SetCollate 2410
+#define wxPrintDialogData_SetFromPage 2411
+#define wxPrintDialogData_SetMaxPage 2412
+#define wxPrintDialogData_SetMinPage 2413
+#define wxPrintDialogData_SetNoCopies 2414
+#define wxPrintDialogData_SetPrintData 2415
+#define wxPrintDialogData_SetPrintToFile 2416
+#define wxPrintDialogData_SetSelection 2417
+#define wxPrintDialogData_SetToPage 2418
+#define wxPrintData_new_0 2419
+#define wxPrintData_new_1 2420
+#define wxPrintData_destruct 2421
+#define wxPrintData_GetCollate 2422
+#define wxPrintData_GetBin 2423
+#define wxPrintData_GetColour 2424
+#define wxPrintData_GetDuplex 2425
+#define wxPrintData_GetNoCopies 2426
+#define wxPrintData_GetOrientation 2427
+#define wxPrintData_GetPaperId 2428
+#define wxPrintData_GetPrinterName 2429
+#define wxPrintData_GetQuality 2430
+#define wxPrintData_IsOk 2431
+#define wxPrintData_SetBin 2432
+#define wxPrintData_SetCollate 2433
+#define wxPrintData_SetColour 2434
+#define wxPrintData_SetDuplex 2435
+#define wxPrintData_SetNoCopies 2436
+#define wxPrintData_SetOrientation 2437
+#define wxPrintData_SetPaperId 2438
+#define wxPrintData_SetPrinterName 2439
+#define wxPrintData_SetQuality 2440
+#define wxPrintPreview_new_2 2443
+#define wxPrintPreview_new_3 2444
+#define wxPrintPreview_destruct 2446
+#define wxPrintPreview_GetCanvas 2447
+#define wxPrintPreview_GetCurrentPage 2448
+#define wxPrintPreview_GetFrame 2449
+#define wxPrintPreview_GetMaxPage 2450
+#define wxPrintPreview_GetMinPage 2451
+#define wxPrintPreview_GetPrintout 2452
+#define wxPrintPreview_GetPrintoutForPrinting 2453
+#define wxPrintPreview_IsOk 2454
+#define wxPrintPreview_PaintPage 2455
+#define wxPrintPreview_Print 2456
+#define wxPrintPreview_RenderPage 2457
+#define wxPrintPreview_SetCanvas 2458
+#define wxPrintPreview_SetCurrentPage 2459
+#define wxPrintPreview_SetFrame 2460
+#define wxPrintPreview_SetPrintout 2461
+#define wxPrintPreview_SetZoom 2462
+#define wxPreviewFrame_new 2463
+#define wxPreviewFrame_destruct 2464
+#define wxPreviewFrame_CreateControlBar 2465
+#define wxPreviewFrame_CreateCanvas 2466
+#define wxPreviewFrame_Initialize 2467
+#define wxPreviewFrame_OnCloseWindow 2468
+#define wxPreviewControlBar_new 2469
+#define wxPreviewControlBar_destruct 2470
+#define wxPreviewControlBar_CreateButtons 2471
+#define wxPreviewControlBar_GetPrintPreview 2472
+#define wxPreviewControlBar_GetZoomControl 2473
+#define wxPreviewControlBar_SetZoomControl 2474
+#define wxPrinter_new 2476
+#define wxPrinter_CreateAbortWindow 2477
+#define wxPrinter_GetAbort 2478
+#define wxPrinter_GetLastError 2479
+#define wxPrinter_GetPrintDialogData 2480
+#define wxPrinter_Print 2481
+#define wxPrinter_PrintDialog 2482
+#define wxPrinter_ReportError 2483
+#define wxPrinter_Setup 2484
+#define wxPrinter_destroy 2485
+#define wxXmlResource_new_1 2486
+#define wxXmlResource_new_2 2487
+#define wxXmlResource_destruct 2488
+#define wxXmlResource_AttachUnknownControl 2489
+#define wxXmlResource_ClearHandlers 2490
+#define wxXmlResource_CompareVersion 2491
+#define wxXmlResource_Get 2492
+#define wxXmlResource_GetFlags 2493
+#define wxXmlResource_GetVersion 2494
+#define wxXmlResource_GetXRCID 2495
+#define wxXmlResource_InitAllHandlers 2496
+#define wxXmlResource_Load 2497
+#define wxXmlResource_LoadBitmap 2498
+#define wxXmlResource_LoadDialog_2 2499
+#define wxXmlResource_LoadDialog_3 2500
+#define wxXmlResource_LoadFrame_2 2501
+#define wxXmlResource_LoadFrame_3 2502
+#define wxXmlResource_LoadIcon 2503
+#define wxXmlResource_LoadMenu 2504
+#define wxXmlResource_LoadMenuBar_2 2505
+#define wxXmlResource_LoadMenuBar_1 2506
+#define wxXmlResource_LoadPanel_2 2507
+#define wxXmlResource_LoadPanel_3 2508
+#define wxXmlResource_LoadToolBar 2509
+#define wxXmlResource_Set 2510
+#define wxXmlResource_SetFlags 2511
+#define wxXmlResource_Unload 2512
+#define wxXmlResource_xrcctrl 2513
+#define wxHtmlEasyPrinting_new 2514
+#define wxHtmlEasyPrinting_destruct 2515
+#define wxHtmlEasyPrinting_GetPrintData 2516
+#define wxHtmlEasyPrinting_GetPageSetupData 2517
+#define wxHtmlEasyPrinting_PreviewFile 2518
+#define wxHtmlEasyPrinting_PreviewText 2519
+#define wxHtmlEasyPrinting_PrintFile 2520
+#define wxHtmlEasyPrinting_PrintText 2521
+#define wxHtmlEasyPrinting_PageSetup 2522
+#define wxHtmlEasyPrinting_SetFonts 2523
+#define wxHtmlEasyPrinting_SetHeader 2524
+#define wxHtmlEasyPrinting_SetFooter 2525
+#define wxGLCanvas_new_2 2527
+#define wxGLCanvas_new_3_1 2528
+#define wxGLCanvas_new_3_0 2529
+#define wxGLCanvas_GetContext 2530
+#define wxGLCanvas_SetCurrent 2532
+#define wxGLCanvas_SwapBuffers 2533
+#define wxGLCanvas_destroy 2534
+#define wxAuiManager_new 2535
+#define wxAuiManager_destruct 2536
+#define wxAuiManager_AddPane_2_1 2537
+#define wxAuiManager_AddPane_3 2538
+#define wxAuiManager_AddPane_2_0 2539
+#define wxAuiManager_DetachPane 2540
+#define wxAuiManager_GetAllPanes 2541
+#define wxAuiManager_GetArtProvider 2542
+#define wxAuiManager_GetDockSizeConstraint 2543
+#define wxAuiManager_GetFlags 2544
+#define wxAuiManager_GetManagedWindow 2545
+#define wxAuiManager_GetManager 2546
+#define wxAuiManager_GetPane_1_1 2547
+#define wxAuiManager_GetPane_1_0 2548
+#define wxAuiManager_HideHint 2549
+#define wxAuiManager_InsertPane 2550
+#define wxAuiManager_LoadPaneInfo 2551
+#define wxAuiManager_LoadPerspective 2552
+#define wxAuiManager_SavePaneInfo 2553
+#define wxAuiManager_SavePerspective 2554
+#define wxAuiManager_SetArtProvider 2555
+#define wxAuiManager_SetDockSizeConstraint 2556
+#define wxAuiManager_SetFlags 2557
+#define wxAuiManager_SetManagedWindow 2558
+#define wxAuiManager_ShowHint 2559
+#define wxAuiManager_UnInit 2560
+#define wxAuiManager_Update 2561
+#define wxAuiPaneInfo_new_0 2562
+#define wxAuiPaneInfo_new_1 2563
+#define wxAuiPaneInfo_destruct 2564
+#define wxAuiPaneInfo_BestSize_1 2565
+#define wxAuiPaneInfo_BestSize_2 2566
+#define wxAuiPaneInfo_Bottom 2567
+#define wxAuiPaneInfo_BottomDockable 2568
+#define wxAuiPaneInfo_Caption 2569
+#define wxAuiPaneInfo_CaptionVisible 2570
+#define wxAuiPaneInfo_Centre 2571
+#define wxAuiPaneInfo_CentrePane 2572
+#define wxAuiPaneInfo_CloseButton 2573
+#define wxAuiPaneInfo_DefaultPane 2574
+#define wxAuiPaneInfo_DestroyOnClose 2575
+#define wxAuiPaneInfo_Direction 2576
+#define wxAuiPaneInfo_Dock 2577
+#define wxAuiPaneInfo_Dockable 2578
+#define wxAuiPaneInfo_Fixed 2579
+#define wxAuiPaneInfo_Float 2580
+#define wxAuiPaneInfo_Floatable 2581
+#define wxAuiPaneInfo_FloatingPosition_1 2582
+#define wxAuiPaneInfo_FloatingPosition_2 2583
+#define wxAuiPaneInfo_FloatingSize_1 2584
+#define wxAuiPaneInfo_FloatingSize_2 2585
+#define wxAuiPaneInfo_Gripper 2586
+#define wxAuiPaneInfo_GripperTop 2587
+#define wxAuiPaneInfo_HasBorder 2588
+#define wxAuiPaneInfo_HasCaption 2589
+#define wxAuiPaneInfo_HasCloseButton 2590
+#define wxAuiPaneInfo_HasFlag 2591
+#define wxAuiPaneInfo_HasGripper 2592
+#define wxAuiPaneInfo_HasGripperTop 2593
+#define wxAuiPaneInfo_HasMaximizeButton 2594
+#define wxAuiPaneInfo_HasMinimizeButton 2595
+#define wxAuiPaneInfo_HasPinButton 2596
+#define wxAuiPaneInfo_Hide 2597
+#define wxAuiPaneInfo_IsBottomDockable 2598
+#define wxAuiPaneInfo_IsDocked 2599
+#define wxAuiPaneInfo_IsFixed 2600
+#define wxAuiPaneInfo_IsFloatable 2601
+#define wxAuiPaneInfo_IsFloating 2602
+#define wxAuiPaneInfo_IsLeftDockable 2603
+#define wxAuiPaneInfo_IsMovable 2604
+#define wxAuiPaneInfo_IsOk 2605
+#define wxAuiPaneInfo_IsResizable 2606
+#define wxAuiPaneInfo_IsRightDockable 2607
+#define wxAuiPaneInfo_IsShown 2608
+#define wxAuiPaneInfo_IsToolbar 2609
+#define wxAuiPaneInfo_IsTopDockable 2610
+#define wxAuiPaneInfo_Layer 2611
+#define wxAuiPaneInfo_Left 2612
+#define wxAuiPaneInfo_LeftDockable 2613
+#define wxAuiPaneInfo_MaxSize_1 2614
+#define wxAuiPaneInfo_MaxSize_2 2615
+#define wxAuiPaneInfo_MaximizeButton 2616
+#define wxAuiPaneInfo_MinSize_1 2617
+#define wxAuiPaneInfo_MinSize_2 2618
+#define wxAuiPaneInfo_MinimizeButton 2619
+#define wxAuiPaneInfo_Movable 2620
+#define wxAuiPaneInfo_Name 2621
+#define wxAuiPaneInfo_PaneBorder 2622
+#define wxAuiPaneInfo_PinButton 2623
+#define wxAuiPaneInfo_Position 2624
+#define wxAuiPaneInfo_Resizable 2625
+#define wxAuiPaneInfo_Right 2626
+#define wxAuiPaneInfo_RightDockable 2627
+#define wxAuiPaneInfo_Row 2628
+#define wxAuiPaneInfo_SafeSet 2629
+#define wxAuiPaneInfo_SetFlag 2630
+#define wxAuiPaneInfo_Show 2631
+#define wxAuiPaneInfo_ToolbarPane 2632
+#define wxAuiPaneInfo_Top 2633
+#define wxAuiPaneInfo_TopDockable 2634
+#define wxAuiPaneInfo_Window 2635
+#define wxAuiNotebook_new_0 2636
+#define wxAuiNotebook_new_2 2637
+#define wxAuiNotebook_AddPage 2638
+#define wxAuiNotebook_Create 2639
+#define wxAuiNotebook_DeletePage 2640
+#define wxAuiNotebook_GetArtProvider 2641
+#define wxAuiNotebook_GetPage 2642
+#define wxAuiNotebook_GetPageBitmap 2643
+#define wxAuiNotebook_GetPageCount 2644
+#define wxAuiNotebook_GetPageIndex 2645
+#define wxAuiNotebook_GetPageText 2646
+#define wxAuiNotebook_GetSelection 2647
+#define wxAuiNotebook_InsertPage 2648
+#define wxAuiNotebook_RemovePage 2649
+#define wxAuiNotebook_SetArtProvider 2650
+#define wxAuiNotebook_SetFont 2651
+#define wxAuiNotebook_SetPageBitmap 2652
+#define wxAuiNotebook_SetPageText 2653
+#define wxAuiNotebook_SetSelection 2654
+#define wxAuiNotebook_SetTabCtrlHeight 2655
+#define wxAuiNotebook_SetUniformBitmapSize 2656
+#define wxAuiNotebook_destroy 2657
+#define wxMDIParentFrame_new_0 2658
+#define wxMDIParentFrame_new_4 2659
+#define wxMDIParentFrame_destruct 2660
+#define wxMDIParentFrame_ActivateNext 2661
+#define wxMDIParentFrame_ActivatePrevious 2662
+#define wxMDIParentFrame_ArrangeIcons 2663
+#define wxMDIParentFrame_Cascade 2664
+#define wxMDIParentFrame_Create 2665
+#define wxMDIParentFrame_GetActiveChild 2666
+#define wxMDIParentFrame_GetClientWindow 2667
+#define wxMDIParentFrame_Tile 2668
+#define wxMDIChildFrame_new_0 2669
+#define wxMDIChildFrame_new_4 2670
+#define wxMDIChildFrame_destruct 2671
+#define wxMDIChildFrame_Activate 2672
+#define wxMDIChildFrame_Create 2673
+#define wxMDIChildFrame_Maximize 2674
+#define wxMDIChildFrame_Restore 2675
+#define wxMDIClientWindow_new_0 2676
+#define wxMDIClientWindow_new_2 2677
+#define wxMDIClientWindow_destruct 2678
+#define wxMDIClientWindow_CreateClient 2679
+#define wxLayoutAlgorithm_new 2680
+#define wxLayoutAlgorithm_LayoutFrame 2681
+#define wxLayoutAlgorithm_LayoutMDIFrame 2682
+#define wxLayoutAlgorithm_LayoutWindow 2683
+#define wxLayoutAlgorithm_destroy 2684
+#define wxEvent_GetId 2685
+#define wxEvent_GetSkipped 2686
+#define wxEvent_GetTimestamp 2687
+#define wxEvent_IsCommandEvent 2688
+#define wxEvent_ResumePropagation 2689
+#define wxEvent_ShouldPropagate 2690
+#define wxEvent_Skip 2691
+#define wxEvent_StopPropagation 2692
+#define wxCommandEvent_getClientData 2693
+#define wxCommandEvent_GetExtraLong 2694
+#define wxCommandEvent_GetInt 2695
+#define wxCommandEvent_GetSelection 2696
+#define wxCommandEvent_GetString 2697
+#define wxCommandEvent_IsChecked 2698
+#define wxCommandEvent_IsSelection 2699
+#define wxCommandEvent_SetInt 2700
+#define wxCommandEvent_SetString 2701
+#define wxScrollEvent_GetOrientation 2702
+#define wxScrollEvent_GetPosition 2703
+#define wxScrollWinEvent_GetOrientation 2704
+#define wxScrollWinEvent_GetPosition 2705
+#define wxMouseEvent_AltDown 2706
+#define wxMouseEvent_Button 2707
+#define wxMouseEvent_ButtonDClick 2708
+#define wxMouseEvent_ButtonDown 2709
+#define wxMouseEvent_ButtonUp 2710
+#define wxMouseEvent_CmdDown 2711
+#define wxMouseEvent_ControlDown 2712
+#define wxMouseEvent_Dragging 2713
+#define wxMouseEvent_Entering 2714
+#define wxMouseEvent_GetButton 2715
+#define wxMouseEvent_GetPosition 2718
+#define wxMouseEvent_GetLogicalPosition 2719
+#define wxMouseEvent_GetLinesPerAction 2720
+#define wxMouseEvent_GetWheelRotation 2721
+#define wxMouseEvent_GetWheelDelta 2722
+#define wxMouseEvent_GetX 2723
+#define wxMouseEvent_GetY 2724
+#define wxMouseEvent_IsButton 2725
+#define wxMouseEvent_IsPageScroll 2726
+#define wxMouseEvent_Leaving 2727
+#define wxMouseEvent_LeftDClick 2728
+#define wxMouseEvent_LeftDown 2729
+#define wxMouseEvent_LeftIsDown 2730
+#define wxMouseEvent_LeftUp 2731
+#define wxMouseEvent_MetaDown 2732
+#define wxMouseEvent_MiddleDClick 2733
+#define wxMouseEvent_MiddleDown 2734
+#define wxMouseEvent_MiddleIsDown 2735
+#define wxMouseEvent_MiddleUp 2736
+#define wxMouseEvent_Moving 2737
+#define wxMouseEvent_RightDClick 2738
+#define wxMouseEvent_RightDown 2739
+#define wxMouseEvent_RightIsDown 2740
+#define wxMouseEvent_RightUp 2741
+#define wxMouseEvent_ShiftDown 2742
+#define wxSetCursorEvent_GetCursor 2743
+#define wxSetCursorEvent_GetX 2744
+#define wxSetCursorEvent_GetY 2745
+#define wxSetCursorEvent_HasCursor 2746
+#define wxSetCursorEvent_SetCursor 2747
+#define wxKeyEvent_AltDown 2748
+#define wxKeyEvent_CmdDown 2749
+#define wxKeyEvent_ControlDown 2750
+#define wxKeyEvent_GetKeyCode 2751
+#define wxKeyEvent_GetModifiers 2752
+#define wxKeyEvent_GetPosition 2755
+#define wxKeyEvent_GetRawKeyCode 2756
+#define wxKeyEvent_GetRawKeyFlags 2757
+#define wxKeyEvent_GetUnicodeKey 2758
+#define wxKeyEvent_GetX 2759
+#define wxKeyEvent_GetY 2760
+#define wxKeyEvent_HasModifiers 2761
+#define wxKeyEvent_MetaDown 2762
+#define wxKeyEvent_ShiftDown 2763
+#define wxSizeEvent_GetSize 2764
+#define wxMoveEvent_GetPosition 2765
+#define wxEraseEvent_GetDC 2766
+#define wxFocusEvent_GetWindow 2767
+#define wxChildFocusEvent_GetWindow 2768
+#define wxMenuEvent_GetMenu 2769
+#define wxMenuEvent_GetMenuId 2770
+#define wxMenuEvent_IsPopup 2771
+#define wxCloseEvent_CanVeto 2772
+#define wxCloseEvent_GetLoggingOff 2773
+#define wxCloseEvent_SetCanVeto 2774
+#define wxCloseEvent_SetLoggingOff 2775
+#define wxCloseEvent_Veto 2776
+#define wxShowEvent_SetShow 2777
+#define wxShowEvent_GetShow 2778
+#define wxIconizeEvent_Iconized 2779
+#define wxJoystickEvent_ButtonDown 2780
+#define wxJoystickEvent_ButtonIsDown 2781
+#define wxJoystickEvent_ButtonUp 2782
+#define wxJoystickEvent_GetButtonChange 2783
+#define wxJoystickEvent_GetButtonState 2784
+#define wxJoystickEvent_GetJoystick 2785
+#define wxJoystickEvent_GetPosition 2786
+#define wxJoystickEvent_GetZPosition 2787
+#define wxJoystickEvent_IsButton 2788
+#define wxJoystickEvent_IsMove 2789
+#define wxJoystickEvent_IsZMove 2790
+#define wxUpdateUIEvent_CanUpdate 2791
+#define wxUpdateUIEvent_Check 2792
+#define wxUpdateUIEvent_Enable 2793
+#define wxUpdateUIEvent_Show 2794
+#define wxUpdateUIEvent_GetChecked 2795
+#define wxUpdateUIEvent_GetEnabled 2796
+#define wxUpdateUIEvent_GetShown 2797
+#define wxUpdateUIEvent_GetSetChecked 2798
+#define wxUpdateUIEvent_GetSetEnabled 2799
+#define wxUpdateUIEvent_GetSetShown 2800
+#define wxUpdateUIEvent_GetSetText 2801
+#define wxUpdateUIEvent_GetText 2802
+#define wxUpdateUIEvent_GetMode 2803
+#define wxUpdateUIEvent_GetUpdateInterval 2804
+#define wxUpdateUIEvent_ResetUpdateTime 2805
+#define wxUpdateUIEvent_SetMode 2806
+#define wxUpdateUIEvent_SetText 2807
+#define wxUpdateUIEvent_SetUpdateInterval 2808
+#define wxMouseCaptureChangedEvent_GetCapturedWindow 2809
+#define wxPaletteChangedEvent_SetChangedWindow 2810
+#define wxPaletteChangedEvent_GetChangedWindow 2811
+#define wxQueryNewPaletteEvent_SetPaletteRealized 2812
+#define wxQueryNewPaletteEvent_GetPaletteRealized 2813
+#define wxNavigationKeyEvent_GetDirection 2814
+#define wxNavigationKeyEvent_SetDirection 2815
+#define wxNavigationKeyEvent_IsWindowChange 2816
+#define wxNavigationKeyEvent_SetWindowChange 2817
+#define wxNavigationKeyEvent_IsFromTab 2818
+#define wxNavigationKeyEvent_SetFromTab 2819
+#define wxNavigationKeyEvent_GetCurrentFocus 2820
+#define wxNavigationKeyEvent_SetCurrentFocus 2821
+#define wxHelpEvent_GetOrigin 2822
+#define wxHelpEvent_GetPosition 2823
+#define wxHelpEvent_SetOrigin 2824
+#define wxHelpEvent_SetPosition 2825
+#define wxContextMenuEvent_GetPosition 2826
+#define wxContextMenuEvent_SetPosition 2827
+#define wxIdleEvent_CanSend 2828
+#define wxIdleEvent_GetMode 2829
+#define wxIdleEvent_RequestMore 2830
+#define wxIdleEvent_MoreRequested 2831
+#define wxIdleEvent_SetMode 2832
+#define wxGridEvent_AltDown 2833
+#define wxGridEvent_ControlDown 2834
+#define wxGridEvent_GetCol 2835
+#define wxGridEvent_GetPosition 2836
+#define wxGridEvent_GetRow 2837
+#define wxGridEvent_MetaDown 2838
+#define wxGridEvent_Selecting 2839
+#define wxGridEvent_ShiftDown 2840
+#define wxNotifyEvent_Allow 2841
+#define wxNotifyEvent_IsAllowed 2842
+#define wxNotifyEvent_Veto 2843
+#define wxSashEvent_GetEdge 2844
+#define wxSashEvent_GetDragRect 2845
+#define wxSashEvent_GetDragStatus 2846
+#define wxListEvent_GetCacheFrom 2847
+#define wxListEvent_GetCacheTo 2848
+#define wxListEvent_GetKeyCode 2849
+#define wxListEvent_GetIndex 2850
+#define wxListEvent_GetColumn 2851
+#define wxListEvent_GetPoint 2852
+#define wxListEvent_GetLabel 2853
+#define wxListEvent_GetText 2854
+#define wxListEvent_GetImage 2855
+#define wxListEvent_GetData 2856
+#define wxListEvent_GetMask 2857
+#define wxListEvent_GetItem 2858
+#define wxListEvent_IsEditCancelled 2859
+#define wxDateEvent_GetDate 2860
+#define wxCalendarEvent_GetWeekDay 2861
+#define wxFileDirPickerEvent_GetPath 2862
+#define wxColourPickerEvent_GetColour 2863
+#define wxFontPickerEvent_GetFont 2864
+#define wxStyledTextEvent_GetPosition 2865
+#define wxStyledTextEvent_GetKey 2866
+#define wxStyledTextEvent_GetModifiers 2867
+#define wxStyledTextEvent_GetModificationType 2868
+#define wxStyledTextEvent_GetText 2869
+#define wxStyledTextEvent_GetLength 2870
+#define wxStyledTextEvent_GetLinesAdded 2871
+#define wxStyledTextEvent_GetLine 2872
+#define wxStyledTextEvent_GetFoldLevelNow 2873
+#define wxStyledTextEvent_GetFoldLevelPrev 2874
+#define wxStyledTextEvent_GetMargin 2875
+#define wxStyledTextEvent_GetMessage 2876
+#define wxStyledTextEvent_GetWParam 2877
+#define wxStyledTextEvent_GetLParam 2878
+#define wxStyledTextEvent_GetListType 2879
+#define wxStyledTextEvent_GetX 2880
+#define wxStyledTextEvent_GetY 2881
+#define wxStyledTextEvent_GetDragText 2882
+#define wxStyledTextEvent_GetDragAllowMove 2883
+#define wxStyledTextEvent_GetDragResult 2884
+#define wxStyledTextEvent_GetShift 2885
+#define wxStyledTextEvent_GetControl 2886
+#define wxStyledTextEvent_GetAlt 2887
+#define utils_wxGetKeyState 2888
+#define utils_wxGetMousePosition 2889
+#define utils_wxGetMouseState 2890
+#define utils_wxSetDetectableAutoRepeat 2891
+#define utils_wxBell 2892
+#define utils_wxFindMenuItemId 2893
+#define utils_wxGenericFindWindowAtPoint 2894
+#define utils_wxFindWindowAtPoint 2895
+#define utils_wxBeginBusyCursor 2896
+#define utils_wxEndBusyCursor 2897
+#define utils_wxIsBusy 2898
+#define utils_wxShutdown 2899
+#define utils_wxShell 2900
+#define utils_wxLaunchDefaultBrowser 2901
+#define utils_wxGetEmailAddress 2902
+#define utils_wxGetUserId 2903
+#define utils_wxGetHomeDir 2904
+#define utils_wxNewId 2905
+#define utils_wxRegisterId 2906
+#define utils_wxGetCurrentId 2907
+#define utils_wxGetOsDescription 2908
+#define utils_wxIsPlatformLittleEndian 2909
+#define utils_wxIsPlatform64Bit 2910
+#define wxPrintout_new 2911
+#define wxPrintout_destruct 2912
+#define wxPrintout_GetDC 2913
+#define wxPrintout_GetPageSizeMM 2914
+#define wxPrintout_GetPageSizePixels 2915
+#define wxPrintout_GetPaperRectPixels 2916
+#define wxPrintout_GetPPIPrinter 2917
+#define wxPrintout_GetPPIScreen 2918
+#define wxPrintout_GetTitle 2919
+#define wxPrintout_IsPreview 2920
+#define wxPrintout_FitThisSizeToPaper 2921
+#define wxPrintout_FitThisSizeToPage 2922
+#define wxPrintout_FitThisSizeToPageMargins 2923
+#define wxPrintout_MapScreenSizeToPaper 2924
+#define wxPrintout_MapScreenSizeToPage 2925
+#define wxPrintout_MapScreenSizeToPageMargins 2926
+#define wxPrintout_MapScreenSizeToDevice 2927
+#define wxPrintout_GetLogicalPaperRect 2928
+#define wxPrintout_GetLogicalPageRect 2929
+#define wxPrintout_GetLogicalPageMarginsRect 2930
+#define wxPrintout_SetLogicalOrigin 2931
+#define wxPrintout_OffsetLogicalOrigin 2932
+#define wxStyledTextCtrl_new_2 2933
+#define wxStyledTextCtrl_new_0 2934
+#define wxStyledTextCtrl_destruct 2935
+#define wxStyledTextCtrl_Create 2936
+#define wxStyledTextCtrl_AddText 2937
+#define wxStyledTextCtrl_AddStyledText 2938
+#define wxStyledTextCtrl_InsertText 2939
+#define wxStyledTextCtrl_ClearAll 2940
+#define wxStyledTextCtrl_ClearDocumentStyle 2941
+#define wxStyledTextCtrl_GetLength 2942
+#define wxStyledTextCtrl_GetCharAt 2943
+#define wxStyledTextCtrl_GetCurrentPos 2944
+#define wxStyledTextCtrl_GetAnchor 2945
+#define wxStyledTextCtrl_GetStyleAt 2946
+#define wxStyledTextCtrl_Redo 2947
+#define wxStyledTextCtrl_SetUndoCollection 2948
+#define wxStyledTextCtrl_SelectAll 2949
+#define wxStyledTextCtrl_SetSavePoint 2950
+#define wxStyledTextCtrl_GetStyledText 2951
+#define wxStyledTextCtrl_CanRedo 2952
+#define wxStyledTextCtrl_MarkerLineFromHandle 2953
+#define wxStyledTextCtrl_MarkerDeleteHandle 2954
+#define wxStyledTextCtrl_GetUndoCollection 2955
+#define wxStyledTextCtrl_GetViewWhiteSpace 2956
+#define wxStyledTextCtrl_SetViewWhiteSpace 2957
+#define wxStyledTextCtrl_PositionFromPoint 2958
+#define wxStyledTextCtrl_PositionFromPointClose 2959
+#define wxStyledTextCtrl_GotoLine 2960
+#define wxStyledTextCtrl_GotoPos 2961
+#define wxStyledTextCtrl_SetAnchor 2962
+#define wxStyledTextCtrl_GetCurLine 2963
+#define wxStyledTextCtrl_GetEndStyled 2964
+#define wxStyledTextCtrl_ConvertEOLs 2965
+#define wxStyledTextCtrl_GetEOLMode 2966
+#define wxStyledTextCtrl_SetEOLMode 2967
+#define wxStyledTextCtrl_StartStyling 2968
+#define wxStyledTextCtrl_SetStyling 2969
+#define wxStyledTextCtrl_GetBufferedDraw 2970
+#define wxStyledTextCtrl_SetBufferedDraw 2971
+#define wxStyledTextCtrl_SetTabWidth 2972
+#define wxStyledTextCtrl_GetTabWidth 2973
+#define wxStyledTextCtrl_SetCodePage 2974
+#define wxStyledTextCtrl_MarkerDefine 2975
+#define wxStyledTextCtrl_MarkerSetForeground 2976
+#define wxStyledTextCtrl_MarkerSetBackground 2977
+#define wxStyledTextCtrl_MarkerAdd 2978
+#define wxStyledTextCtrl_MarkerDelete 2979
+#define wxStyledTextCtrl_MarkerDeleteAll 2980
+#define wxStyledTextCtrl_MarkerGet 2981
+#define wxStyledTextCtrl_MarkerNext 2982
+#define wxStyledTextCtrl_MarkerPrevious 2983
+#define wxStyledTextCtrl_MarkerDefineBitmap 2984
+#define wxStyledTextCtrl_MarkerAddSet 2985
+#define wxStyledTextCtrl_MarkerSetAlpha 2986
+#define wxStyledTextCtrl_SetMarginType 2987
+#define wxStyledTextCtrl_GetMarginType 2988
+#define wxStyledTextCtrl_SetMarginWidth 2989
+#define wxStyledTextCtrl_GetMarginWidth 2990
+#define wxStyledTextCtrl_SetMarginMask 2991
+#define wxStyledTextCtrl_GetMarginMask 2992
+#define wxStyledTextCtrl_SetMarginSensitive 2993
+#define wxStyledTextCtrl_GetMarginSensitive 2994
+#define wxStyledTextCtrl_StyleClearAll 2995
+#define wxStyledTextCtrl_StyleSetForeground 2996
+#define wxStyledTextCtrl_StyleSetBackground 2997
+#define wxStyledTextCtrl_StyleSetBold 2998
+#define wxStyledTextCtrl_StyleSetItalic 2999
+#define wxStyledTextCtrl_StyleSetSize 3000
+#define wxStyledTextCtrl_StyleSetFaceName 3001
+#define wxStyledTextCtrl_StyleSetEOLFilled 3002
+#define wxStyledTextCtrl_StyleResetDefault 3003
+#define wxStyledTextCtrl_StyleSetUnderline 3004
+#define wxStyledTextCtrl_StyleSetCase 3005
+#define wxStyledTextCtrl_StyleSetHotSpot 3006
+#define wxStyledTextCtrl_SetSelForeground 3007
+#define wxStyledTextCtrl_SetSelBackground 3008
+#define wxStyledTextCtrl_GetSelAlpha 3009
+#define wxStyledTextCtrl_SetSelAlpha 3010
+#define wxStyledTextCtrl_SetCaretForeground 3011
+#define wxStyledTextCtrl_CmdKeyAssign 3012
+#define wxStyledTextCtrl_CmdKeyClear 3013
+#define wxStyledTextCtrl_CmdKeyClearAll 3014
+#define wxStyledTextCtrl_SetStyleBytes 3015
+#define wxStyledTextCtrl_StyleSetVisible 3016
+#define wxStyledTextCtrl_GetCaretPeriod 3017
+#define wxStyledTextCtrl_SetCaretPeriod 3018
+#define wxStyledTextCtrl_SetWordChars 3019
+#define wxStyledTextCtrl_BeginUndoAction 3020
+#define wxStyledTextCtrl_EndUndoAction 3021
+#define wxStyledTextCtrl_IndicatorSetStyle 3022
+#define wxStyledTextCtrl_IndicatorGetStyle 3023
+#define wxStyledTextCtrl_IndicatorSetForeground 3024
+#define wxStyledTextCtrl_IndicatorGetForeground 3025
+#define wxStyledTextCtrl_SetWhitespaceForeground 3026
+#define wxStyledTextCtrl_SetWhitespaceBackground 3027
+#define wxStyledTextCtrl_GetStyleBits 3028
+#define wxStyledTextCtrl_SetLineState 3029
+#define wxStyledTextCtrl_GetLineState 3030
+#define wxStyledTextCtrl_GetMaxLineState 3031
+#define wxStyledTextCtrl_GetCaretLineVisible 3032
+#define wxStyledTextCtrl_SetCaretLineVisible 3033
+#define wxStyledTextCtrl_GetCaretLineBackground 3034
+#define wxStyledTextCtrl_SetCaretLineBackground 3035
+#define wxStyledTextCtrl_AutoCompShow 3036
+#define wxStyledTextCtrl_AutoCompCancel 3037
+#define wxStyledTextCtrl_AutoCompActive 3038
+#define wxStyledTextCtrl_AutoCompPosStart 3039
+#define wxStyledTextCtrl_AutoCompComplete 3040
+#define wxStyledTextCtrl_AutoCompStops 3041
+#define wxStyledTextCtrl_AutoCompSetSeparator 3042
+#define wxStyledTextCtrl_AutoCompGetSeparator 3043
+#define wxStyledTextCtrl_AutoCompSelect 3044
+#define wxStyledTextCtrl_AutoCompSetCancelAtStart 3045
+#define wxStyledTextCtrl_AutoCompGetCancelAtStart 3046
+#define wxStyledTextCtrl_AutoCompSetFillUps 3047
+#define wxStyledTextCtrl_AutoCompSetChooseSingle 3048
+#define wxStyledTextCtrl_AutoCompGetChooseSingle 3049
+#define wxStyledTextCtrl_AutoCompSetIgnoreCase 3050
+#define wxStyledTextCtrl_AutoCompGetIgnoreCase 3051
+#define wxStyledTextCtrl_UserListShow 3052
+#define wxStyledTextCtrl_AutoCompSetAutoHide 3053
+#define wxStyledTextCtrl_AutoCompGetAutoHide 3054
+#define wxStyledTextCtrl_AutoCompSetDropRestOfWord 3055
+#define wxStyledTextCtrl_AutoCompGetDropRestOfWord 3056
+#define wxStyledTextCtrl_RegisterImage 3057
+#define wxStyledTextCtrl_ClearRegisteredImages 3058
+#define wxStyledTextCtrl_AutoCompGetTypeSeparator 3059
+#define wxStyledTextCtrl_AutoCompSetTypeSeparator 3060
+#define wxStyledTextCtrl_AutoCompSetMaxWidth 3061
+#define wxStyledTextCtrl_AutoCompGetMaxWidth 3062
+#define wxStyledTextCtrl_AutoCompSetMaxHeight 3063
+#define wxStyledTextCtrl_AutoCompGetMaxHeight 3064
+#define wxStyledTextCtrl_SetIndent 3065
+#define wxStyledTextCtrl_GetIndent 3066
+#define wxStyledTextCtrl_SetUseTabs 3067
+#define wxStyledTextCtrl_GetUseTabs 3068
+#define wxStyledTextCtrl_SetLineIndentation 3069
+#define wxStyledTextCtrl_GetLineIndentation 3070
+#define wxStyledTextCtrl_GetLineIndentPosition 3071
+#define wxStyledTextCtrl_GetColumn 3072
+#define wxStyledTextCtrl_SetUseHorizontalScrollBar 3073
+#define wxStyledTextCtrl_GetUseHorizontalScrollBar 3074
+#define wxStyledTextCtrl_SetIndentationGuides 3075
+#define wxStyledTextCtrl_GetIndentationGuides 3076
+#define wxStyledTextCtrl_SetHighlightGuide 3077
+#define wxStyledTextCtrl_GetHighlightGuide 3078
+#define wxStyledTextCtrl_GetLineEndPosition 3079
+#define wxStyledTextCtrl_GetCodePage 3080
+#define wxStyledTextCtrl_GetCaretForeground 3081
+#define wxStyledTextCtrl_GetReadOnly 3082
+#define wxStyledTextCtrl_SetCurrentPos 3083
+#define wxStyledTextCtrl_SetSelectionStart 3084
+#define wxStyledTextCtrl_GetSelectionStart 3085
+#define wxStyledTextCtrl_SetSelectionEnd 3086
+#define wxStyledTextCtrl_GetSelectionEnd 3087
+#define wxStyledTextCtrl_SetPrintMagnification 3088
+#define wxStyledTextCtrl_GetPrintMagnification 3089
+#define wxStyledTextCtrl_SetPrintColourMode 3090
+#define wxStyledTextCtrl_GetPrintColourMode 3091
+#define wxStyledTextCtrl_FindText 3092
+#define wxStyledTextCtrl_FormatRange 3093
+#define wxStyledTextCtrl_GetFirstVisibleLine 3094
+#define wxStyledTextCtrl_GetLine 3095
+#define wxStyledTextCtrl_GetLineCount 3096
+#define wxStyledTextCtrl_SetMarginLeft 3097
+#define wxStyledTextCtrl_GetMarginLeft 3098
+#define wxStyledTextCtrl_SetMarginRight 3099
+#define wxStyledTextCtrl_GetMarginRight 3100
+#define wxStyledTextCtrl_GetModify 3101
+#define wxStyledTextCtrl_SetSelection 3102
+#define wxStyledTextCtrl_GetSelectedText 3103
+#define wxStyledTextCtrl_GetTextRange 3104
+#define wxStyledTextCtrl_HideSelection 3105
+#define wxStyledTextCtrl_LineFromPosition 3106
+#define wxStyledTextCtrl_PositionFromLine 3107
+#define wxStyledTextCtrl_LineScroll 3108
+#define wxStyledTextCtrl_EnsureCaretVisible 3109
+#define wxStyledTextCtrl_ReplaceSelection 3110
+#define wxStyledTextCtrl_SetReadOnly 3111
+#define wxStyledTextCtrl_CanPaste 3112
+#define wxStyledTextCtrl_CanUndo 3113
+#define wxStyledTextCtrl_EmptyUndoBuffer 3114
+#define wxStyledTextCtrl_Undo 3115
+#define wxStyledTextCtrl_Cut 3116
+#define wxStyledTextCtrl_Copy 3117
+#define wxStyledTextCtrl_Paste 3118
+#define wxStyledTextCtrl_Clear 3119
+#define wxStyledTextCtrl_SetText 3120
+#define wxStyledTextCtrl_GetText 3121
+#define wxStyledTextCtrl_GetTextLength 3122
+#define wxStyledTextCtrl_GetOvertype 3123
+#define wxStyledTextCtrl_SetCaretWidth 3124
+#define wxStyledTextCtrl_GetCaretWidth 3125
+#define wxStyledTextCtrl_SetTargetStart 3126
+#define wxStyledTextCtrl_GetTargetStart 3127
+#define wxStyledTextCtrl_SetTargetEnd 3128
+#define wxStyledTextCtrl_GetTargetEnd 3129
+#define wxStyledTextCtrl_ReplaceTarget 3130
+#define wxStyledTextCtrl_SearchInTarget 3131
+#define wxStyledTextCtrl_SetSearchFlags 3132
+#define wxStyledTextCtrl_GetSearchFlags 3133
+#define wxStyledTextCtrl_CallTipShow 3134
+#define wxStyledTextCtrl_CallTipCancel 3135
+#define wxStyledTextCtrl_CallTipActive 3136
+#define wxStyledTextCtrl_CallTipPosAtStart 3137
+#define wxStyledTextCtrl_CallTipSetHighlight 3138
+#define wxStyledTextCtrl_CallTipSetBackground 3139
+#define wxStyledTextCtrl_CallTipSetForeground 3140
+#define wxStyledTextCtrl_CallTipSetForegroundHighlight 3141
+#define wxStyledTextCtrl_CallTipUseStyle 3142
+#define wxStyledTextCtrl_VisibleFromDocLine 3143
+#define wxStyledTextCtrl_DocLineFromVisible 3144
+#define wxStyledTextCtrl_WrapCount 3145
+#define wxStyledTextCtrl_SetFoldLevel 3146
+#define wxStyledTextCtrl_GetFoldLevel 3147
+#define wxStyledTextCtrl_GetLastChild 3148
+#define wxStyledTextCtrl_GetFoldParent 3149
+#define wxStyledTextCtrl_ShowLines 3150
+#define wxStyledTextCtrl_HideLines 3151
+#define wxStyledTextCtrl_GetLineVisible 3152
+#define wxStyledTextCtrl_SetFoldExpanded 3153
+#define wxStyledTextCtrl_GetFoldExpanded 3154
+#define wxStyledTextCtrl_ToggleFold 3155
+#define wxStyledTextCtrl_EnsureVisible 3156
+#define wxStyledTextCtrl_SetFoldFlags 3157
+#define wxStyledTextCtrl_EnsureVisibleEnforcePolicy 3158
+#define wxStyledTextCtrl_SetTabIndents 3159
+#define wxStyledTextCtrl_GetTabIndents 3160
+#define wxStyledTextCtrl_SetBackSpaceUnIndents 3161
+#define wxStyledTextCtrl_GetBackSpaceUnIndents 3162
+#define wxStyledTextCtrl_SetMouseDwellTime 3163
+#define wxStyledTextCtrl_GetMouseDwellTime 3164
+#define wxStyledTextCtrl_WordStartPosition 3165
+#define wxStyledTextCtrl_WordEndPosition 3166
+#define wxStyledTextCtrl_SetWrapMode 3167
+#define wxStyledTextCtrl_GetWrapMode 3168
+#define wxStyledTextCtrl_SetWrapVisualFlags 3169
+#define wxStyledTextCtrl_GetWrapVisualFlags 3170
+#define wxStyledTextCtrl_SetWrapVisualFlagsLocation 3171
+#define wxStyledTextCtrl_GetWrapVisualFlagsLocation 3172
+#define wxStyledTextCtrl_SetWrapStartIndent 3173
+#define wxStyledTextCtrl_GetWrapStartIndent 3174
+#define wxStyledTextCtrl_SetLayoutCache 3175
+#define wxStyledTextCtrl_GetLayoutCache 3176
+#define wxStyledTextCtrl_SetScrollWidth 3177
+#define wxStyledTextCtrl_GetScrollWidth 3178
+#define wxStyledTextCtrl_TextWidth 3179
+#define wxStyledTextCtrl_GetEndAtLastLine 3180
+#define wxStyledTextCtrl_TextHeight 3181
+#define wxStyledTextCtrl_SetUseVerticalScrollBar 3182
+#define wxStyledTextCtrl_GetUseVerticalScrollBar 3183
+#define wxStyledTextCtrl_AppendText 3184
+#define wxStyledTextCtrl_GetTwoPhaseDraw 3185
+#define wxStyledTextCtrl_SetTwoPhaseDraw 3186
+#define wxStyledTextCtrl_TargetFromSelection 3187
+#define wxStyledTextCtrl_LinesJoin 3188
+#define wxStyledTextCtrl_LinesSplit 3189
+#define wxStyledTextCtrl_SetFoldMarginColour 3190
+#define wxStyledTextCtrl_SetFoldMarginHiColour 3191
+#define wxStyledTextCtrl_LineDown 3192
+#define wxStyledTextCtrl_LineDownExtend 3193
+#define wxStyledTextCtrl_LineUp 3194
+#define wxStyledTextCtrl_LineUpExtend 3195
+#define wxStyledTextCtrl_CharLeft 3196
+#define wxStyledTextCtrl_CharLeftExtend 3197
+#define wxStyledTextCtrl_CharRight 3198
+#define wxStyledTextCtrl_CharRightExtend 3199
+#define wxStyledTextCtrl_WordLeft 3200
+#define wxStyledTextCtrl_WordLeftExtend 3201
+#define wxStyledTextCtrl_WordRight 3202
+#define wxStyledTextCtrl_WordRightExtend 3203
+#define wxStyledTextCtrl_Home 3204
+#define wxStyledTextCtrl_HomeExtend 3205
+#define wxStyledTextCtrl_LineEnd 3206
+#define wxStyledTextCtrl_LineEndExtend 3207
+#define wxStyledTextCtrl_DocumentStart 3208
+#define wxStyledTextCtrl_DocumentStartExtend 3209
+#define wxStyledTextCtrl_DocumentEnd 3210
+#define wxStyledTextCtrl_DocumentEndExtend 3211
+#define wxStyledTextCtrl_PageUp 3212
+#define wxStyledTextCtrl_PageUpExtend 3213
+#define wxStyledTextCtrl_PageDown 3214
+#define wxStyledTextCtrl_PageDownExtend 3215
+#define wxStyledTextCtrl_EditToggleOvertype 3216
+#define wxStyledTextCtrl_Cancel 3217
+#define wxStyledTextCtrl_DeleteBack 3218
+#define wxStyledTextCtrl_Tab 3219
+#define wxStyledTextCtrl_BackTab 3220
+#define wxStyledTextCtrl_NewLine 3221
+#define wxStyledTextCtrl_FormFeed 3222
+#define wxStyledTextCtrl_VCHome 3223
+#define wxStyledTextCtrl_VCHomeExtend 3224
+#define wxStyledTextCtrl_ZoomIn 3225
+#define wxStyledTextCtrl_ZoomOut 3226
+#define wxStyledTextCtrl_DelWordLeft 3227
+#define wxStyledTextCtrl_DelWordRight 3228
+#define wxStyledTextCtrl_LineCut 3229
+#define wxStyledTextCtrl_LineDelete 3230
+#define wxStyledTextCtrl_LineTranspose 3231
+#define wxStyledTextCtrl_LineDuplicate 3232
+#define wxStyledTextCtrl_LowerCase 3233
+#define wxStyledTextCtrl_UpperCase 3234
+#define wxStyledTextCtrl_LineScrollDown 3235
+#define wxStyledTextCtrl_LineScrollUp 3236
+#define wxStyledTextCtrl_DeleteBackNotLine 3237
+#define wxStyledTextCtrl_HomeDisplay 3238
+#define wxStyledTextCtrl_HomeDisplayExtend 3239
+#define wxStyledTextCtrl_LineEndDisplay 3240
+#define wxStyledTextCtrl_LineEndDisplayExtend 3241
+#define wxStyledTextCtrl_HomeWrapExtend 3242
+#define wxStyledTextCtrl_LineEndWrap 3243
+#define wxStyledTextCtrl_LineEndWrapExtend 3244
+#define wxStyledTextCtrl_VCHomeWrap 3245
+#define wxStyledTextCtrl_VCHomeWrapExtend 3246
+#define wxStyledTextCtrl_LineCopy 3247
+#define wxStyledTextCtrl_MoveCaretInsideView 3248
+#define wxStyledTextCtrl_LineLength 3249
+#define wxStyledTextCtrl_BraceHighlight 3250
+#define wxStyledTextCtrl_BraceBadLight 3251
+#define wxStyledTextCtrl_BraceMatch 3252
+#define wxStyledTextCtrl_GetViewEOL 3253
+#define wxStyledTextCtrl_SetViewEOL 3254
+#define wxStyledTextCtrl_SetModEventMask 3255
+#define wxStyledTextCtrl_GetEdgeColumn 3256
+#define wxStyledTextCtrl_SetEdgeColumn 3257
+#define wxStyledTextCtrl_GetEdgeMode 3258
+#define wxStyledTextCtrl_GetEdgeColour 3259
+#define wxStyledTextCtrl_SetEdgeColour 3260
+#define wxStyledTextCtrl_SearchAnchor 3261
+#define wxStyledTextCtrl_SearchNext 3262
+#define wxStyledTextCtrl_SearchPrev 3263
+#define wxStyledTextCtrl_LinesOnScreen 3264
+#define wxStyledTextCtrl_UsePopUp 3265
+#define wxStyledTextCtrl_SelectionIsRectangle 3266
+#define wxStyledTextCtrl_SetZoom 3267
+#define wxStyledTextCtrl_GetZoom 3268
+#define wxStyledTextCtrl_GetModEventMask 3269
+#define wxStyledTextCtrl_SetSTCFocus 3270
+#define wxStyledTextCtrl_GetSTCFocus 3271
+#define wxStyledTextCtrl_SetStatus 3272
+#define wxStyledTextCtrl_GetStatus 3273
+#define wxStyledTextCtrl_SetMouseDownCaptures 3274
+#define wxStyledTextCtrl_GetMouseDownCaptures 3275
+#define wxStyledTextCtrl_SetSTCCursor 3276
+#define wxStyledTextCtrl_GetSTCCursor 3277
+#define wxStyledTextCtrl_SetControlCharSymbol 3278
+#define wxStyledTextCtrl_GetControlCharSymbol 3279
+#define wxStyledTextCtrl_WordPartLeft 3280
+#define wxStyledTextCtrl_WordPartLeftExtend 3281
+#define wxStyledTextCtrl_WordPartRight 3282
+#define wxStyledTextCtrl_WordPartRightExtend 3283
+#define wxStyledTextCtrl_SetVisiblePolicy 3284
+#define wxStyledTextCtrl_DelLineLeft 3285
+#define wxStyledTextCtrl_DelLineRight 3286
+#define wxStyledTextCtrl_GetXOffset 3287
+#define wxStyledTextCtrl_ChooseCaretX 3288
+#define wxStyledTextCtrl_SetXCaretPolicy 3289
+#define wxStyledTextCtrl_SetYCaretPolicy 3290
+#define wxStyledTextCtrl_GetPrintWrapMode 3291
+#define wxStyledTextCtrl_SetHotspotActiveForeground 3292
+#define wxStyledTextCtrl_SetHotspotActiveBackground 3293
+#define wxStyledTextCtrl_SetHotspotActiveUnderline 3294
+#define wxStyledTextCtrl_SetHotspotSingleLine 3295
+#define wxStyledTextCtrl_ParaDownExtend 3296
+#define wxStyledTextCtrl_ParaUp 3297
+#define wxStyledTextCtrl_ParaUpExtend 3298
+#define wxStyledTextCtrl_PositionBefore 3299
+#define wxStyledTextCtrl_PositionAfter 3300
+#define wxStyledTextCtrl_CopyRange 3301
+#define wxStyledTextCtrl_CopyText 3302
+#define wxStyledTextCtrl_SetSelectionMode 3303
+#define wxStyledTextCtrl_GetSelectionMode 3304
+#define wxStyledTextCtrl_LineDownRectExtend 3305
+#define wxStyledTextCtrl_LineUpRectExtend 3306
+#define wxStyledTextCtrl_CharLeftRectExtend 3307
+#define wxStyledTextCtrl_CharRightRectExtend 3308
+#define wxStyledTextCtrl_HomeRectExtend 3309
+#define wxStyledTextCtrl_VCHomeRectExtend 3310
+#define wxStyledTextCtrl_LineEndRectExtend 3311
+#define wxStyledTextCtrl_PageUpRectExtend 3312
+#define wxStyledTextCtrl_PageDownRectExtend 3313
+#define wxStyledTextCtrl_StutteredPageUp 3314
+#define wxStyledTextCtrl_StutteredPageUpExtend 3315
+#define wxStyledTextCtrl_StutteredPageDown 3316
+#define wxStyledTextCtrl_StutteredPageDownExtend 3317
+#define wxStyledTextCtrl_WordLeftEnd 3318
+#define wxStyledTextCtrl_WordLeftEndExtend 3319
+#define wxStyledTextCtrl_WordRightEnd 3320
+#define wxStyledTextCtrl_WordRightEndExtend 3321
+#define wxStyledTextCtrl_SetWhitespaceChars 3322
+#define wxStyledTextCtrl_SetCharsDefault 3323
+#define wxStyledTextCtrl_AutoCompGetCurrent 3324
+#define wxStyledTextCtrl_Allocate 3325
+#define wxStyledTextCtrl_FindColumn 3326
+#define wxStyledTextCtrl_GetCaretSticky 3327
+#define wxStyledTextCtrl_SetCaretSticky 3328
+#define wxStyledTextCtrl_ToggleCaretSticky 3329
+#define wxStyledTextCtrl_SetPasteConvertEndings 3330
+#define wxStyledTextCtrl_GetPasteConvertEndings 3331
+#define wxStyledTextCtrl_SelectionDuplicate 3332
+#define wxStyledTextCtrl_SetCaretLineBackAlpha 3333
+#define wxStyledTextCtrl_GetCaretLineBackAlpha 3334
+#define wxStyledTextCtrl_StartRecord 3335
+#define wxStyledTextCtrl_StopRecord 3336
+#define wxStyledTextCtrl_SetLexer 3337
+#define wxStyledTextCtrl_GetLexer 3338
+#define wxStyledTextCtrl_Colourise 3339
+#define wxStyledTextCtrl_SetProperty 3340
+#define wxStyledTextCtrl_SetKeyWords 3341
+#define wxStyledTextCtrl_SetLexerLanguage 3342
+#define wxStyledTextCtrl_GetProperty 3343
+#define wxStyledTextCtrl_GetStyleBitsNeeded 3344
+#define wxStyledTextCtrl_GetCurrentLine 3345
+#define wxStyledTextCtrl_StyleSetSpec 3346
+#define wxStyledTextCtrl_StyleSetFont 3347
+#define wxStyledTextCtrl_StyleSetFontAttr 3348
+#define wxStyledTextCtrl_StyleSetCharacterSet 3349
+#define wxStyledTextCtrl_StyleSetFontEncoding 3350
+#define wxStyledTextCtrl_CmdKeyExecute 3351
+#define wxStyledTextCtrl_SetMargins 3352
+#define wxStyledTextCtrl_GetSelection 3353
+#define wxStyledTextCtrl_PointFromPosition 3354
+#define wxStyledTextCtrl_ScrollToLine 3355
+#define wxStyledTextCtrl_ScrollToColumn 3356
+#define wxStyledTextCtrl_SendMsg 3357
+#define wxStyledTextCtrl_SetVScrollBar 3358
+#define wxStyledTextCtrl_SetHScrollBar 3359
+#define wxStyledTextCtrl_GetLastKeydownProcessed 3360
+#define wxStyledTextCtrl_SetLastKeydownProcessed 3361
+#define wxStyledTextCtrl_SaveFile 3362
+#define wxStyledTextCtrl_LoadFile 3363
+#define wxStyledTextCtrl_DoDragOver 3364
+#define wxStyledTextCtrl_DoDropText 3365
+#define wxStyledTextCtrl_GetUseAntiAliasing 3366
+#define wxStyledTextCtrl_AddTextRaw 3367
+#define wxStyledTextCtrl_InsertTextRaw 3368
+#define wxStyledTextCtrl_GetCurLineRaw 3369
+#define wxStyledTextCtrl_GetLineRaw 3370
+#define wxStyledTextCtrl_GetSelectedTextRaw 3371
+#define wxStyledTextCtrl_GetTextRangeRaw 3372
+#define wxStyledTextCtrl_SetTextRaw 3373
+#define wxStyledTextCtrl_GetTextRaw 3374
+#define wxStyledTextCtrl_AppendTextRaw 3375
+#define wxArtProvider_GetBitmap 3376
+#define wxArtProvider_GetIcon 3377
+#define wxTreeEvent_GetKeyCode 3378
+#define wxTreeEvent_GetItem 3379
+#define wxTreeEvent_GetKeyEvent 3380
+#define wxTreeEvent_GetLabel 3381
+#define wxTreeEvent_GetOldItem 3382
+#define wxTreeEvent_GetPoint 3383
+#define wxTreeEvent_IsEditCancelled 3384
+#define wxTreeEvent_SetToolTip 3385
+#define wxNotebookEvent_GetOldSelection 3386
+#define wxNotebookEvent_GetSelection 3387
+#define wxNotebookEvent_SetOldSelection 3388
+#define wxNotebookEvent_SetSelection 3389
+#define wxFileDataObject_new 3390
+#define wxFileDataObject_AddFile 3391
+#define wxFileDataObject_GetFilenames 3392
+#define wxFileDataObject_destroy 3393
+#define wxTextDataObject_new 3394
+#define wxTextDataObject_GetTextLength 3395
+#define wxTextDataObject_GetText 3396
+#define wxTextDataObject_SetText 3397
+#define wxTextDataObject_destroy 3398
+#define wxBitmapDataObject_new_1_1 3399
+#define wxBitmapDataObject_new_1_0 3400
+#define wxBitmapDataObject_GetBitmap 3401
+#define wxBitmapDataObject_SetBitmap 3402
+#define wxBitmapDataObject_destroy 3403
+#define wxClipboard_new 3405
+#define wxClipboard_destruct 3406
+#define wxClipboard_AddData 3407
+#define wxClipboard_Clear 3408
+#define wxClipboard_Close 3409
+#define wxClipboard_Flush 3410
+#define wxClipboard_GetData 3411
+#define wxClipboard_IsOpened 3412
+#define wxClipboard_Open 3413
+#define wxClipboard_SetData 3414
+#define wxClipboard_UsePrimarySelection 3416
+#define wxClipboard_IsSupported 3417
+#define wxClipboard_Get 3418
+#define wxSpinEvent_GetPosition 3419
+#define wxSpinEvent_SetPosition 3420
+#define wxSplitterWindow_new_0 3421
+#define wxSplitterWindow_new_2 3422
+#define wxSplitterWindow_destruct 3423
+#define wxSplitterWindow_Create 3424
+#define wxSplitterWindow_GetMinimumPaneSize 3425
+#define wxSplitterWindow_GetSashGravity 3426
+#define wxSplitterWindow_GetSashPosition 3427
+#define wxSplitterWindow_GetSplitMode 3428
+#define wxSplitterWindow_GetWindow1 3429
+#define wxSplitterWindow_GetWindow2 3430
+#define wxSplitterWindow_Initialize 3431
+#define wxSplitterWindow_IsSplit 3432
+#define wxSplitterWindow_ReplaceWindow 3433
+#define wxSplitterWindow_SetSashGravity 3434
+#define wxSplitterWindow_SetSashPosition 3435
+#define wxSplitterWindow_SetSashSize 3436
+#define wxSplitterWindow_SetMinimumPaneSize 3437
+#define wxSplitterWindow_SetSplitMode 3438
+#define wxSplitterWindow_SplitHorizontally 3439
+#define wxSplitterWindow_SplitVertically 3440
+#define wxSplitterWindow_Unsplit 3441
+#define wxSplitterWindow_UpdateSize 3442
+#define wxSplitterEvent_GetSashPosition 3443
+#define wxSplitterEvent_GetX 3444
+#define wxSplitterEvent_GetY 3445
+#define wxSplitterEvent_GetWindowBeingRemoved 3446
+#define wxSplitterEvent_SetSashPosition 3447
+#define wxHtmlWindow_new_0 3448
+#define wxHtmlWindow_new_2 3449
+#define wxHtmlWindow_AppendToPage 3450
+#define wxHtmlWindow_GetOpenedAnchor 3451
+#define wxHtmlWindow_GetOpenedPage 3452
+#define wxHtmlWindow_GetOpenedPageTitle 3453
+#define wxHtmlWindow_GetRelatedFrame 3454
+#define wxHtmlWindow_HistoryBack 3455
+#define wxHtmlWindow_HistoryCanBack 3456
+#define wxHtmlWindow_HistoryCanForward 3457
+#define wxHtmlWindow_HistoryClear 3458
+#define wxHtmlWindow_HistoryForward 3459
+#define wxHtmlWindow_LoadFile 3460
+#define wxHtmlWindow_LoadPage 3461
+#define wxHtmlWindow_SelectAll 3462
+#define wxHtmlWindow_SelectionToText 3463
+#define wxHtmlWindow_SelectLine 3464
+#define wxHtmlWindow_SelectWord 3465
+#define wxHtmlWindow_SetBorders 3466
+#define wxHtmlWindow_SetFonts 3467
+#define wxHtmlWindow_SetPage 3468
+#define wxHtmlWindow_SetRelatedFrame 3469
+#define wxHtmlWindow_SetRelatedStatusBar 3470
+#define wxHtmlWindow_ToText 3471
+#define wxHtmlWindow_destroy 3472
+#define wxHtmlLinkEvent_GetLinkInfo 3473
+#define wxAuiNotebookEvent_SetSelection 3474
+#define wxAuiNotebookEvent_GetSelection 3475
+#define wxAuiNotebookEvent_SetOldSelection 3476
+#define wxAuiNotebookEvent_GetOldSelection 3477
+#define wxAuiNotebookEvent_SetDragSource 3478
+#define wxAuiNotebookEvent_GetDragSource 3479
+#define wxAuiManagerEvent_SetManager 3480
+#define wxAuiManagerEvent_GetManager 3481
+#define wxAuiManagerEvent_SetPane 3482
+#define wxAuiManagerEvent_GetPane 3483
+#define wxAuiManagerEvent_SetButton 3484
+#define wxAuiManagerEvent_GetButton 3485
+#define wxAuiManagerEvent_SetDC 3486
+#define wxAuiManagerEvent_GetDC 3487
+#define wxAuiManagerEvent_Veto 3488
+#define wxAuiManagerEvent_GetVeto 3489
+#define wxAuiManagerEvent_SetCanVeto 3490
+#define wxAuiManagerEvent_CanVeto 3491
+#define wxLogNull_new 3492
+#define wxLogNull_destroy 3493
+
+
diff --git a/lib/wx/c_src/wxePrintout.cpp b/lib/wx/c_src/wxePrintout.cpp
new file mode 100644
index 0000000000..ea1c76edcc
--- /dev/null
+++ b/lib/wx/c_src/wxePrintout.cpp
@@ -0,0 +1,210 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#include <wx/wx.h>
+#include "wxe_impl.h"
+#include "wxe_return.h"
+
+/* *****************************************************************/
+/* Special Class impls */
+
+
+/* Printing special */
+
+wxEPrintout::~wxEPrintout() {
+ clear_cb(onPrintPage);
+ clear_cb(onPreparePrinting);
+ clear_cb(onBeginPrinting);
+ clear_cb(onEndPrinting);
+ clear_cb(onBeginDocument);
+ clear_cb(onEndDocument);
+ clear_cb(hasPage);
+ clear_cb(getPageInfo);
+
+ ((WxeApp *)wxTheApp)->clearPtr(this);
+}
+
+bool wxEPrintout::OnBeginDocument(int startPage, int endPage)
+{
+ if(onBeginDocument) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ char * bp = ((WxeApp *) wxTheApp)->cb_buff;
+
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onBeginDocument);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.addInt(startPage);
+ rt.addInt(endPage);
+ rt.endList(3);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ return *(int*) bp;
+ } else {
+ return wxPrintout::OnBeginDocument(startPage,endPage);
+ }
+}
+
+void wxEPrintout::OnEndDocument()
+{
+ if(onEndDocument) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onEndDocument);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.endList(1);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ } else {
+ wxPrintout::OnEndDocument();
+ }
+}
+
+void wxEPrintout::OnBeginPrinting()
+{
+
+ if(onBeginPrinting) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onBeginPrinting);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.endList(1);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ } else {
+ wxPrintout::OnBeginPrinting();
+ }
+}
+
+void wxEPrintout::OnEndPrinting()
+{
+
+ if(onEndPrinting) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onEndPrinting);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.endList(1);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ } else {
+ wxPrintout::OnEndPrinting();
+ }
+}
+
+void wxEPrintout::OnPreparePrinting()
+{
+
+ if(onPreparePrinting) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onPreparePrinting);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.endList(1);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ } else {
+ wxPrintout::OnPreparePrinting();
+ }
+}
+
+bool wxEPrintout::HasPage(int page)
+{
+
+ if(hasPage) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(hasPage);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.addInt(page);
+ rt.endList(2);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ char * bp = ((WxeApp *) wxTheApp)->cb_buff;
+ handle_callback_batch(port);
+ return *(int*) bp;
+ } else {
+ return wxPrintout::HasPage(page);
+ }
+}
+
+bool wxEPrintout::OnPrintPage(int page)
+{
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(onPrintPage);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.addInt(page);
+ rt.endList(2);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ //fprintf(stderr,"%d ", __LINE__);handle_callback_batch(port); fprintf(stderr,"%d\r\n", __LINE__);
+ char * bp = ((WxeApp *) wxTheApp)->cb_buff;
+ return *(int*) bp;
+}
+
+void wxEPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo)
+{
+ if(getPageInfo) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(getPageInfo);
+ rt.addRef(((WxeApp *) wxTheApp)->getRef((void *)this, memenv), "wxPrintout");
+ rt.endList(1);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(port);
+ //fprintf(stderr,"%d ", __LINE__);handle_callback_batch(port); fprintf(stderr,"%d\r\n", __LINE__);
+
+ char * bp = ((WxeApp *) wxTheApp)->cb_buff;
+ *minPage = *(int *) bp; bp += 4;
+ *maxPage = *(int *) bp; bp += 4;
+ *pageFrom = *(int *) bp; bp += 4;
+ *pageTo = *(int *) bp; bp += 4;
+ } else {
+ wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
+ }
+}
+
+void wxEPrintout::clear_cb(int callback)
+{
+ if(callback > 0) {
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(port);
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ // NOTE: Remove this later when changing from funs to gen_server
+ rt.addAtom("wx_delete_cb");
+ rt.addInt(callback);
+ rt.addTupleCount(2);
+ rt.send();
+ }
+}
+
diff --git a/lib/wx/c_src/wxe_driver.c b/lib/wx/c_src/wxe_driver.c
new file mode 100644
index 0000000000..3b951bec57
--- /dev/null
+++ b/lib/wx/c_src/wxe_driver.c
@@ -0,0 +1,221 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#ifdef _WIN32
+#include <windows.h>
+#include <io.h>
+#else
+#include <unistd.h>
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <errno.h>
+#include <sys/types.h>
+#include <fcntl.h>
+
+#include "wxe_driver.h"
+
+#define TEMP_BINARY_SIZE 512
+
+static ErlDrvData wxe_driver_start(ErlDrvPort port, char *buff);
+static int wxe_driver_load(void);
+static void wxe_driver_stop(ErlDrvData handle);
+static void wxe_driver_unload(void);
+static int wxe_driver_control(ErlDrvData handle, unsigned int command,
+ char* buf, int count, char** res, int res_size);
+static int wxe_driver_call(ErlDrvData drv_data, unsigned int command, char *buf, int len, char **rbuf, int rlen, unsigned int *flags);
+
+static void standard_outputv(ErlDrvData drv_data, ErlIOVec *ev);
+static void wxe_process_died(ErlDrvData drv_data, ErlDrvMonitor *monitor);
+
+int wxe_debug;
+
+wxe_data * wxe_master;
+char * erl_wx_privdir;
+
+/*
+** The driver struct
+*/
+static ErlDrvEntry wxe_driver_entry = {
+ wxe_driver_load, /* F_PTR init, called at loading */
+ wxe_driver_start, /* L_PTR start, called when port is opened */
+ wxe_driver_stop, /* F_PTR stop, called when port is closed */
+ NULL, /* F_PTR output, called when erlang has sent */
+ NULL, /* F_PTR ready_input, called when input descriptor
+ ready */
+ NULL, /* F_PTR ready_output, called when output
+ descriptor ready */
+ "wxe_driver", /* char *driver_name, the argument to open_port */
+ wxe_driver_unload, /* F_PTR finish, called when unloaded */
+ NULL, /* void * that is not used (BC) */
+ wxe_driver_control, /* F_PTR control, port_control callback */
+ NULL, /* F_PTR timeout, reserved */
+ standard_outputv, /* F_PTR outputv, reserved */
+ NULL, /* async */
+ NULL, /* flush */
+ wxe_driver_call, /* call */
+ NULL, /* Event */
+ ERL_DRV_EXTENDED_MARKER,
+ ERL_DRV_EXTENDED_MAJOR_VERSION,
+ ERL_DRV_EXTENDED_MINOR_VERSION,
+ ERL_DRV_FLAG_USE_PORT_LOCKING, /* Port lock */
+ NULL, /* Reserved Handle */
+ wxe_process_died, /* Process Exited */
+};
+
+DRIVER_INIT(wxe_driver)
+{
+ return &wxe_driver_entry;
+}
+
+int wxe_driver_load()
+{
+ if(load_native_gui())
+ return 0;
+ else
+ return -1;
+}
+
+ErlDrvPort WXE_DRV_PORT = 0;
+
+static ErlDrvData
+wxe_driver_start(ErlDrvPort port, char *buff)
+{
+ wxe_data *data;
+
+ data = (wxe_data *) malloc(sizeof(wxe_data));
+ wxe_debug = 0;
+
+ if (data == NULL) {
+ fprintf(stderr, " Couldn't alloc mem\r\n");
+ return(ERL_DRV_ERROR_GENERAL); /* ENOMEM */
+ } else {
+ set_port_control_flags(port, PORT_CONTROL_FLAG_BINARY);
+ data->driver_data = NULL;
+ data->bin = NULL;
+ data->port = port;
+ if(WXE_DRV_PORT == 0) {
+ for(; *buff != 32; buff++);
+ buff++;
+ erl_wx_privdir = malloc(strlen(buff));
+ strcpy(erl_wx_privdir, buff);
+
+ WXE_DRV_PORT = port;
+ wxe_master = data;
+ if(!(start_native_gui(data) == 1))
+ return(ERL_DRV_ERROR_GENERAL); /* ENOMEM */
+ } else {
+ meta_command(CREATE_PORT,data);
+ }
+ return (ErlDrvData) data;
+ }
+}
+
+static void
+wxe_driver_stop(ErlDrvData handle)
+{
+ wxe_data *sd = ((wxe_data *)handle);
+ if(sd->port != WXE_DRV_PORT) {
+ // fprintf(stderr, "%s:%d: STOP \r\n", __FILE__,__LINE__);
+ meta_command(DELETE_PORT,sd);
+ free(handle);
+ }
+}
+
+static void
+wxe_driver_unload(void)
+{
+ // fprintf(stderr, "%s:%d: UNLOAD \r\n", __FILE__,__LINE__);
+ meta_command(WXE_SHUTDOWN, wxe_master);
+ stop_native_gui(wxe_master);
+ unload_native_gui();
+ free(wxe_master);
+ wxe_master = NULL;
+}
+
+static int
+wxe_driver_control(ErlDrvData handle, unsigned op,
+ char* buf, int count, char** res, int res_size)
+{
+ wxe_data *sd = ((wxe_data *)handle);
+ push_command(op,buf,count,sd);
+ return 0;
+}
+
+static int wxe_driver_call(ErlDrvData handle, unsigned int command,
+ char *buf, int len, char **res, int rlen, unsigned int *flags)
+{
+ wxe_data *sd = ((wxe_data *)handle);
+ if(command == WXE_DEBUG_DRIVER) {
+ if(*buf)
+ wxe_debug = 1;
+ else
+ wxe_debug = 0;
+ } else {
+ meta_command(PING_PORT,sd);
+ }
+ if (len > rlen)
+ *res = driver_alloc(len);
+ memcpy((void *) *res, (void *) buf, len);
+ return len;
+}
+
+
+void wxe_process_died(ErlDrvData handle, ErlDrvMonitor *monitor)
+{
+ /* Callback is active for the dead process */
+ wxe_data *sd = ((wxe_data *)handle);
+ push_command(WXE_CB_RETURN,NULL,0,sd);
+
+/* ErlDrvTermData pid; */
+/* pid = driver_get_monitored_process(sd->port, monitor); */
+/* fprintf(stderr, "Process died %d \r\n", (int) pid); */
+}
+
+
+static void
+standard_outputv(ErlDrvData drv_data, ErlIOVec* ev)
+{
+ wxe_data* sd = (wxe_data *) drv_data;
+ WXEBinRef * binref;
+ ErlDrvBinary* bin;
+
+ if(ev->vsize == 2) {
+ binref = driver_alloc(sizeof(WXEBinRef));
+ binref->base = ev->iov[1].iov_base;
+ binref->size = ev->iov[1].iov_len;
+ binref->from = driver_caller(sd->port);
+ bin = ev->binv[1];
+ driver_binary_inc_refc(bin); /* Otherwise it could get deallocated */
+ binref->bin = bin;
+ binref->next = sd->bin;
+ sd->bin = binref;
+ } else { /* Empty binary (becomes NULL) */
+ binref = driver_alloc(sizeof(WXEBinRef));
+ binref->base = NULL;
+ binref->size = 0;
+ binref->from = driver_caller(sd->port);
+ binref->bin = NULL;
+ binref->next = sd->bin;
+ sd->bin = binref;
+ }
+}
diff --git a/lib/wx/c_src/wxe_driver.h b/lib/wx/c_src/wxe_driver.h
new file mode 100644
index 0000000000..8437b4eb36
--- /dev/null
+++ b/lib/wx/c_src/wxe_driver.h
@@ -0,0 +1,91 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#ifndef _WXE_DRIVER_H
+#define _WXE_DRIVER_H
+#include "erl_driver.h"
+
+typedef unsigned char Uint8;
+typedef unsigned int Uint32;
+
+#define MAX_FUNCTIONS_H 2000
+
+#define error() {fprintf(stderr, "Error in %s:%d \n\r", \
+ __FILE__, __LINE__); \
+ return;}
+
+typedef struct wxe_bin_ref * WXEBinRefptr;
+
+typedef struct wxe_bin_ref {
+ char* base;
+ size_t size;
+ ErlDrvBinary* bin;
+ ErlDrvTermData from;
+ WXEBinRefptr next;
+} WXEBinRef;
+
+typedef struct wxe_data_def {
+ void * driver_data;
+ WXEBinRef * bin; /* Argument binaries */
+ ErlDrvPort port;
+ int is_cbport;
+} wxe_data;
+
+
+void init_glexts(wxe_data*);
+
+int load_native_gui();
+int start_native_gui(wxe_data *sd);
+void stop_native_gui(wxe_data *sd);
+void unload_native_gui();
+
+#define FUNC_CALL 13
+#define CREATE_PORT 14
+#define DELETE_PORT 15
+#define PING_PORT 16
+
+
+void push_command(int op,char * buf,int len, wxe_data *);
+void meta_command(int what, wxe_data *sd);
+
+void * wxe_ps_init();
+
+extern ErlDrvPort WXE_DRV_PORT;
+extern int wxe_debug;
+
+extern char * erl_wx_privdir;
+
+#define WXE_BATCH_BEGIN 0
+#define WXE_BATCH_END 1
+#define WXE_CREATE_PORT 2
+#define WXE_REMOVE_PORT 3
+#define DESTROY_OBJECT 4
+#define WXE_CB_RETURN 5
+#define WXE_SHUTDOWN 6
+#define WXE_REGISTER_OBJECT 7
+#define WXE_CB_START 8
+#define WXE_DEBUG_DRIVER 9
+#define WXE_DEBUG_PING 10
+#define WXE_BIN_INCR 5001
+#define WXE_BIN_DECR 5002
+
+#define OPENGL_START 5000
+
+#endif
+
diff --git a/lib/wx/c_src/wxe_events.h b/lib/wx/c_src/wxe_events.h
new file mode 100644
index 0000000000..43ea656a8d
--- /dev/null
+++ b/lib/wx/c_src/wxe_events.h
@@ -0,0 +1,68 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#ifndef __WXE_EVENT_H__
+#define __WXE_EVENT_H__
+
+#include "wxe_driver.h"
+
+class wxeEtype
+{
+public:
+ wxeEtype (const char *, int);
+ const char *eName;
+ int cID;
+};
+
+void initEventTable();
+int wxeEventTypeFromAtom(char *etype_atom);
+
+/* Fun Callback id */
+class wxeCallbackData : public wxObject
+{
+public:
+ wxeCallbackData(ErlDrvTermData caller, void *req, char *req_type,
+ int funcb, int skip_ev, wxeErlTerm * userData);
+ ~wxeCallbackData();
+ ErlDrvTermData listener;
+ int fun_id;
+ void * obj;
+ char class_name[40];
+ int skip;
+ wxeErlTerm * user_data;
+};
+
+/* One EvtListener per listening erlang process */
+/* If callbacks are used the receiver is wxe_master process */
+/* and a wxeEvtListener pre callback is registered */
+class wxeEvtListener : public wxEvtHandler
+{
+public:
+ wxeEvtListener(ErlDrvPort Thisport) : port(Thisport)
+ {}
+ // {fprintf(stderr, "Creating %x\r\n", (unsigned int) this); fflush(stderr);}
+ void forward(wxEvent& event);
+ ~wxeEvtListener() {
+ ((WxeApp *)wxTheApp)->clearPtr(this);
+ // fprintf(stderr, "Deleteing %x\r\n", (unsigned int) this); fflush(stderr);
+ };
+ ErlDrvPort port;
+};
+
+#endif
diff --git a/lib/wx/c_src/wxe_gl.cpp b/lib/wx/c_src/wxe_gl.cpp
new file mode 100644
index 0000000000..63dd68fa5e
--- /dev/null
+++ b/lib/wx/c_src/wxe_gl.cpp
@@ -0,0 +1,321 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include "wxe_impl.h"
+
+#include "wxe_gl.h"
+
+#define WX_DEF_EXTS
+#include "gen/gl_fdefs.h"
+#include "gen/gl_finit.h"
+#include "gen/glu_finit.h"
+
+/* ****************************************************************************
+ * Opengl context management *
+ * ****************************************************************************/
+int gl_initiated = FALSE;
+
+ErlDrvTermData gl_active = 0;
+wxeGLC glc;
+
+void setActiveGL(ErlDrvTermData caller, wxGLCanvas *canvas)
+{
+ if(gl_initiated == FALSE) {
+ initOpenGL();
+ init_tess();
+ gl_initiated = TRUE;
+ }
+ gl_active = caller;
+ glc[caller] = canvas;
+}
+
+void deleteActiveGL(wxGLCanvas *canvas)
+{
+ gl_active = 0;
+ wxeGLC::iterator it;
+ for(it = glc.begin(); it != glc.end(); ++it) {
+ if(it->second == canvas) {
+ it->second = (wxGLCanvas *) 0;
+ }
+ }
+}
+
+/* ****************************************************************************
+ * OPENGL INITIALIZATION
+ *****************************************************************************/
+
+#ifdef _WIN32
+void * dlsym(HMODULE Lib, const char *func) {
+ void * funcp;
+ if((funcp = (void *) GetProcAddress(Lib, func)))
+ return funcp;
+ else
+ return (void *) wglGetProcAddress(func);
+}
+#endif
+
+int initOpenGL()
+{
+#ifdef _MACOSX
+ char * DLName = "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib";
+ void * LIBhandle = dlopen(DLName, RTLD_LAZY);
+#elif defined(_WIN32)
+ WCHAR * DLName = wxT("opengl32.dll");
+ HMODULE LIBhandle = LoadLibrary(DLName);
+#else
+ char * DLName = (char *) "libGL.so";
+ void * LIBhandle = dlopen(DLName, RTLD_LAZY);
+#endif
+ // fprintf(stderr, "Loading GL: %s\r\n", (const char*)DLName);
+ void * func = NULL;
+ int i;
+
+ if(LIBhandle) {
+ for(i=0; gl_fns[i].name != NULL; i++) {
+ if((func = dlsym(LIBhandle, gl_fns[i].name))) {
+ * (void **) (gl_fns[i].func) = func;
+ // fprintf(stderr, "GL LOADED %s \r\n", gl_fns[i].name);
+ } else {
+ if(gl_fns[i].alt != NULL) {
+ if((func = dlsym(LIBhandle, gl_fns[i].alt))) {
+ * (void **) (gl_fns[i].func) = func;
+ // fprintf(stderr, "GL LOADED %s \r\n", gl_fns[i].alt);
+ } else {
+ * (void **) (gl_fns[i].func) = (void *) &gl_error;
+ // fprintf(stderr, "GL Skipped %s and %s \r\n", gl_fns[i].name, gl_fns[i].alt);
+ };
+ } else {
+ * (void **) (gl_fns[i].func) = (void *) &gl_error;
+ // fprintf(stderr, "GL Skipped %s \r\n", gl_fns[i].name);
+ }
+ }
+ }
+#ifdef _WIN32
+ FreeLibrary(LIBhandle);
+#else
+ dlclose(LIBhandle);
+#endif
+ // fprintf(stderr, "OPENGL library is loaded\r\n");
+ } else {
+ wxString msg;
+ msg.Printf(wxT("Could NOT load OpenGL library: "));
+#ifdef _WIN32
+ msg += DLName;
+#else
+ msg += wxString::FromAscii((char *)DLName);
+#endif
+ send_msg("error", &msg);
+ };
+
+#ifdef _MACOSX
+ DLName = "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib";
+ LIBhandle = dlopen(DLName, RTLD_LAZY);
+#elif defined(_WIN32)
+ DLName = wxT("glu32.dll");
+ LIBhandle = LoadLibrary(DLName);
+#else
+ DLName = (char *) "libGLU.so";
+ LIBhandle = dlopen(DLName, RTLD_LAZY);
+#endif
+ // fprintf(stderr, "Loading GL: %s\r\n", (const char*)DLName);
+ func = NULL;
+
+ if(LIBhandle) {
+ for(i=0; glu_fns[i].name != NULL; i++) {
+ if((func = dlsym(LIBhandle, glu_fns[i].name))) {
+ * (void **) (glu_fns[i].func) = func;
+ } else {
+ if(glu_fns[i].alt != NULL) {
+ if((func = dlsym(LIBhandle, glu_fns[i].alt))) {
+ * (void **) (glu_fns[i].func) = func;
+ } else {
+ * (void **) (glu_fns[i].func) = (void *) &gl_error;
+ // fprintf(stderr, "GLU Skipped %s\r\n", glu_fns[i].alt);
+ };
+ } else {
+ * (void **) (glu_fns[i].func) = (void *) &gl_error;
+ // fprintf(stderr, "GLU Skipped %s\r\n", glu_fns[i].name);
+ }
+ }
+ }
+#ifdef _WIN32
+ FreeLibrary(LIBhandle);
+#else
+ dlclose(LIBhandle);
+#endif
+ // fprintf(stderr, "GLU library is loaded\r\n");
+ } else {
+ wxString msg;
+ msg.Printf(wxT("Could NOT load OpenGL GLU library: "));
+#ifdef _WIN32
+ msg += DLName;
+#else
+ msg += wxString::FromAscii((char *)DLName);
+#endif
+ send_msg("error", &msg);
+ };
+ return 0;
+}
+
+void gl_error() {
+ int AP = 0; ErlDrvTermData rt[8];
+ rt[AP++] = ERL_DRV_ATOM; rt[AP++] = driver_mk_atom((char *)"_wxe_error_");
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (int) gl_error_op;
+ rt[AP++] = ERL_DRV_ATOM; rt[AP++] = driver_mk_atom((char *)"undef");
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
+ driver_send_term(WXE_DRV_PORT,gl_active,rt,AP);
+}
+
+/* *******************************************************************************
+ * GLU Tesselation special
+ * ******************************************************************************/
+
+static GLUtesselator* tess;
+static GLdouble* tess_coords;
+static GLdouble* tess_alloc_vertex;
+static int* tess_vertices;
+
+void CALLBACK
+wxe_ogla_vertex(GLdouble* coords)
+{
+ /* fprintf(stderr, "%d\r\n", (int) (coords - tess_coords) / 3); */
+
+ *tess_vertices++ = (int) (coords - tess_coords) / 3;
+}
+
+void CALLBACK
+wxe_ogla_edge_flag(GLboolean flag)
+{
+}
+
+void CALLBACK
+wxe_ogla_error(GLenum errorCode)
+{
+ const GLubyte *err;
+ err = gluErrorString(errorCode);
+ wxString msg;
+ msg.Printf(wxT("Tesselation error: %d: "), (int)errorCode);
+ msg += wxString::FromAscii((char *) err);
+ send_msg("error", &msg);
+}
+
+void CALLBACK
+wxe_ogla_combine(GLdouble coords[3],
+ void* vertex_data[4],
+ GLfloat w[4],
+ void **dataOut)
+{
+ GLdouble* vertex = tess_alloc_vertex;
+
+ tess_alloc_vertex += 3;
+
+#if 0
+ fprintf(stderr, "combine: ");
+ int i;
+ for (i = 0; i < 4; i++) {
+ if (w[i] > 0.0) {
+ fprintf(stderr, "%d(%g) ", (int) vertex_data[i], w[i]);
+ }
+ }
+ fprintf(stderr, "\r\n");
+ fprintf(stderr, "%g %g %g\r\n", vertex[0], vertex[1], vertex[2]);
+#endif
+
+ vertex[0] = coords[0];
+ vertex[1] = coords[1];
+ vertex[2] = coords[2];
+ *dataOut = vertex;
+}
+
+void init_tess()
+{
+ tess = gluNewTess();
+
+ gluTessCallback(tess, GLU_TESS_VERTEX, (GLUfuncptr) wxe_ogla_vertex);
+ gluTessCallback(tess, GLU_TESS_EDGE_FLAG, (GLUfuncptr) wxe_ogla_edge_flag);
+ gluTessCallback(tess, GLU_TESS_COMBINE, (GLUfuncptr) wxe_ogla_combine);
+ gluTessCallback(tess, GLU_TESS_ERROR, (GLUfuncptr) wxe_ogla_error);
+
+}
+
+void exit_tess()
+{
+ gluDeleteTess(tess);
+}
+
+int wxe_tess_impl(char* buff, ErlDrvTermData caller)
+{
+ ErlDrvBinary* bin;
+ int i;
+ int num_vertices = * (int *) buff; buff += 8; // Align
+ GLdouble *n = (double *) buff; buff += 8*3;
+
+ GLdouble* new_vertices;
+ bin = driver_alloc_binary(num_vertices*6*sizeof(GLdouble));
+ new_vertices = tess_coords = (double *) bin->orig_bytes;
+ memcpy(tess_coords,buff,num_vertices*3*sizeof(GLdouble));
+ tess_alloc_vertex = tess_coords + num_vertices*3;
+
+#if 0
+ fprintf(stderr, "n=%d\r\n", num_vertices);
+#endif
+ int *vertices;
+ vertices = (int *) driver_alloc(sizeof(int) * 16*num_vertices);
+
+ tess_vertices = vertices;
+
+ gluTessNormal(tess, n[0], n[1], n[2]);
+ gluTessBeginPolygon(tess, 0);
+ gluTessBeginContour(tess);
+ for (i = 0; i < num_vertices; i++) {
+ gluTessVertex(tess, tess_coords+3*i, tess_coords+3*i);
+ }
+ gluTessEndContour(tess);
+ gluTessEndPolygon(tess);
+
+ int n_pos = (tess_vertices - vertices);
+
+ int AP = 0; ErlDrvTermData *rt;
+ rt = (ErlDrvTermData *) driver_alloc(sizeof(ErlDrvTermData) * (13+n_pos*2));
+ rt[AP++]=ERL_DRV_ATOM; rt[AP++]=driver_mk_atom((char *) "_wxe_result_");
+
+ for(i=0; i < n_pos; i++) {
+ rt[AP++] = ERL_DRV_INT; rt[AP++] = (int) vertices[i];
+ };
+ rt[AP++] = ERL_DRV_NIL; rt[AP++] = ERL_DRV_LIST; rt[AP++] = n_pos+1;
+
+ rt[AP++] = ERL_DRV_BINARY; rt[AP++] = (ErlDrvTermData) bin;
+ rt[AP++] = (tess_alloc_vertex-new_vertices)*sizeof(GLdouble); rt[AP++] = 0;
+
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; // Return tuple {list, Bin}
+ rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 2; // Result tuple
+
+ driver_send_term(WXE_DRV_PORT,caller,rt,AP);
+// fprintf(stderr, "List %d %d %d \r\n",
+// n_pos,
+// (tess_alloc_vertex-new_vertices)*sizeof(GLdouble),
+// num_vertices*6*sizeof(GLdouble));
+ driver_free_binary(bin);
+ driver_free(vertices);
+ driver_free(rt);
+ return 0;
+}
+
diff --git a/lib/wx/c_src/wxe_gl.h b/lib/wx/c_src/wxe_gl.h
new file mode 100644
index 0000000000..3a47b3c1bd
--- /dev/null
+++ b/lib/wx/c_src/wxe_gl.h
@@ -0,0 +1,135 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+
+#ifndef _WIN32
+# include <dlfcn.h>
+#endif
+
+#ifndef __WXMAC__
+# include <GL/gl.h>
+# include <GL/glu.h> /* Header File For The OpenGL Library */
+#else
+# include <OpenGL/glu.h> /* Header File For The OpenGL Library */
+#endif
+
+#ifndef CALLBACK
+# define CALLBACK
+#endif
+
+#ifdef _WIN32
+# ifndef _GLUfuncptr
+// Visual studio CPP ++ compiler
+# define _GLUfuncptr void (_stdcall *)()
+# endif
+#endif
+
+#ifdef _GLUfuncptr
+# define GLUfuncptr _GLUfuncptr
+#elif defined(TESS_CB_TIGER_STYLE)
+# define GLUfuncptr GLvoid (*)(...)
+#else
+# define GLUfuncptr GLvoid (*)()
+#endif
+
+#ifdef WIN32
+#include <windows.h>
+#include <gl/gl.h>
+#elif defined(HAVE_GL_GL_H)
+#include <GL/gl.h>
+#elif defined(HAVE_OPENGL_GL_H)
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
+int initOpenGL();
+void gl_error();
+extern int gl_error_op;
+extern ErlDrvTermData gl_active;
+
+/* Some new GL types (eliminates the need for glext.h) */
+
+#ifndef HAVE_GLINTPTR
+#ifndef HAVE_GLINTPTRARB
+# include <stddef.h>
+/* GL types for handling large vertex buffer objects */
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+#endif /* HAVE_GLINTPTRARB */
+typedef GLintptrARB GLintptr;
+typedef GLsizeiptrARB GLsizeiptr;
+#endif /* HAVE_GLINTPTR */
+
+#ifndef HAVE_GLCHAR
+# ifndef HAVE_GLCHARARB
+/* GL types for handling shader object handles and characters */
+typedef char GLcharARB; /* native character */
+typedef unsigned int GLhandleARB; /* shader object handle */
+#endif /* HAVE_GLCHARARB */
+typedef GLcharARB GLchar;
+#endif
+
+#ifndef HAVE_GLHALFARB
+/* GL types for "half" precision (s10e5) float data in host memory */
+typedef unsigned short GLhalfARB;
+#endif
+
+/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
+/* (as used in the GLX_OML_sync_control extension). */
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#include <inttypes.h>
+#elif defined(__sun__)
+#include <inttypes.h>
+#if defined(__STDC__)
+#if defined(__arch64__)
+typedef long int int64_t;
+typedef unsigned long int uint64_t;
+#else
+typedef long long int int64_t;
+typedef unsigned long long int uint64_t;
+#endif /* __arch64__ */
+#endif /* __STDC__ */
+#elif defined( __VMS )
+#include <inttypes.h>
+#elif defined(__SCO__) || defined(__USLC__)
+#include <stdint.h>
+#elif defined(__UNIXOS2__) || defined(__SOL64__)
+typedef long int int32_t;
+typedef long long int int64_t;
+typedef unsigned long long int uint64_t;
+#elif defined(WIN32) && defined(_MSC_VER)
+typedef long int int32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#elif defined(WIN32) && defined(__GNUC__)
+#include <stdint.h>
+#else
+#include <inttypes.h> /* Fallback option */
+#endif
+
+#ifndef HAVE_GLINT64EXT
+typedef int64_t GLint64EXT;
+typedef uint64_t GLuint64EXT;
+#endif
+
+void init_tess();
+void exit_tess();
+int wxe_tess_impl(char* buff, ErlDrvTermData caller);
diff --git a/lib/wx/c_src/wxe_impl.cpp b/lib/wx/c_src/wxe_impl.cpp
new file mode 100644
index 0000000000..d115bb2243
--- /dev/null
+++ b/lib/wx/c_src/wxe_impl.cpp
@@ -0,0 +1,863 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#include <stdio.h>
+#include <signal.h>
+
+
+#include <wx/wx.h>
+
+// Avoid including these in dcbuffer below
+#include "wx/dcmemory.h"
+#include "wx/dcclient.h"
+#include "wx/window.h"
+// Ok ugly but needed for wxBufferedDC crash workaround
+#define private public
+#include <wx/dcbuffer.h>
+#undef private
+
+#include "wxe_impl.h"
+#include "wxe_events.h"
+#include "wxe_return.h"
+
+IMPLEMENT_APP_NO_MAIN(WxeApp)
+
+DECLARE_APP(WxeApp)
+
+DEFINE_EVENT_TYPE(wxeEVT_META_COMMAND)
+
+#define WXE_NOT_INITIATED 0
+#define WXE_INITIATED 1
+#define WXE_EXITED 2
+#define WXE_ERROR -1
+
+#define WXE_NORMAL 0
+#define WXE_CALLBACK 1
+#define WXE_STORED 2
+
+ErlDrvTid wxe_thread;
+
+ErlDrvMutex *wxe_status_m;
+ErlDrvCond *wxe_status_c;
+
+ErlDrvMutex * wxe_batch_locker_m;
+ErlDrvCond * wxe_batch_locker_c;
+
+static int wxe_status = WXE_NOT_INITIATED;
+
+wxList * wxe_batch = NULL;
+wxList * wxe_batch_cb_saved = NULL;
+
+ErlDrvTermData wxe_batch_caller = 0;
+ErlDrvTermData init_caller = 0;
+
+// extern opengl
+extern int gl_initiated;
+void gl_dispatch(int op, char *bp, ErlDrvTermData caller, WXEBinRef *bins[]);
+
+
+// Until fixed in emulator
+#ifndef _WIN32
+extern "C" {
+extern void erts_thread_disable_fpe(void);
+}
+#endif
+
+void *wxe_main_loop(void * );
+
+/* ************************************************************
+ * START AND STOP of driver thread
+ * ************************************************************/
+
+int load_native_gui()
+{
+ return 1;
+}
+
+int start_native_gui(wxe_data *sd)
+{
+ int res;
+ wxe_status_m = erl_drv_mutex_create((char *) "wxe_status_m");
+ wxe_status_c = erl_drv_cond_create((char *)"wxe_status_c");
+
+ wxe_batch_locker_m = erl_drv_mutex_create((char *)"wxe_batch_locker_m");
+ wxe_batch_locker_c = erl_drv_cond_create((char *)"wxe_batch_locker_c");
+ init_caller = driver_connected(sd->port);
+
+ if((res = erl_drv_thread_create((char *)"wxwidgets",
+ &wxe_thread,wxe_main_loop,NULL,NULL)) == 0) {
+ erl_drv_mutex_lock(wxe_status_m);
+ for(;wxe_status == WXE_NOT_INITIATED;) {
+ erl_drv_cond_wait(wxe_status_c, wxe_status_m);
+ }
+ erl_drv_mutex_unlock(wxe_status_m);
+ return wxe_status;
+ } else {
+ wxString msg;
+ msg.Printf(wxT("Erlang failed to create wxe-thread %d\r\n"), res);
+ send_msg("error", &msg);
+ return -1;
+ }
+}
+
+void stop_native_gui(wxe_data *sd)
+{
+ erl_drv_thread_join(wxe_thread, NULL);
+ erl_drv_mutex_destroy(wxe_status_m);
+ erl_drv_cond_destroy(wxe_status_c);
+ erl_drv_mutex_destroy(wxe_batch_locker_m);
+ erl_drv_cond_destroy(wxe_batch_locker_c);
+}
+
+void unload_native_gui()
+{
+
+}
+
+/* ************************************************************
+ * Commands from erlang
+ * Called by emulator thread
+ * ************************************************************/
+
+void push_command(int op,char * buf,int len, wxe_data *sd)
+{
+ // fprintf(stderr, "Op %d %d\r\n", op, (int) driver_caller(sd->port)),fflush(stderr);
+ wxeCommand *Cmd = new wxeCommand(op, buf, len, sd);
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ wxe_batch->Append(Cmd);
+
+ if(wxe_batch_caller > 0) {
+ // wx-thread is waiting on batch end in cond_wait
+ erl_drv_cond_signal(wxe_batch_locker_c);
+ } else {
+ // wx-thread is waiting gui-events
+ if(op == WXE_BATCH_BEGIN) {
+ wxe_batch_caller = 1;
+ }
+ erl_drv_cond_signal(wxe_batch_locker_c);
+ wxWakeUpIdle();
+ }
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+}
+
+void meta_command(int what, wxe_data *sd) {
+ if(what == PING_PORT) {
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ if(wxe_batch_caller > 0) {
+ wxeCommand *Cmd = new wxeCommand(WXE_DEBUG_PING, NULL, 0, sd);
+ wxe_batch->Append(Cmd);
+ erl_drv_cond_signal(wxe_batch_locker_c);
+ } else {
+ wxWakeUpIdle();
+ }
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+ } else {
+ if(sd) {
+ wxeMetaCommand Cmd(sd, what);
+ wxTheApp->AddPendingEvent(Cmd);
+ }
+ }
+}
+
+/* ************************************************************
+ * wxWidgets Thread
+ * ************************************************************/
+
+void *wxe_main_loop(void * not_used)
+{
+ int result;
+ int argc = 1;
+ char * temp = (char *) "Erlang\0";
+ char ** argv = &temp;
+
+ // ErlDrvSysInfo einfo;
+ // driver_system_info(&einfo, sizeof(ErlDrvSysInfo));
+ // Disable floating point execption if they are on.
+ // This should be done in emulator but it's not in yet.
+#ifndef _WIN32
+ erts_thread_disable_fpe();
+#endif
+
+ result = wxEntry(argc, argv);
+ // fprintf(stderr, "WXWidgets quits main loop %d \r\n", result);
+ if(result >= 0 && wxe_status == WXE_INITIATED) {
+ /* We are done try to make a clean exit */
+ wxe_status = WXE_EXITED;
+ erl_drv_thread_exit(NULL);
+ return NULL;
+ } else {
+ erl_drv_mutex_lock(wxe_status_m);
+ wxe_status = WXE_ERROR;
+ erl_drv_cond_signal(wxe_status_c);
+ erl_drv_mutex_unlock(wxe_status_m);
+ return NULL;
+ }
+}
+
+wxFrame * dummy_window;
+
+void create_dummy_window() {
+ dummy_window = new wxFrame(NULL,-1, wxT("wx driver"),
+ wxDefaultPosition, wxSize(5,5),
+ wxFRAME_NO_TASKBAR);
+ dummy_window->Connect(wxID_ANY, wxEVT_CLOSE_WINDOW,
+ (wxObjectEventFunction) (wxEventFunction) &WxeApp::dummy_close);
+}
+
+// wxMac really wants a top level window which command-q quits if there are no
+// windows open, and this will kill the thread, so restart the dummy_window each
+// time a we receive a close.
+void WxeApp::dummy_close(wxEvent& Ev) {
+ // fprintf(stderr, "Tried to close dummy window\r\n"); fflush(stderr);
+ create_dummy_window();
+}
+
+// Init wx-widgets thread
+bool WxeApp::OnInit()
+{
+ wxe_ps_init();
+
+ global_me = new wxeMemEnv();
+ wxe_batch = new wxList;
+ wxe_batch_cb_saved = new wxList;
+
+ wxIdleEvent::SetMode(wxIDLE_PROCESS_SPECIFIED);
+
+ this->Connect(wxID_ANY, wxEVT_IDLE,
+ (wxObjectEventFunction) (wxEventFunction) &WxeApp::idle);
+ this->Connect(CREATE_PORT, wxeEVT_META_COMMAND,
+ (wxObjectEventFunction) (wxEventFunction) &WxeApp::newMemEnv);
+ this->Connect(DELETE_PORT, wxeEVT_META_COMMAND,
+ (wxObjectEventFunction) (wxEventFunction) &WxeApp::destroyMemEnv);
+ this->Connect(WXE_SHUTDOWN, wxeEVT_META_COMMAND,
+ (wxObjectEventFunction) (wxEventFunction) &WxeApp::shutdown);
+
+// fprintf(stderr, "Size void* %d: long %d long long %d int64 %d \r\n",
+// sizeof(void *), sizeof(long), sizeof(long long), sizeof(wxInt64));
+ initEventTable();
+ wxInitAllImageHandlers();
+
+ /* Create a dummy window so wxWidgets don't automagicly quits the main loop
+ after the last window */
+ create_dummy_window();
+
+ init_nonconsts(global_me, init_caller);
+ erl_drv_mutex_lock(wxe_status_m);
+ wxe_status = WXE_INITIATED;
+ gl_initiated = FALSE;
+ erl_drv_cond_signal(wxe_status_c);
+ erl_drv_mutex_unlock(wxe_status_m);
+ return TRUE;
+}
+
+void WxeApp::shutdown(wxeMetaCommand& Ecmd) {
+ delete dummy_window;
+ ExitMainLoop();
+}
+
+void send_msg(const char * type, wxString * msg) {
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, init_caller);
+ rt.addAtom((char *) "wxe_driver");
+ rt.addAtom((char *) type);
+ rt.add(msg);
+ rt.addTupleCount(3);
+ rt.send();
+}
+
+/* ************************************************************
+ * Erlang Command execution *
+ * ************************************************************/
+
+/* Callback from printer and event callbacks */
+void pre_callback()
+{
+ // no-op
+}
+
+void handle_event_callback(ErlDrvPort port, ErlDrvTermData process)
+{
+ WxeApp * app = (WxeApp *) wxTheApp;
+ ErlDrvMonitor monitor;
+ driver_monitor_process(port, process, &monitor);
+ // Should we be able to handle commands when recursing? probably
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ //fprintf(stderr, "\r\nCB Start ");fflush(stderr);
+ app->dispatch_cb(wxe_batch, wxe_batch_cb_saved, process);
+ //fprintf(stderr, ".. done \r\n");fflush(stderr);
+ wxe_batch_caller = 0;
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+ driver_demonitor_process(port, &monitor);
+}
+
+void handle_callback_batch(ErlDrvPort port)
+{
+ WxeApp * app = (WxeApp *) wxTheApp;
+ // Should we be able to handle commands when recursing? probably
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ app->dispatch(wxe_batch, 0, WXE_CALLBACK);
+ wxe_batch_caller = 0;
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+}
+
+// Called by wx thread
+void WxeApp::idle(wxIdleEvent& event) {
+ dispatch_cmds();
+}
+
+void WxeApp::dispatch_cmds() {
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ int level = dispatch(wxe_batch_cb_saved, 0, WXE_STORED);
+ dispatch(wxe_batch, level, WXE_NORMAL);
+ wxe_batch_caller = 0;
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+}
+
+// Should have erl_drv_mutex_lock(wxe_batch_locker_m);
+// when entering this function and it should be released
+// afterwards
+int WxeApp::dispatch(wxList * batch, int blevel, int list_type)
+{
+ int ping = 0;
+ // erl_drv_mutex_lock(wxe_batch_locker_m); must be locked already
+ while(true)
+ {
+ if (batch->size() > 0) {
+ for( wxList::compatibility_iterator node = batch->GetFirst();
+ node;
+ node = batch->GetFirst())
+ {
+ wxeCommand *event = (wxeCommand *)node->GetData();
+ batch->Erase(node);
+ switch(event->op) {
+ case WXE_BATCH_END:
+ {--blevel; }
+ break;
+ case WXE_BATCH_BEGIN:
+ {blevel++; }
+ break;
+ case WXE_DEBUG_PING:
+ // When in debugger we don't want to hang waiting for a BATCH_END
+ // that never comes, because a breakpoint have hit.
+ ping++;
+ if(ping > 2)
+ blevel = 0;
+ break;
+ case WXE_CB_RETURN:
+ // erl_drv_mutex_unlock(wxe_batch_locker_m); should be called after
+ // whatever cleaning is necessary
+ memcpy(cb_buff, event->buffer, event->len);
+ return blevel;
+ default:
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+ if(event->op < OPENGL_START) {
+ // fprintf(stderr, " c %d (%d) \r\n", event->op, blevel);
+ wxe_dispatch(*event);
+ } else {
+ gl_dispatch(event->op,event->buffer,event->caller,event->bin);
+ }
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ break;
+ }
+ delete event;
+ }
+ } else {
+ if((list_type == WXE_STORED) || (blevel <= 0 && list_type == WXE_NORMAL)) {
+ // erl_drv_mutex_unlock(wxe_batch_locker_m); should be called after
+ // whatever cleaning is necessary
+ return blevel;
+ }
+ // sleep until something happens
+ //fprintf(stderr, "%s:%d sleep %d %d %d %d \r\n", __FILE__, __LINE__, batch->size(), callback_returned, blevel, is_callback);fflush(stderr);
+ wxe_batch_caller++;
+ while(batch->size() == 0) {
+ erl_drv_cond_wait(wxe_batch_locker_c, wxe_batch_locker_m);
+ }
+ }
+ }
+}
+
+void WxeApp::dispatch_cb(wxList * batch, wxList * temp, ErlDrvTermData process) {
+ int callback_returned = 0;
+ while(true) {
+ if (batch->size() > 0) {
+ for( wxList::compatibility_iterator node = batch->GetFirst();
+ node;
+ node = batch->GetFirst())
+ {
+ wxeCommand *event = (wxeCommand *)node->GetData();
+ batch->Erase(node);
+ if(event->caller == process || // Callbacks from CB process only
+ event->op == WXE_CB_START || // Recursive event callback allow
+ // Allow connect_cb during CB i.e. msg from wxe_server.
+ event->caller == driver_connected(event->port))
+ {
+ switch(event->op) {
+ case WXE_BATCH_END:
+ case WXE_BATCH_BEGIN:
+ case WXE_DEBUG_PING:
+ break;
+ case WXE_CB_RETURN:
+ memcpy(cb_buff, event->buffer, event->len);
+ callback_returned = 1;
+ return;
+ case WXE_CB_START:
+ // CB start from now accept message from CB process only
+ process = event->caller;
+ break;
+ default:
+ erl_drv_mutex_unlock(wxe_batch_locker_m);
+ if(event->op < OPENGL_START) {
+ // fprintf(stderr, " cb %d \r\n", event->op);
+ wxe_dispatch(*event);
+ } else {
+ gl_dispatch(event->op,event->buffer,event->caller,event->bin);
+ }
+ erl_drv_mutex_lock(wxe_batch_locker_m);
+ break;
+ if(callback_returned)
+ return;
+ }
+ delete event;
+ } else {
+ // fprintf(stderr, " sav %d \r\n", event->op);
+ temp->Append(event);
+ }
+ }
+ } else {
+ if(callback_returned) {
+ return;
+ }
+ // sleep until something happens
+ //fprintf(stderr, "%s:%d sleep %d %d %d %d \r\n", __FILE__, __LINE__, batch->size(), callback_returned, blevel, is_callback);fflush(stderr);
+ while(batch->size() == 0) {
+ erl_drv_cond_wait(wxe_batch_locker_c, wxe_batch_locker_m);
+ }
+ }
+ }
+}
+
+/* Memory handling */
+
+void WxeApp::newMemEnv(wxeMetaCommand& Ecmd) {
+ wxeMemEnv * memenv = new wxeMemEnv();
+ for(int i = 0; i < global_me->next; i++) {
+ memenv->ref2ptr[i] = global_me->ref2ptr[i];
+ }
+ memenv->next = global_me->next;
+ refmap[(ErlDrvTermData) Ecmd.port] = memenv;
+ memenv->owner = Ecmd.caller;
+
+ ErlDrvTermData rt[] = {ERL_DRV_ATOM, driver_mk_atom((char *)"wx_port_initiated")};
+ driver_send_term(WXE_DRV_PORT,Ecmd.caller,rt,2);
+}
+
+void WxeApp::destroyMemEnv(wxeMetaCommand& Ecmd) {
+ // Clear incoming cmd queue first
+ // dispatch_cmds();
+ wxWindow *parent = NULL;
+ wxeMemEnv * memenv = refmap[(ErlDrvTermData) Ecmd.port];
+
+ if(wxe_debug) {
+ wxString msg;
+ msg.Printf(wxT("Destroying all memory "));
+ send_msg("debug", &msg);
+ }
+
+ // pre-pass delete all dialogs first since they might crash erlang otherwise
+ for(int i=1; i < memenv->next; i++) {
+ wxObject * ptr = (wxObject *) memenv->ref2ptr[i];
+ if(ptr) {
+ ptrMap::iterator it = ptr2ref.find(ptr);
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ if(refd->alloc_in_erl) {
+ if(refd->type == 2) {
+ wxDialog *win = (wxDialog *) ptr;
+ if(win->IsModal()) {
+ win->EndModal(-1);
+ }
+ parent = win->GetParent();
+ if(parent) {
+ ptrMap::iterator parentRef = ptr2ref.find(parent);
+ if(parentRef == ptr2ref.end()) {
+ // The parent is already dead delete the parent ref
+ win->SetParent(NULL);
+ }
+ }
+ delete win;
+ }
+ }
+ }
+ }
+ }
+ // First pass, delete all top parents/windows of all linked objects
+ // fprintf(stderr, "close port %x\r\n", Ecmd.port);fflush(stderr);
+
+ for(int i=1; i < memenv->next; i++) {
+ void * ptr = memenv->ref2ptr[i];
+ if(ptr) {
+ ptrMap::iterator it = ptr2ref.find(ptr);
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ if(refd->alloc_in_erl && refd->type == 0) {
+ parent = (wxWindow *) ptr;
+ // fprintf(stderr, "window %x %d\r\n", (int) parent, refd->ref);
+ while(parent->GetParent()) {
+ parent = parent->GetParent();
+ // fprintf(stderr, " parent %x \r\n", (int) parent);
+ }
+ ptrMap::iterator pdata = ptr2ref.find(parent);
+ if(pdata != ptr2ref.end()) {
+ delete parent;
+ } // else parent is already deleted
+ }
+ } else {
+ // fprintf(stderr, "Error found no ref in %d => %x\r\n", i, ptr);
+ }
+ }
+ }
+ // Second pass delete everything else allocated
+ // everything linked from windows should now be deleted
+ for(int i=1; i < memenv->next; i++) {
+ void * ptr = memenv->ref2ptr[i];
+ if(ptr) {
+ ptrMap::iterator it = ptr2ref.find(ptr);
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ if(refd->alloc_in_erl) {
+ int type = refd->type;
+ if((refd->type == 1) && ((wxObject *)ptr)->IsKindOf(CLASSINFO(wxBufferedDC))) {
+ ((wxBufferedDC *)ptr)->m_dc = NULL; // Workaround
+ }
+ wxString msg;
+ if((refd->type == 0)) { // Maybe also class 1
+ wxClassInfo *cinfo = ((wxObject *)ptr)->GetClassInfo();
+ msg.Printf(wxT("Memory leak: {wx_ref, %d, %s}"),
+ refd->ref, cinfo->GetClassName());
+ send_msg("error", &msg);
+ } else {
+ delete_object(ptr, refd);
+ }
+ if(type == 0 || type > 3) {
+ // Delete refs for leaks and non overridden allocs
+ delete refd;
+ ptr2ref.erase(it);
+ } // overridden allocs deletes meta-data in clearPtr
+ } else { // Not alloced in erl just delete references
+ if(refd->ref >= global_me->next) { // if it is not part of global ptrs
+ delete refd;
+ ptr2ref.erase(it);
+ }
+ }
+ }
+ }
+ }
+ // Assert ?
+// for(ptrMap::iterator it = ptr2ref.begin(); it != ptr2ref.end(); it++) {
+// wxeRefData *refd = it->second;
+// if(refd->ref >= global_me->next)
+// fprintf(stderr, "L %d %d\r\n", refd->ref, refd->alloc_in_erl);
+// }
+// fflush(stderr);
+ delete memenv;
+ refmap.erase((ErlDrvTermData) Ecmd.port);
+}
+
+wxeMemEnv * WxeApp::getMemEnv(ErlDrvPort port) {
+ return refmap[(ErlDrvTermData) port];
+}
+
+int WxeApp::newPtr(void * ptr, int type, wxeMemEnv *memenv) {
+ int ref;
+ intList free = memenv->free;
+
+ if(free.IsEmpty()) {
+ ref = memenv->next++;
+ } else {
+ ref = free.Pop();
+ };
+ if(ref >= memenv->max) {
+ memenv->max *= 2;
+ memenv->ref2ptr =
+ (void **) driver_realloc(memenv->ref2ptr,memenv->max * sizeof(void*));
+ }
+ memenv->ref2ptr[ref] = ptr;
+
+ if(wxe_debug) {
+ wxString msg;
+ msg.Printf(wxT("Creating {wx_ref, %d, unknown} at %p "), ref, ptr);
+ send_msg("debug", &msg);
+ }
+
+ ptr2ref[ptr] = new wxeRefData(ref, type, true, memenv);
+ // fprintf(stderr, "ptr %x id %d\r\n", (int) ptr,ref);
+ return ref;
+}
+
+int WxeApp::getRef(void * ptr, wxeMemEnv *memenv) {
+ if(!ptr) return 0; // NULL and zero is the same
+ ptrMap::iterator it = ptr2ref.find(ptr);
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ return refd->ref;
+ } else { // New Ptr
+ int ref;
+ intList free = memenv->free;
+
+ if(free.IsEmpty()) {
+ ref = memenv->next++;
+ } else {
+ ref = free.Pop();
+ };
+ if(ref >= memenv->max) {
+ memenv->max *= 2;
+ memenv->ref2ptr =
+ (void **) driver_realloc(memenv->ref2ptr,memenv->max * sizeof(void*));
+ }
+
+ memenv->ref2ptr[ref] = ptr;
+ ptr2ref[ptr] = new wxeRefData(ref, 0, false, memenv);
+ return ref;
+ }
+}
+
+void WxeApp::clearPtr(void * ptr) {
+ ptrMap::iterator it;
+ it = ptr2ref.find(ptr);
+
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ intList free = refd->memenv->free;
+ int ref = refd->ref;
+ refd->memenv->ref2ptr[ref] = NULL;
+ free.Append(ref);
+
+ if(wxe_debug) {
+ wxString msg;
+ msg.Printf(wxT("Deleting {wx_ref, %d, unknown} at %p "), ref, ptr);
+ send_msg("debug", &msg);
+ }
+
+ if(refd->pid != -1) {
+ // Send terminate pid to owner
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT,refd->memenv->owner, false);
+ rt.addAtom("_wxe_destroy_");
+ rt.add(ERL_DRV_PID, refd->pid);
+ rt.addTupleCount(2);
+ rt.send();
+ refd->pid = -1;
+ };
+ if(refd->type == 1 && ((wxObject*)ptr)->IsKindOf(CLASSINFO(wxSizer))) {
+ wxSizerItemList list = ((wxSizer*)ptr)->GetChildren();
+ for(wxSizerItemList::compatibility_iterator node = list.GetFirst();
+ node; node = node->GetNext()) {
+ wxSizerItem *item = node->GetData();
+ wxObject *content=NULL;
+ if((content = item->GetWindow()))
+ if(ptr2ref.end() == ptr2ref.find(content)) {
+ wxString msg;
+ wxClassInfo *cinfo = ((wxObject *)ptr)->GetClassInfo();
+ msg.Printf(wxT("Double usage detected of window at %p in sizer {wx_ref, %d, %s}"),
+ content, ref, cinfo->GetClassName());
+ send_msg("error", &msg);
+ ((wxSizer*)ptr)->Detach((wxWindow*)content);
+ }
+ if((content = item->GetSizer()))
+ if(ptr2ref.end() == ptr2ref.find(content)) {
+ wxString msg;
+ wxClassInfo *cinfo = ((wxObject *)ptr)->GetClassInfo();
+ msg.Printf(wxT("Double usage detected of sizer at %p in sizer {wx_ref, %d, %s}"),
+ content, ref, cinfo->GetClassName());
+ send_msg("error", &msg);
+ ((wxSizer*)ptr)->Detach((wxSizer*)content);
+ }
+ }
+ }
+
+ delete refd;
+ ptr2ref.erase(it);
+ }
+}
+
+void * WxeApp::getPtr(char * bp, wxeMemEnv *memenv) {
+ int index = *(int *) bp;
+ if(!memenv)
+ throw wxe_badarg(index);
+ void * temp = memenv->ref2ptr[index];
+ if((index < memenv->next) && ((index == 0) || (temp > NULL)))
+ return temp;
+ else
+ throw wxe_badarg(index);
+}
+
+void WxeApp::registerPid(char * bp, ErlDrvTermData pid, wxeMemEnv * memenv) {
+ int index = *(int *) bp;
+ if(!memenv)
+ throw wxe_badarg(index);
+ void * temp = memenv->ref2ptr[index];
+ if((index < memenv->next) && ((index == 0) || (temp > NULL))) {
+ ptrMap::iterator it;
+ it = ptr2ref.find(temp);
+ if(it != ptr2ref.end()) {
+ wxeRefData *refd = it->second;
+ refd->pid = pid;
+ return ;
+ }
+ };
+ throw wxe_badarg(index);
+}
+
+
+/* ************************************************************
+ * Misc utility classes
+ * ************************************************************/
+
+/* ****************************************************************************
+ * Memory handling
+ * ****************************************************************************/
+
+wxeMemEnv::wxeMemEnv() {
+ ref2ptr = (void **) driver_alloc(128*sizeof(void *));
+ ref2ptr[0] = NULL;
+ next = 1;
+ max = 128;
+}
+
+wxeMemEnv::~wxeMemEnv() {
+ driver_free(ref2ptr);
+}
+
+/* ****************************************************************************
+ * Erlang Commands (don't need to be derived of wxEvent anymore should
+ * be re-written to own class struct)
+ * ****************************************************************************/
+
+wxeCommand::wxeCommand(int fc,char * cbuf,int buflen, wxe_data *sd)
+ : wxObject()
+{
+ WXEBinRef *temp, *start, *prev;
+ int n = 0;
+ caller = driver_caller(sd->port);
+ port = sd->port;
+ op = fc;
+ len = buflen;
+ bin[0] = NULL;
+ bin[1] = NULL;
+ bin[2] = NULL;
+
+ if(cbuf) {
+ buffer = (char *) driver_alloc(len);
+ memcpy((void *) buffer, (void *) cbuf, len);;
+
+ temp = sd->bin;
+
+ prev = NULL;
+ start = temp;
+
+ while(temp) {
+ if(caller == temp->from) {
+ bin[n++] = temp;
+ if(prev) {
+ prev->next = temp->next;
+ } else {
+ start = temp->next;
+ }
+ temp = temp->next;
+ } else {
+ prev = temp;
+ temp = temp->next;
+ }
+ }
+ sd->bin = start;
+ } else { // No-op only PING currently
+ buffer = NULL;
+ }
+}
+
+wxeCommand::~wxeCommand() {
+ int n = 0;
+ if(buffer) {
+ while(bin[n]) {
+ if(bin[n]->bin)
+ driver_free_binary(bin[n]->bin);
+ driver_free(bin[n++]);
+ }
+ driver_free(buffer);
+ }
+}
+
+/* ****************************************************************************
+ * TreeItemData
+ * ****************************************************************************/
+
+wxETreeItemData::wxETreeItemData(int sz, char * data) {
+ size = sz;
+ bin = (char *) driver_alloc(sz);
+ memcpy(bin, data, sz);
+}
+
+wxETreeItemData::~wxETreeItemData()
+{
+ driver_free(bin);
+}
+
+/* ****************************************************************************
+ * CallbackData *
+ * ****************************************************************************/
+
+wxeCallbackData::wxeCallbackData(ErlDrvTermData caller,void * req, char *req_type,
+ int funcb, int skip_ev, wxeErlTerm * userData)
+ : wxObject()
+{
+ listener = caller;
+ obj = req;
+ fun_id = funcb;
+ strcpy(class_name, req_type);
+ skip = skip_ev;
+ user_data = userData;
+}
+
+wxeCallbackData::~wxeCallbackData() {
+ // fprintf(stderr, "CBD Deleteing %x %s\r\n", (unsigned int) this, class_name); fflush(stderr);
+ if(user_data) {
+ delete user_data;
+ }
+}
+
+/* ****************************************************************************
+ * wxListCtrlCompare wrapper
+ * ****************************************************************************/
+
+int wxCALLBACK wxEListCtrlCompare(long item1, long item2, long callbackInfoPtr)
+{
+ callbackInfo * cb = (callbackInfo *)callbackInfoPtr;
+ wxeMemEnv * memenv = ((WxeApp *) wxTheApp)->getMemEnv(cb->port);
+ char * bp = ((WxeApp *) wxTheApp)->cb_buff;
+
+ wxeReturn rt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
+ rt.addInt(cb->callbackID);
+ rt.addInt(item1);
+ rt.addInt(item2);
+ rt.endList(2);
+ rt.addAtom("_wx_invoke_cb_");
+ rt.addTupleCount(3);
+ rt.send();
+ handle_callback_batch(cb->port);
+ return *(int*) bp;
+}
diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h
new file mode 100644
index 0000000000..5e9d596633
--- /dev/null
+++ b/lib/wx/c_src/wxe_impl.h
@@ -0,0 +1,256 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#ifndef _WXE_IMPL_H
+#define _WXE_IMPL_H
+
+#include <wx/glcanvas.h>
+#include <wx/treectrl.h>
+#include <wx/print.h>
+extern "C" {
+#include "wxe_driver.h"
+}
+
+DECLARE_EVENT_TYPE(wxeEVT_META_COMMAND, -1)
+
+class wxeMetaCommand : public wxEvent
+{
+ public:
+ wxeMetaCommand(wxe_data *sd, int EvId)
+ : wxEvent(EvId, wxeEVT_META_COMMAND)
+ { caller = driver_caller(sd->port); port = sd->port; } ;
+ wxeMetaCommand(const wxeMetaCommand& event)
+ : wxEvent(event)
+ { caller = event.caller; port = event.port; };
+ virtual ~wxeMetaCommand() {};
+ virtual wxEvent *Clone() const { return new wxeMetaCommand(*this); }
+
+ ErlDrvTermData caller;
+ ErlDrvPort port;
+};
+
+class wxeCommand : public wxObject
+{
+ public:
+ wxeCommand(int fc,char * cbuf,int buflen, wxe_data *);
+ virtual ~wxeCommand();
+
+ ErlDrvTermData caller;
+ ErlDrvPort port;
+ WXEBinRef * bin[3];
+ char * buffer;
+ int len;
+ int op;
+};
+
+#define WXE_EVENT_PTR 0
+#define WXE_OBJECT_PTR 1
+
+class intListElement {
+public:
+ intListElement(int Element) {car = Element; cdr = NULL;};
+ intListElement(int Element, intListElement *list)
+ {car = Element; cdr = list;};
+ int car;
+ intListElement *cdr;
+};
+
+class intList {
+public:
+ intList() {list = NULL;};
+ bool IsEmpty() {return list == NULL;};
+ void Append(int Element) { list = new intListElement(Element, list); };
+ int Pop() {
+ intListElement *temp = list;
+ int res = list->car;
+ list = temp->cdr;
+ delete temp;
+ return res;
+ }
+ intListElement *list;
+};
+
+class wxe_badarg
+{
+public:
+ wxe_badarg(int Ref) : ref(Ref) { } ;
+ int ref;
+};
+
+class wxeErlTerm : public wxClientData
+{
+ public:
+ wxeErlTerm(WXEBinRef * data)
+ {
+ size = data->size;
+ bin = (char *) driver_alloc(size);
+ memcpy(bin, data->base, size);
+ } ;
+ ~wxeErlTerm() { driver_free(bin); };
+ char * bin;
+ int size;
+};
+
+class wxeMemEnv
+{
+public:
+ wxeMemEnv();
+ int next;
+ int max;
+ void ** ref2ptr;
+ intList free;
+ ~wxeMemEnv();
+ ErlDrvTermData owner;
+};
+
+class wxeRefData {
+ public:
+ wxeRefData(unsigned int dref, int ttype, int is_new, wxeMemEnv *menv) :
+ ref(dref), type(ttype), alloc_in_erl(is_new), memenv(menv), pid(-1) { } ;
+ int ref;
+ int type;
+ // 0 = wxWindow subclasses, 1 = wxObject subclasses
+ // 2 = wxDialog subclasses, 3 = allocated wxObjects but not returned from new
+ // > 3 classes which lack virtual destr, or are supposed to be allocated on
+ // the stack
+ bool alloc_in_erl;
+ wxeMemEnv *memenv;
+ ErlDrvTermData pid;
+};
+
+WX_DECLARE_HASH_MAP(ErlDrvTermData, wxGLCanvas*, wxIntegerHash, wxIntegerEqual, wxeGLC);
+WX_DECLARE_HASH_MAP(ErlDrvTermData, wxeMemEnv*, wxIntegerHash, wxIntegerEqual, wxeMemMap);
+
+
+WX_DECLARE_VOIDPTR_HASH_MAP(wxeRefData *, ptrMap);
+
+class WxeApp : public wxApp
+{
+public:
+ virtual bool OnInit();
+ void shutdown(wxeMetaCommand& event);
+
+ int dispatch(wxList *, int, int);
+ void dispatch_cb(wxList * batch, wxList * temp, ErlDrvTermData process);
+
+ void wxe_dispatch(wxeCommand& event);
+
+ void idle(wxIdleEvent& event);
+ void dispatch_cmds();
+
+ void dummy_close(wxEvent& Ev);
+ bool sendevent(wxEvent *event);
+
+ // MemEnv handling
+ void newMemEnv(wxeMetaCommand& event);
+ void destroyMemEnv(wxeMetaCommand& event);
+ wxeMemEnv * getMemEnv(ErlDrvPort port);
+
+ int newPtr(void * ptr, int type, wxeMemEnv *memenv);
+ int getRef(void * ptr, wxeMemEnv *memenv);
+ void * getPtr(char * bp, wxeMemEnv *memenv);
+ void clearPtr(void *ptr);
+ void registerPid(char *ptr, ErlDrvTermData pid, wxeMemEnv *memenv);
+ void init_nonconsts(wxeMemEnv *memenv, ErlDrvTermData caller);
+
+ // Code found in gen/wxe_derived_dest.h
+ void delete_object(void *ptr, wxeRefData *refd);
+
+ wxeMemMap refmap;
+ ptrMap ptr2ref;
+ wxeMemEnv * global_me;
+
+ // Temp container for callbacks
+ char cb_buff[256];
+};
+
+class wxETreeItemData : public wxTreeItemData
+{
+ public:
+ wxETreeItemData(int sz, char * data);
+
+ ~wxETreeItemData();
+
+ int size;
+ char * bin;
+};
+
+bool sendevent(wxEvent * event, ErlDrvPort port);
+void pre_callback();
+void handle_callback_batch(ErlDrvPort port); // For wxePrintout
+void handle_event_callback(ErlDrvPort port, ErlDrvTermData process);
+
+void activateGL(ErlDrvTermData caller);
+void setActiveGL(ErlDrvTermData caller, wxGLCanvas *canvas);
+void deleteActiveGL(wxGLCanvas *canvas);
+
+void send_msg(const char *, wxString *); // For debugging and error msgs
+
+extern wxeGLC glc;
+
+class wxEPrintout : public wxPrintout
+{
+ public:
+ wxEPrintout(wxString Title, int onPrintP, int onPrepareP,
+ int onBeginP, int onEndP,
+ int onBeginD, int onEndD,
+ int hasP, int getPageI, ErlDrvPort Port) :
+ wxPrintout(Title),
+ onPrintPage(onPrintP), onPreparePrinting(onPrepareP),
+ onBeginPrinting(onBeginP), onEndPrinting(onEndP),
+ onBeginDocument(onBeginD), onEndDocument(onEndD), hasPage(hasP), getPageInfo(getPageI),
+ port(Port)
+ { } ;
+
+ ~wxEPrintout();
+
+ bool OnBeginDocument(int startPage, int endPage);
+ void OnEndDocument();
+ void OnBeginPrinting();
+ void OnEndPrinting();
+
+ void OnPreparePrinting();
+
+ bool HasPage(int page);
+ bool OnPrintPage(int page);
+ void GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo);
+
+ void clear_cb(int callback);
+
+ int onPrintPage;
+ int onPreparePrinting;
+ int onBeginPrinting;
+ int onEndPrinting;
+ int onBeginDocument;
+ int onEndDocument;
+ int hasPage;
+ int getPageInfo;
+
+ ErlDrvPort port;
+};
+
+// Implementation of wxListCtrlCompare
+struct callbackInfo {
+ ErlDrvPort port;
+ int callbackID;
+};
+
+int wxCALLBACK wxEListCtrlCompare(long item1, long item2, long callbackInfoPtr);
+
+#endif //_WXE_IMPL_H
diff --git a/lib/wx/c_src/wxe_ps_init.c b/lib/wx/c_src/wxe_ps_init.c
new file mode 100644
index 0000000000..e787c214bd
--- /dev/null
+++ b/lib/wx/c_src/wxe_ps_init.c
@@ -0,0 +1,58 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#include <stdio.h>
+#include "wxe_driver.h"
+/* Platform specific initialisation stuff */
+#ifdef _MACOSX
+
+#include <Cocoa/Cocoa.h>
+#include <objc/objc-runtime.h>
+
+void * wxe_ps_init()
+{
+ ProcessSerialNumber psn;
+ NSAutoreleasePool *pool;
+ // Enable GUI
+ GetCurrentProcess(&psn);
+ TransformProcessType(&psn, kProcessTransformToForegroundApplication);
+ SetFrontProcess(&psn);
+ // Enable Cocoa calls from Carbon app
+ NSApplicationLoad();
+
+ // Setup and enable gui
+ pool = [[NSAutoreleasePool alloc] init];
+
+ NSApplication *app = [NSApplication sharedApplication];
+ // Load and set icon
+
+ NSMutableString *file = [[NSMutableString alloc] init];
+ [file appendFormat:@"%s/%s", erl_wx_privdir, "erlang-logo64.png"];
+ NSImage *icon = [[NSImage alloc] initWithContentsOfFile: file];
+ [app setApplicationIconImage: icon];
+
+ return (void *) pool;
+}
+/* _MACOSX */
+#else
+void * wxe_ps_init()
+{
+ return (void *) 0;
+}
+#endif
diff --git a/lib/wx/c_src/wxe_return.cpp b/lib/wx/c_src/wxe_return.cpp
new file mode 100644
index 0000000000..8a00d6f4c6
--- /dev/null
+++ b/lib/wx/c_src/wxe_return.cpp
@@ -0,0 +1,348 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#include "wxe_return.h"
+
+// see http://docs.wxwidgets.org/stable/wx_wxarray.html#arraymacros
+// this is a magic incantation which must be done!
+#include <wx/arrimpl.cpp>
+WX_DEFINE_OBJARRAY(wxErlDrvTermDataArray);
+
+#define INLINE
+
+wxeReturn::wxeReturn (ErlDrvPort _port,
+ ErlDrvTermData _caller,
+ bool _isResult) {
+ port = _port;
+ caller = _caller;
+
+ isResult = _isResult;
+
+ if (isResult) {
+ addAtom("_wxe_result_");
+ }
+}
+
+wxeReturn::~wxeReturn () {
+ //depending on which version of wxArray we use, we may have to clear it ourselves.
+}
+
+int wxeReturn::send() {
+ if ((rt.GetCount() == 2 && isResult) || rt.GetCount() == 0)
+ return 1; // not a call bail out
+
+ if (isResult) {
+ addTupleCount(2);
+ }
+
+ // rt to array
+ unsigned int rtLength = rt.GetCount(); //signed int
+
+ size_t size = sizeof(ErlDrvTermData)*(rtLength);
+
+ ErlDrvTermData* rtData = (ErlDrvTermData *) driver_alloc(size);
+ for (unsigned int i=0; i < rtLength; i++) {
+ rtData[i] = rt[i];
+ }
+
+ int res = driver_send_term(port, caller, rtData, rtLength);
+ driver_free(rtData);
+
+ if(res == -1) {
+ wxString msg;
+ msg.Printf(wxT("Failed to send return or event msg"));
+ send_msg("internal_error", &msg);
+ }
+ reset();
+ return res;
+}
+
+//clear everything so we can re-use if we want
+ void wxeReturn::reset() {
+ rt.empty();
+ temp_float.empty();
+}
+
+INLINE
+unsigned int wxeReturn::size() {
+ return rt.GetCount();
+ }
+
+INLINE
+void wxeReturn::add(ErlDrvTermData type, ErlDrvTermData data) {
+ rt.Add(type);
+ rt.Add(data);
+}
+
+
+// INLINE
+// void wxeReturn::addRef(const void *ptr, const char* className) {
+// unsigned int ref_idx = wxe_app->getRef((void *)ptr, memEnv);
+// addRef(ref_idx, className);
+// }
+
+INLINE
+void wxeReturn::addRef(const unsigned int ref, const char* className) {
+ addAtom("wx_ref");
+ addUint(ref);
+ addAtom(className);
+ rt.Add(ERL_DRV_NIL);
+ addTupleCount(4);
+}
+
+
+INLINE
+void wxeReturn::addAtom(const char* atomName) {
+ add(ERL_DRV_ATOM, driver_mk_atom((char *)atomName));
+}
+
+INLINE
+void wxeReturn::addBinary(const char* buf, const size_t size) {
+ rt.Add(ERL_DRV_BUF2BINARY);
+ rt.Add((ErlDrvTermData)buf);
+ rt.Add((ErlDrvTermData)size);
+}
+
+INLINE
+void wxeReturn::addExt2Term(wxeErlTerm *term) {
+ if(term) {
+ rt.Add(ERL_DRV_EXT2TERM);
+ rt.Add((ErlDrvTermData)term->bin);
+ rt.Add((ErlDrvTermData)term->size);
+ } else {
+ rt.Add(ERL_DRV_NIL);
+ }
+}
+
+INLINE
+void wxeReturn::addExt2Term(wxETreeItemData *val) {
+ if(val) {
+ rt.Add(ERL_DRV_EXT2TERM);
+ rt.Add((ErlDrvTermData)(val->bin));
+ rt.Add((ErlDrvTermData)(val->size));
+ } else
+ rt.Add(ERL_DRV_NIL);
+}
+
+INLINE
+void wxeReturn::addUint(unsigned int n) {
+ add(ERL_DRV_UINT, (ErlDrvTermData)n);
+}
+
+INLINE
+void wxeReturn::addInt(int n) {
+ add(ERL_DRV_INT, (ErlDrvTermData)n);
+}
+
+INLINE
+void wxeReturn::addFloat(double f) {
+ // Erlang expects a pointer to double...
+ // Hmm is temp_float moved if reallocated
+ // the pointer may be wrong.
+ // Harryhuk - use a list instead?
+ temp_float.Add(f);
+ add(ERL_DRV_FLOAT, (ErlDrvTermData)&temp_float.Last());
+}
+
+INLINE
+void wxeReturn::addTupleCount(unsigned int n) {
+ add(ERL_DRV_TUPLE, (ErlDrvTermData)n);
+}
+
+INLINE
+void wxeReturn::endList(unsigned int n) {
+ rt.Add(ERL_DRV_NIL);
+ add(ERL_DRV_LIST, (ErlDrvTermData)(n+1));
+}
+
+INLINE
+void wxeReturn::addBool(int val) {
+ if (val) {
+ addAtom("true");
+ } else {
+ addAtom("false");
+ }
+}
+
+INLINE
+void wxeReturn::add(const wxString s) {
+ int strLen = s.Len();
+ wxCharBuffer resultCB = s.mb_str(utfConverter);
+ int * resultPtr = (int *) resultCB.data();
+
+ for (int i = 0; i < strLen; i++, resultPtr++) {
+ addInt(*resultPtr);
+ }
+ endList(strLen);
+}
+
+INLINE
+void wxeReturn::add(const wxString* s) {
+ add(*s);
+}
+
+INLINE
+void wxeReturn::add(wxArrayString val) {
+ unsigned int len = val.GetCount();
+
+ for (unsigned int i = 0; i< len; i++) {
+ add(val[i]);
+ }
+ endList(len);
+}
+
+INLINE
+void wxeReturn::add(wxArrayInt val) {
+ unsigned int len = val.GetCount();
+
+ for (unsigned int i = 0; i< len; i++) {
+ addInt(val[i]);
+ }
+ endList(len);
+}
+
+INLINE
+void wxeReturn::add(wxUIntPtr *val) {
+ addInt((ErlDrvTermData)val); // TODO is this right?
+}
+
+INLINE
+void wxeReturn::add(wxPoint pt) {
+ addInt(pt.x);
+ addInt(pt.y);
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxPoint2DDouble pt) {
+ addFloat(pt.m_x);
+ addFloat(pt.m_y);
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxSize size) {
+ addInt(size.GetWidth());
+ addInt(size.GetHeight());
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxRect rect) {
+ addInt(rect.x);
+ addInt(rect.y);
+ addInt(rect.width);
+ addInt(rect.height);
+ addTupleCount(4);
+}
+
+INLINE
+void wxeReturn::add(wxColour colour) {
+ addInt(colour.Red());
+ addInt(colour.Green());
+ addInt(colour.Blue());
+ addInt(colour.Alpha());
+ addTupleCount(4);
+}
+
+INLINE
+void wxeReturn::add(wxDateTime dateTime) {
+ addDate(dateTime);
+ addTime(dateTime);
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::addDate(wxDateTime dateTime) {
+ addInt(dateTime.GetYear());
+ addInt(dateTime.GetMonth()+1); // c++ month is zero based
+ addInt(dateTime.GetDay());
+ addTupleCount(3);
+}
+
+INLINE void wxeReturn::addTime(wxDateTime dateTime) {
+ addInt(dateTime.GetHour());
+ addInt(dateTime.GetMinute());
+ addInt(dateTime.GetSecond());
+ addTupleCount(3);
+}
+
+INLINE
+void wxeReturn::add(wxRect2DDouble rect2D) {
+ addFloat(rect2D.m_x);
+ addFloat(rect2D.m_y);
+ addFloat(rect2D.m_width);
+ addFloat(rect2D.m_height);
+ addTupleCount(4);
+}
+
+INLINE
+void wxeReturn::add(wxGridCellCoords val) {
+ addInt(val.GetRow());
+ addInt(val.GetCol());
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxGBPosition val) {
+ addInt(val.GetRow());
+ addInt(val.GetCol());
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxGBSpan val) {
+ addInt(val.GetRowspan());
+ addInt(val.GetColspan());
+ addTupleCount(2);
+}
+
+INLINE
+void wxeReturn::add(wxMouseState val) {
+ addAtom("wxMouseState");
+ // TODO not int?
+ addUint(val.GetX());
+ addUint(val.GetY());
+ addBool(val.LeftDown());
+ addBool(val.MiddleDown());
+ addBool(val.RightDown());
+ addBool(val.ControlDown());
+ addBool(val.ShiftDown());
+ addBool(val.AltDown());
+ addBool(val.MetaDown());
+ addBool(val.CmdDown());
+ addTupleCount(11);
+}
+
+INLINE
+void wxeReturn::add(const wxHtmlLinkInfo *val) {
+ addAtom("wxHtmlLinkInfo");
+ add(val->GetHref());
+ add(val->GetTarget());
+ addTupleCount(3);
+}
+
+INLINE
+void wxeReturn::add(const wxHtmlLinkInfo &val) {
+ addAtom("wxHtmlLinkInfo");
+ add(val.GetHref());
+ add(val.GetTarget());
+ addTupleCount(3);
+}
+
diff --git a/lib/wx/c_src/wxe_return.h b/lib/wx/c_src/wxe_return.h
new file mode 100644
index 0000000000..0daf12eab2
--- /dev/null
+++ b/lib/wx/c_src/wxe_return.h
@@ -0,0 +1,140 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2008-2009. All Rights Reserved.
+ *
+ * The contents of this file are subject to the Erlang Public License,
+ * Version 1.1, (the "License"); you may not use this file except in
+ * compliance with the License. You should have received a copy of the
+ * Erlang Public License along with this software. If not, it can be
+ * retrieved online at http://www.erlang.org/.
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+/*
+ * File: wxe_return.h
+ * Author: matthew
+ *
+ * Created on 11 October 2008, 20:33
+ */
+
+#ifndef _WXE_RETURN_H
+#define _WXE_RETURN_H
+//#define wxUSEGUI
+#include "wxe_impl.h"
+extern "C" {
+#include "wxe_driver.h"
+}
+#include <wx/wx.h>
+#include <wx/geometry.h>
+#include <wx/colour.h>
+#include <wx/grid.h>
+#include <wx/gbsizer.h>
+#include <wx/dynarray.h>
+#include <wx/html/htmlcell.h>
+
+
+// #define send() send_term(__FILE__, __LINE__)
+
+// see http://docs.wxwidgets.org/stable/wx_wxarray.html
+WX_DECLARE_OBJARRAY(ErlDrvTermData, wxErlDrvTermDataArray);
+
+class wxeReturn {
+
+public:
+ wxeReturn (ErlDrvPort _port,
+ ErlDrvTermData _caller,
+ bool _isResult=false);
+
+ ~wxeReturn();
+
+
+ void add(ErlDrvTermData type, ErlDrvTermData data);
+
+ // void addRef(const void *ptr, const char* className);
+ void addRef(const unsigned int ref, const char* className);
+ void addAtom(const char* atomName);
+
+ void addBinary(const char* atomName, size_t size);
+ void addExt2Term(wxeErlTerm * term);
+ void addExt2Term(wxETreeItemData * term);
+
+ void addNil() { rt.Add(ERL_DRV_NIL); };
+
+ void addUint(unsigned int n);
+
+ void addInt(int n);
+
+ void addFloat(double f);
+
+ void addTupleCount(unsigned int n);
+
+ /** @param n length of the list (not including the NIL terminator */
+ void endList(unsigned int n);
+
+ void addBool(int val);
+
+ void add(const wxString s);
+ void add(const wxString* s);
+ void add(wxArrayString val);
+
+ void add(wxPoint pt);
+
+ void add( wxPoint2DDouble point2D);
+
+ void add(wxSize size);
+
+ void add(wxRect rect);
+
+ void add(wxRect2DDouble rect2D);
+
+ void add(wxDateTime dateTime);
+
+ void add(wxColour colour);
+
+ void add(wxGridCellCoords val);
+
+ void add(wxGBPosition val);
+
+ void add(wxGBSpan val);
+
+ void add(wxMouseState val);
+
+ void add(wxArrayInt val);
+
+ void add(wxUIntPtr *val);
+
+ void add(const wxHtmlLinkInfo *val);
+
+ void add(const wxHtmlLinkInfo &val);
+
+ int send();
+
+ void reset();
+
+ unsigned int size();
+
+private:
+
+ inline void addDate(wxDateTime dateTime);
+
+ inline void addTime(wxDateTime dateTime);
+
+// WxeApp* wxe_app;
+ ErlDrvTermData caller;
+ ErlDrvPort port;
+// wxeMemEnv *memEnv;
+ wxErlDrvTermDataArray rt;
+ wxArrayDouble temp_float;
+ wxMBConvUTF32 utfConverter;
+ bool isResult;
+};
+
+#endif /* _WXE_RETURN_H */
+
diff --git a/lib/wx/c_src/wxe_win32.rc b/lib/wx/c_src/wxe_win32.rc
new file mode 100644
index 0000000000..d9bfbd8559
--- /dev/null
+++ b/lib/wx/c_src/wxe_win32.rc
@@ -0,0 +1,4 @@
+
+aaaa ICON "wx/msw/std.ico"
+#define ISOLATION_AWARE_ENABLED 1
+#include "wx/msw/wx.rc"
diff --git a/lib/wx/config.mk.in b/lib/wx/config.mk.in
new file mode 100644
index 0000000000..31def7af57
--- /dev/null
+++ b/lib/wx/config.mk.in
@@ -0,0 +1,35 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+INSIDE_ERLSRC = @WX_BUILDING_INSIDE_ERLSRC@
+SYS_TYPE = @WXERL_SYS_TYPE@
+CAN_BUILD_DRIVER = @WXERL_CAN_BUILD_DRIVER@
+
+VSN = $(WX_VSN)
+
+ifeq ($(INSIDE_ERLSRC), true)
+
+include $(ERL_TOP)/make/target.mk
+include $(ERL_TOP)/make/$(TARGET)/otp.mk
+
+RELSYSDIR = $(RELEASE_PATH)/lib/wx-$(VSN)
+
+else
+INSTALLDIR=@ERLANG_ROOT_DIR@/lib
+endif
+
diff --git a/lib/wx/configure.in b/lib/wx/configure.in
new file mode 100755
index 0000000000..7dc8d6e831
--- /dev/null
+++ b/lib/wx/configure.in
@@ -0,0 +1,592 @@
+
+AC_INIT()
+
+AC_CONFIG_AUX_DIRS($srcdir/autoconf)
+
+AC_PREREQ(2.59)
+
+## Delete previous failed configure results
+if test -f ./CONF_INFO; then
+ rm ./CONF_INFO
+fi
+
+if test -z "$ERL_TOP" || test ! -d $ERL_TOP ; then
+ AC_CONFIG_AUX_DIRS(autoconf)
+ WX_BUILDING_INSIDE_ERLSRC=false
+else
+ erl_top=${ERL_TOP}
+ if test -d $erl_top/erts/autoconf; then
+ AC_CONFIG_AUX_DIRS($erl_top/erts/autoconf)
+ WX_BUILDING_INSIDE_ERLSRC=true
+ else
+ AC_CONFIG_AUX_DIRS(autoconf)
+ WX_BUILDING_INSIDE_ERLSRC=false
+ fi
+fi
+
+if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then
+ AC_CANONICAL_HOST
+else
+ host_os=win32
+fi
+
+case $host_os in
+ mingw32)
+ if test "X$host" = "X"; then
+ host=win32
+ fi
+ ;;
+ *)
+ ;;
+esac
+
+TARGET=$host
+AC_SUBST(TARGET)
+
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_RANLIB
+AC_PROG_CPP
+
+AC_MSG_NOTICE(Building for [$host_os])
+MIXED_CYGWIN=no
+WXERL_CAN_BUILD_DRIVER=true
+
+AC_MSG_CHECKING(for mixed cygwin and native VC++ environment)
+if test "X$CC" = "Xcc.sh" -a "X$host" = "Xwin32" -a "x$GCC" != x"yes"; then
+ if test -x /usr/bin/cygpath; then
+ CFLAGS="-Owx"
+ MIXED_CYGWIN=yes
+ AC_MSG_RESULT([yes])
+ MIXED_CYGWIN_VC=yes
+ CPPFLAGS="$CPPFLAGS -DERTS_MIXED_CYGWIN_VC"
+ else
+ AC_MSG_RESULT([undeterminable])
+ AC_MSG_ERROR(Seems to be mixed windows but not with cygwin, cannot handle this!)
+ fi
+else
+ AC_MSG_RESULT([no])
+ MIXED_CYGWIN_VC=no
+fi
+AC_SUBST(MIXED_CYGWIN_VC)
+
+AC_MSG_CHECKING(for mixed cygwin and native MinGW environment)
+if test "X$CC" = "Xcc.sh" -a "X$host" = "Xwin32" -a "x$GCC" = x"yes"; then
+ if test -x /usr/bin/cygpath; then
+ CFLAGS="-O2"
+ MIXED_CYGWIN=yes
+ AC_MSG_RESULT([yes])
+ MIXED_CYGWIN_MINGW=yes
+ CPPFLAGS="$CPPFLAGS -DERTS_MIXED_CYGWIN_MINGW"
+ else
+ AC_MSG_RESULT([undeterminable])
+ AC_MSG_ERROR(Seems to be mixed windows but not with cygwin, cannot handle this!)
+ fi
+else
+ AC_MSG_RESULT([no])
+ MIXED_CYGWIN_MINGW=no
+fi
+AC_SUBST(MIXED_CYGWIN_MINGW)
+
+AC_MSG_CHECKING(if we mix cygwin with any native compiler)
+if test "X$MIXED_CYGWIN" = "Xyes" ; then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(MIXED_CYGWIN)
+
+
+## Check that we are in 32 bits mode on darwin
+## (wxWidgets require that it currently uses 32-bits Carbon)
+## Otherwise skip building wxErlang
+AC_CHECK_SIZEOF(void *, 4)
+
+case $ac_cv_sizeof_void_p-$host_os in
+ 8-darwin*)
+ if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ AC_MSG_ERROR([Can not use 64bits wxWidgets on Darwin])
+ else
+ echo "Can not combine 64bits erlang with wxWidgets on MacOSX, wx will not be useable" > ./CONF_INFO
+ WXERL_CAN_BUILD_DRIVER=false
+ AC_MSG_WARN([Can not combine 64bits erlang with wxWidgets on MacOSX, wx will not be useable])
+ fi
+ WXERL_CAN_BUILD_DRIVER=false
+ ;;
+ *)
+ ;;
+esac
+
+PTHR_CFLAGS="-D_THREAD_SAFE -D_REENTRANT"
+
+dnl NOTE: CPPFLAGS will be included in CFLAGS at the end
+case $host_os in
+ darwin*)
+ C_ONLY_FLAGS="-ObjC"
+ CPPFLAGS="$CPPFLAGS -D_MACOSX $PTHR_CFLAGS"
+ ;;
+ mingw32)
+ CFLAGS="$CFLAGS -DWIN32 -DWINVER=0x0500 -D_WINDOWS -D_UNICODE -DUNICODE"
+ CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0500"
+ AC_MSG_WARN([Reverting to 32-bit time_t])
+ CPPFLAGS="$CPPFLAGS -D_USE_32BIT_TIME_T"
+ ;;
+ win32)
+ CFLAGS="$CFLAGS -DWIN32 -DWINVER=0x0500 -D_WINDOWS -D_UNICODE -DUNICODE"
+ CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0500"
+ ;;
+ *)
+ CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE $PTHR_CFLAGS"
+ ;;
+esac
+
+case $host_os in
+ darwin*)
+ CFLAGS="-no-cpp-precomp $CFLAGS"
+ LDFLAGS="-bundle -flat_namespace -undefined warning -fPIC -framework OpenGL $LDFLAGS"
+ ;;
+ win32)
+ LDFLAGS="-dll $LDFLAGS"
+ ;;
+ mingw32)
+ LDFLAGS="-shared -fPIC $LDFLAGS"
+ ;;
+ *)
+ LDFLAGS="-shared -fPIC $LDFLAGS"
+ ;;
+esac
+
+dnl ----------------------------------------------------------------------
+dnl Include CPPFLAGS in CFLAGS
+dnl ----------------------------------------------------------------------
+
+case $host_os in
+ mingw32)
+ DEBUG_CFLAGS="-g -Wall -DDEBUG $CFLAGS"
+ CFLAGS="-g -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing $CFLAGS"
+ ;;
+ win32)
+ DEBUG_CFLAGS="-g -Wall -DDEBUG $CFLAGS"
+ CFLAGS="-g -Wall -O2 $CFLAGS"
+ ;;
+ *)
+ DEBUG_CFLAGS="-g -Wall -fPIC -DDEBUG $CFLAGS"
+ CFLAGS="-g -Wall -O2 -fPIC -fomit-frame-pointer -fno-strict-aliasing $CFLAGS"
+ ;;
+esac
+
+CXXFLAGS="$CFLAGS $CPPFLAGS"
+CFLAGS="$CFLAGS $CPPFLAGS $C_ONLY_FLAGS"
+
+DEBUG_CXXFLAGS="$DEBUG_CFLAGS $CPPFLAGS"
+DEBUG_CFLAGS="$DEBUG_CFLAGS $CPPFLAGS $C_ONLY_FLAGS"
+AC_SUBST(DEBUG_CFLAGS)
+AC_SUBST(DEBUG_CXXFLAGS)
+
+
+if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ AC_MSG_CHECKING(for erl)
+ if test X$ERL != X; then
+ AC_MSG_RESULT([yes; using $ERL])
+ else
+ type erl >/dev/null 2>&1
+ if test $? -eq 0 ; then
+ ERL=erl
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([Cannot find erl in path])
+ fi
+ fi
+ AC_MSG_CHECKING(for erlc)
+ if test X$ERLC != X; then
+ AC_MSG_RESULT([yes; using $ERLC])
+ else
+ type erlc >/dev/null 2>&1
+ if test $? -eq 0 ; then
+ ERLC=erlc
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([Cannot find erlc in path])
+ fi
+ fi
+ ERLANG_ROOT_DIR=`erl -noshell -eval 'io:format("~s~n",[[code:root_dir()]])' -s erlang halt`
+ AC_MSG_NOTICE(ERL ROOT DIR: [$ERLANG_ROOT_DIR])
+ ERLWX_VSN=`grep WX_VSN $srcdir/vsn.mk | sed 's/^.*=[ ]*//'`
+else
+ ERLC=erlc
+ ERL=erl
+ ERLANG_ROOT_DIR=$ERL_TOP
+ AC_SUBST(ERLC)
+fi
+
+AC_SUBST(WX_BUILDING_INSIDE_ERLSRC)
+AC_SUBST(ERLANG_ROOT_DIR)
+
+dnl
+dnl Check for wxwidgets
+dnl
+if test X"$MIXED_CYGWIN_VC" != X"yes" ; then
+ m4_include(wxwin.m4)
+
+ AM_OPTIONS_WXCONFIG
+ reqwx=2.8.4
+ # Try to find debug libs first
+ # wxelibs=core,base,gl,aui,adv
+
+ AC_MSG_CHECKING(for debug build of wxWidgets)
+
+ AM_PATH_WXCONFIG($reqwx, wxWinWithGLDBG=1, wxWinWithGLDBG=0, [stc,xrc,html,adv,xml,core,base,gl,aui], [--unicode --debug=yes])
+ DEBUG_WX_CFLAGS=$WX_CFLAGS
+ DEBUG_WX_CXXFLAGS=$WX_CXXFLAGS
+ DEBUG_WX_LIBS=$WX_LIBS
+ DEBUG_WX_LIBS_STATIC=$WX_LIBS_STATIC
+ AC_SUBST(DEBUG_WX_CFLAGS)
+ AC_SUBST(DEBUG_WX_CXXFLAGS)
+ AC_SUBST(DEBUG_WX_LIBS)
+ AC_SUBST(DEBUG_WX_LIBS_STATIC)
+
+ AC_MSG_CHECKING(for standard build of wxWidgets)
+ AM_PATH_WXCONFIG($reqwx, wxWinWithGL=1, wxWinWithGL=0, [stc,xrc,html,adv,xml,core,base,gl,aui], [--unicode --debug=no])
+
+ if test "x$WX_LIBS_STATIC" = "x"; then
+ WX_HAVE_STATIC_LIBS=false
+ else
+ WX_HAVE_STATIC_LIBS=true
+ fi
+
+ wxWin=0
+
+ if test "$wxWinWithGLDBG" = 1; then
+ if test "$wxWinWithGL" = 1; then
+ wxWin=1
+ FORCED_DEBUG_BUILD=false
+ else
+ wxWin=1
+ FORCED_DEBUG_BUILD=debug
+ WX_CFLAGS=$DEBUG_WX_CFLAGS
+ WX_CXXFLAGS=$DEBUG_WX_CXXFLAGS
+ WX_LIBS=$DEBUG_WX_LIBS
+ WX_LIBS_STATIC=$DEBUG_WX_LIBS_STATIC
+ fi
+ elif test "$wxWinWithGL" = 1; then
+ wxWin=1
+ FORCED_DEBUG_BUILD=false
+ fi
+ AC_SUBST(FORCED_DEBUG_BUILD)
+ RC_FILE_TYPE=o
+define(wx_warn_text,[
+ wxWidgets must be installed on your system.
+
+ Please check that wx-config is in path, the directory
+ where wxWidgets libraries are installed (returned by
+ 'wx-config --libs' or 'wx-config --static --libs' command)
+ is in LD_LIBRARY_PATH or equivalent variable and
+ wxWidgets version is $reqwx or above.])
+
+ if test "$wxWin" != 1; then
+ if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ AC_MSG_ERROR([wx_warn_text])
+ else
+ echo "wxWidgets not found, wx will NOT be useable" > ./CONF_INFO
+ WXERL_CAN_BUILD_DRIVER=false
+ AC_MSG_WARN([wx_warn_text])
+ fi
+ fi
+else
+ AC_MSG_CHECKING(for wxWidgets in standard locations)
+
+ CWXWIN_CONFIG=`cygpath $wx_config_name 2>/dev/null`
+ CWXWIN1=`dirname $CWXWIN_CONFIG 2>/dev/null`
+ CWXWIN2=`dirname $CWXWIN1 2>/dev/null`
+
+ if test -z "$PROGRAMFILES" ; then
+ PROGRAMFILES=c:/Program Files
+ fi
+
+ CWXWIN_PROG=`cygpath -d "$PROGRAMFILES" | cygpath -f - 2>/dev/null`
+ CWXWIN3=$CWXWIN_PROG/wxWidgets-2.8
+ CWXWIN4=$CWXWIN_PROG/wxMSW-2.8
+ CWX_DOCUMENTED="/opt/local/pgm/wxMSW-2.8.* /opt/local/pgm/wxWidgets-2.8.*"
+ CWXPATH="$CWXWIN1 $CWXWIN2 $CWX_DOCUMENTED $CWXWIN3.* $CWXWIN4.*"
+
+ for dir in $CWXPATH; do
+ if test -f $dir/include/wx/wx.h; then
+ WXINCLUDE_MSVC=$dir/include/msvc
+ WXINCLUDE_PLAIN=$dir/include
+ WXINCLUDE_CONTRIB=$dir/contrib/include
+ WX_CFLAGS="-EHsc -D_UNICODE -DUNICODE -I$WXINCLUDE_MSVC -I$WXINCLUDE_PLAIN -I$WXINCLUDE_CONTRIB -D__WXMSW__"
+ WX_CXXFLAGS=$WX_CFLAGS
+ WX_LIBDIR=$dir/lib/vc_lib
+ WX_RESCOMP="rc.sh -I$WXINCLUDE_PLAIN -D __WIN32__"
+ RC_FILE_TYPE=res
+ for lib in $WX_LIBDIR/wxbase*.lib; do
+ maybe=`echo $lib | egrep 'wxbase[[0-9]]*u\.lib'`
+ if test '!' -z "$maybe"; then
+ corelib_number=`echo $maybe | sed 's,.*\([[0-9]].\)u\.lib,\1,'`
+ break
+ fi
+ done
+ if test '!' -z "$corelib_number"; then
+ WXLIBNO=$corelib_number
+ WX_LIBS0="wxmsw${WXLIBNO}u_stc wxmsw${WXLIBNO}u_xrc wxmsw${WXLIBNO}u_html"
+ WX_LIBS1="wxmsw${WXLIBNO}u_adv wxbase${WXLIBNO}u_xml wxmsw${WXLIBNO}u_core"
+ WX_LIBS2="wxbase${WXLIBNO}u wxmsw${WXLIBNO}u_gl wxmsw${WXLIBNO}u_aui"
+ WX_LIBS3="wxregexu wxexpat wxtiff wxjpeg wxpng wxzlib"
+ WX_SYSLIBS="winspool winmm oleaut32 ole32 gdiplus"
+ WX_LIBS_STATIC="-L$WX_LIBDIR"
+ for lib in $WX_LIBS0 $WX_LIBS1 $WX_LIBS2 $WX_LIBS3 $WX_SYSLIBS; do
+ WX_LIBS_STATIC="$WX_LIBS_STATIC -l$lib"
+ done
+ AC_MSG_RESULT([$dir])
+ break
+ fi
+ fi
+ done
+ if test -z "$WX_LIBS_STATIC"; then
+ AC_MSG_RESULT([failed])
+ if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ AC_MSG_ERROR([Cannot find core lib version for wxWidgets])
+ else
+ echo "No usable wxWidgets not found, wx will not be useable" > ./CONF_INFO
+ WXERL_CAN_BUILD_DRIVER=false
+ AC_MSG_WARN([Cannot find core lib version for wxWidgets])
+ fi
+ fi
+ WX_HAVE_STATIC_LIBS=true
+ AC_SUBST(WX_CFLAGS)
+ AC_SUBST(WX_CXXFLAGS)
+ AC_SUBST(WX_LIBS_STATIC)
+ AC_SUBST(WX_RESCOMP)
+fi
+
+AC_SUBST(WX_HAVE_STATIC_LIBS)
+AC_SUBST(RC_FILE_TYPE)
+
+dnl
+dnl Opengl tests
+dnl
+
+if test X"$host_os" != X"win32" ; then
+ AC_CHECK_HEADERS([GL/gl.h])
+ AC_CHECK_HEADERS([OpenGL/gl.h])
+else
+ AC_CHECK_HEADERS([gl/gl.h],[],[],[#include <windows.h>])
+fi
+
+AC_MSG_CHECKING(if wxwidgets have opengl support)
+AC_LANG_PUSH(C++)
+saved_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS"
+
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[
+ #ifdef WIN32
+ # include <windows.h>
+ #endif
+ #include "wx/wx.h"
+ ]], [[
+ #if wxUSE_GLCANVAS
+ ;
+ #else
+ #error barf
+ #endif
+ ]])],
+[HAVE_GL_SUPPORT=yes
+ AC_DEFINE(HAVE_GL_SUPPORT, [1], [Define if wxwidgets have gl support])],
+ HAVE_GL_SUPPORT=no)
+
+CXXFLAGS=$saved_CXXFLAGS
+AC_LANG_POP(C++)
+AC_MSG_RESULT($HAVE_GL_SUPPORT)
+AC_SUBST(HAVE_GL_SUPPORT)
+
+if test X"$HAVE_GL_SUPPORT" != X"yes" ; then
+ echo "wxWidgets don't have gl support, wx will NOT be useable" > ./CONF_INFO
+ WXERL_CAN_BUILD_DRIVER=false
+fi
+
+dnl Check for GLintptr
+dnl We define the types glext.h so we don't depend on glext.h is updated
+dnl to the latest version, but some systems defined them in gl.h
+dnl i.e Darwin and Solaris.
+
+AC_CHECK_TYPES([GLintptr, GLintptrARB, GLchar,
+ GLcharARB, GLhalfARB, GLint64EXT],
+ [], [],
+ [#ifdef WIN32
+ # include <windows.h>
+ # include <gl/gl.h>
+ #elif defined(HAVE_GL_GL_H)
+ # include <GL/gl.h>
+ #elif defined(HAVE_OPENGL_GL_H)
+ # include <OpenGL/gl.h>
+ #endif
+ ])
+
+dnl
+
+AC_MSG_CHECKING(GLU Callbacks uses Tiger Style)
+AC_LANG_PUSH(C++)
+saved_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS"
+
+AC_TRY_COMPILE([
+ #ifdef WIN32
+ # include <windows.h>
+ # include <gl/glu.h>
+ #elif defined(HAVE_GL_GL_H)
+ # include <GL/glu.h>
+ #elif defined(HAVE_OPENGL_GL_H)
+ # include <OpenGL/glu.h>
+ #endif
+ #ifndef CALLBACK
+ # define CALLBACK
+ #endif
+ void CALLBACK foo() {};
+ ],
+ [
+ GLUtesselator* tess;
+ gluTessCallback(tess,GLU_TESS_VERTEX,(GLvoid (*)(...)) foo);
+ ],
+ [TESS_CB_TIGER_STYLE=yes
+ AC_DEFINE(TESS_CB_TIGER_STYLE, [1], [GLU Callbacks are Tiger style])],
+ TESS_CB_TIGER_STYLE=no)
+AC_MSG_RESULT($TESS_CB_TIGER_STYLE)
+AC_SUBST(TESS_CB_TIGER_STYLE)
+
+dnl
+dnl Check that we wx have stc (wxStyledTextControl) headers
+dnl
+
+AC_CHECK_HEADERS([wx/stc/stc.h],
+ [],
+ [WXERL_CAN_BUILD_DRIVER=false
+ echo "wxWidgets don't have wxStyledTextControl (stc.h), wx will NOT be useable" > ./CONF_INFO
+ AC_MSG_WARN([Can not find wx/stc/stc.h])
+ ],
+ [#ifdef WIN32
+ # include <windows.h>
+ #endif
+ #include "wx/wx.h"])
+
+dnl
+dnl Check that we can link all the libraries
+dnl
+
+AC_MSG_CHECKING(if we can link wxwidgets programs)
+saved_LIBS=$LIBS
+
+if test X"$WX_HAVE_STATIC_LIBS" = X"true" ; then
+ LIBS=$WX_LIBS_STATIC
+fi
+
+AC_LINK_IFELSE([
+ #ifdef WIN32
+ # include <windows.h>
+ # include <gl/gl.h>
+ #elif defined(HAVE_GL_GL_H)
+ # include <GL/gl.h>
+ #elif defined(HAVE_OPENGL_GL_H)
+ # include <OpenGL/gl.h>
+ #endif
+ #include "wx/wx.h"
+ #include "wx/stc/stc.h"
+ #include "wx/glcanvas.h"
+
+ class MyApp : public wxApp
+ {
+ virtual bool OnInit() {
+ // Test that we have a FromUTF8
+ // it isn't in too old wxWidgets versions
+ wxString test = wxString::FromUTF8((const char *)"foo");
+ wxStyledTextCtrl * foo = new wxStyledTextCtrl();
+ wxGLCanvas * bar = new wxGLCanvas((wxWindow *) NULL, -1,
+ wxDefaultPosition,wxDefaultSize,0);
+ return true;
+ };
+ };
+ IMPLEMENT_APP(MyApp)
+ ],
+ [
+ CAN_LINK_WX=yes
+ ],
+ [
+ CAN_LINK_WX=no
+ ])
+
+CXXFLAGS=$saved_CXXFLAGS
+LIBS=$saved_LIBS
+AC_LANG_POP(C++)
+AC_MSG_RESULT($CAN_LINK_WX)
+
+if test X"$CAN_LINK_WX" != X"yes" ; then
+ echo "Can not link the wx driver, wx will NOT be useable" > ./CONF_INFO
+ WXERL_CAN_BUILD_DRIVER=false
+ AC_MSG_WARN([Can not link wx program are all developer packages installed?])
+fi
+
+AC_SUBST(WXERL_CAN_BUILD_DRIVER)
+
+#############################################################################
+
+dnl
+
+case $host_os in
+ mingw32|win32)
+ RUN_ERL=werl
+ SO_EXT=.dll;;
+ *)
+ RUN_ERL=erl
+ SO_EXT=.so;;
+esac
+
+AC_SUBST(SO_EXT)
+AC_SUBST(RUN_ERL)
+
+
+if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ dnl Find driver directory name according to erlang
+ WXERL_SYS_TYPE=`erl -noshell -eval 'io:format("~s~n",[[erlang:system_info(system_architecture)]])' -s erlang halt`
+else
+ WXERL_SYS_TYPE=$TARGET
+fi
+
+AC_SUBST(WXERL_SYS_TYPE)
+
+mkdir -p $WXERL_SYS_TYPE
+CONFIG_STATUS=$WXERL_SYS_TYPE/config.status
+
+dnl
+
+if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ if test X"$WXERL_CAN_BUILD_DRIVER" != X"true" ; then
+ AC_MSG_ERROR([Cannot build wxErlang driver, see ./CONF_INFO for information])
+ fi
+fi
+
+AC_CONFIG_FILES([
+ config.mk
+ c_src/Makefile
+ ])
+
+AC_OUTPUT
+
+if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then
+ AC_MSG_NOTICE()
+ AC_MSG_NOTICE(--------------------------------------------------)
+ AC_MSG_NOTICE(Using erlang compiler: [$ERLC])
+ AC_MSG_NOTICE(wxErlang Install in: [$ERLANG_ROOT_DIR/lib/wx-$ERLWX_VSN])
+ AC_MSG_NOTICE(Erlang driver in priv/[$WXERL_SYS_TYPE]/wxe_driver[$SO_EXT])
+ AC_MSG_NOTICE(--------------------------------------------------)
+fi
+
+if test X"$WX_BUILDING_INSIDE_ERLSRC" = X"true" ; then
+ CORES=`ls core* 2>/dev/null`
+ if test X"$CORES" != X"" ; then
+ echo "Configure dumped core files" > ignore_core_files
+ fi
+fi
+
+
+
diff --git a/lib/wx/doc/html/.gitignore b/lib/wx/doc/html/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/doc/html/.gitignore
diff --git a/lib/wx/doc/man3/.gitignore b/lib/wx/doc/man3/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/doc/man3/.gitignore
diff --git a/lib/wx/doc/overview.edoc b/lib/wx/doc/overview.edoc
new file mode 100644
index 0000000000..8bff6c34e1
--- /dev/null
+++ b/lib/wx/doc/overview.edoc
@@ -0,0 +1,235 @@
+ -*- html -*-
+
+ wx Documentation
+
+@author Dan Gudmundsson
+@copyright 2008-2009 Ericsson AB
+
+@title wx the erlang binding of wxWidgets
+
+@doc The <em>wx</em> application is an erlang binding
+of <em>wxWidgets</em>. This document describes the erlang mapping to
+wxWidgets and it's implementation. It is not a complete
+users guide to wxWidgets. If you need that, you will have to read the wxWidgets
+documentation instead. <em>wx</em> tries to keep a one-to-one mapping with
+the original api so that the original documentation and examples shall be
+as easy as possible to use.
+
+wxErlang examples and test suite can be found in the erlang src release.
+They can also provide some help on how to use the api.
+
+This is currently a very brief introduction to <em>wx</em>. The
+application is still under development, which means the interface may change,
+and the test suite currently have a poor coverage ratio.
+
+== Contents ==
+
+<ol>
+ <li>{@section Introduction}</li>
+ <li>{@section Multiple processes and memory handling}</li>
+ <li>{@section Event Handling}</li>
+ <li>{@section Acknowledgments}</li>
+</ol>
+
+== Introduction ==
+
+The original <em>wxWidgets</em> is an object-oriented (C++) api and
+that is reflected in the erlang mapping. In most cases each class in
+wxWidgets is represented as a module in erlang. This gives
+the <em>wx</em> application a huge interface, spread over several
+modules, and it all starts with the <em>wx</em>
+module. The <em>wx</em> module contains functions to create and
+destroy the gui, i.e. <code>wx:new/0</code>,<code>wx:destroy/0</code>, and
+some other useful functions.
+
+Objects or object references in <em>wx</em> should be seen as erlang
+processes rather then erlang terms. When you operate on them they can
+change state, e.g. they are not functional objects as erlang terms are.
+Each object has a type or rather a class, which is manipulated with
+the corresponding module or by sub-classes of that object. Type
+checking is done so that a module only operates on it's objects or
+inherited classes.
+
+An object is created with <em>new</em> and destroyed with
+<em>destroy</em>. Most functions in the classes are named the same
+as their C++ counterpart, except that for convenience, in erlang
+they start with a lowercase letter and the first argument is the
+object reference. Optional arguments are last and expressed as tagged
+tuples in any order.
+
+For example the <em>wxWindow</em> C++ class is implemented in the
+<em>wxWindow</em> erlang module and the
+member <em>wxWindow::CenterOnParent</em> is
+thus <em>wxWindow:centerOnParent</em>. The following C++ code:
+<pre>
+ wxWindow MyWin = new wxWindo();
+ MyWin.CenterOnParent(wxVERTICAL);
+ ...
+ delete MyWin;
+</pre>
+would in erlang look like:
+<pre>
+ MyWin = wxWindow:new(),
+ wxWindow:centerOnParent(MyWin, [{dir,?wxVERTICAL}]),
+ ...
+ wxWindow:destroy(MyWin),
+</pre>
+
+When you are reading wxWidgets documentation or the examples, you will
+notice that some of the most basic classes are missing in <em>wx</em>,
+they are directly mapped to corresponding erlang terms:
+
+<dl>
+ <dt><em>wxPoint</em> is represented by {Xcoord,Ycoord}</dt>
+ <dt><em>wxSize</em> is represented by {Width,Height}</dt>
+ <dt><em>wxRect</em> is represented by {Xcoord,Ycoord,Width,Height}</dt>
+ <dt><em>wxColour</em> is represented by {Red,Green,Blue[,Alpha]}</dt>
+ <dt><em>wxPoint</em> is represented by {Xcoord,Ycoord}</dt>
+ <dt><em>wxString</em> is represented by {@link //stdlib/unicode:charlist()}</dt>
+ <dt><em>wxGBPosition</em> is represented by {Row,Column}</dt>
+ <dt><em>wxGBSpan</em> is represented by {RowSpan,ColumnSPan}</dt>
+ <dt><em>wxGridCellCoords</em> is represented by {Row,Column}</dt>
+</dl>
+
+In the places where the erlang api differs from the original one it should
+be obvious from the erlang documentation which representation has
+been used. E.g. the C++ arrays and/or lists are sometimes represented
+as erlang lists and sometimes as tuples.
+
+Colours are represented with {Red,Green,Blue[,Alpha]}, the Alpha value
+is optional when used as an argument to functions, but it will always be
+returned from <em>wx</em> functions.
+
+Defines, enumerations and global variables exists in
+<code>wx.hrl</code> as defines. Most of these defines are constants
+but not all. Some are platform dependent and therefore the global
+variables must be instantiated during runtime. These will be acquired from
+the driver with a call, so not all defines can be used in matching
+statements. Class local enumerations will be prefixed with the class
+name and a underscore as in <code>ClassName_Enum</code>.
+
+Additionally some global functions, i.e. non-class functions, exist in
+the <c>wx_misc</c> module.
+
+<em>wxErlang</em> is implemented as a (threaded) driver and a rather direct
+interface to the C++ api, with the drawback that if the erlang
+programmer does an error, it might crash the emulator.
+
+Since the driver is threaded it requires a <em>smp</em> enabled emulator,
+that provides a thread safe interface to the driver.
+
+== Multiple processes and memory handling ==
+
+The intention is that each erlang application calls wx:new() once to
+setup it's gui which creates an environment and a memory mapping. To
+be able to use <em>wx</em> from several processes in your application,
+you must share the environment. You can get the active environment with
+<code>wx:get_env/0</code> and set it in the new processes
+with <code>wx:set_env/1</code>. Two processes or applications which
+have both called wx:new() will not be able use each others objects.
+
+<pre>
+ wx:new(),
+ MyWin = wxFrame:new(wx:null(), 42, "Example", []),
+ Env = wx:get_env(),
+ spawn(fun() ->
+ wx:set_env(Env),
+ %% Here you can do wx calls from your helper process.
+ ...
+ end),
+ ...
+</pre>
+
+When <code>wx:destroy/0</code> is invoked or when all processes in the
+application have died, the memory is deleted and all windows created
+by that application are closed.
+
+The <em>wx</em> application never cleans or garbage collects memory as
+long as the user application is alive. Most of the objects are deleted
+when a window is closed, or at least all the objects which have a parent
+argument that is non null. By using
+<code>wxCLASS:destroy/1</code> when possible you can avoid an
+increasing memory usage. This is especially important when
+<em>wxWidgets</em> assumes or recommends that you (or rather the C++
+programmer) have allocated the object on the stack since that will
+never be done in the erlang binding. For example <code>wxDC</code> class
+or its sub-classes or <code> wxSizerFlags</code>.
+
+Currently the dialogs show modal function freezes wxWidgets
+until the dialog is closed. That is intended but in erlang where you
+can have several gui applications running at the same time it causes
+trouble. This will hopefully be fixed in future <em>wxWidgets</em>
+releases.
+
+== Event Handling ==
+
+Event handling in <em>wx</em> differs most the from the original api.
+You must specify every event you want to handle in <em>wxWidgets</em>,
+that is the same in the erlang binding but can you choose to receive
+the events as messages or handle them with callback funs.
+
+Otherwise the event subscription is handled as <em>wxWidgets</em>
+dynamic event-handler connection. You subscribe to events of a certain
+type from objects with an <em>ID</em> or within a range of ID:s. The
+callback fun is optional, if not supplied the event will be sent to the
+process that called <em>connect/2</em>. Thus, a handler is a callback fun
+or a process which will receive an event message.
+
+Events are handled in order from bottom to top, in the widgets
+hierarchy, by the last subscribed handler first. Depending on
+if <code>wxEvent:skip()</code> is called the event will be handled by the
+other handler(s) afterwards. Most of the events have default event
+handler(s) installed.
+
+Message events looks like {@link wxEvtHandler:wx(). #wx{id=integer(),
+obj=wx:wxObject(), userData=term(), event=Rec} }. The <em>id</em> is
+the identifier of the object that received the event. The <em>obj</em>
+field contains the object that you used <em>connect</em> on.
+The <em>userData</em> field contains a user supplied term, this is an
+option to <em>connect</em>. And the <em>event</em> field contains a record
+with event type dependent information. The first element in the event
+record is always the type you subscribed to. For example if you
+subscribed to
+<em>key_up</em> events you will receive the
+<code>#wx{event=Event}</code> where <em>Event</em> will be a
+<em>wxKey</em> event record where <code>Event#wxKey.type =
+key_up</code>.
+
+In <em>wxWidgets</em> the developer have to call
+<code>wxEvent:skip()</code> if he wants the event to be processed by
+other handlers. You can do the same in <em>wx</em> if you use
+callbacks. If you want the event as messages you just don't supply a
+callback and you can set the <em>skip</em> option in <em>connect</em>
+call to true or false, the default it is false. True means that you get
+the message but let the subsequent handlers also handle the event. If
+you want to change this behavior dynamically you must use callbacks and
+call <code>wxEvent:skip()</code>.
+
+Callback event handling is done by using the optional
+callback <em>fun/2</em> when attaching the
+handler. The <em>fun(#wx{},wxObject()</em> must take two arguments
+where the first is the same as with message events described above and
+the second is an object reference to the actual event object. With the
+event object you can call <code>wxEvent:skip()</code> and access all
+the data. When using callbacks you must call <code>wxEvent:skip()</code>
+by yourself if you want any of the events to be forwarded to the
+following handlers. The actual event objects are deleted after
+the <em>fun</em> returns.
+
+The callbacks are always invoked by another process and have
+exclusive usage of the gui when invoked. This means that a callback fun
+can not use the process dictionary and should not make calls to other
+processes. Calls to another process inside a callback fun may cause a
+deadlock if the other process is waiting on completion of his call to
+the gui.
+
+== Acknowledgments ==
+
+Mats-Ola Persson wrote the initial <em>wxWidgets</em> binding as part
+of his master thesis. The current version is a total re-write but many
+ideas have been reused. The reason for the re-write was mostly due to
+the limited requirements he had been given by us.
+
+Also thanks to the <em>wxWidgets</em> team that develops and supports
+it so we have something to use.
+
diff --git a/lib/wx/doc/pdf/.gitignore b/lib/wx/doc/pdf/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/doc/pdf/.gitignore
diff --git a/lib/wx/doc/src/Makefile b/lib/wx/doc/src/Makefile
new file mode 100644
index 0000000000..d18daa753a
--- /dev/null
+++ b/lib/wx/doc/src/Makefile
@@ -0,0 +1,175 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+# ----------------------------------------------------
+# Application version
+# ----------------------------------------------------
+include ../../vsn.mk
+include ../../config.mk
+APPLICATION=wxErlang
+
+ErlMods = wx.erl wx_object.erl
+
+GenMods = $(shell ls ../../src/gen | grep 'wx[A-Z].*\.erl') \
+ wx_misc.erl \
+ glu.erl \
+ gl.erl
+
+# GenMods = \
+# wx_misc.erl \
+# glu.erl \
+# gl.erl
+
+
+ModsNoExt = $(ErlMods:%.erl=%) $(GenMods:%.erl=%)
+
+ifneq ($(INSIDE_ERLSRC),true)
+# ----------------------------------------------------
+# Standalone release
+# ----------------------------------------------------
+Mods = $(ErlMods:%=../../src/%) $(GenMods:%=../../src/gen/%)
+HTML_FILES = $(ErlMods:%.erl=../html/%.html) $(GenMods:%.erl=../html/%.html)
+
+GIF_FILES = ../html/erlang.png
+EXTRA_FILES = ../html/index.html \
+ ../html/modules-frame.html \
+ ../html/overview-summary.html \
+ ../html/packages-frame.html
+
+HTML_STYLESHEET_FILES = ../html/stylesheet.css
+
+html: ../html/edoc-info
+
+docs: ../html/edoc-info
+
+../html/edoc-info: $(Mods)
+ @echo "Building documentation."
+ -mkdir -p ../html
+ erl -noshell -pa doc -run edoc_run application "wx" '"../.."' '[{private,true},no_packages,{dir,"../html"}, {sort_functions,false}]'
+
+clean:
+ rm -f *~
+ (cd ../html; rm -f *.html *.css erlang.png edoc-info)
+
+opt debug:
+else
+# Release directory specification
+# ----------------------------------------------------
+# Inside the erlang src
+# ----------------------------------------------------
+
+XML_APPLICATION_FILES = ref_man.xml
+XML_REF3_FILES = $(ErlMods:%.erl=%.xml) $(GenMods:%.erl=%.xml)
+
+XML_PART_FILES = part.xml part_notes.xml
+XML_CHAPTER_FILES = chapter.xml
+XML_NOTES_FILES = notes.xml
+
+BOOK_FILES = book.xml
+
+XML_FILES = \
+ $(BOOK_FILES) $(XML_CHAPTER_FILES) \
+ $(XML_PART_FILES) $(XML_REF3_FILES) \
+ $(XML_NOTES_FILES) $(XML_APPLICATION_FILES)
+
+
+# ----------------------------------------------------
+INFO_FILE = ../../info
+
+HTML_FILES = \
+ $(XML_APPLICATION_FILES:%.xml=$(HTMLDIR)/%.html) \
+ $(XML_PART_FILES:%.xml=$(HTMLDIR)/%.html)
+
+MAN3_FILES = $(XML_REF3_FILES:%.xml=$(MAN3DIR)/%.3)
+
+HTML_REF_MAN_FILE = $(HTMLDIR)/index.html
+
+TOP_PDF_FILE = $(PDFDIR)/$(APPLICATION)-$(VSN).pdf
+
+# ----------------------------------------------------
+# FLAGS
+# ----------------------------------------------------
+XML_FLAGS +=
+DVIPS_FLAGS +=
+
+# ----------------------------------------------------
+# Targets
+# ----------------------------------------------------
+
+docs: pdf html man
+
+$(TOP_PDF_FILE): $(XML_FILES)
+
+pdf: $(TOP_PDF_FILE)
+
+html: gifs $(HTML_REF_MAN_FILE)
+
+man: $(MAN3_FILES)
+
+gifs: $(GIF_FILES:%=$(HTMLDIR)/%)
+
+xml: $(XML_REF3_FILES) $(XML_CHAPTER_FILES)
+
+ref_man.xml: ref_man.src.xml
+ @echo Preparing ref_man.xml
+ @cat ref_man.src.xml > ref_man.xml
+ @for d in $(ModsNoExt); do \
+ echo " <xi:include href=\"$$d.xml\"/>" >> ref_man.xml ; \
+ done
+ @echo "</application>" >> ref_man.xml
+ @echo
+
+$(ErlMods:%.erl=%.xml):
+ docb_gen -def vsn $(VSN) -sort_functions false ../../src/$(@:%.xml=%.erl)
+$(GenMods:%.erl=%.xml):
+ docb_gen -def vsn $(VSN) -sort_functions false ../../src/gen/$(@:%.xml=%.erl)
+
+$(XML_CHAPTER_FILES):
+ docb_gen -chapter -def vsn $(VSN) ../overview.edoc
+
+debug opt:
+
+clean clean_docs:
+ rm -rf $(HTMLDIR)/*
+ rm -f $(MAN3DIR)/*
+ rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo)
+ rm -f errs core *~ ../html/edoc-info
+ rm -f $(XML_REF3_FILES) $(XML_CHAPTER_FILES) *.html
+
+# ----------------------------------------------------
+# Release Target
+# ----------------------------------------------------
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+
+release_docs_spec: docs
+ $(INSTALL_DIR) $(RELSYSDIR)/doc/pdf
+ $(INSTALL_DATA) $(TOP_PDF_FILE) $(RELSYSDIR)/doc/pdf
+ $(INSTALL_DIR) $(RELSYSDIR)/doc/html
+ $(INSTALL_DATA) $(HTMLDIR)/* \
+ $(RELSYSDIR)/doc/html
+ $(INSTALL_DATA) $(INFO_FILE) $(RELSYSDIR)
+ $(INSTALL_DIR) $(RELEASE_PATH)/man/man3
+ $(INSTALL_DATA) $(MAN3_FILES) $(RELEASE_PATH)/man/man3
+
+release_spec:
+
+release_tests_spec:
+
+endif
diff --git a/lib/wx/doc/src/book.xml b/lib/wx/doc/src/book.xml
new file mode 100644
index 0000000000..d517892776
--- /dev/null
+++ b/lib/wx/doc/src/book.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE book SYSTEM "book.dtd">
+
+<book xmlns:xi="http://www.w3.org/2001/XInclude">
+ <header titlestyle="normal">
+ <copyright>
+ <year>2009</year>
+ <holder>Ericsson AB. All Rights Reserved.</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ </legalnotice>
+
+ <title>wxErlang</title>
+ <prepared></prepared>
+ <docno></docno>
+ <date></date>
+ <rev></rev>
+ </header>
+ <insidecover>
+ </insidecover>
+ <pagetext>wxErlang</pagetext>
+ <preamble>
+ <contents level="2"></contents>
+ </preamble>
+ <parts lift="no">
+ <xi:include href="part.xml"/>
+ </parts>
+ <applications>
+ <xi:include href="ref_man.xml"/>
+ </applications>
+ <releasenotes>
+ <xi:include href="notes.xml"/>
+ </releasenotes>
+ <listofterms></listofterms>
+ <index></index>
+</book>
+
diff --git a/lib/wx/doc/src/fascicules.xml b/lib/wx/doc/src/fascicules.xml
new file mode 100644
index 0000000000..1b9d6bc94d
--- /dev/null
+++ b/lib/wx/doc/src/fascicules.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE fascicules SYSTEM "fascicules.dtd">
+
+<fascicules>
+ <fascicule file="part" href="part_frame.html" entry="no">
+ User's Guide
+ </fascicule>
+ <fascicule file="ref_man" href="ref_man_frame.html" entry="yes">
+ Reference Manual
+ </fascicule>
+ <fascicule file="part_notes" href="part_notes_frame.html" entry="no">
+ Release Notes
+ </fascicule>
+</fascicules>
+
diff --git a/lib/wx/doc/src/make.dep b/lib/wx/doc/src/make.dep
new file mode 100644
index 0000000000..91001be438
--- /dev/null
+++ b/lib/wx/doc/src/make.dep
@@ -0,0 +1,13 @@
+# ----------------------------------------------------
+# >>>> Do not edit this file <<<<
+# This file was automaticly generated by
+# /home/otp/bin/docdepend
+# ----------------------------------------------------
+
+
+# ----------------------------------------------------
+# TeX files that the DVI file depend on
+# ----------------------------------------------------
+
+book.dvi: book.tex chapter.tex part.tex
+
diff --git a/lib/wx/doc/src/notes.xml b/lib/wx/doc/src/notes.xml
new file mode 100644
index 0000000000..f9f16defd3
--- /dev/null
+++ b/lib/wx/doc/src/notes.xml
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE chapter SYSTEM "chapter.dtd">
+
+<chapter>
+ <header>
+ <copyright>
+ <year>2009</year>
+ <holder>Ericsson AB. All Rights Reserved.</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ </legalnotice>
+
+ <title>wxErlang Release Notes</title>
+ <prepared>otp_appnotes</prepared>
+ <docno>nil</docno>
+ <date>nil</date>
+ <rev>nil</rev>
+ <file>notes.xml</file>
+ </header>
+ <p>This document describes the changes made to the wxErlang
+ application.</p>
+
+<section><title>Wx 0.98.4</title>
+
+ <section><title>Improvements and New Features</title>
+ <list>
+ <item>
+ <p>Added wx_object improvements from Mazen.</p> <p>Fixed
+ pid issues, reported by Mazen.</p> <p>Added wxLogNull
+ class, reported by Amit Murthy.</p> <p>Various configure
+ fixes.</p>
+ <p>
+ Own Id: OTP-8243 Aux Id: seq11418 </p>
+ </item>
+ <item>
+ <p>
+ The documentation is now built with open source tools
+ (xsltproc and fop) that exists on most platforms. One
+ visible change is that the frames are removed.</p>
+ <p>
+ Own Id: OTP-8250</p>
+ </item>
+ <item>
+ <p>
+ wx now builds with wxWidgets 2.8.4 or a later 2.8
+ release, thanks Nico Kruber.</p>
+ <p>
+ Own Id: OTP-8292</p>
+ </item>
+ </list>
+ </section>
+
+</section>
+
+<section><title>Wx 0.98.3</title>
+
+ <section><title>Fixed Bugs and Malfunctions</title>
+ <list>
+ <item>
+ <p>
+ Added wxListCtrl sorting and build fixes supplied by Paul
+ Hampson. Thanks.</p>
+ <p>
+ Own Id: OTP-8126</p>
+ </item>
+ </list>
+ </section>
+
+
+ <section><title>Improvements and New Features</title>
+ <list>
+ <item>
+ <p>wxHtmlWindow class implemented.</p> <p>All exceptions
+ from callbacks are now catched and written to the
+ log.</p> <p>Some defines where wrong in 'wx.hrl'.</p>
+ <p><c>wx:batch/1</c> and friends could hang forever if
+ for instance a breakpoint was set inside the fun. That
+ caused all wx applications to hang.</p> <p>Added missing
+ wxAuiPaneInfo constructor and destructor.</p> <p>Added
+ wxAuiNotebookEvent and wxAuiManagerEvent.</p> <p>Calling
+ non supported wxWidgets functions hanged instead of
+ crashed.</p> <p>Update OpenGL to version 3.1 and added
+ some of the missing glu functions.</p> <p>Fixed
+ wxRadioBox which inherited the wrong class, thanks Atilla
+ Erdodi.</p>
+ <p>
+ Own Id: OTP-8083</p>
+ </item>
+ <item>
+ <p>
+ Removed some of the automatic garbage collecting after
+ application exit, user will get a warning instead so he
+ can correct the code.</p>
+ <p>
+ Own Id: OTP-8138</p>
+ </item>
+ </list>
+ </section>
+
+</section>
+
+<section><title>Wx 0.98.2</title>
+
+ <section><title>Improvements and New Features</title>
+ <list>
+ <item>
+ <p>Olle Mattson have made a large demo, see
+ <c>examples/demo/</c>, that triggered the following bugs
+ and new features:</p> <p>New book controls.</p> <p>Added
+ wxToolbar:addTool/6.</p> <p>Empty binaries will be used
+ to indicate NULL where applicable.</p>
+ <p>
+ Own Id: OTP-7943</p>
+ </item>
+ <item>
+ <p>Applied patch from Nico Kruber,
+ which fixes building on some wxwidgets installations.
+ </p>
+ <p>Open source</p>
+ </item>
+ </list>
+ </section>
+
+</section>
+
+ <section><title>Wx 0.98.1</title>
+
+ <section><title>Improvements and New Features</title>
+ <list>
+ <item>
+ <p>Added <c>xrcctrl/3</c> to wxXmlResource and added a
+ resource example.</p> <p>Added several event types and
+ events records and fixed a couple of event related
+ bugs.</p> <p>Event callbacks can now use
+ <c>wxEvtHandler:connect/2</c>.</p> <p>Error handling and
+ debugging aid have been improved.</p> <p>Added
+ wxSplitterWindow and wxGauge:pulse and a couple of
+ missing macros in <c>wx.hrl</c>.</p> <p>Thanks to Steve
+ Davis for feedback and bug reports.</p>
+ <p>
+ Own Id: OTP-7875</p>
+ </item>
+ </list>
+ </section>
+
+</section>
+
+
+ <section><title>Wx 0.98</title>
+
+ <section><title>Improvements and New Features</title>
+ <list>
+ <item>
+ <p>
+ A first beta release of wxErlang.</p>
+ <p>
+ Own Id: OTP-7859</p>
+ </item>
+ </list>
+ </section>
+
+</section>
+
+</chapter>
+
diff --git a/lib/wx/doc/src/part.xml b/lib/wx/doc/src/part.xml
new file mode 100644
index 0000000000..168add1a3c
--- /dev/null
+++ b/lib/wx/doc/src/part.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE part SYSTEM "part.dtd">
+
+<part xmlns:xi="http://www.w3.org/2001/XInclude">
+ <header>
+ <copyright>
+ <year>2009</year>
+ <holder>Ericsson AB. All Rights Reserved.</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ </legalnotice>
+
+ <title>wxErlang User's Guide</title>
+ <prepared>Dan Gudmundsson</prepared>
+ <docno></docno>
+ <date>2009-03-09</date>
+ <rev>1.0</rev>
+ <file>part.xml</file>
+ </header>
+ <description>
+ <p>The <em>wxErlang</em> application is an api for writing graphical user
+ interfaces with wxWidgets.
+ </p>
+ </description>
+ <xi:include href="chapter.xml"/>
+</part>
+
diff --git a/lib/wx/doc/src/part_notes.xml b/lib/wx/doc/src/part_notes.xml
new file mode 100644
index 0000000000..539ced5f1d
--- /dev/null
+++ b/lib/wx/doc/src/part_notes.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE part SYSTEM "part.dtd">
+
+<part xmlns:xi="http://www.w3.org/2001/XInclude">
+ <header>
+ <copyright>
+ <year>2009</year>
+ <holder>Ericsson AB. All Rights Reserved.</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ </legalnotice>
+
+ <title>wxErlang Release Notes</title>
+ <prepared></prepared>
+ <docno></docno>
+ <date></date>
+ <rev></rev>
+ </header>
+ <description>
+ <p>The <em>wxErlang</em> application is an api for writing graphical user
+ interfaces with wxWidgets.
+ </p>
+ </description>
+ <xi:include href="notes.xml"/>
+</part>
+
diff --git a/lib/wx/doc/src/ref_man.src.xml b/lib/wx/doc/src/ref_man.src.xml
new file mode 100644
index 0000000000..77fd16b050
--- /dev/null
+++ b/lib/wx/doc/src/ref_man.src.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="latin1" ?>
+<!DOCTYPE application SYSTEM "application.dtd">
+
+<application xmlns:xi="http://www.w3.org/2001/XInclude">
+ <header>
+ <copyright>
+ <year>2009</year>
+ <holder>Ericsson AB. All Rights Reserved.</holder>
+ </copyright>
+ <legalnotice>
+ The contents of this file are subject to the Erlang Public License,
+ Version 1.1, (the "License"); you may not use this file except in
+ compliance with the License. You should have received a copy of the
+ Erlang Public License along with this software. If not, it can be
+ retrieved online at http://www.erlang.org/.
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ the License for the specific language governing rights and limitations
+ under the License.
+
+ </legalnotice>
+
+ <title>wxErlang Reference Manual</title>
+ <prepared></prepared>
+ <docno></docno>
+ <date></date>
+ <rev></rev>
+ </header>
+ <description>
+ <p>The <em>wxErlang</em> application is an api for writing graphical user
+ interfaces with wxWidgets.
+ </p>
+ </description>
+
+
diff --git a/lib/wx/ebin/.gitignore b/lib/wx/ebin/.gitignore
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/lib/wx/ebin/.gitignore
diff --git a/lib/wx/examples/Makefile b/lib/wx/examples/Makefile
new file mode 100644
index 0000000000..ae0ed687eb
--- /dev/null
+++ b/lib/wx/examples/Makefile
@@ -0,0 +1,45 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../vsn.mk
+include ../config.mk
+
+SUBDIRS = demo sudoku simple xrc
+
+ifeq ($(INSIDE_ERLSRC),true)
+SUB_DIRECTORIES=$(SUBDIRS)
+# ----------------------------------------------------
+# Default Subdir Targets
+# ----------------------------------------------------
+include $(ERL_TOP)/make/otp_subdir.mk
+
+else
+# standalone build
+opt debug clean:
+ @for d in $(SUBDIRS); do \
+ if test ! -d $$d ; then \
+ echo "=== Skipping subdir $$d" ; \
+ else \
+ (cd $$d && $(MAKE) $@) ; \
+ fi ; \
+ done
+
+docs:
+
+endif
diff --git a/lib/wx/examples/demo/Makefile b/lib/wx/examples/demo/Makefile
new file mode 100755
index 0000000000..98d7c6a130
--- /dev/null
+++ b/lib/wx/examples/demo/Makefile
@@ -0,0 +1,96 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../../vsn.mk
+include ../../config.mk
+
+TOPDIR = ../..
+SRC = .
+BIN = .
+ERLINC = $(TOPDIR)/include
+ERLC = erlc
+TESTMODS = \
+ demo \
+ demo_html_tagger \
+ ex_aui \
+ ex_button \
+ ex_canvas \
+ ex_canvas_paint \
+ ex_choices \
+ ex_cursor \
+ ex_dialogs \
+ ex_frame_utils \
+ ex_gauge \
+ ex_gl \
+ ex_grid \
+ ex_htmlWindow \
+ ex_listCtrl \
+ ex_notebook \
+ ex_pickers \
+ ex_popupMenu \
+ ex_radioBox \
+ ex_sashWindow \
+ ex_sizers \
+ ex_slider \
+ ex_splitterWindow \
+ ex_static \
+ ex_textCtrl \
+ ex_treeCtrl \
+ ex_graphicsContext
+
+
+TESTTARGETS = $(TESTMODS:%=%.beam)
+TESTSRC = $(TESTMODS:%=%.erl)
+
+# Targets
+opt debug: $(TESTTARGETS)
+clean:
+ rm -f $(TESTTARGETS)
+ rm -f *~ core erl_crash.dump
+
+docs:
+
+run: opt
+ erl -smp -detached -pa $(TOPDIR)/ebin -s demo
+
+ifneq ($(INSIDE_ERLSRC),true)
+
+%.beam: %.erl
+ $(ERLC) -W -I$(ERLINC) -bbeam -o$(BIN) $<
+
+else
+EXRELSYSDIR = $(RELSYSDIR)/examples/demo
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+docs:
+
+release_spec:
+ $(INSTALL_DIR) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTSRC) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTTARGETS) $(EXRELSYSDIR)
+ $(INSTALL_DATA) image.jpg erlang.png ex_htmlWindow.html $(EXRELSYSDIR)
+
+release_tests_spec:
+
+release_docs_spec:
+
+endif
+
+
+
diff --git a/lib/wx/examples/demo/demo.erl b/lib/wx/examples/demo/demo.erl
new file mode 100644
index 0000000000..59c20e09fb
--- /dev/null
+++ b/lib/wx/examples/demo/demo.erl
@@ -0,0 +1,363 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% This is example of the widgets and usage of wxErlang
+%% Hopefully it will contain all implemented widgets, it's event handling
+%% and some tutorials of how to use sizers and other stuff.
+
+-module(demo).
+
+-include_lib("wx/include/wx.hrl").
+
+-behaviour(wx_object).
+-export([start/0, start/1, start_link/0, start_link/1, format/3,
+ init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+
+-record(state, {win, demo, example, selector, log, code}).
+
+start() ->
+ start([]).
+
+start(Debug) ->
+ wx_object:start(?MODULE, Debug, []).
+
+start_link() ->
+ start_link([]).
+
+start_link(Debug) ->
+ wx_object:start_link(?MODULE, Debug, []).
+
+format(Config,Str,Args) ->
+ Log = proplists:get_value(log, Config),
+ wxTextCtrl:appendText(Log, io_lib:format(Str, Args)),
+ ok.
+
+-define(DEBUG_NONE, 101).
+-define(DEBUG_VERBOSE, 102).
+-define(DEBUG_TRACE, 103).
+-define(DEBUG_DRIVER, 104).
+
+init(Options) ->
+ wx:new(Options),
+ process_flag(trap_exit, true),
+
+ Frame = wxFrame:new(wx:null(), ?wxID_ANY, "wxErlang widgets", [{size,{1000,500}}]),
+ MB = wxMenuBar:new(),
+ File = wxMenu:new([]),
+ wxMenu:append(File, ?wxID_PRINT, "&Print code"),
+ wxMenu:appendSeparator(File),
+ wxMenu:append(File, ?wxID_EXIT, "&Quit"),
+ Debug = wxMenu:new([]),
+ wxMenu:appendRadioItem(Debug, ?DEBUG_NONE, "None"),
+ wxMenu:appendRadioItem(Debug, ?DEBUG_VERBOSE, "Verbose"),
+ wxMenu:appendRadioItem(Debug, ?DEBUG_TRACE, "Trace"),
+ wxMenu:appendRadioItem(Debug, ?DEBUG_DRIVER, "Driver"),
+ Help = wxMenu:new([]),
+ wxMenu:append(Help, ?wxID_HELP, "Help"),
+ wxMenu:append(Help, ?wxID_ABOUT, "About"),
+ wxMenuBar:append(MB, File, "&File"),
+ wxMenuBar:append(MB, Debug, "&Debug"),
+ wxMenuBar:append(MB, Help, "&Help"),
+ wxFrame:setMenuBar(Frame,MB),
+
+ wxFrame:connect(Frame, command_menu_selected),
+
+ _SB = wxFrame:createStatusBar(Frame,[]),
+
+ %% T Uppersplitter
+ %% O Left | Right
+ %% P Widgets|Code | Demo
+ %% S -------------------------------
+ %% P Log Window
+ TopSplitter = wxSplitterWindow:new(Frame, [{style, ?wxSP_NOBORDER}]),
+ UpperSplitter = wxSplitterWindow:new(TopSplitter, [{style, ?wxSP_NOBORDER}]),
+ LeftSplitter = wxSplitterWindow:new(UpperSplitter, [{style, ?wxSP_NOBORDER}]),
+ %% Setup so that sizers and initial sizes, resizes the windows correct
+ wxSplitterWindow:setSashGravity(TopSplitter, 0.5),
+ wxSplitterWindow:setSashGravity(UpperSplitter, 0.60),
+ wxSplitterWindow:setSashGravity(LeftSplitter, 0.20),
+
+ %% LeftSplitter:
+ Example = fun(Beam) ->
+ "ex_" ++ F = filename:rootname(Beam),
+ F
+ end,
+ Mods = [Example(F) || F <- filelib:wildcard("ex_*.beam")],
+
+ CreateLB = fun(Parent) ->
+ wxListBox:new(Parent, ?wxID_ANY,
+ [{style, ?wxLB_SINGLE},
+ {choices, Mods}])
+ end,
+ {LBPanel, [LB],_} = create_subwindow(LeftSplitter, "Example", [CreateLB]),
+ wxListBox:setSelection(LB, 0),
+ wxListBox:connect(LB, command_listbox_selected),
+
+ CreateCode = fun(Parent) ->
+ code_area(Parent)
+ end,
+ {CodePanel, [Code],_} = create_subwindow(LeftSplitter, "Code", [CreateCode]),
+
+ wxSplitterWindow:splitVertically(LeftSplitter, LBPanel, CodePanel,
+ [{sashPosition,150}]),
+
+ %% Demo:
+ {DemoPanel, [], DemoSz} = create_subwindow(UpperSplitter, "Demo", []),
+
+ %% UpperSplitter:
+ wxSplitterWindow:splitVertically(UpperSplitter, LeftSplitter, DemoPanel,
+ [{sashPosition,600}]),
+
+ %% TopSplitter:
+ AddEvent = fun(Parent) ->
+ EventText = wxTextCtrl:new(Parent,
+ ?wxID_ANY,
+ [{style, ?wxTE_DONTWRAP bor
+ ?wxTE_MULTILINE bor ?wxTE_READONLY}
+ ]),
+ wxTextCtrl:appendText(EventText, "Welcome\n"),
+ EventText
+ end,
+
+ {EvPanel, [EvCtrl],_} = create_subwindow(TopSplitter, "Events", [AddEvent]),
+
+ wxSplitterWindow:splitHorizontally(TopSplitter, UpperSplitter, EvPanel,
+ [{sashPosition,-100}]),
+
+ wxFrame:show(Frame),
+
+ State = #state{win=Frame, demo={DemoPanel,DemoSz}, selector=LB, log=EvCtrl, code=Code},
+ %% Load the first example:
+ Ex = wxListBox:getStringSelection(LB),
+ process_flag(trap_exit, true),
+ ExampleObj = load_example(Ex, State),
+ wxSizer:add(DemoSz, ExampleObj, [{proportion,1}, {flag, ?wxEXPAND}]),
+ wxSizer:layout(DemoSz),
+
+ %% The windows should be set up now, Reset Gravity so we get what we want
+ wxSplitterWindow:setSashGravity(TopSplitter, 1.0),
+ wxSplitterWindow:setSashGravity(UpperSplitter, 0.0),
+ wxSplitterWindow:setSashGravity(LeftSplitter, 0.0),
+ wxSplitterWindow:setMinimumPaneSize(TopSplitter, 1),
+ wxSplitterWindow:setMinimumPaneSize(UpperSplitter, 1),
+ wxSplitterWindow:setMinimumPaneSize(LeftSplitter, 1),
+
+ wxToolTip:enable(true),
+ wxToolTip:setDelay(500),
+
+ {Frame, State#state{example=ExampleObj}}.
+
+create_subwindow(Parent, BoxLabel, Funs) ->
+ Panel = wxPanel:new(Parent),
+ Sz = wxStaticBoxSizer:new(?wxVERTICAL, Panel, [{label, BoxLabel}]),
+ wxPanel:setSizer(Panel, Sz),
+ Ctrls = [Fun(Panel) || Fun <- Funs],
+ [wxSizer:add(Sz, Ctrl, [{proportion, 1}, {flag, ?wxEXPAND}])
+ || Ctrl <- Ctrls],
+ {Panel, Ctrls, Sz}.
+
+%%%%%%%%%%%%
+%% Callbacks
+
+%% Handled as in normal gen_server callbacks
+handle_info({'EXIT',_, wx_deleted}, State) ->
+ {noreply,State};
+handle_info({'EXIT',_, normal}, State) ->
+ {noreply,State};
+handle_info(Msg, State) ->
+ io:format("Got Info ~p~n",[Msg]),
+ {noreply,State}.
+
+handle_call(Msg, _From, State) ->
+ io:format("Got Call ~p~n",[Msg]),
+ {reply,ok,State}.
+
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event=#wxCommand{type=command_listbox_selected, cmdString=Ex}},
+ State = #state{demo={_,DemoSz}, example=Example, code=Code}) ->
+ case Ex of
+ [] ->
+ {noreply, State};
+ _ ->
+ wxSizer:detach(DemoSz, Example),
+ wxWindow:destroy(Example),
+ unload_code(Code),
+ NewExample = load_example(Ex, State),
+ wxSizer:add(DemoSz, NewExample, [{proportion,1}, {flag, ?wxEXPAND}]),
+ wxSizer:layout(DemoSz),
+ {noreply, State#state{example=NewExample}}
+ end;
+handle_event(#wx{id = Id,
+ event = #wxCommand{type = command_menu_selected}},
+ State = #state{}) ->
+ case Id of
+ ?wxID_PRINT ->
+ %% If you are going to printout mainly text it is easier if
+ %% you generate HTML code and use a wxHtmlEasyPrint
+ %% instead of using DCs
+ Module = "ex_" ++ wxListBox:getStringSelection(State#state.selector) ++ ".erl",
+ HEP = wxHtmlEasyPrinting:new([{name, "Print"},
+ {parentWindow, State#state.win}]),
+ Html = demo_html_tagger:erl2htmltext(Module),
+ wxHtmlEasyPrinting:previewText(HEP, Html),
+ {noreply, State};
+ ?DEBUG_TRACE ->
+ wx:debug(trace),
+ {noreply, State};
+ ?DEBUG_DRIVER ->
+ wx:debug(driver),
+ {noreply, State};
+ ?DEBUG_VERBOSE ->
+ wx:debug(verbose),
+ {noreply, State};
+ ?DEBUG_NONE ->
+ wx:debug(none),
+ {noreply, State};
+ ?wxID_HELP ->
+ wx_misc:launchDefaultBrowser("http://www.erlang.org/doc/apps/wx/part_frame.html"),
+ {noreply, State};
+ ?wxID_ABOUT ->
+ AboutString =
+ "Demo of various widgets\n"
+ "Authors: Olle & Dan",
+ wxMessageDialog:showModal(wxMessageDialog:new(State#state.win, AboutString,
+ [{style,
+ ?wxOK bor
+ ?wxICON_INFORMATION bor
+ ?wxSTAY_ON_TOP},
+ {caption, "About"}])),
+ {noreply, State};
+ ?wxID_EXIT ->
+ wx_object:get_pid(State#state.example) ! stop,
+ {stop, normal, State};
+ _ ->
+ {noreply, State}
+ end;
+handle_event(#wx{event=#wxClose{}}, State = #state{win=Frame}) ->
+ io:format("~p Closing window ~n",[self()]),
+ ok = wxFrame:setStatusText(Frame, "Closing...",[]),
+ {stop, normal, State};
+handle_event(Ev,State) ->
+ io:format("~p Got event ~p ~n",[?MODULE, Ev]),
+ {noreply, State}.
+
+code_change(_, _, State) ->
+ {stop, not_yet_implemented, State}.
+
+terminate(_Reason, State) ->
+ wx_object:get_pid(State#state.example) ! stop,
+ timer:sleep(200), %% Give the example process some time to cleanup.
+ wx:destroy().
+
+%%%%%%%%%%%%%%%%% Internals %%%%%%%%%%
+
+load_example(Ex, #state{demo={DemoPanel,DemoSz}, log=EvCtrl, code=Code}) ->
+ ModStr = "ex_" ++ Ex,
+ Mod = list_to_atom(ModStr),
+%% WxDir = code:lib_dir(wx),
+%% ModFile = filename:join([WxDir, "examples","demo", ModStr ++ ".erl"]),
+ ModFile = ModStr ++ ".erl",
+ load_code(Code, file:read_file(ModFile)),
+ find(Code),
+ Mod:start([{parent, DemoPanel}, {demo_sz, DemoSz}, {log, EvCtrl}]).
+
+-define(stc, wxStyledTextCtrl).
+
+code_area(Parent) ->
+ FixedFont = wxFont:new(10, ?wxFONTFAMILY_TELETYPE, ?wxNORMAL, ?wxNORMAL,[]),
+ Ed = wxStyledTextCtrl:new(Parent),
+
+ ?stc:styleClearAll(Ed),
+ ?stc:styleSetFont(Ed, ?wxSTC_STYLE_DEFAULT, FixedFont),
+ ?stc:setLexer(Ed, ?wxSTC_LEX_ERLANG),
+ ?stc:setMarginType(Ed, 0, ?wxSTC_MARGIN_NUMBER),
+ LW = ?stc:textWidth(Ed, ?wxSTC_STYLE_LINENUMBER, "9"),
+ ?stc:setMarginWidth(Ed, 0, LW),
+ ?stc:setMarginWidth(Ed, 1, 0),
+
+ ?stc:setSelectionMode(Ed, ?wxSTC_SEL_LINES),
+ %%?stc:hideSelection(Ed, true),
+
+ Styles = [{?wxSTC_ERLANG_DEFAULT, {0,0,0}},
+ {?wxSTC_ERLANG_COMMENT, {160,53,35}},
+ {?wxSTC_ERLANG_VARIABLE, {150,100,40}},
+ {?wxSTC_ERLANG_NUMBER, {5,5,100}},
+ {?wxSTC_ERLANG_KEYWORD, {130,40,172}},
+ {?wxSTC_ERLANG_STRING, {170,45,132}},
+ {?wxSTC_ERLANG_OPERATOR, {30,0,0}},
+ {?wxSTC_ERLANG_ATOM, {0,0,0}},
+ {?wxSTC_ERLANG_FUNCTION_NAME, {64,102,244}},
+ {?wxSTC_ERLANG_CHARACTER,{236,155,172}},
+ {?wxSTC_ERLANG_MACRO, {40,144,170}},
+ {?wxSTC_ERLANG_RECORD, {40,100,20}},
+ {?wxSTC_ERLANG_SEPARATOR,{0,0,0}},
+ {?wxSTC_ERLANG_NODE_NAME,{0,0,0}}],
+ SetStyle = fun({Style, Color}) ->
+ ?stc:styleSetFont(Ed, Style, FixedFont),
+ ?stc:styleSetForeground(Ed, Style, Color)
+ end,
+ [SetStyle(Style) || Style <- Styles],
+ ?stc:setKeyWords(Ed, 0, keyWords()),
+
+ %% Scrolling
+ Policy = ?wxSTC_CARET_SLOP bor ?wxSTC_CARET_JUMPS bor ?wxSTC_CARET_EVEN,
+ ?stc:setYCaretPolicy(Ed, Policy, 3),
+ ?stc:setVisiblePolicy(Ed, Policy, 3),
+
+ %% ?stc:connect(Ed, stc_doubleclick),
+ ?stc:setReadOnly(Ed, true),
+ Ed.
+
+load_code(Ed, {ok, Code}) ->
+ ?stc:setReadOnly(Ed, false),
+ ?stc:setTextRaw(Ed, <<Code/binary, 0:8>>),
+ Lines = ?stc:getLineCount(Ed),
+ Sz = trunc(math:log10(Lines))+1,
+ LW = ?stc:textWidth(Ed, ?wxSTC_STYLE_LINENUMBER, lists:duplicate(Sz, $9)),
+ %%io:format("~p ~p ~p~n", [Lines, Sz, LW]),
+ ?stc:setMarginWidth(Ed, 0, LW+5),
+ ?stc:setReadOnly(Ed, true),
+ Ed.
+
+unload_code(Ed) ->
+ ?stc:setReadOnly(Ed, false),
+ ?stc:setTextRaw(Ed, <<0:8>>),
+ ?stc:setReadOnly(Ed, true),
+ Ed.
+
+find(Ed) ->
+ ?stc:searchAnchor(Ed),
+ Res = ?stc:searchNext(Ed, ?wxSTC_FIND_REGEXP, "^init"),
+ case Res >= 0 of
+ true ->
+ %% io:format("Found ~p ~n",[Res]),
+ ?stc:scrollToLine(Ed,?stc:lineFromPosition(Ed,Res) - 1),
+ true;
+ false ->
+ io:format("Not Found ~s ~n",["^init"]),
+ false
+ end.
+
+keyWords() ->
+ L = ["after","begin","case","try","cond","catch","andalso","orelse",
+ "end","fun","if","let","of","query","receive","when","bnot","not",
+ "div","rem","band","and","bor","bxor","bsl","bsr","or","xor"],
+ lists:flatten([K ++ " " || K <- L] ++ [0]).
+
diff --git a/lib/wx/examples/demo/demo_html_tagger.erl b/lib/wx/examples/demo/demo_html_tagger.erl
new file mode 100644
index 0000000000..9b6d1fd950
--- /dev/null
+++ b/lib/wx/examples/demo/demo_html_tagger.erl
@@ -0,0 +1,534 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(demo_html_tagger).
+
+%% You will notice that this program has very few type declarations
+%% That's because this program uses some pretty dodgy techniques to
+%% get at the data it requires.
+
+%% I use epp_dodger to parse the file and the new imporved erl_scan
+%% find the exact values of the tokens
+
+%% epp_dodger returns an objects of type erl_syntax which are pretty
+%% nasty buggers. We could write the types out but it would hardly
+%% help.
+
+%% to test run
+
+%%-compile(export_all).
+
+
+-export([erl2htmltext/1, erl2htmlfile/1]).
+
+erl2htmltext(File) ->
+ try
+ erl2html0(File)
+ catch
+ What:Why ->
+ io:format("error in:~s ~p ~p~n",[File,What,Why])
+ end.
+
+erl2htmlfile(File) ->
+ try
+ Text = erl2html0(File),
+ Root = filename:basename(filename:rootname(File)),
+ Out = "./html/" ++ Root ++ ".html",
+ file:write_file(Out, [Text])
+ catch
+ What:Why ->
+ io:format("error in:~s ~p ~p~n",[File,What,Why])
+ end.
+
+
+splitErlang(File) ->
+ {ok, Forms} = dodge_file(File),
+ {Anchors, Patches} = analyse(Forms),
+ Raw = read_raw_forms(File),
+ Raw1 = merge_anchors(Anchors, Raw),
+ Raw2 = merge_forms(Raw1, Patches, []),
+ Rtf = [final(I) || I <- Raw2],
+ {taggedBlocks, Rtf}.
+
+erl2html0(File) ->
+ Tb = splitErlang(File),
+ Html = to_html(Tb),
+ prelude(Html).
+
+merge_forms([{Tag,L1}|T], Patches, L) ->
+ {L2, Patches1} = apply_patches(L1, Patches),
+ merge_forms(T, Patches1, [{Tag,L2}|L]);
+merge_forms([], _, L) ->
+ lists:reverse(L).
+
+apply_patches(Toks, []) ->
+ %% we've run out of patches but we must still simplify
+ %% every term
+ {[simplify(I) || I <- Toks], []};
+apply_patches(Toks, Patches) ->
+ apply_patches(Toks, Patches, []).
+
+apply_patches([{atom,Ln,Val}=A|T], Patches, L) ->
+ case do_patch(Ln, Patches) of
+ {yes, New, Patches1} ->
+ New1 = reformat(New, Val),
+ apply_patches(T, Patches1, [New1|L]);
+ {no, Patches1} ->
+ apply_patches(T, Patches1, [simplify(A)|L])
+ end;
+apply_patches([H|T], Patches, L) ->
+ apply_patches(T, Patches, [simplify(H)|L]);
+apply_patches([], Patches, L) ->
+ {lists:reverse(L), Patches}.
+
+
+simplify({atom,_,Str}) ->
+ case (catch list_to_existing_atom(Str)) of
+ {'EXIT', _} ->
+ {atom, Str};
+ A ->
+ case is_keyword(A) of
+ true -> {keyword, Str};
+ false ->
+ {atom, Str}
+ end
+ end;
+simplify({dot,_,Str}) ->
+ {terminal, Str};
+simplify({Tag,_,Str}) ->
+ case is_keyword(Tag) of
+ true ->
+ {keyword, Str};
+ false ->
+ case is_terminal(Tag) of
+ true ->
+ {terminal, Str};
+ false ->
+ {Tag, Str}
+ end
+ end;
+simplify(X) ->
+ io:format("simplify wtfit:~p~n",[X]),
+ X.
+
+do_patch(Ln, [{Ln,Tag}|P]) -> {yes, Tag, P};
+do_patch(Ln, [{Ln1,_}|_] = P) when Ln1 > Ln -> {no, P};
+do_patch(Ln, [_|T]) -> do_patch(Ln, T);
+do_patch(_, []) -> {no, []}.
+
+reformat({local,{F,A}}, Str) -> {local,F,A,Str};
+reformat({remote,M,F,A}, Str) -> {remote,M,F,A,Str};
+reformat({remote,{M,F,A}}, Str) -> {remote,M,F,A,Str};
+reformat({bif,{F,A}}, Str) -> {bif,F,A,Str};
+reformat(Tag, Str) ->
+ io:format("reformat*:~p ~p~n",[Tag,Str]),
+ {Tag,Str}.
+
+to_html({taggedBlocks, L}) ->
+ [[anchor1(Anchor),to_html(Body)] || {Anchor,Body} <- L];
+to_html({taggedToks, L}) ->
+ [to_html1(I) || I <- L].
+
+anchor1({func, F, A}) ->
+ ["<a name='",linkname(F,A),"'></a>"];
+anchor1({specification, F, A}) ->
+ ["<a name='",linkname(F,A),"'></a>"];
+anchor1(_X) ->
+ "".
+
+linkname(F, A) when is_atom(F) ->
+ a2s(F) ++ "-" ++ integer_to_list(A);
+linkname(F, A) when is_list(F) ->
+ F ++ "-" ++ integer_to_list(A).
+
+a2s(A) ->
+ atom_to_list(A).
+
+font(C, S) ->
+ ["<font color=\"", C, "\">", htmlquote(S), "</font>"].
+
+htmlquote("<" ++ T) -> ["&lt;"|htmlquote(T)];
+htmlquote([H|T]) -> [H|htmlquote(T)];
+htmlquote([]) -> [].
+
+to_html1({white_space,V}) -> V;
+to_html1({comment, V}) -> font("#B22222", V);
+to_html1({var,V}) -> font("orange", V);
+to_html1({string,V}) -> font("#FA8072", V);
+to_html1({integer,V}) -> font("#1111AA", V);
+to_html1({bif,_F,_A,Str}) -> font("#FF00FF", Str);
+to_html1({keyword, V}) -> font("#FF00FF", V);
+to_html1({atom, V}) -> V;
+to_html1({terminal,V}) -> V;
+to_html1({char,V}) -> V;
+to_html1({float,V}) -> V;
+to_html1({anchor,F,A}) ->
+ ["<a name='",linkname(F,A),"'></a>"];
+to_html1({local,F,A,Str}) ->
+ ["<a href='#",linkname(F,A),"'>",
+ htmlquote(Str),"</a>"];
+to_html1({remote,_M,_F,_A,Str}) ->
+ %%["<a href='",htmlname(M), "#",linkname(F,A),"'>",htmlquote(Str),"</a>"],
+ Str.
+
+%% merge the anchors
+%% there should be one block per anchor
+%% we check the containing form (for safety)
+
+%% merge_anchors([{_,{file,_}}|A], B) ->
+%% merge_anchors(A, B);
+merge_anchors([{Tag,Val}=H|A], [B|T]) ->
+ case contains(Tag, B) of
+ true ->
+ [{Val,B}|merge_anchors(A, T)];
+ false ->
+ io:format("Logic error: H=~p B=~p~n",[H,B]),
+ exit(1)
+ end;
+merge_anchors([], []) -> [];
+merge_anchors([], [X]) ->
+ %% this is the last block -
+ %% trailing white space and comments have no tag
+ %% because eos is not a tag ...
+ [{eof, X}];
+merge_anchors(X, Y) ->
+ io:format("ops:~p~n",[{X,Y}]),
+ [].
+
+contains(Loc, [{_,Loc,_}|_]) -> true;
+contains(Loc, [_|T]) -> contains(Loc, T);
+contains(_, []) -> false.
+
+
+dodge_file(File) ->
+ case file:open(File, [read]) of
+ {ok, Handle} ->
+ {ok, F} = epp_dodger:parse(Handle, {1,1}),
+ file:close(Handle),
+ L = [revert_forms(I) || I <- F],
+ {ok, L};
+ Error ->
+ Error
+ end.
+
+revert_forms(F) ->
+ case erl_syntax:is_form(F) of
+ true ->
+ %% revert fails on ifdef ... etc
+ case (catch erl_syntax:revert(F)) of
+ {'EXIT', _Why} ->
+ io:format("error reverting:~p=~p~n",[F,_Why]),
+ F;
+ Other ->
+ Other
+ end;
+ false ->
+ io:format("uugh:~p~n",[F])
+ end.
+
+%% read up to dot
+%% read_raw_forms(File) -> [form()]
+%% form() = [tok()]
+%% tok() = {Type,{Line::int,Col::int},string}
+%% Type = atom | int | var | string ...
+
+read_raw_forms(File) ->
+ {ok, Bin} = file:read_file(File),
+ Str = binary_to_list(Bin),
+ loop(erl_scan:tokens([], Str, {1,1}, [return,text]), []).
+
+loop({done, {eof,_}, eof}, L) ->
+ lists:reverse(L);
+loop({done, {ok, Toks, _}, eof}, L) ->
+ lists:reverse([normalize_toks(Toks)|L]);
+loop({done, {ok, Toks, Ln}, Str1}, L) ->
+ loop(erl_scan:tokens([], Str1, Ln, [return,text]),
+ [normalize_toks(Toks)|L]);
+loop({more, X}, L) ->
+ loop(erl_scan:tokens(X, eof, {1,1}, [return,text]), L).
+
+normalize_toks(Toks) ->
+ [normalize_tok(I) || I <- Toks].
+
+normalize_tok(Tok) ->
+ %% this is the portable way ...
+ [{_,Type},{_,Line},{_,Col},{_,Txt}] =
+ erl_scan:token_info(Tok, [category,line,column,text]),
+ Val = {Type,{Line,Col},Txt},
+ %% io:format("here:X=~p ~p~n",[Tok,Val]),
+ Val.
+
+
+%% analse the result of dodge_file
+
+analyse(Forms) ->
+ Calls = calls(Forms),
+ Anchors = compute_anchors(Forms),
+ Imports = [{{F,A},Mod} ||
+ {attribute,_,import,{Mod,L}} <- Forms, {F,A} <- L],
+ D = dict:from_list(Imports),
+ Patches = [{Loc, resolve(X, D)} || {Loc, X} <- Calls],
+ {Anchors, Patches}.
+
+%% An anchor is something that is placed at the start of every form
+%% The anchor is named after the first item in the form
+%% compute_anchors(Forms) -> [{{Line,Col}, anchor()}]
+%% {Line,Col} is the line and column of where the
+%% form starts - this is not the same as the first token in
+%% the form since we might have skipped comments and white space
+%% at the start of the form.
+%% anchor() is a term decscribing the anchor
+%% anchor(() = {func,Name,Aritry} (for functions)
+%% |
+%% | {Type,{Line,Col}} anythis else
+
+compute_anchors(Forms) ->
+ A1 = [anchor0(I) || I <- Forms],
+ merge_specs(A1).
+
+%% If a specification is immediately followed by
+%% a function when we promote the function anchor to point
+%% at the specification.
+%% We change the second tag to func2 - because we still want a
+%% tag for every block
+
+merge_specs([{_Ln1,{specification,F,A}}=H,{Ln2, {func,F,A}}|T]) ->
+ [H,{Ln2,{func1,F,A}}|merge_specs(T)];
+merge_specs([H|T]) ->
+ [H|merge_specs(T)];
+merge_specs([]) ->
+ [].
+
+anchor0(I) ->
+ case anchor(I) of
+ {{Line,Col,_,_}, Val} ->
+ {{Line,Col}, Val};
+ {{_,_}, _} = X ->
+ X
+ end.
+
+anchor({function, Ln, F, A, _}) -> {Ln, {func, F, A}};
+anchor({attribute,Ln,'spec', {{F,A},_}}) ->
+ {Ln, {specification,F,A}};
+anchor({attribute,Ln,module, M}) ->
+ {Ln, {module,M}};
+anchor({attribute,Ln,Type,_}) -> {Ln, {Type, Ln}};
+anchor({eof,Ln}) -> {Ln, eof};
+anchor({error,{Ln,_,_}}) ->
+ %% Ln is in a different format in errors (sigh)
+ {Line, Col} = Ln,
+ Ln1 = {Line,Col,0,""},
+ {Ln1, {error, Ln}};
+anchor({tree,attribute,{attr,{_,_,_,Type}=Ln,_,_},_}) ->
+ {Ln, {attribute,Type,Ln}};
+anchor({tree,attribute,_,
+ {attribute, {atom,Ln,Type}, _}}) ->
+ {Ln, {attribute,Type,Ln}};
+anchor({tree,attribute,
+ {attr,Ln,[],none},
+ _}=X) ->
+ io:format("FIX ME this is a bug????:~p~n",[X]),
+ {Ln, {other, Ln}};
+anchor(X) ->
+ %% this is some syntactic form that I don't know
+ %% about yet ...
+ io:format("FIX ME this is a bug????:~p~n",[X]),
+ exit(1).
+
+resolve({F,A}=Tup, D) ->
+ case dict:find({F,A}, D) of
+ {ok, Mod} ->
+ {remote,Mod,F,A};
+ error ->
+ case erlang:is_builtin(erlang, F, A) of
+ true -> {bif, {F,A}};
+ false -> {local,Tup}
+ end
+ end;
+resolve({erlang,F,A}, _) ->
+ {bif,{F,A}};
+resolve({anchor,_,_}=A, _) ->
+ A;
+resolve(X, _D) ->
+ {remote, X}.
+
+calls(X) -> lists:reverse(calls(X, [])).
+
+calls({call,_,{atom,Ln,Func},Args}, L) ->
+ calls(Args, [{normalise(Ln),{Func,length(Args)}}|L]);
+calls({call,_,{remote,_,{atom,Ln1,Mod},{atom,_Ln2,Func}}, Args}, L) ->
+ calls(Args, [{normalise(Ln1),{Mod,Func,length(Args)}}|L]);
+calls(T, L) when is_tuple(T) ->
+ calls(tuple_to_list(T), L);
+calls([], L) ->
+ L;
+calls(T, L) when is_list(T) ->
+ lists:foldl(fun calls/2, L, T);
+calls(_, L) ->
+ L.
+
+normalise({_Line,_Col}=X) ->
+ X;
+normalise({Line,Col,_Len,_Text}) ->
+ {Line, Col}.
+
+
+prelude(L) ->
+ ["<html>\n"
+ "<head>\n"
+ "</head>\n"
+ "<body>\n"
+ "<ul><pre>\n",L,"\n</pre></ul></body>"].
+
+
+final({Tag, Toks}) ->
+ {Tag, {taggedToks, final1(Tag, Toks)}}.
+
+final1({Tag,_,_}, Toks) when Tag =:= func; Tag =:= func1 ->
+ %% io:format("fix_remote:~p~n",[Toks]),
+ fix_remote(Toks);
+final1({export,_}, Toks) ->
+ fix_exports(Toks);
+final1({import,_}, Toks) ->
+ fix_imports(Toks);
+final1(_, Toks) ->
+ %% io:format("final:~p~n",[X]),
+ Toks.
+
+
+fix_imports(Toks) ->
+ %% io:format("fix imports:~p~n",[Toks]),
+ Mod = find_imported_module(Toks),
+ %% io:format("Mod =~p~n",[Mod]),
+ fix_imports(Toks, Mod).
+
+fix_imports([{atom,A},{terminal,"/"},{integer,N}|T], Mod) ->
+ [{remote, Mod,A,list_to_integer(N),A++"/"++N}|
+ fix_imports(T, Mod)];
+fix_imports([H|T], Mod) ->
+ [H|fix_imports(T, Mod)];
+fix_imports([], _) ->
+ [].
+
+%% skip to the atom import, then take the first atom after import
+find_imported_module([{atom,"import"}|T]) -> find_imported_module1(T);
+find_imported_module([_|T]) -> find_imported_module(T).
+
+find_imported_module1([{atom,M}|_]) -> list_to_atom(M);
+find_imported_module1([_|T]) -> find_imported_module1(T).
+
+%% won't work if there is white space between the symbols
+%% fix later
+
+fix_exports([{atom,A},{terminal,"/"},{integer,N}|T]) ->
+ [{local,A,list_to_integer(N),A++"/"++N}|fix_exports(T)];
+fix_exports([H|T]) ->
+ [H|fix_exports(T)];
+fix_exports([]) ->
+ [].
+
+%% fix_remote merges Mod : Func into a single string
+%% the problem is that
+%% we only tag the first atom in a remote call mod:func(...)
+%% mod is tagged as remote - but we want to
+%% extend the tagging to include the entire mod:func
+%% call ...
+
+fix_remote([{remote,M,F,A,Str},{terminal,":"},{atom,Str1}|T]) ->
+ [{remote,M,F,A,Str ++ ":" ++ Str1}|fix_remote(T)];
+fix_remote([{remote,M,F,A,Str},{white_space,S1},{terminal,":"},{atom,Str1}|T]) ->
+ [{remote,M,F,A,Str ++ S1 ++ ":" ++ Str1}|fix_remote(T)];
+fix_remote([{remote,M,F,A,Str},{white_space,S1},{terminal,":"},{white_space,S2},{atom,Str1}|T]) ->
+ [{remote,M,F,A,Str ++ S1 ++ ":" ++ S2 ++ Str1}|fix_remote(T)];
+fix_remote([{remote,M,F,A,Str},{terminal,":"},{white_space,S2},{atom,Str1}|T]) ->
+ [{remote,M,F,A,Str ++ ":" ++ S2 ++ Str1}|fix_remote(T)];
+fix_remote([H|T]) ->
+ [H|fix_remote(T)];
+fix_remote([]) ->
+ [].
+
+-spec is_keyword(atom()) -> bool().
+
+is_keyword('after' ) -> true;
+is_keyword('and') -> true;
+is_keyword('andalso' ) -> true;
+is_keyword('band' ) -> true;
+is_keyword('begin' ) -> true;
+is_keyword('bnot' ) -> true;
+is_keyword('bor' ) -> true;
+is_keyword('bsl' ) -> true;
+is_keyword('bsr' ) -> true;
+is_keyword('bxor' ) -> true;
+is_keyword('case' ) -> true;
+is_keyword('catch' ) -> true;
+is_keyword('cond') -> true;
+is_keyword('div' ) -> true;
+is_keyword('end' ) -> true;
+is_keyword('fun' ) -> true;
+is_keyword('if' ) -> true;
+is_keyword('not') -> true;
+is_keyword('of' ) -> true;
+is_keyword('or' ) -> true;
+is_keyword('orelse' ) -> true;
+is_keyword('query' ) -> true;
+is_keyword('receive' ) -> true;
+is_keyword('rem' ) -> true;
+is_keyword('spec') -> true;
+is_keyword('try' ) -> true;
+is_keyword('when') -> true;
+is_keyword('xor') -> true;
+is_keyword(_) -> false.
+
+is_terminal('!') -> true;
+is_terminal('#') -> true;
+is_terminal('(') -> true;
+is_terminal(')') -> true;
+is_terminal('*') -> true;
+is_terminal('+') -> true;
+is_terminal('++') -> true;
+is_terminal(',') -> true;
+is_terminal('-') -> true;
+is_terminal('--') -> true;
+is_terminal('->') -> true;
+is_terminal('.') -> true;
+is_terminal('/') -> true;
+is_terminal('/=') -> true;
+is_terminal(':') -> true;
+is_terminal(':-') -> true;
+is_terminal('::') -> true;
+is_terminal(';') -> true;
+is_terminal('<') -> true;
+is_terminal('<-') -> true;
+is_terminal('<<') -> true;
+is_terminal('<=') -> true;
+is_terminal('=') -> true;
+is_terminal('=/=') -> true;
+is_terminal('=:=') -> true;
+is_terminal('=<') -> true;
+is_terminal('==') -> true;
+is_terminal('>') -> true;
+is_terminal('>=') -> true;
+is_terminal('>>') -> true;
+is_terminal('?') -> true;
+is_terminal('[') -> true;
+is_terminal(']') -> true;
+is_terminal('{') -> true;
+is_terminal('|') -> true;
+is_terminal('||') -> true;
+is_terminal('}') -> true;
+is_terminal(_) -> false.
diff --git a/lib/wx/examples/demo/erlang.png b/lib/wx/examples/demo/erlang.png
new file mode 100644
index 0000000000..a5901103a3
--- /dev/null
+++ b/lib/wx/examples/demo/erlang.png
Binary files differ
diff --git a/lib/wx/examples/demo/ex_aui.erl b/lib/wx/examples/demo/ex_aui.erl
new file mode 100644
index 0000000000..6adfd970fc
--- /dev/null
+++ b/lib/wx/examples/demo/ex_aui.erl
@@ -0,0 +1,189 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_aui).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include("../../include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+-define(pi, wxAuiPaneInfo).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+
+ Manager = wxAuiManager:new([{managed_wnd, Panel}
+ ]),
+
+ Pane = ?pi:new(),
+ ?pi:closeButton(Pane),
+ ?pi:right(Pane),
+ ?pi:dockable(Pane, [{b, true}]),
+ ?pi:floatingSize(Pane, 300,200),
+ ?pi:minSize(Pane, {50,50}),
+ ?pi:paneBorder(Pane),
+ ?pi:floatable(Pane, [{b, true}]),
+
+ create_pane(Panel, Manager, Pane),
+ create_pane(Panel, Manager,
+ ?pi:caption(?pi:top(?pi:new(Pane)), "One")),
+ create_pane(Panel, Manager,
+ ?pi:caption(?pi:left(?pi:new(Pane)), "two")),
+ create_pane(Panel, Manager,
+ ?pi:caption(?pi:bottom(?pi:new(Pane)), "Three")),
+ Pane2 = wxAuiPaneInfo:new(Pane),
+ ?pi:centrePane(Pane2),
+ create_notebook(Panel, Manager, ?pi:new(Pane2)),
+
+ wxPanel:setSizer(Panel, MainSizer),
+
+ wxAuiManager:connect(Manager, aui_pane_button, [{skip,true}]),
+ wxAuiManager:connect(Manager, aui_pane_maximize, [{skip,true}]),
+ wxAuiManager:update(Manager),
+
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{obj = Notebook,
+ event = #wxCommand{type = command_button_clicked}},
+ State) ->
+ Tab = wxPanel:new(Notebook, []),
+ wxButton:new(Tab, ?wxID_ANY, [{label,"New tab"}]),
+ wxAuiNotebook:insertPage(Notebook, 1, Tab, "OMG TAB!! ", [{select, false}]),
+ {noreply, State};
+handle_event(#wx{obj = Notebook,
+ event = #wxAuiNotebook{type = command_auinotebook_page_changed,
+ selection = Sel}}, State) ->
+ demo:format(State#state.config, "You have changed page to ~p.\n",
+ [wxAuiNotebook:getPageText(Notebook, Sel)]),
+ {noreply, State};
+handle_event(#wx{event = #wxAuiNotebook{type = command_auinotebook_page_close}}, State) ->
+ demo:format(State#state.config, "You have closed a page.\n",[]),
+ {noreply, State};
+handle_event(#wx{event = #wxAuiManager{type = aui_pane_button,
+ button = Button}}, State) ->
+ case Button of
+ ?wxAUI_BUTTON_CLOSE ->
+ demo:format(State#state.config, "You have closed a pane.\n",[]);
+ ?wxAUI_BUTTON_MAXIMIZE_RESTORE ->
+ ok;
+ ?wxAUI_BUTTON_PIN ->
+ demo:format(State#state.config, "You have pinned a pane.\n",[])
+ end,
+ {noreply, State};
+handle_event(#wx{event = #wxAuiManager{type = aui_pane_maximize}}, State) ->
+ demo:format(State#state.config, "You have maximized a pane.\n",[]),
+ {noreply, State};
+handle_event(#wx{event = #wxAuiManager{type = aui_pane_restore}}, State) ->
+ demo:format(State#state.config, "You have restored a pane.\n",[]),
+ {noreply, State};
+handle_event(Ev = #wx{}, State) ->
+ io:format("~p\n", [Ev]),
+ {noreply, State}.
+
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+create_notebook(Parent, Manager, Pane) ->
+ Style = (0
+ bor ?wxAUI_NB_DEFAULT_STYLE
+ bor ?wxAUI_NB_TOP
+ bor ?wxAUI_NB_WINDOWLIST_BUTTON
+ bor ?wxAUI_NB_CLOSE_ON_ACTIVE_TAB
+ bor ?wxAUI_NB_TAB_MOVE
+ bor ?wxAUI_NB_SCROLL_BUTTONS
+ ),
+
+ Notebook = wxAuiNotebook:new(Parent, [{style, Style}]),
+
+ Tab1 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Tab1, ?wxBLACK),
+ wxButton:new(Tab1, ?wxID_ANY, [{label,"New tab"}]),
+ wxAuiNotebook:addPage(Notebook, Tab1, "You can", []),
+
+ Tab2 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Tab2, ?wxRED),
+ wxButton:new(Tab2, ?wxID_ANY, [{label,"New tab"}]),
+ wxAuiNotebook:addPage(Notebook, Tab2, "rearrange", []),
+
+ Tab3 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Tab3, ?wxGREEN),
+ wxButton:new(Tab3, ?wxID_ANY, [{label,"New tab"}]),
+ wxAuiNotebook:addPage(Notebook, Tab3, "these tabs", []),
+
+ wxAuiManager:addPane(Manager, Notebook, Pane),
+
+ wxAuiNotebook:connect(Notebook, command_button_clicked),
+ wxAuiNotebook:connect(Notebook, command_auinotebook_page_close, [{skip, false}]),
+ wxAuiNotebook:connect(Notebook, command_auinotebook_page_changed),
+ Notebook.
+
+
+create_pane(Parent, Manager, Pane) ->
+ TextCtrl = wxTextCtrl:new(Parent, ?wxID_ANY, [{size, {300,200}},
+ {value, "An empty pane"},
+ {style, 0
+ bor ?wxDEFAULT
+ bor ?wxTE_MULTILINE}]),
+ wxAuiManager:addPane(Manager, TextCtrl, Pane),
+ TextCtrl.
+
+
diff --git a/lib/wx/examples/demo/ex_button.erl b/lib/wx/examples/demo/ex_button.erl
new file mode 100644
index 0000000000..28c8273cb9
--- /dev/null
+++ b/lib/wx/examples/demo/ex_button.erl
@@ -0,0 +1,230 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% This is example of the widgets and usage of wxErlang
+%% Hopefully it will contain all implemented widgets, it's event handling
+%% and some tutorials of how to use sizers and other stuff.
+
+-module(ex_button).
+
+-include_lib("wx/include/wx.hrl").
+
+-behaviour(wx_object).
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxScrolledWindow:new(Parent),
+
+ %% Setup sizers
+ Sz = wxBoxSizer:new(?wxVERTICAL),
+ ButtSz = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "wxButton"}]),
+ AlignSz = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "Alignment Style"}]),
+ OtherSz = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "Other Styles"}]),
+ StockTopSz = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "Stock Buttons"}]),
+
+ B10 = wxButton:new(Panel, 10, [{label,"Normal"}]),
+ wxButton:setToolTip(B10, "Normal button with (default) centered label"),
+
+ B11 = wxToggleButton:new(Panel, 11, "Toggle Button"),
+ wxToggleButton:connect(B11, command_togglebutton_clicked),
+ wxButton:setToolTip(B11, "A toggle button"),
+
+ B12 = wxButton:new(Panel, 12, [{label,"Default"}]),
+ wxButton:setDefault(B12),
+ wxButton:setToolTip(B12, "Normal button set to be the default button"),
+
+ B13 = wxButton:new(Panel, 13, [{label,"Disabled"}]),
+ wxButton:disable(B13),
+ wxButton:setToolTip(B13, "Disabled Normal button"),
+
+ B14 = wxBitmapButton:new(Panel, 14, create_bitmap("A bitmap button")),
+ wxButton:setToolTip(B14, "A Bitmap button"),
+
+ %% Alignment and NO_BORDER only works on Win and GTK
+ %% according to docs.
+ B20 = wxButton:new(Panel, 20, [{label,"Left Aligned"},
+ {size, {100, -1}},
+ {style,?wxBU_LEFT}]),
+ wxButton:setToolTip(B20, "Normal button with left aligned label"),
+
+ B21 = wxButton:new(Panel, 21, [{label,"Top Aligned"},
+ {size, {-1, 50}},
+ {style,?wxBU_TOP}]),
+ wxButton:setToolTip(B21, "Normal button with top aligned label"),
+
+ B22 = wxButton:new(Panel, 22, [{label,"Lower Right Aligned"},
+ {size, {150, 50}},
+ {style,?wxBU_BOTTOM bor ?wxBU_RIGHT}]),
+ wxButton:setToolTip(B22, "Normal button with top right aligned label"),
+
+ %% Other types
+ B30 = wxButton:new(Panel, 30, [{label,"Flat Style"},
+ {style, ?wxNO_BORDER}]),
+ wxButton:setToolTip(B30, "Flat style button, on some OS'es"),
+
+ B31 = wxButton:new(Panel, 31, [{label,"Exact Fit"},
+ {style, ?wxBU_EXACTFIT}]),
+ wxButton:setToolTip(B31, "Minimal Size button"),
+
+ %% Stock Buttons
+ StockButts = [wxButton:new(Panel, Id) || Id <- stock_buttons()],
+
+ StockSz = wxGridSizer:new(0,5,3,3),
+
+ SzFlags = [{proportion, 0}, {border, 4}, {flag, ?wxALL}],
+ Expand = [{proportion, 0}, {border, 4}, {flag, ?wxALL bor
+ ?wxEXPAND}],
+ [wxSizer:add(ButtSz, Button, SzFlags) ||
+ Button <- [B10, B11, B12, B13, B14]],
+ [wxSizer:add(AlignSz, Button, SzFlags) || Button <- [B20,B21,B22]],
+ [wxSizer:add(OtherSz, Button, SzFlags) || Button <- [B30,B31]],
+ [wxSizer:add(StockSz, Butt, SzFlags) || Butt <- StockButts],
+ wxSizer:add(StockTopSz, StockSz, SzFlags),
+ [wxSizer:add(Sz, Button, Flag) ||
+ {Button, Flag} <- [{ButtSz,SzFlags},{AlignSz,Expand},
+ {OtherSz,Expand}, {StockTopSz, Expand}]],
+ wxWindow:connect(Panel, command_button_clicked),
+ wxWindow:setSizer(Panel, Sz),
+ wxSizer:layout(Sz),
+ wxScrolledWindow:setScrollRate(Panel, 5, 5),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+
+%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{id=Id, event=#wxCommand{type=command_button_clicked}},
+ State = #state{parent=Parent}) ->
+ B0 = wxWindow:findWindowById(Id, [{parent, Parent}]),
+ Butt = wx:typeCast(B0, wxButton),
+ Label = wxButton:getLabel(Butt),
+ demo:format(State#state.config,"Button: \'~ts\' clicked~n",[Label]),
+ {noreply,State};
+
+handle_event(#wx{event=#wxCommand{type=command_togglebutton_clicked}},
+ State = #state{}) ->
+ demo:format(State#state.config,
+ "Button: You toggled the 'Toggle button' ~n",[]),
+ {noreply,State};
+
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p~n",[Ev]),
+ {noreply,State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p~n",[Msg]),
+ {noreply,State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p~n",[Msg]),
+ {reply,ok,State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%% a copy from wxwidgets samples.
+create_bitmap(Label) ->
+ Bmp = wxBitmap:new(140, 30),
+ DC = wxMemoryDC:new(),
+ wxMemoryDC:selectObject(DC, Bmp),
+ wxDC:setBackground(DC, ?wxWHITE_BRUSH),
+ wxDC:clear(DC),
+ wxDC:setTextForeground(DC, ?wxBLUE),
+ wxDC:drawLabel(DC, Label, {5,5,130,20}, [{alignment, ?wxALIGN_CENTER}]),
+ wxMemoryDC:destroy(DC),
+ Bmp.
+
+
+stock_buttons() ->
+ [?wxID_ABOUT,
+ ?wxID_ADD,
+ ?wxID_APPLY,
+ ?wxID_BOLD,
+ ?wxID_CANCEL,
+ ?wxID_CLEAR,
+ ?wxID_CLOSE,
+ ?wxID_COPY,
+ ?wxID_CUT,
+ ?wxID_DELETE,
+ ?wxID_EDIT,
+ ?wxID_FIND,
+ ?wxID_FILE,
+ ?wxID_REPLACE,
+ ?wxID_BACKWARD,
+ ?wxID_DOWN,
+ ?wxID_FORWARD,
+ ?wxID_UP,
+ ?wxID_HELP,
+ ?wxID_HOME,
+ ?wxID_INDENT,
+ ?wxID_INDEX,
+ ?wxID_ITALIC,
+ ?wxID_JUSTIFY_CENTER,
+ ?wxID_JUSTIFY_FILL,
+ ?wxID_JUSTIFY_LEFT,
+ ?wxID_JUSTIFY_RIGHT,
+ ?wxID_NEW,
+ ?wxID_NO,
+ ?wxID_OK,
+ ?wxID_OPEN,
+ ?wxID_PASTE,
+ ?wxID_PREFERENCES,
+ ?wxID_PRINT,
+ ?wxID_PREVIEW,
+ ?wxID_PROPERTIES,
+ ?wxID_EXIT,
+ ?wxID_REDO,
+ ?wxID_REFRESH,
+ ?wxID_REMOVE,
+ ?wxID_REVERT_TO_SAVED,
+ ?wxID_SAVE,
+ ?wxID_SAVEAS,
+ ?wxID_SELECTALL,
+ ?wxID_STOP,
+ ?wxID_UNDELETE,
+ ?wxID_UNDERLINE,
+ ?wxID_UNDO,
+ ?wxID_UNINDENT,
+ ?wxID_YES,
+ ?wxID_ZOOM_100,
+ ?wxID_ZOOM_FIT,
+ ?wxID_ZOOM_IN,
+ ?wxID_ZOOM_OUT].
+
diff --git a/lib/wx/examples/demo/ex_canvas.erl b/lib/wx/examples/demo/ex_canvas.erl
new file mode 100644
index 0000000000..844c7eddf3
--- /dev/null
+++ b/lib/wx/examples/demo/ex_canvas.erl
@@ -0,0 +1,177 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_canvas).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2, handle_sync_event/3]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ canvas,
+ bitmap
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Various shapes"}]),
+
+ Button = wxButton:new(Panel, ?wxID_ANY, [{label, "Redraw"}]),
+
+ Canvas = wxPanel:new(Panel, [{style, ?wxFULL_REPAINT_ON_RESIZE}]),
+
+ wxPanel:connect(Canvas, paint, [callback]),
+ wxPanel:connect(Canvas, size),
+ wxPanel:connect(Button, command_button_clicked),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Button, [{border, 5}, {flag, ?wxALL}]),
+ wxSizer:addSpacer(Sizer, 5),
+ wxSizer:add(Sizer, Canvas, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ wxSizer:layout(MainSizer),
+
+ {W,H} = wxPanel:getSize(Canvas),
+ Bitmap = wxBitmap:new(erlang:max(W,30),erlang:max(30,H)),
+
+ {Panel, #state{parent=Panel, config=Config,
+ canvas = Canvas, bitmap = Bitmap}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Sync event from callback events, paint event must be handled in callbacks
+%% otherwise nothing will be drawn on windows.
+handle_sync_event(#wx{event = #wxPaint{}}, _wxObj,
+ #state{canvas=Canvas, bitmap=Bitmap}) ->
+ DC = wxPaintDC:new(Canvas),
+ redraw(DC, Bitmap),
+ wxPaintDC:destroy(DC),
+ ok.
+
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxCommand{type = command_button_clicked}},
+ State = #state{}) ->
+ Image = wxImage:new("image.jpg"),
+ Image2 = wxImage:scale(Image, wxImage:getWidth(Image) div 3,
+ wxImage:getHeight(Image) div 3),
+ Bmp = wxBitmap:new(Image2),
+ wxImage:destroy(Image),
+ wxImage:destroy(Image2),
+ {W,H} = wxPanel:getSize(State#state.canvas),
+ Positions = lists:map(fun(_) ->
+ get_pos(W,H)
+ end, lists:seq(1,(W+H) div 20)),
+ Fun = fun(DC) ->
+ wxDC:clear(DC),
+ lists:foreach(fun({X,Y}=Pos) ->
+ wxDC:setBrush(DC, ?wxTRANSPARENT_BRUSH),
+ wxDC:setPen(DC, wxPen:new(?wxBLACK, [{width, 2}])),
+ case X rem 6 of
+ 0 -> wxDC:drawBitmap(DC, Bmp, Pos);
+ 1 -> wxDC:setBrush(DC, ?wxRED_BRUSH),
+ wxDC:drawRectangle(DC, Pos, {20,20});
+ 2 -> wxDC:setBrush(DC, ?wxBLUE_BRUSH),
+ wxDC:drawCircle(DC, {X+10, Y+10}, 15);
+ 3 -> wxDC:setPen(DC, wxPen:new({200,200,0,255}, [{width, 4}])),
+ wxDC:drawLine(DC, Pos, get_pos(W,H));
+ 4 -> wxDC:setBrush(DC, ?wxGREEN_BRUSH),
+ wxDC:drawEllipse(DC, Pos, {60,20});
+ _ -> wxDC:drawLabel(DC, "Erlang /", {X,Y,60,20}),
+ wxDC:drawRotatedText(DC, "OTP", {X+60,Y}, 340.0)
+ end
+ end, Positions)
+ end,
+ draw(State#state.canvas, State#state.bitmap, Fun),
+ wxBitmap:destroy(Bmp),
+ {noreply, State};
+handle_event(#wx{event = #wxSize{size={W,H}}},
+ State = #state{bitmap=Prev}) ->
+ Bitmap = wxBitmap:new(W,H),
+ draw(State#state.canvas, Bitmap, fun(DC) -> wxDC:clear(DC) end),
+ wxBitmap:destroy(Prev),
+ {noreply, State#state{bitmap = Bitmap}};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%% Buffered makes it all appear on the screen at the same time
+draw(Canvas, Bitmap, Fun) ->
+ MemoryDC = wxMemoryDC:new(Bitmap),
+ Fun(MemoryDC),
+
+ CDC = wxWindowDC:new(Canvas),
+ wxDC:blit(CDC, {0,0},
+ {wxBitmap:getWidth(Bitmap), wxBitmap:getHeight(Bitmap)},
+ MemoryDC, {0,0}),
+ wxWindowDC:destroy(CDC),
+ wxMemoryDC:destroy(MemoryDC).
+
+redraw(DC, Bitmap) ->
+ MemoryDC = wxMemoryDC:new(Bitmap),
+ wxDC:blit(DC, {0,0},
+ {wxBitmap:getWidth(Bitmap), wxBitmap:getHeight(Bitmap)},
+ MemoryDC, {0,0}),
+ wxMemoryDC:destroy(MemoryDC).
+
+get_pos(W,H) ->
+ {random:uniform(W), random:uniform(H)}.
diff --git a/lib/wx/examples/demo/ex_canvas_paint.erl b/lib/wx/examples/demo/ex_canvas_paint.erl
new file mode 100644
index 0000000000..38d6b62f1d
--- /dev/null
+++ b/lib/wx/examples/demo/ex_canvas_paint.erl
@@ -0,0 +1,248 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_canvas_paint).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2, handle_sync_event/3]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ canvas,
+ pen,
+ brush,
+ old_pos,
+ bitmap
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxDC"}]),
+
+ %% Create the window to paint on and make it repaint the whole window on resize
+ Canvas = wxPanel:new(Panel, [{style, ?wxFULL_REPAINT_ON_RESIZE}]),
+ wxPanel:setToolTip(Canvas,
+ "Left-click and hold to draw something - release to stop drawing.\n"
+ "Middle-click to fill with pink\n"
+ "Middle-dclick to fill with white.\n"
+ "Right-click to clear."),
+
+ %% Create a wxPen and a WxBrush and set its colors to draw with
+ Brush = wxBrush:new(?wxWHITE),
+ Pen = wxPen:new(?wxBLACK, [{width, 2}]),
+
+ PrintButton = wxButton:new(Panel, ?wxID_ANY, [{label, "Print"}]),
+
+ Bitmap = wxBitmap:new(30,30),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Canvas, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxSizer:add(MainSizer, PrintButton, []),
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxPanel:connect(PrintButton, command_button_clicked),
+ wxPanel:connect(Canvas, paint, [callback]),
+ wxPanel:connect(Canvas, size),
+ wxPanel:connect(Canvas, left_down),
+ wxPanel:connect(Canvas, left_dclick),
+ wxPanel:connect(Canvas, left_up),
+ wxPanel:connect(Canvas, right_down),
+ wxPanel:connect(Canvas, middle_down),
+ wxPanel:connect(Canvas, middle_dclick),
+ wxPanel:setSizer(Panel, MainSizer),
+ wxSizer:layout(MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ canvas = Canvas, pen = Pen,
+ brush = Brush, bitmap = Bitmap}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Sync event from callback events, paint event must be handled in callbacks
+%% otherwise nothing will be drawn on windows.
+handle_sync_event(#wx{event = #wxPaint{}}, _wxObj, #state{canvas=Canvas, bitmap=Bitmap}) ->
+ DC = wxPaintDC:new(Canvas),
+ redraw(DC, Bitmap),
+ wxPaintDC:destroy(DC),
+ ok.
+
+%% Print what's drawn
+handle_event(#wx{event = #wxCommand{type = command_button_clicked}},
+ State = #state{bitmap=Bitmap}) ->
+ PD = wxPrintData:new(),
+ PDD = wxPrintDialogData:new(PD),
+ PSDD = wxPageSetupDialogData:new(PD),
+ Fun =
+ fun(This,_Page) ->
+ MX = MY = 500,
+ wxPrintout:fitThisSizeToPageMargins(This, {MX,MY}, PSDD),
+ {_X,_Y,W,H} = wxPrintout:getLogicalPageMarginsRect(This, PSDD),
+ wxPrintout:offsetLogicalOrigin(This,(W-MX) div 2, (H-MY) div 2),
+ DC = wxPrintout:getDC(This),
+ redraw(DC, Bitmap),
+ true
+ end,
+ Printout1 = wxPrintout:new("Print", Fun,
+ [{getPageInfo, fun getPageInfo/1}]),
+ Printout2 = wxPrintout:new("Print", Fun,
+ [{getPageInfo, fun getPageInfo/1}]),
+ Preview = wxPrintPreview:new(Printout1, [{printoutForPrinting,Printout2},{data,PDD}]),
+ case wxPrintPreview:isOk(Preview) of
+ true ->
+ Env = wx:get_env(),
+ spawn_link(fun() ->
+ wx:set_env(Env),
+ PF = wxPreviewFrame:new(Preview, State#state.parent, []),
+ wxPreviewFrame:centre(PF, [{dir, ?wxBOTH}]),
+ wxPreviewFrame:initialize(PF),
+ wxPreviewFrame:centre(PF),
+ wxPreviewFrame:show(PF)
+ end);
+ false ->
+ io:format("Could not create preview window.\n"
+ "Perhaps your current printer is not set correctly?~n", []),
+ wxPrintPreview:destroy(Preview)
+ end,
+ {noreply, State#state{}};
+%% Draw a line
+handle_event(#wx{event = #wxMouse{type = motion, x = X, y = Y}},
+ State = #state{canvas = Canvas, pen = Pen, brush = Brush}) ->
+ Fun =
+ fun(DC) ->
+ wxDC:setPen(DC, Pen),
+ wxBrush:setColour(Brush, ?wxBLACK),
+ wxDC:setBrush(DC, Brush),
+ wxDC:drawLine(DC, {X,Y}, State#state.old_pos)
+ end,
+ draw(Canvas,State#state.bitmap, Fun),
+ {noreply, State#state{old_pos = {X,Y}}};
+%% Resize event
+handle_event(#wx{event = #wxSize{size = {W,H}}}, State = #state{bitmap=Prev}) ->
+ wxBitmap:destroy(Prev),
+ Bitmap = wxBitmap:new(W,H),
+ draw(State#state.canvas, Bitmap, fun(DC) -> wxDC:clear(DC) end),
+ {noreply, State#state{bitmap=Bitmap}};
+handle_event(#wx{event = #wxMouse{type = left_dclick,x = X,y = Y}}, State = #state{}) ->
+ wxPanel:connect(State#state.canvas, motion),
+ {noreply, State#state{old_pos = {X,Y}}};
+handle_event(#wx{event = #wxMouse{type = left_down,x = X,y = Y}}, State = #state{}) ->
+ wxPanel:connect(State#state.canvas, motion),
+ {noreply, State#state{old_pos = {X,Y}}};
+%% Fill with pink color
+handle_event(#wx{event = #wxMouse{type = middle_down,x = X, y =Y}}, State = #state{}) ->
+ case os:type() of
+ {_, darwin} ->
+ io:format("Fill doesn't work on Darwin ~n",[]);
+ _ ->
+ ok
+ end,
+ Fun =
+ fun(DC) ->
+ wxBrush:setColour(State#state.brush, {255,125,255,255}),
+ wxDC:setBrush(DC, State#state.brush),
+ wxDC:floodFill(DC, {X,Y}, ?wxBLACK, [{style, ?wxFLOOD_BORDER}])
+ end,
+
+ draw(State#state.canvas, State#state.bitmap, Fun),
+ {noreply, State};
+%% Fill with white color
+handle_event(#wx{event = #wxMouse{type = middle_dclick,x = X, y =Y}}, State = #state{}) ->
+ Fun =
+ fun(DC) ->
+ wxBrush:setColour(State#state.brush, ?wxWHITE),
+ wxDC:setBrush(DC, State#state.brush),
+ wxDC:floodFill(DC, {X,Y}, ?wxBLACK, [{style, ?wxFLOOD_BORDER}])
+ end,
+
+ draw(State#state.canvas, State#state.bitmap,Fun),
+ {noreply, State};
+handle_event(#wx{event = #wxMouse{type = left_up}}, State = #state{}) ->
+ wxPanel:disconnect(State#state.canvas, motion),
+ {noreply, State};
+%% Clear the DC
+handle_event(#wx{event = #wxMouse{type = right_down}}, State = #state{}) ->
+ draw(State#state.canvas, State#state.bitmap, fun(DC) -> wxDC:clear(DC) end),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+draw(Canvas, Bitmap, Fun) ->
+ MemoryDC = wxMemoryDC:new(Bitmap),
+ CDC = wxClientDC:new(Canvas),
+
+ Fun(MemoryDC),
+
+ wxDC:blit(CDC, {0,0},
+ {wxBitmap:getWidth(Bitmap), wxBitmap:getHeight(Bitmap)},
+ MemoryDC, {0,0}),
+
+ wxClientDC:destroy(CDC),
+ wxMemoryDC:destroy(MemoryDC).
+
+redraw(DC, Bitmap) ->
+ MemoryDC = wxMemoryDC:new(Bitmap),
+
+ wxDC:blit(DC, {0,0},
+ {wxBitmap:getWidth(Bitmap), wxBitmap:getHeight(Bitmap)},
+ MemoryDC, {0,0}),
+
+ wxMemoryDC:destroy(MemoryDC).
+
+
+getPageInfo(_This) ->
+ {1,1,1,1}.
diff --git a/lib/wx/examples/demo/ex_choices.erl b/lib/wx/examples/demo/ex_choices.erl
new file mode 100644
index 0000000000..75f8d22493
--- /dev/null
+++ b/lib/wx/examples/demo/ex_choices.erl
@@ -0,0 +1,159 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_choices).
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ list_box
+ }).
+
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxScrolledWindow:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ ListBoxSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxListBox"}]),
+
+ ChoiceSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxChoice"}]),
+ SpinSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxSpinCtrl"}]),
+ ComboSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxComboBox"}]),
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ Sizer3 = wxBoxSizer:new(?wxHORIZONTAL),
+
+ Choices = ["one","two","three",
+ "four","five","six",
+ "seven","eight","nine",
+ "ten", "eleven", "twelve"],
+
+ %% Create a wxListBox that uses multiple selection
+ ListBox = wxListBox:new(Panel, 1, [{size, {-1,100}},
+ {choices, ["Multiple selection"|Choices]},
+ {style, ?wxLB_MULTIPLE}]),
+ wxListBox:setToolTip(ListBox, "A wxListBox with multiple selection"),
+
+ %% Create a wxListBox that uses single selection
+ ListBox2 = wxListBox:new(Panel, 2, [{size, {-1,100}},
+ {choices, ["Single selection"|Choices]},
+ {style, ?wxLB_SINGLE}]),
+ wxListBox:setToolTip(ListBox2, "A wxListBox with single selection"),
+
+ %% Create a wxChoice
+ Choice = wxChoice:new(Panel, 4, [{choices, Choices}]),
+ wxChoice:setToolTip(Choice, "A wxChoice"),
+
+ %% Create a wxSpinCtrl with range between 0 and 100
+ SpinCtrl = wxSpinCtrl:new(Panel, []),
+ wxSpinCtrl:setRange(SpinCtrl, 0, 100),
+ wxSpinCtrl:setToolTip(SpinCtrl, "A wxSpinCtrl with range from 0 to 100"),
+
+ %% Create a wxComboBox and set the value to "Default value"
+ ComboBox = wxComboBox:new(Panel, 5, [{choices, Choices}]),
+ wxComboBox:setToolTip(ComboBox, "A wxComboBox"),
+
+
+ wxChoice:connect(Choice,command_choice_selected),
+ wxSpinCtrl:connect(SpinCtrl,command_spinctrl_updated),
+ wxComboBox:connect(ComboBox, command_combobox_selected),
+
+
+ %% Add to sizers
+ Options = [{border,4}, {flag, ?wxALL}],
+ wxSizer:add(Sizer, ListBox, Options),
+ wxSizer:add(Sizer, ListBox2, Options),
+
+ wxSizer:add(ChoiceSizer, Choice, Options),
+ wxSizer:add(SpinSizer, SpinCtrl, Options),
+ wxSizer:add(Sizer3, ChoiceSizer, []),
+ wxSizer:add(Sizer3, SpinSizer, [{border, 4}, {flag, ?wxLEFT}]),
+
+ wxSizer:add(ComboSizer, ComboBox, Options),
+
+ wxSizer:add(ListBoxSizer, Sizer, Options),
+ wxSizer:add(MainSizer, ListBoxSizer, Options),
+ wxSizer:add(MainSizer, Sizer3, Options),
+ wxSizer:add(MainSizer, ComboSizer, Options),
+
+ wxScrolledWindow:setScrollRate(Panel, 5, 5),
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ list_box = ListBox}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{obj = ComboBox,
+ event = #wxCommand{type = command_combobox_selected}},
+ State = #state{}) ->
+ Value = wxComboBox:getValue(ComboBox),
+ demo:format(State#state.config,"Selected wxComboBox ~p\n",[Value]),
+ {noreply, State};
+handle_event(#wx{event = #wxCommand{type = command_choice_selected,
+ cmdString = Value}},
+ State = #state{}) ->
+ demo:format(State#state.config,"Selected wxChoice ~p\n",[Value]),
+ {noreply, State};
+handle_event(#wx{event = #wxSpin{type = command_spinctrl_updated,
+ commandInt = Int}},
+ State = #state{}) ->
+ demo:format(State#state.config,"wxSpinCtrl changed to ~p\n",[Int]),
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p\n",[Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply, {error,nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_cursor.erl b/lib/wx/examples/demo/ex_cursor.erl
new file mode 100644
index 0000000000..322bdcbb6c
--- /dev/null
+++ b/lib/wx/examples/demo/ex_cursor.erl
@@ -0,0 +1,180 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_cursor).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ cursors,
+ win
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxScrolledWindow:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ MiscSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Misc"}]),
+ StaticBoxSizer = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "Test the cursor here"}]),
+ CursorSizer = wxBoxSizer:new(?wxHORIZONTAL),
+
+ CursorLabels = [Cursor || {Cursor, _} <- cursors()],
+ StockCursors = wxRadioBox:new(Panel, ?wxID_ANY, "Stock cursors",
+ ?wxDefaultPosition,
+ ?wxDefaultSize, CursorLabels,
+ [{majorDim, 2},
+ {style, ?wxHORIZONTAL}]),
+
+ Fun = fun(Item, Int) ->
+ CursorId = proplists:get_value(Item, cursors()),
+ Cursor = wxCursor:new(CursorId),
+ case wxCursor:ok(Cursor) of
+ true ->
+ ok;
+ false ->
+ wxRadioBox:enable(StockCursors, Int, [{enable, false}])
+ end,
+ Int+1
+ end,
+ wx:foldl(Fun,0, CursorLabels),
+
+
+
+
+ Win = wxWindow:new(Panel, ?wxID_ANY, [{size, {300,300}}]),
+
+ ToggleButton = wxToggleButton:new(Panel, ?wxID_ANY, "Begin busy cursor", []),
+
+ %% Add to sizers
+ wxSizer:add(CursorSizer, StockCursors),
+ wxSizer:add(StaticBoxSizer, Win),
+ wxSizer:add(CursorSizer, StaticBoxSizer),
+ wxSizer:add(MiscSizer, ToggleButton),
+
+ wxSizer:add(MainSizer, CursorSizer),
+ wxSizer:add(MainSizer, MiscSizer),
+
+ wxToggleButton:connect(ToggleButton, command_togglebutton_clicked, []),
+ wxRadioBox:connect(StockCursors, command_radiobox_selected, []),
+ wxScrolledWindow:setScrollRate(Panel, 5,5),
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ win = Win}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxCommand{type = command_radiobox_selected,
+ cmdString = String}},
+ State = #state{}) ->
+ wxWindow:refresh(State#state.parent),
+ CursorId = proplists:get_value(String, cursors()),
+ Cursor = wxCursor:new(CursorId),
+ wxWindow:setCursor(State#state.win, Cursor),
+ {noreply, State#state{}};
+handle_event(#wx{obj = ToggleButton,
+ event = #wxCommand{type = command_togglebutton_clicked,
+ commandInt = Int}},
+ State = #state{}) ->
+ case Int of
+ 1 ->
+ wx_misc:beginBusyCursor(),
+ wxToggleButton:setLabel(ToggleButton, "End busy cursor");
+ 0 ->
+ wx_misc:endBusyCursor(),
+ wxToggleButton:setLabel(ToggleButton, "Begin busy cursor")
+ end,
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ case wx_misc:isBusy() of
+ true ->
+ wx_misc:endBusyCursor();
+ false ->
+ ignore
+ end.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+cursors() ->
+ [{"Arrow", ?wxCURSOR_ARROW},
+ {"Right arrow", ?wxCURSOR_RIGHT_ARROW},
+ {"Blank", ?wxCURSOR_BLANK},
+ {"Bullseye", ?wxCURSOR_BULLSEYE},
+ {"Char", ?wxCURSOR_CHAR},
+ {"Cross", ?wxCURSOR_CROSS},
+ {"Hand", ?wxCURSOR_HAND},
+ {"I-beam", ?wxCURSOR_IBEAM},
+ {"Left button", ?wxCURSOR_LEFT_BUTTON},
+ {"Magnifier", ?wxCURSOR_MAGNIFIER},
+ {"Middle button", ?wxCURSOR_MIDDLE_BUTTON},
+ {"No entry", ?wxCURSOR_NO_ENTRY},
+ {"Paint brush", ?wxCURSOR_PAINT_BRUSH},
+ {"Pencil", ?wxCURSOR_PENCIL},
+ {"Point left", ?wxCURSOR_POINT_LEFT},
+ {"Point right", ?wxCURSOR_POINT_RIGHT},
+ {"Question arrow", ?wxCURSOR_QUESTION_ARROW},
+ {"Right button", ?wxCURSOR_RIGHT_BUTTON},
+ {"Size NE-SW", ?wxCURSOR_SIZENESW},
+ {"Size N-S", ?wxCURSOR_SIZENS},
+ {"Size NW-SE", ?wxCURSOR_SIZENWSE},
+ {"Size W-E", ?wxCURSOR_SIZEWE},
+ {"Sizing", ?wxCURSOR_SIZING},
+ {"Spraycan", ?wxCURSOR_SPRAYCAN},
+ {"Wait", ?wxCURSOR_WAIT},
+ {"Watch", ?wxCURSOR_WATCH},
+ {"Arrow wait", ?wxCURSOR_ARROWWAIT}].
diff --git a/lib/wx/examples/demo/ex_dialogs.erl b/lib/wx/examples/demo/ex_dialogs.erl
new file mode 100644
index 0000000000..020e9eeb14
--- /dev/null
+++ b/lib/wx/examples/demo/ex_dialogs.erl
@@ -0,0 +1,171 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_dialogs).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ dialogs,
+ choices
+ }).
+
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxScrolledWindow:new(Parent, []),
+ wxScrolledWindow:setScrollRate(Panel, 5, 5),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Dialogs"}]),
+
+ Buttons =
+ [wxButton:new(Panel, 1, [{label, "wxDirDialog"}]),
+ wxButton:new(Panel, 2, [{label, "wxFileDialog"}]),
+ wxButton:new(Panel, 3, [{label, "wxColourDialog"}]),
+ wxButton:new(Panel, 4, [{label, "wxMessageDialog"}]),
+ wxButton:new(Panel, 5, [{label, "wxTextEntryDialog"}]),
+ wxButton:new(Panel, 6, [{label, "wxSingleChoiceDialog"}]),
+ wxButton:new(Panel, 7, [{label, "wxMultiChoiceDialog"}]),
+ wxButton:new(Panel, 10, [{label, "wxFontDialog"}])],
+
+ Choices = ["Orange","Banana", "Apple", "Lemon", "Pear",
+ "Carrot", "Potato", "Peach", "Tomato", "Grape",
+ "Pineapple", "Blueberry"],
+ Dialogs = [{wxDirDialog, [Panel, []]},
+ {wxFileDialog, [Panel, []]},
+ {wxColourDialog, [Panel, []]},
+ {wxSingleChoiceDialog, [Panel, "wxSingleChoiceDialog\n"
+ "Feel free to pick one of "
+ "these items !", "Caption",
+ Choices]},
+ {wxMultiChoiceDialog, [Panel, "wxMultiChoiceDialog\n"
+ "Feel free to pick one of "
+ "these items !", "Caption",
+ Choices]},
+ {wxMessageDialog, [Panel, "This is a wxMessageDialog !"]},
+ {wxTextEntryDialog, [Panel, "This is a wxTextEntryDialog !",
+ [{value, "Erlang is the best !"}]]},
+ {wxFontDialog, [get_parent(Parent), wxFontData:new()]}],
+
+ %% Add to sizers
+ Fun = fun(Button) ->
+ Label = list_to_atom(wxButton:getLabel(Button)),
+ wxSizer:add(Sizer, Button, [{border, 4}, {flag, ?wxALL bor ?wxEXPAND}]),
+ wxButton:connect(Button, command_button_clicked, [{userData, Label}])
+ end,
+ wx:foreach(Fun, Buttons),
+
+ wxSizer:add(MainSizer, Sizer),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ dialogs = Dialogs, choices = Choices}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxCommand{type = command_button_clicked},
+ userData = Module},
+ State = #state{dialogs = Dialogs, choices = Choices}) ->
+ Args = proplists:get_value(Module, Dialogs),
+ Dialog = apply(Module, new, Args),
+
+ case Module:showModal(Dialog) of
+ ?wxID_OK ->
+ case Module of
+ wxColourDialog ->
+ Colour = wxColourData:getColour(Module:getColourData(Dialog)),
+ demo:format(State#state.config, "Colour: ~p\n", [Colour]);
+ wxSingleChoiceDialog ->
+ Selection = Module:getStringSelection(Dialog),
+ demo:format(State#state.config, "Selection: ~p\n", [Selection]);
+ wxTextEntryDialog ->
+ Value = Module:getValue(Dialog),
+ demo:format(State#state.config, "Value: ~p\n", [Value]);
+ wxFontDialog ->
+ Font = wxFontData:getChosenFont(Module:getFontData(Dialog)),
+ FontDesc = wxFont:getNativeFontInfoUserDesc(Font),
+ demo:format(State#state.config,
+ "Font: ~p\n",
+ [FontDesc]);
+ wxFileDialog ->
+ demo:format(State#state.config, "File path: ~p\n", [Module:getPath(Dialog)]);
+ wxDirDialog ->
+ demo:format(State#state.config, "Dir path: ~p\n", [Module:getPath(Dialog)]);
+ wxMultiChoiceDialog ->
+ Selected = [lists:nth(Num+1, Choices) ||
+ Num <- Module:getSelections(Dialog)],
+ demo:format(State#state.config, "Selections: ~p\n", [Selected]);
+ wxMessageDialog ->
+ ok
+ end;
+ ?wxID_CANCEL -> cancel;
+ Any -> io:format("Any: ~p\n", [Any])
+ end,
+ Module:destroy(Dialog),
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+get_parent(Window) ->
+ Parent = wxWindow:getParent(Window),
+ case wx:is_null(Parent) of
+ false -> get_parent(Parent);
+ true -> Window
+ end.
diff --git a/lib/wx/examples/demo/ex_frame_utils.erl b/lib/wx/examples/demo/ex_frame_utils.erl
new file mode 100644
index 0000000000..3064c9f3b7
--- /dev/null
+++ b/lib/wx/examples/demo/ex_frame_utils.erl
@@ -0,0 +1,193 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_frame_utils).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Utilities"}]),
+
+ Labels = [{"Open window",1}, {"Open wxMiniFrame",2}, {"Open erlang.org",3}],
+ Buttons = [wxButton:new(Panel, Id, [{label, L}])|| {L,Id} <- Labels],
+
+ %% Add to sizers
+ [wxSizer:add(Sizer, Button) || Button <- Buttons],
+ wxPanel:connect(Panel, command_button_clicked),
+ wxSizer:add(MainSizer, Sizer),
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{id = Id,
+ event = #wxCommand{type = command_menu_selected}},
+ State = #state{}) ->
+ case Id of
+ ?wxID_NEW -> demo:format(State#state.config, "New\n", []);
+ ?wxID_OPEN -> demo:format(State#state.config, "Open\n", []);
+ ?wxID_COPY -> demo:format(State#state.config, "Copy\n", []);
+ ?wxID_PASTE -> demo:format(State#state.config, "Paste\n", []);
+ ?wxID_HELP ->
+ wx_misc:launchDefaultBrowser("http://erlang.org/doc/apps/wx/part_frame.html");
+ _ -> ignore
+ end,
+ {noreply, State};
+handle_event(#wx{id = Id,
+ event = #wxCommand{type = command_button_clicked}},
+ State = #state{}) ->
+ case Id of
+ 1 -> new_win(State#state.parent);
+ 2 -> new_mini_frame(State#state.parent);
+ 3 -> wx_misc:launchDefaultBrowser("http://erlang.org/");
+ _ -> ignore
+ end,
+ {noreply, State};
+handle_event(#wx{userData = StatusBar,
+ event = #wxMouse{type = motion, x = X, y = Y}},
+ State) ->
+ wxStatusBar:setStatusText(StatusBar, io_lib:format("Mouse position: ~p", [{X,Y}]),
+ [{number, 1}]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+new_win(Panel) ->
+ Frame = wxFrame:new(Panel, ?wxID_ANY, "Utilities", [{style,
+ ?wxCAPTION bor
+ ?wxCLIP_CHILDREN bor
+ ?wxCLOSE_BOX bor
+ ?wxFRAME_FLOAT_ON_PARENT bor
+ %%?wxFRAME_NO_TASKBAR bor
+ ?wxMAXIMIZE_BOX bor
+ ?wxMINIMIZE_BOX bor
+ ?wxRESIZE_BORDER bor
+ %%?wxSTAY_ON_TOP bor
+ ?wxSYSTEM_MENU
+ }]),
+
+ %% Setup wxMenuBar
+ MB = wxMenuBar:new(),
+ File = wxMenu:new([]),
+ Help = wxMenu:new([]),
+ Mbar = wxMenu:new([]),
+ wxMenu:append(File, ?wxID_NEW, "New"),
+ wxMenu:append(File, ?wxID_OPEN, "Open"),
+ wxMenu:appendSeparator(File),
+ wxMenu:append(File, ?wxID_EXIT, "&Quit"),
+ wxMenu:append(Help, ?wxID_HELP, "Help"),
+ wxMenu:append(Mbar, ?wxID_ANY, "Test item 1"),
+ wxMenu:append(Mbar, ?wxID_ANY, "Test item 2"),
+ wxMenu:append(Mbar, ?wxID_ANY, "Test item 3"),
+
+ wxMenuBar:append(MB, File, "&File"),
+ wxMenuBar:append(MB, Help, "&Help"),
+ wxMenuBar:append(MB, Mbar, "This is a menu bar"),
+ wxFrame:setMenuBar(Frame,MB),
+
+ %% Setup wxStatusBar
+ StatusBar = wxFrame:createStatusBar(Frame, []),
+ wxStatusBar:setFieldsCount(StatusBar, 2),
+ wxStatusBar:setStatusText(StatusBar, "This is a status bar", [{number, 0}]),
+
+ %% Setup wxToolBar
+ ToolBar = wxFrame:createToolBar(Frame, []),
+ wxToolBar:addTool(ToolBar, ?wxID_NEW, "New", wxArtProvider:getBitmap("wxART_NEW"),
+ [{shortHelp, "New"}]),
+ wxToolBar:setToolLongHelp(ToolBar, ?wxID_NEW, "This is long help for 'New'"),
+ wxToolBar:addTool(ToolBar, ?wxID_OPEN, "Open", wxArtProvider:getBitmap("wxART_FILE_OPEN"),
+ [{shortHelp, "Open"}]),
+ wxToolBar:setToolLongHelp(ToolBar, ?wxID_OPEN, "This is long help for 'Open'"),
+ wxToolBar:addSeparator(ToolBar),
+ wxToolBar:addTool(ToolBar, ?wxID_COPY, "Copy", wxArtProvider:getBitmap("wxART_COPY"),
+ [{shortHelp, "Copy"}]),
+ wxToolBar:setToolLongHelp(ToolBar, ?wxID_COPY, "This is long help for 'Copy'"),
+ wxToolBar:addTool(ToolBar, ?wxID_PASTE, "Paste", wxArtProvider:getBitmap("wxART_PASTE"),
+ [{shortHelp, "Paste"}]),
+ wxToolBar:setToolLongHelp(ToolBar, ?wxID_PASTE, "This is long help for 'Paste'"),
+
+ wxToolBar:addControl(ToolBar,wxStaticText:new(ToolBar, 5, "This is a tool bar")),
+
+
+ wxToolBar:realize(ToolBar),
+ wxFrame:setToolBar(Frame,ToolBar),
+
+ wxFrame:connect(Frame, motion, [{userData, StatusBar}]),
+ wxFrame:connect(Frame, command_menu_selected, []),
+ wxFrame:center(Frame),
+ wxFrame:show(Frame).
+
+
+new_mini_frame(Parent) ->
+ MiniFrame = wxMiniFrame:new(Parent, ?wxID_ANY, "wxMiniFrame", [{style,
+ ?wxDEFAULT_FRAME_STYLE bor
+ ?wxFRAME_FLOAT_ON_PARENT}]),
+ Panel = wxPanel:new(MiniFrame, []),
+
+ Text = "This is a wxMiniFrame",
+
+ wxStaticText:new(Panel, ?wxID_ANY, Text, [{style, ?wxALIGN_CENTER}]),
+ wxMiniFrame:setSize(MiniFrame, {200,200}),
+ wxMiniFrame:center(MiniFrame),
+ wxMiniFrame:show(MiniFrame).
+
+
diff --git a/lib/wx/examples/demo/ex_gauge.erl b/lib/wx/examples/demo/ex_gauge.erl
new file mode 100644
index 0000000000..d30c3fea58
--- /dev/null
+++ b/lib/wx/examples/demo/ex_gauge.erl
@@ -0,0 +1,208 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_gauge).
+
+-behaviour(wx_object).
+
+-include_lib("wx/include/wx.hrl").
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-record(gauge, {obj,
+ value,
+ timer,
+ range
+ }).
+
+-record(state,
+ {
+ parent,
+ config,
+ normal_gauge,
+ undeterminate_gauge,
+ simulate_button,
+ simulate_undet_button
+ }).
+
+-define(ID_START_STOP, 1).
+-define(ID_START_STOP_UNDET, 2).
+-define(SET_VALUE, 3).
+-define(VERTICAL, 4).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ AlignSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxGauge"}]),
+
+ %% Create two horizontal gauges with range 0-100
+ Range = 100,
+ NormalGauge = wxGauge:new(Panel, 1, Range, [{size, {200, -1}},
+ {style, ?wxGA_HORIZONTAL}]),
+ UndetGauge = wxGauge:new(Panel, 2, Range, [{size, {200, -1}},
+ {style, ?wxGA_HORIZONTAL}]),
+
+ %% Add to sizers
+ wxSizer:add(AlignSizer, NormalGauge, [{flag, ?wxEXPAND}]),
+ wxSizer:add(AlignSizer, UndetGauge, [{flag, ?wxEXPAND}]),
+ {OptSizer, SimulateButton, SimulateUndetermButton}
+ = create_option_sizer(Panel),
+
+ wxSizer:add(MainSizer, AlignSizer, [{flag, ?wxEXPAND}]),
+ wxSizer:add(MainSizer, OptSizer, []),
+
+ wxWindow:connect(Panel, command_togglebutton_clicked),
+ wxWindow:connect(Panel, command_button_clicked),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ normal_gauge = #gauge{obj=NormalGauge, value = 0,
+ range = Range},
+ undeterminate_gauge = #gauge{obj=UndetGauge, value = 0,
+ range = Range},
+ simulate_button = SimulateButton,
+ simulate_undet_button = SimulateUndetermButton}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Callbacks handled as normal gen_server callbacks
+handle_info(tick, State=#state{normal_gauge = Gauge=#gauge{obj = Obj,
+ value = Value,
+ timer = Timer,
+ range = Range},
+ simulate_button = Button}) ->
+ Timer2 =
+ if Value >= Range ->
+ wxToggleButton:setValue(Button, false),
+ wxToggleButton:setLabel(Button, "Simulate load"),
+ wxGauge:setValue(Obj, Range),
+ demo:format(State#state.config, "Simulation finished.\n", []),
+ Timer;
+ true ->
+ simulate_load(Obj, Value)
+
+ end,
+ {noreply, State#state{normal_gauge = Gauge#gauge{value = Value+5,
+ timer = Timer2}}};
+handle_info(pulse, State=#state{undeterminate_gauge = Gauge=#gauge{obj = Obj}}) ->
+ wxGauge:pulse(Obj),
+ Timer = erlang:send_after(300, self(), pulse),
+ {noreply, State#state{undeterminate_gauge = Gauge#gauge{timer = Timer}}}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply,ok, State}.
+
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{id = ?ID_START_STOP,
+ event = #wxCommand{type = command_togglebutton_clicked,
+ commandInt = Int}},
+ State = #state{normal_gauge = #gauge{obj=Gauge,
+ value = Value,
+ timer = Timer},
+ simulate_button = Button}) ->
+ case Int of
+ 1 ->
+ wxToggleButton:setLabel(Button, "Stop simulation"),
+ simulate_load(Gauge, Value);
+ 0 ->
+ erlang:cancel_timer(Timer),
+ wxToggleButton:setLabel(Button, "Simulate load"),
+ ok
+ end,
+ {noreply, State};
+handle_event(#wx{id = ?ID_START_STOP_UNDET,
+ event = #wxCommand{type = command_togglebutton_clicked,
+ commandInt = Int}},
+ State = #state{undeterminate_gauge = G = #gauge{obj=Gauge,
+ timer = Timer},
+ simulate_undet_button = Button}) ->
+ Timer2 =
+ case Int of
+ 1 ->
+ wxToggleButton:setLabel(Button, "Stop simulation"),
+ wxGauge:pulse(Gauge),
+ erlang:send_after(300, self(), pulse);
+ 0 ->
+ wxToggleButton:setLabel(Button, "Simulate undeterminate load"),
+ reset(G),
+ undefined
+ end,
+ case Timer of
+ undefined -> ok;
+ _ -> erlang:cancel_timer(Timer)
+ end,
+ {noreply, State#state{undeterminate_gauge = G#gauge{timer = Timer2}}};
+handle_event(#wx{id = ?wxID_CLEAR,
+ event = #wxCommand{type = command_button_clicked}},
+ State = #state{normal_gauge = Gauge,
+ undeterminate_gauge = Gauge2}) ->
+ reset(Gauge),
+ reset(Gauge2),
+ {noreply, State#state{normal_gauge = Gauge#gauge{value = 0}}};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p\n",[Ev]),
+ {noreply, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+simulate_load(Gauge, Value) ->
+ wxGauge:setValue(Gauge, Value),
+ erlang:send_after(300, self(), tick).
+
+reset(#gauge{obj = Gauge}) ->
+ wxGauge:setValue(Gauge, 0).
+
+
+create_option_sizer(Panel) ->
+ OptSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Options"}]),
+
+ SimulateButton = wxToggleButton:new(Panel, ?ID_START_STOP, "Simulate load",
+ [{size, {200, 35}}]),
+ SimulateUndetermButton = wxToggleButton:new(Panel, ?ID_START_STOP_UNDET,
+ "Simulate Undeterminate load",
+ [{size, {200, 35}}]),
+ ClearButton = wxButton:new(Panel, ?wxID_CLEAR,
+ [{size, {200, 35}}]),
+
+ wxSizer:add(OptSizer, SimulateButton),
+ wxSizer:add(OptSizer, SimulateUndetermButton),
+ wxSizer:add(OptSizer, ClearButton),
+
+ wxWindow:connect(Panel, command_checkbox_clicked),
+
+ {OptSizer, SimulateButton, SimulateUndetermButton}.
diff --git a/lib/wx/examples/demo/ex_gl.erl b/lib/wx/examples/demo/ex_gl.erl
new file mode 100644
index 0000000000..53f1eda847
--- /dev/null
+++ b/lib/wx/examples/demo/ex_gl.erl
@@ -0,0 +1,409 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_gl).
+
+-behaviour(wx_object).
+
+-export([init/1, code_change/3, handle_info/2, handle_event/2,
+ handle_call/3, terminate/2,
+ start/1]).
+
+-include_lib("wx/include/wx.hrl").
+-include_lib("wx/include/gl.hrl").
+-include_lib("wx/include/glu.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ gl,
+ canvas,
+ timer,
+ time
+ }).
+
+-record(gl, {win, data, deg, mat, alpha, text, font, brush, clock, sphere}).
+
+-record(texture, {tid, w, h, minx, miny, maxx, maxy}).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+-define(PAD, fun(Int) -> string:right(integer_to_list(Int), 2, $0) end).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizer
+ Sizer = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel, [{label, "wxGLCanvas"}]),
+
+ Opts = [{size, {300,300}}, {style, ?wxSUNKEN_BORDER}],
+ GLAttrib = [{attribList, [?WX_GL_RGBA,
+ ?WX_GL_DOUBLEBUFFER,
+ ?WX_GL_MIN_RED,8,
+ ?WX_GL_MIN_GREEN,8,
+ ?WX_GL_MIN_BLUE,8,
+ ?WX_GL_DEPTH_SIZE,24,0]}],
+ Canvas = wxGLCanvas:new(Panel,Opts ++ GLAttrib),
+ wxGLCanvas:connect(Canvas, size),
+
+ wxGLCanvas:setCurrent(Canvas),
+ Image = wxImage:scale(wxImage:new("image.jpg"), 128,128),
+ GL = setup_gl(Canvas,Image),
+ Timer = timer:send_interval(20, self(), update),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Canvas, [{flag, ?wxEXPAND},{proportion, 1}]),
+ wxWindow:setSizer(Panel,Sizer),
+ wxSizer:layout(Sizer),
+ {Panel, #state{parent = Panel, config = Config,
+ canvas = Canvas,
+ gl = GL, timer = Timer}}.
+
+%% Event handling
+handle_event(#wx{event = #wxSize{size = {W,H}}}, State) ->
+ case W =:= 0 orelse H =:= 0 of
+ true -> skip;
+ _ ->
+ gl:viewport(0,0,W,H),
+ gl:matrixMode(?GL_PROJECTION),
+ gl:loadIdentity(),
+ gl:ortho( -2.0, 2.0, -2.0*H/W, 2.0*H/W, -20.0, 20.0),
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:loadIdentity()
+ end,
+ {noreply, State}.
+
+handle_info(update, State) ->
+ S1 = update_rotation(State),
+ GL = S1#state.gl,
+ S2 = if S1#state.time > State#state.time ->
+ gl:deleteTextures([(GL#gl.clock)#texture.tid]),
+ {Hour,Min,Sec} = S1#state.time,
+ Clock = load_texture_by_string(GL#gl.font, GL#gl.brush, {40,40,40},
+ [?PAD(Hour), $:, ?PAD(Min), $:, ?PAD(Sec)], false),
+ S1#state{gl = GL#gl{clock = Clock}};
+ true ->
+ S1
+ end,
+ wx:batch(fun() -> drawBox(S2#state.gl) end),
+ {noreply, S2};
+handle_info(stop, State) ->
+ timer:cancel(State#state.timer),
+ catch wxGLCanvas:destroy(State#state.canvas),
+ {stop, normal, State}.
+
+handle_call(Msg, _From, State) ->
+ io:format("Got Call ~p~n",[Msg]),
+ {reply,ok,State}.
+
+code_change(_, _, State) ->
+ {stop, not_yet_implemented, State}.
+
+terminate(_Reason, State) ->
+ catch wxGLCanvas:destroy(State#state.canvas),
+ timer:cancel(State#state.timer),
+ timer:sleep(300).
+
+
+
+-define(VS, {{-0.5, -0.5, -0.5}, %1
+ { 0.5, -0.5, -0.5}, %2
+ { 0.5, 0.5, -0.5},
+ {-0.5, 0.5, -0.5}, %4
+ {-0.5, 0.5, 0.5},
+ { 0.5, 0.5, 0.5}, %6
+ { 0.5, -0.5, 0.5},
+ {-0.5, -0.5, 0.5}}).%8
+
+-define(FACES,
+ %% Faces Normal U-axis V-axis
+ [{{1,2,3,4},{0,0,-1},{-1,0,0}, {0,1,0}}, %
+ {{8,1,4,5},{-1,0,0},{0,0,1}, {0,1,0}}, %
+ {{2,7,6,3},{1,0,0}, {0,0,-1}, {0,1,0}}, %
+ {{7,8,5,6},{0,0,1}, {1,0,0}, {0,1,0}}, %
+ {{4,3,6,5},{0,1,0}, {-1,0,0}, {0,0,1}}, %
+ {{1,2,7,8},{0,-1,0},{1,0,0}, {0,0,1}}]).
+
+-define(COLORS,{{ 0.0, 0.0, 0.0},
+ { 1.0, 0.0, 0.0},
+ { 1.0, 1.0, 0.0},
+ { 0.0, 1.0, 0.0},
+ { 0.0, 1.0, 1.0},
+ { 1.0, 1.0, 1.0},
+ { 1.0, 0.0, 1.0},
+ { 0.0, 0.0, 1.0}}).
+
+
+update_rotation(S=#state{gl=GL=#gl{deg=Rot}}) ->
+ {_, Time} = calendar:local_time(),
+ S#state{gl=GL#gl{deg = Rot + 1.0}, time = Time}.
+
+%% Needs to setup opengl after window is shown...
+%% GL context is created when shown first time.
+setup_gl(Win, Image) ->
+ {W,H} = wxWindow:getClientSize(Win),
+ gl:viewport(0,0,W,H),
+ gl:matrixMode(?GL_PROJECTION),
+ gl:loadIdentity(),
+ gl:ortho( -2.0, 2.0, -2.0*H/W, 2.0*H/W, -20.0, 20.0),
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:loadIdentity(),
+ gl:enable(?GL_DEPTH_TEST),
+ gl:depthFunc(?GL_LESS),
+ gl:clearColor(1.0,1.0,1.0,1.0),
+ MatTexture = load_texture_by_image(Image),
+ ImgTexture = load_texture_by_image(
+ wxImage:new("erlang.png")),
+ Font = wxFont:new(32, ?wxFONTFAMILY_DEFAULT, ?wxFONTSTYLE_NORMAL, ?wxFONTWEIGHT_BOLD),
+ Brush = wxBrush:new({0,0,0}),
+ StrTexture = load_texture_by_string(Font, Brush, {40,40,40}, "Text from wxFont", true),
+ {_, {Hour,Min,Sec}} = calendar:local_time(),
+ Clock = load_texture_by_string(Font, Brush, {40, 40, 40},
+ [?PAD(Hour), $:, ?PAD(Min), $:, ?PAD(Sec)], false),
+ Sphere = glu:newQuadric(),
+ gl:enable(?GL_TEXTURE_2D),
+ #gl{win=Win,data={?FACES,?VS,?COLORS},deg=0.0,
+ mat=MatTexture, alpha=ImgTexture, text=StrTexture, font = Font,
+ brush = Brush, clock = Clock, sphere = Sphere}.
+
+drawBox(#gl{win=Win,deg=Deg,data={Fs,Vs,Colors},mat=MatT,alpha=ImgA,
+ text=Text, clock = Clock, sphere=Sphere}) ->
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:loadIdentity(),
+ gl:pushMatrix(),
+ gl:translatef(0,0.5,0),
+ gl:rotatef(Deg, 1.0, 1.0, 1.0),
+ gl:clear(?GL_COLOR_BUFFER_BIT bor ?GL_DEPTH_BUFFER_BIT),
+ gl:bindTexture(?GL_TEXTURE_2D, MatT#texture.tid),
+ gl:disable(?GL_BLEND),
+ gl:texEnvf(?GL_TEXTURE_ENV, ?GL_TEXTURE_ENV_MODE, ?GL_MODULATE),
+ gl:disable(?GL_CULL_FACE),
+ gl:'begin'(?GL_QUADS),
+ wx:foreach(fun(Face) -> drawFace(Face,Vs,Colors) end, Fs),
+ gl:'end'(),
+ gl:popMatrix(),
+
+ gl:texEnvf(?GL_TEXTURE_ENV, ?GL_TEXTURE_ENV_MODE, ?GL_REPLACE),
+
+ enter_2d_mode(Win),
+ {W,H} = wxWindow:getClientSize(Win),
+ Move = abs(90 - (trunc(Deg) rem 180)),
+ draw_texture((W div 2) - 50, (H div 2)-130+Move, Clock),
+ draw_texture((W div 2) - 80, (H div 2)-Move, ImgA),
+ leave_2d_mode(),
+
+ gl:pushMatrix(),
+ gl:enable(?GL_CULL_FACE),
+ gl:enable(?GL_BLEND),
+ gl:blendFunc(?GL_SRC_ALPHA, ?GL_ONE_MINUS_SRC_ALPHA),
+ gl:translatef(0,-0.8,0),
+ gl:bindTexture(?GL_TEXTURE_2D, Text#texture.tid),
+ glu:quadricTexture(Sphere, ?GLU_TRUE),
+ glu:quadricNormals(Sphere, ?GLU_SMOOTH),
+ glu:quadricDrawStyle(Sphere, ?GLU_FILL),
+ glu:quadricOrientation(Sphere, ?GLU_OUTSIDE),
+ %%gl:scalef(2.0, 0.5, 1.0),
+ gl:rotatef(-90, 1.0, 0.0, 0.0),
+ gl:rotatef(-Deg, 0.0, 0.0, 1.0),
+ glu:sphere(Sphere, 0.8, 50,40),
+ gl:popMatrix(),
+
+ wxGLCanvas:swapBuffers(Win).
+
+drawFace({{V1,V2,V3,V4},N,_Ut,_Vt}, Cube, Colors) ->
+ gl:normal3fv(N),
+ gl:color3fv(element(V1, Colors)),
+ gl:texCoord2f(0.0, 0.0), gl:vertex3fv(element(V1, Cube)),
+ gl:color3fv(element(V2, Colors)),
+ gl:texCoord2f(1.0, 0.0), gl:vertex3fv(element(V2, Cube)),
+ gl:color3fv(element(V3, Colors)),
+ gl:texCoord2f(1.0, 1.0), gl:vertex3fv(element(V3, Cube)),
+ gl:color3fv(element(V4, Colors)),
+ gl:texCoord2f(0.0, 1.0), gl:vertex3fv(element(V4, Cube)).
+
+
+draw_texture(X, Y, #texture{tid = TId, w = W, h = H,
+ miny = MinY, minx = MinX,
+ maxx = MaxX, maxy = MaxY}) ->
+ gl:bindTexture(?GL_TEXTURE_2D, TId),
+ gl:'begin'(?GL_TRIANGLE_STRIP),
+ gl:texCoord2f(MinX, MinY), gl:vertex2i(X, Y ),
+ gl:texCoord2f(MaxX, MinY), gl:vertex2i(X+W div 2, Y ),
+ gl:texCoord2f(MinX, MaxY), gl:vertex2i(X, Y+H div 2),
+ gl:texCoord2f(MaxX, MaxY), gl:vertex2i(X+W div 2, Y+H div 2),
+ gl:'end'().
+
+load_texture_by_image(Image) ->
+ ImgW = wxImage:getWidth(Image),
+ ImgH = wxImage:getHeight(Image),
+ W = get_power_of_two_roof(ImgW),
+ H = get_power_of_two_roof(ImgH),
+ Data = get_data_for_use_with_teximage2d(Image),
+ %% Create an OpenGL texture for the image
+ [TId] = gl:genTextures(1),
+ gl:bindTexture(?GL_TEXTURE_2D, TId),
+ gl:texParameteri(?GL_TEXTURE_2D, ?GL_TEXTURE_MAG_FILTER, ?GL_NEAREST),
+ gl:texParameteri(?GL_TEXTURE_2D, ?GL_TEXTURE_MIN_FILTER, ?GL_NEAREST),
+ Format = case wxImage:hasAlpha(Image) of
+ true -> ?GL_RGBA;
+ false -> ?GL_RGB
+ end,
+ gl:texImage2D(?GL_TEXTURE_2D, 0,
+ Format, W, H, 0,
+ Format, ?GL_UNSIGNED_BYTE, Data),
+ #texture{tid = TId, w = ImgW, h = ImgH,
+ minx = 0, miny = 0, maxx = ImgW / W, maxy = ImgH / H}.
+
+
+%% This algorithm (based on http://d0t.dbclan.de/snippets/gltext.html)
+%% prints a string to a bitmap and loads that onto an opengl texture.
+%% Comments for the createTexture function:
+%%
+%% "Creates a texture from the settings saved in TextElement, to be
+%% able to use normal system fonts conviently a wx.MemoryDC is
+%% used to draw on a wx.Bitmap. As wxwidgets device contexts don't
+%% support alpha at all it is necessary to apply a little hack to
+%% preserve antialiasing without sticking to a fixed background
+%% color:
+%%
+%% We draw the bmp in b/w mode so we can use its data as a alpha
+%% channel for a solid color bitmap which after GL_ALPHA_TEST and
+%% GL_BLEND will show a nicely antialiased text on any surface.
+%%
+%% To access the raw pixel data the bmp gets converted to a
+%% wx.Image. Now we just have to merge our foreground color with
+%% the alpha data we just created and push it all into a OpenGL
+%% texture and we are DONE *inhalesdelpy*"
+load_texture_by_string(Font, Brush, Color, String, Flip) ->
+ TmpBmp = wxBitmap:new(200, 200),
+ Tmp = wxMemoryDC:new(TmpBmp),
+ wxMemoryDC:setFont(Tmp, Font),
+ {StrW, StrH} = wxDC:getTextExtent(Tmp, String),
+ wxMemoryDC:destroy(Tmp),
+ wxBitmap:destroy(TmpBmp),
+
+ W = get_power_of_two_roof(StrW),
+ H = get_power_of_two_roof(StrH),
+
+ Bmp = wxBitmap:new(W, H),
+ DC = wxMemoryDC:new(Bmp),
+ wxMemoryDC:setFont(DC, Font),
+ wxMemoryDC:setBackground(DC, Brush),
+ wxMemoryDC:clear(DC),
+ wxMemoryDC:setTextForeground(DC, {255, 255, 255}),
+ wxMemoryDC:drawText(DC, String, {0, 0}),
+
+ Img0 = wxBitmap:convertToImage(Bmp),
+ case Flip of
+ true ->
+ Img = wxImage:mirror(Img0, [{horizontally, false}]),
+ wxImage:destroy(Img0),
+ Img;
+ false ->
+ Img = Img0
+ end,
+
+ Alpha = wxImage:getData(Img),
+ Data = colourize_image(Alpha, Color),
+ wxImage:destroy(Img),
+ wxBitmap:destroy(Bmp),
+ wxMemoryDC:destroy(DC),
+
+ [TId] = gl:genTextures(1),
+ gl:bindTexture(?GL_TEXTURE_2D, TId),
+ gl:texParameteri(?GL_TEXTURE_2D, ?GL_TEXTURE_MAG_FILTER, ?GL_LINEAR),
+ gl:texParameteri(?GL_TEXTURE_2D, ?GL_TEXTURE_MIN_FILTER, ?GL_LINEAR),
+ gl:texEnvf(?GL_TEXTURE_ENV, ?GL_TEXTURE_ENV_MODE, ?GL_REPLACE),
+ %%gl:pixelStorei(?GL_UNPACK_ROW_LENGTH, 0),
+ %%gl:pixelStorei(?GL_UNPACK_ALIGNMENT, 2),
+ gl:texImage2D(?GL_TEXTURE_2D, 0, ?GL_RGBA,
+ W, H, 0, ?GL_RGBA, ?GL_UNSIGNED_BYTE, Data),
+ #texture{tid = TId, w = StrW, h = StrH,
+ minx = 0, miny = 0, maxx = StrW / W, maxy = StrH / H}.
+
+colourize_image(Alpha, {R,G,B}) ->
+ << <<R:8,G:8,B:8,A:8>> || <<A:8,_:8,_:8>> <= Alpha >>.
+
+get_data_for_use_with_teximage2d(Image) ->
+ RGB = wxImage:getData(Image),
+ case wxImage:hasAlpha(Image) of
+ true ->
+ Alpha = wxImage:getAlpha(Image),
+ interleave_rgb_and_alpha(RGB, Alpha);
+ false ->
+ RGB
+ end.
+
+interleave_rgb_and_alpha(RGB, Alpha) ->
+ list_to_binary(
+ lists:zipwith(fun({R, G, B}, A) ->
+ <<R, G, B, A>>
+ end,
+ [{R,G,B} || <<R, G, B>> <= RGB],
+ [A || <<A>> <= Alpha])).
+
+
+enter_2d_mode(Win) ->
+ {W, H} = wxWindow:getClientSize(Win),
+
+ %% Note, there may be other things you need to change,
+ %% depending on how you have your OpenGL state set up.
+ gl:pushAttrib(?GL_ENABLE_BIT),
+ gl:disable(?GL_DEPTH_TEST),
+ gl:disable(?GL_CULL_FACE),
+ gl:enable(?GL_TEXTURE_2D),
+
+ %% This allows alpha blending of 2D textures with the scene
+ gl:enable(?GL_BLEND),
+ gl:blendFunc(?GL_SRC_ALPHA, ?GL_ONE_MINUS_SRC_ALPHA),
+
+ gl:matrixMode(?GL_PROJECTION),
+ gl:pushMatrix(),
+ gl:loadIdentity(),
+
+ %% SDL coordinates will be upside-down in the OpenGL world. We'll
+ %% therefore flip the bottom and top coordinates in the orthogonal
+ %% projection to correct this.
+ %% Note: We could flip the texture/image itself, but this will
+ %% also work for mouse coordinates.
+ gl:ortho(0.0, W, H, 0.0, 0.0, 1.0),
+
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:pushMatrix(),
+ gl:loadIdentity().
+
+leave_2d_mode() ->
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:popMatrix(),
+ gl:matrixMode(?GL_PROJECTION),
+ gl:popMatrix(),
+ gl:popAttrib().
+
+get_power_of_two_roof(X) ->
+ get_power_of_two_roof_2(1, X).
+
+get_power_of_two_roof_2(N, X) when N >= X -> N;
+get_power_of_two_roof_2(N, X) -> get_power_of_two_roof_2(N*2, X).
+
diff --git a/lib/wx/examples/demo/ex_graphicsContext.erl b/lib/wx/examples/demo/ex_graphicsContext.erl
new file mode 100644
index 0000000000..bcd7a75be0
--- /dev/null
+++ b/lib/wx/examples/demo/ex_graphicsContext.erl
@@ -0,0 +1,146 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_graphicsContext).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3,
+ handle_event/2, handle_sync_event/3]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ win,
+ pen,
+ brush,
+ font
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxGrapicsContext"}]),
+
+ Win = wxPanel:new(Panel, []),
+ Pen = wxPen:new(),
+ Brush = wxBrush:new(?wxBLACK),
+ Font = wxFont:new(),
+ wxFont:setWeight(Font, ?wxBOLD),
+
+ wxPanel:connect(Win, paint, [callback]),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Win, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config, win = Win,
+ pen = Pen, brush = Brush, font = Font}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Sync events i.e. from callbacks must return ok, it can not return a new state.
+%% Do the redrawing here.
+handle_sync_event(#wx{event = #wxPaint{}},_,
+ #state{win=Win, pen = Pen, brush = Brush, font = Font}) ->
+ %% PaintDC must be created in a callback to work on windows.
+ DC = wxPaintDC:new(Win),
+ %% Nothing is drawn until wxPaintDC is destroyed.
+ draw(DC, Pen, Brush, Font),
+ wxPaintDC:destroy(DC),
+ ok.
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{}, State) ->
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+draw(Win, Pen0, _Brush0, Font0) ->
+ try
+ Canvas = wxGraphicsContext:create(Win),
+ Pen = wxGraphicsContext:createPen(Canvas, Pen0),
+ wxGraphicsContext:setPen(Canvas, Pen),
+ Brush = wxGraphicsContext:createLinearGradientBrush(Canvas, 0.0,0.0, 30.0,30.0,
+ {200,50,50,50},
+ {200,50,50,200}),
+ wxGraphicsContext:setBrush(Canvas, Brush),
+ Font = wxGraphicsContext:createFont(Canvas, Font0),
+ wxGraphicsContext:setFont(Canvas, Font),
+
+ wxGraphicsContext:drawRoundedRectangle(Canvas, 35.0,35.0, 100.0, 50.0, 10.0),
+ wxGraphicsContext:drawText(Canvas, "Welcome", 60.0, 55.0),
+ Path = wxGraphicsContext:createPath(Canvas),
+ wxGraphicsPath:addCircle(Path, 0.0, 0.0, 40.0),
+ wxGraphicsPath:closeSubpath(Path),
+ wxGraphicsContext:translate(Canvas, 100.0, 100.0),
+
+ Brush2 = wxGraphicsContext:createLinearGradientBrush(Canvas, 0.0,0.0, 30.0,30.0,
+ {50,200,50,50},
+ {50,50,200,50}),
+ wxGraphicsContext:setBrush(Canvas, Brush2),
+
+ F = fun(_) ->
+ wxGraphicsContext:scale(Canvas, 1.1, 1.1),
+ wxGraphicsContext:translate(Canvas, 3.0,3.0),
+ wxGraphicsContext:drawPath(Canvas, Path)
+ end,
+ wx:foreach(F, lists:seq(1,5)),
+ ok
+ catch _:{not_supported, _} ->
+ Err = "wxGraphicsContext not available in this build of wxwidgets",
+ io:format(Err,[])
+ end.
+
diff --git a/lib/wx/examples/demo/ex_grid.erl b/lib/wx/examples/demo/ex_grid.erl
new file mode 100644
index 0000000000..2169c818ff
--- /dev/null
+++ b/lib/wx/examples/demo/ex_grid.erl
@@ -0,0 +1,142 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_grid).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ grid
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxGrid"}]),
+
+ Grid = create_grid(Panel),
+
+ %% Add to sizers
+ Options = [{flag, ?wxEXPAND}, {proportion, 1}],
+
+ wxSizer:add(Sizer, Grid, Options),
+ wxSizer:add(MainSizer, Sizer, Options),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ grid = Grid}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxGrid{type = grid_cell_change,
+ row = Row, col = Col}},
+ State = #state{}) ->
+ Val = wxGrid:getCellValue(State#state.grid, Row, Col),
+ demo:format(State#state.config, "Cell {~p,~p} changed to ~p.\n",
+ [Row,Col,Val]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(_Msg, State) ->
+ {noreply, State}.
+
+handle_call(_Msg, _From, State) ->
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+create_grid(Panel) ->
+ %% Create the grid with 100 * 5 cells
+ Grid = wxGrid:new(Panel, 2, []),
+ wxGrid:createGrid(Grid, 100, 5),
+
+ Font = wxFont:new(16, ?wxFONTFAMILY_SWISS,
+ ?wxFONTSTYLE_NORMAL,
+ ?wxFONTWEIGHT_NORMAL, []),
+ %% Fun to set the values and flags of the cells
+ Fun =
+ fun(Row) ->
+ wxGrid:setCellValue(Grid, Row, 0, "Editable"),
+ wxGrid:setCellValue(Grid, Row, 1, "Editable"),
+ wxGrid:setCellValue(Grid, Row, 2, "Editable"),
+ wxGrid:setCellValue(Grid, Row, 3, "Read only"),
+ wxGrid:setCellTextColour(Grid, Row, 3, ?wxWHITE),
+ wxGrid:setReadOnly(Grid, Row, 3, [{isReadOnly,true}]),
+ wxGrid:setCellValue(Grid, Row, 4, "Editable"),
+ case Row rem 4 of
+ 0 -> wxGrid:setCellBackgroundColour(Grid, Row, 3, ?wxRED);
+ 1 -> wxGrid:setCellBackgroundColour(Grid, Row, 3, ?wxGREEN),
+ wxGrid:setCellTextColour(Grid, Row, 2, {255,215,0,255});
+ 2 -> wxGrid:setCellBackgroundColour(Grid, Row, 3, ?wxBLUE);
+ _ -> wxGrid:setCellBackgroundColour(Grid, Row, 1, ?wxCYAN),
+ wxGrid:setCellValue(Grid, Row, 1,
+ "Centered\nhorizontally"),
+ wxGrid:setCellAlignment(Grid, Row, 4,
+ 0,?wxALIGN_CENTER),
+ wxGrid:setCellValue(Grid, Row, 4,
+ "Centered\nvertically"),
+ wxGrid:setCellAlignment(Grid, Row, 1,
+ ?wxALIGN_CENTER,0),
+ wxGrid:setCellTextColour(Grid, Row, 3, ?wxBLACK),
+ wxGrid:setCellAlignment(Grid, Row, 2,
+ ?wxALIGN_CENTER,
+ ?wxALIGN_CENTER),
+ wxGrid:setCellFont(Grid, Row, 0, Font),
+ wxGrid:setCellValue(Grid, Row, 2,
+ "Centered vertically\nand horizontally"),
+ wxGrid:setRowSize(Grid, Row, 80)
+ end
+ end,
+ %% Apply the fun to each row
+ wx:foreach(Fun, lists:seq(0,99)),
+ wxGrid:setColSize(Grid, 2, 150),
+ wxGrid:connect(Grid, grid_cell_change),
+ Grid.
+
+
diff --git a/lib/wx/examples/demo/ex_htmlWindow.erl b/lib/wx/examples/demo/ex_htmlWindow.erl
new file mode 100644
index 0000000000..b864cd10b2
--- /dev/null
+++ b/lib/wx/examples/demo/ex_htmlWindow.erl
@@ -0,0 +1,93 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_htmlWindow).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include("../../include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxHtmlWindow"}]),
+
+ %% Create the wxHtmlWindow
+ HtmlWin = wxHtmlWindow:new(Panel, []),
+ %% Load a file and display it
+ wxHtmlWindow:loadFile(HtmlWin, "ex_htmlWindow.html"),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, HtmlWin, [{flag, ?wxEXPAND}, {proportion, 1}]),
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND}, {proportion, 1}]),
+
+ wxHtmlWindow:connect(HtmlWin, command_html_link_clicked, [{skip,true}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxHtmlLink{linkInfo = #wxHtmlLinkInfo{href=Link}}},
+ State = #state{}) ->
+ demo:format(State#state.config, "You clicked link ~p.\n", [Link]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_htmlWindow.html b/lib/wx/examples/demo/ex_htmlWindow.html
new file mode 100644
index 0000000000..c22800606c
--- /dev/null
+++ b/lib/wx/examples/demo/ex_htmlWindow.html
@@ -0,0 +1,59 @@
+<html>
+ <a name="top" />
+ <h3>Erlang is the best.</h3>
+ <ul>
+ <li><font color="blue">Text1</font></li>
+ <li><font color="red">Text2</font></li>
+ </ul>
+ <p>You can insert whatever HTML you want... although wxHtmlWindow doesn't support css or scripts</p>
+ <br />
+ <img src="image.jpg" />
+ <table border="1">
+ <tr>
+ <td>This</td>
+ <td>is</td>
+ </tr>
+ <tr>
+ <td>a</td>
+ <td>table</td>
+ </tr>
+ </table>
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <a href="#top">Top</a><br />
+<center>
+<small>
+ Copyright &copy; 2009 Ericsson AB
+ </small>
+</center>
+</html> \ No newline at end of file
diff --git a/lib/wx/examples/demo/ex_listCtrl.erl b/lib/wx/examples/demo/ex_listCtrl.erl
new file mode 100644
index 0000000000..c574c7247a
--- /dev/null
+++ b/lib/wx/examples/demo/ex_listCtrl.erl
@@ -0,0 +1,148 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_listCtrl).
+
+-include_lib("wx/include/wx.hrl").
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-record(state,
+ {
+ parent,
+ config,
+ notebook
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxListCtrl"}]),
+
+ Notebook = wxNotebook:new(Panel, 1, [{style, ?wxBK_DEFAULT}]),
+
+
+ ListCtrl1 = wxListCtrl:new(Notebook, [{style, ?wxLC_LIST}]),
+ [wxListCtrl:insertItem(ListCtrl1, Int, "Item "++integer_to_list(Int)) ||
+ Int <- lists:seq(0,50)],
+ ListCtrl2 = create_list_ctrl(Notebook, [{style, ?wxLC_REPORT bor
+ ?wxLC_SINGLE_SEL}]),
+ IL = wxImageList:new(16,16),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_COPY", [{size, {16,16}}])),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_MISSING_IMAGE", [{size, {16,16}}])),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_TICK_MARK", [{size, {16,16}}])),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_CROSS_MARK", [{size, {16,16}}])),
+ wxListCtrl:assignImageList(ListCtrl2, IL, ?wxIMAGE_LIST_SMALL),
+ Fun =
+ fun(Item) ->
+ case Item rem 4 of
+ 0 ->
+ wxListCtrl:setItemBackgroundColour(ListCtrl2, Item, {240,240,240,255}),
+ wxListCtrl:setItemImage(ListCtrl2, Item, 0);
+ 1 -> wxListCtrl:setItemImage(ListCtrl2, Item, 1);
+ 2 -> wxListCtrl:setItemImage(ListCtrl2, Item, 2),
+ wxListCtrl:setItemBackgroundColour(ListCtrl2, Item, {240,240,240,255});
+ _ -> wxListCtrl:setItemImage(ListCtrl2, Item, 3)
+ end
+ end,
+ wx:foreach(Fun, lists:seq(0,50)),
+
+ ListCtrl3 = create_list_ctrl(Notebook, [{style, ?wxLC_REPORT}]),
+ wxListCtrl:setTextColour(ListCtrl3, ?wxBLUE),
+ wxListCtrl:setItemBackgroundColour(ListCtrl3,5,?wxRED),
+ wxListCtrl:setItemBackgroundColour(ListCtrl3,3,?wxGREEN),
+ wxListCtrl:setItemBackgroundColour(ListCtrl3,0,?wxCYAN),
+
+ wxListCtrl:connect(ListCtrl1, command_list_item_selected, []),
+ wxListCtrl:connect(ListCtrl2, command_list_item_selected, []),
+ wxListCtrl:connect(ListCtrl3, command_list_item_selected, []),
+
+ %% Add to sizers
+ wxNotebook:addPage(Notebook, ListCtrl1, "List", []),
+ wxNotebook:addPage(Notebook, ListCtrl2, "Report", []),
+ wxNotebook:addPage(Notebook, ListCtrl3, "Colored multiselect", []),
+
+ wxSizer:add(MainSizer, Notebook, [{proportion, 1},
+ {flag, ?wxEXPAND}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ notebook = Notebook}}.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{obj = _ListCtrl,
+ event = #wxList{itemIndex = Item}},
+ State = #state{}) ->
+ demo:format(State#state.config,"Item ~p selected.\n",[Item]),
+ {noreply,State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply,State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply,ok,State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-define(FIRST_COL, 0).
+-define(SECOND_COL, 1).
+-define(THIRD_COL, 2).
+
+create_list_ctrl(Win, Options) ->
+ ListCtrl = wxListCtrl:new(Win, Options),
+ wxListCtrl:insertColumn(ListCtrl, ?FIRST_COL, "First Col", []),
+ wxListCtrl:insertColumn(ListCtrl, ?SECOND_COL, "Second Col", []),
+ wxListCtrl:insertColumn(ListCtrl, ?THIRD_COL, "Third Col", []),
+ Fun =
+ fun(Int) ->
+ Name = integer_to_list(Int),
+ wxListCtrl:insertItem(ListCtrl, Int, ""),
+ wxListCtrl:setItem(ListCtrl, Int, ?FIRST_COL, "First "++Name),
+ wxListCtrl:setItem(ListCtrl, Int, ?SECOND_COL, "Second "++Name),
+ wxListCtrl:setItem(ListCtrl, Int, ?THIRD_COL, "Third "++Name)
+ end,
+ wx:foreach(Fun, lists:seq(0,50)),
+
+ ListCtrl.
+
+
diff --git a/lib/wx/examples/demo/ex_notebook.erl b/lib/wx/examples/demo/ex_notebook.erl
new file mode 100644
index 0000000000..2e16ccfffa
--- /dev/null
+++ b/lib/wx/examples/demo/ex_notebook.erl
@@ -0,0 +1,147 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_notebook).
+
+-include_lib("wx/include/wx.hrl").
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-record(state,
+ {
+ parent,
+ config,
+ notebook
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxNotebook"}]),
+
+ Notebook = wxNotebook:new(Panel, 1, [{style, ?wxBK_DEFAULT%,
+ %?wxBK_ALIGN_MASK,
+ %?wxBK_TOP,
+ %?wxBK_BOTTOM,
+ %?wxBK_LEFT,
+ %?wxBK_RIGHT,
+ %?wxNB_MULTILINE % windows only
+ }]),
+
+ %% Make a wxImageList to be able to display icons in the tab field
+ IL = wxImageList:new(16,16),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_INFORMATION", [{size, {16,16}}])),
+ wxImageList:add(IL, wxArtProvider:getBitmap("wxART_MISSING_IMAGE", [{size, {16,16}}])),
+ wxNotebook:assignImageList(Notebook, IL),
+
+
+
+ Win1 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Win1, ?wxRED),
+ Win1Text = wxStaticText:new(Win1, ?wxID_ANY, "This is a red tab.",
+ [{pos, {50, 100}}]),
+ wxStaticText:setForegroundColour(Win1Text, ?wxGREEN),
+ Sizer1 = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer1, Win1Text),
+ wxPanel:setSizer(Win1, Sizer1),
+ wxNotebook:addPage(Notebook, Win1, "Red", []),
+
+ Win2 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Win2, ?wxBLUE),
+ Win2Text = wxStaticText:new(Win2, ?wxID_ANY, "This is a blue tab.",
+ [{pos, {50, 100}}]),
+ wxStaticText:setForegroundColour(Win2Text, {255,255,0,255}),
+ Sizer2 = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer2, Win2Text),
+ wxPanel:setSizer(Win2, Sizer2),
+ wxNotebook:addPage(Notebook, Win2, "Blue", []),
+
+ Win3 = wxPanel:new(Notebook, []),
+ wxNotebook:addPage(Notebook, Win3, "No color", []),
+ wxNotebook:setPageImage(Notebook, 2, 1),
+
+ Win4 = wxPanel:new(Notebook, []),
+ wxPanel:setBackgroundColour(Win4, ?wxBLACK),
+ Win4Text = wxStaticText:new(Win4, ?wxID_ANY, "This is a black tab.",
+ [{pos, {50, 100}}]),
+ wxStaticText:setForegroundColour(Win4Text, ?wxWHITE),
+ Sizer4 = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer4, Win4Text),
+ wxPanel:setSizer(Win4, Sizer4),
+ wxNotebook:addPage(Notebook, Win4, "Black", []),
+
+ Win5 = wxPanel:new(Notebook, []),
+ wxNotebook:addPage(Notebook, Win5, "Tab with icon", []),
+ wxNotebook:setPageImage(Notebook, 4, 0),
+
+ %% Add to sizers
+ wxSizer:add(MainSizer, Notebook, [{proportion, 1},
+ {flag, ?wxEXPAND}]),
+
+ wxNotebook:connect(Notebook, command_notebook_page_changed,
+ [{skip, true}]), % {skip, true} has to be set on windows
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ notebook = Notebook}}.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxNotebook{type = command_notebook_page_changed}},
+ State = #state{notebook = Notebook}) ->
+ Selection = wxNotebook:getSelection(Notebook),
+ Title = wxNotebook:getPageText(Notebook, Selection),
+ demo:format(State#state.config,"You have selected the tab ~p\n",[Title]),
+ {noreply,State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p\n",[Ev]),
+ {noreply,State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply,State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply,ok,State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
diff --git a/lib/wx/examples/demo/ex_pickers.erl b/lib/wx/examples/demo/ex_pickers.erl
new file mode 100644
index 0000000000..892c5b449d
--- /dev/null
+++ b/lib/wx/examples/demo/ex_pickers.erl
@@ -0,0 +1,136 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_pickers).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ DirPickerSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxDirPickerCtrl"}]),
+ FilePickerSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxFilePickerCtrl"}]),
+ FontPickerSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxFontPickerCtrl"}]),
+ DatePickerSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxDatePickerCtrl"}]),
+ ColourPickerSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxColourPickerCtrl"}]),
+
+ DirPicker = wxDirPickerCtrl:new(Panel, 1, [{path, "/"}]),
+ FilePicker = wxFilePickerCtrl:new(Panel, 2, [{path, "/"}]),
+ FontPicker = wxFontPickerCtrl:new(Panel, 3, []),
+ DatePicker = wxDatePickerCtrl:new(Panel, 4, []),
+ ColourPicker = wxColourPickerCtrl:new(Panel, 5, []),
+
+ wxColourPickerCtrl:connect(ColourPicker, command_colourpicker_changed, []),
+ wxDirPickerCtrl:connect(DirPicker, command_dirpicker_changed, []),
+ wxFilePickerCtrl:connect(FilePicker, command_filepicker_changed, []),
+ wxFontPickerCtrl:connect(FontPicker, command_fontpicker_changed, []),
+ wxDatePickerCtrl:connect(DatePicker, date_changed, []),
+
+ %% Add to sizers
+ PickerOptions = [{border, 4},{flag, ?wxALL bor ?wxEXPAND}],
+ wxSizer:add(DirPickerSizer, DirPicker, PickerOptions),
+ wxSizer:add(FilePickerSizer, FilePicker, PickerOptions),
+ wxSizer:add(FontPickerSizer, FontPicker, PickerOptions),
+ wxSizer:add(DatePickerSizer, DatePicker, PickerOptions),
+ wxSizer:add(ColourPickerSizer, ColourPicker, PickerOptions),
+
+ SizerOptions = [{flag, ?wxEXPAND}],
+ wxSizer:add(MainSizer, DirPickerSizer, SizerOptions),
+ wxSizer:add(MainSizer, FilePickerSizer, SizerOptions),
+ wxSizer:add(MainSizer, FontPickerSizer, SizerOptions),
+ wxSizer:add(MainSizer, DatePickerSizer, SizerOptions),
+ wxSizer:add(MainSizer, ColourPickerSizer, SizerOptions),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxFontPicker{font = Font}}, State = #state{}) ->
+ demo:format(State#state.config, "Font changed to ~p.\n", [Font]),
+ {noreply, State};
+handle_event(#wx{event = #wxColourPicker{colour = Colour}}, State = #state{}) ->
+ demo:format(State#state.config, "Colour changed to ~p.\n", [Colour]),
+ {noreply, State};
+handle_event(#wx{event = #wxFileDirPicker{type = command_filepicker_changed,
+ path = Path}},
+ State = #state{}) ->
+ demo:format(State#state.config, "Filepicker changed to ~p.\n", [Path]),
+ {noreply, State};
+handle_event(#wx{event = #wxFileDirPicker{type = command_dirpicker_changed,
+ path = Path}},
+ State = #state{}) ->
+ demo:format(State#state.config, "Dirpicker changed to ~p.\n", [Path]),
+ {noreply, State};
+handle_event(#wx{event = #wxDate{date = Date}},
+ State = #state{}) ->
+ demo:format(State#state.config, "Datepicker changed to ~p.\n", [Date]),
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_popupMenu.erl b/lib/wx/examples/demo/ex_popupMenu.erl
new file mode 100644
index 0000000000..8774dbef7b
--- /dev/null
+++ b/lib/wx/examples/demo/ex_popupMenu.erl
@@ -0,0 +1,150 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_popupMenu).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ menu
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Root = proplists:get_value(parent, Config),
+ Parent = wxPanel:new(Root,[]),
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Box = wxStaticBox:new(Parent, ?wxID_ANY, "Popup Menu"),
+ Sz = wxStaticBoxSizer:new(Box, ?wxVERTICAL),
+ Text = wxStaticText:new(Parent, ?wxID_ANY, "Right click to open popup menu", []),
+ Panel = wxPanel:new(Parent),
+ wxPanel:connect(Panel, right_up),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, Text, [{border, 20}, {flag, ?wxALL}]),
+ wxPanel:setSizer(Panel, Sizer),
+ wxSizer:add(Sz, Panel, [{proportion,1}, {flag, ?wxEXPAND}]),
+ wxSizer:layout(Sz),
+ PopupMenu = create_menu(),
+ wxSizer:add(MainSizer, Sz, [{proportion,1}, {flag, ?wxEXPAND}]),
+ wxWindow:setSizer(Parent, MainSizer),
+ {Parent, #state{parent=Parent, config=Config, menu=PopupMenu}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{obj = Panel,
+ event = #wxMouse{type = right_up}},
+ State = #state{menu = Menu}) ->
+ %% Open the popup menu
+ wxWindow:popupMenu(Panel, Menu),
+ {noreply, State};
+handle_event(#wx{obj = Menu, id = Id,
+ event = #wxCommand{type = command_menu_selected}},
+ State = #state{}) ->
+ %% Get the selected item label
+ Label = wxMenu:getLabel(Menu, Id),
+ demo:format(State#state.config, "wxMenu clicked ~p\n", [Label]),
+ {noreply, State};
+handle_event(Ev, State) ->
+ demo:format(State#state.config, "Unexpected Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, #state{menu=Popup}) ->
+ wxMenu:destroy(Popup),
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+create_menu() ->
+ Menu = wxMenu:new([]),
+ SubMenu = wxMenu:new([]),
+ SubMenu2 = wxMenu:new([]),
+
+ wxMenu:append(Menu, ?wxID_UNDO, "Undo", []),
+ wxMenu:append(Menu, ?wxID_REDO, "Redo", []),
+ wxMenu:append(Menu, ?wxID_HELP, "Help", []),
+ wxMenu:appendSeparator(Menu),
+ wxMenu:appendCheckItem(Menu, ?wxID_ANY, "Check item", []),
+ wxMenu:appendSeparator(Menu),
+ wxMenu:appendRadioItem(Menu, ?wxID_ANY, "Radio item 1", []),
+ wxMenu:appendRadioItem(Menu, ?wxID_ANY, "Radio item 2", []),
+ wxMenu:appendRadioItem(Menu, ?wxID_ANY, "Radio item 3", []),
+ wxMenu:appendRadioItem(Menu, ?wxID_ANY, "Radio item 4", []),
+
+ wxMenu:appendSeparator(Menu),
+ wxMenuItem:enable(wxMenu:append(Menu, ?wxID_ANY, "Disabled", []), [{enable,false}]),
+ wxMenu:appendSeparator(Menu),
+
+ wxMenu:append(SubMenu, ?wxID_ABOUT, "About", []),
+ wxMenu:append(SubMenu, ?wxID_ANY, "Sub Item2", []),
+ wxMenu:append(SubMenu, ?wxID_SAVE, "Save", []),
+ wxMenu:break(SubMenu),
+ wxMenu:append(SubMenu, ?wxID_EXIT, "Exit", []),
+ wxMenu:append(SubMenu, ?wxID_OPEN, "Open", []),
+ wxMenu:append(SubMenu, ?wxID_NEW, "New", []),
+ wxMenu:append(Menu, ?wxID_ANY, "Sub menu", SubMenu, []),
+
+ wxMenu:appendCheckItem(SubMenu2, ?wxID_ANY, "Check Item", []),
+ wxMenu:appendSeparator(SubMenu2),
+ wxMenu:append(SubMenu2, ?wxID_CLEAR, "Clear", []),
+ wxMenu:append(SubMenu2, ?wxID_ANY, "Sub Item", []),
+
+ Bitmap = wxArtProvider:getBitmap("wxART_NEW"),
+ AnotherSubMenu = wxMenuItem:new([{parentMenu, Menu},
+ {id, ?wxID_ANY},
+ {text, "Another sub menu"},
+ {subMenu, SubMenu2},
+ {kind, ?wxITEM_NORMAL}]),
+ wxMenuItem:setBitmap(AnotherSubMenu, Bitmap),
+ wxMenu:append(Menu, AnotherSubMenu),
+
+ wxMenu:connect(Menu, command_menu_selected),
+ wxMenu:connect(SubMenu, command_menu_selected),
+ wxMenu:connect(SubMenu2, command_menu_selected),
+ Menu.
diff --git a/lib/wx/examples/demo/ex_radioBox.erl b/lib/wx/examples/demo/ex_radioBox.erl
new file mode 100644
index 0000000000..8211aec4a2
--- /dev/null
+++ b/lib/wx/examples/demo/ex_radioBox.erl
@@ -0,0 +1,163 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_radioBox).
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ radio_box
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+
+ Choices = ["Item " ++ integer_to_list(Int) || Int <- lists:seq(1,12)],
+ RadioBox = wxRadioBox:new(Panel, 1, "wxRadioBox Horizontal",
+ ?wxDefaultPosition,
+ ?wxDefaultSize,
+ Choices,
+ [{majorDim, 3},
+ {style, ?wxHORIZONTAL}]),
+ wxRadioBox:connect(RadioBox, command_radiobox_selected),
+
+ RadioButtonSizer = create_radio_buttons(Panel),
+
+ CheckSizer = create_checkboxes(Panel),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, RadioButtonSizer),
+ wxSizer:addSpacer(Sizer, 20),
+ wxSizer:add(Sizer, CheckSizer),
+
+ wxSizer:add(MainSizer, RadioBox),
+ wxSizer:addSpacer(MainSizer, 20),
+ wxSizer:add(MainSizer, Sizer),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config,
+ radio_box = RadioBox}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxCommand{type = command_radiobox_selected,
+ cmdString = Item}},
+ State = #state{}) ->
+ demo:format(State#state.config,"wxRadioBox selected ~p\n",[Item]),
+ {noreply, State};
+handle_event(#wx{obj = Checkbox,
+ event = #wxCommand{type = command_checkbox_clicked,
+ commandInt = Int}},
+ State = #state{config = Config}) ->
+ Label = wxCheckBox:getLabel(Checkbox),
+ case Int of
+ 0 -> demo:format(Config,"wxCheckBox deselected ~p\n",[Label]);
+ 1 -> demo:format(Config,"wxCheckBox selected ~p \n",[Label]);
+ 2 -> demo:format(Config,"wxCheckBox middle-state ~p\n",[Label])
+ end,
+ {noreply, State};
+handle_event(#wx{obj = RadioButton,
+ event = #wxCommand{type = command_radiobutton_selected}},
+ State = #state{}) ->
+ Label = wxRadioButton:getLabel(RadioButton),
+ demo:format(State#state.config,"wxRadioButton selected ~p\n",[Label]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply, {error, nyi}, State}.
+
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+create_checkboxes(Panel) ->
+ CheckSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxCheckBox"}]),
+
+ CheckBoxes =
+ [wxCheckBox:new(Panel, ?wxID_ANY, "Label1", []),
+ wxCheckBox:new(Panel, ?wxID_ANY, "Label2", []),
+ wxCheckBox:new(Panel, ?wxID_ANY, "Label3", []),
+ wxCheckBox:new(Panel, ?wxID_ANY, "3-state checkbox",
+ [{style, ?wxCHK_3STATE bor
+ ?wxCHK_ALLOW_3RD_STATE_FOR_USER}]),
+ wxCheckBox:new(Panel, ?wxID_ANY, "Right aligned",
+ [{style, ?wxALIGN_RIGHT}])],
+ Fun =
+ fun(Item) ->
+ wxCheckBox:connect(Item, command_checkbox_clicked),
+ wxSizer:add(CheckSizer, Item)
+ end,
+ wx:foreach(Fun, CheckBoxes),
+ CheckSizer.
+
+
+create_radio_buttons(Panel) ->
+ RadioButtonSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxRadioButton"}]),
+
+ Buttons =
+ [wxRadioButton:new(Panel, ?wxID_ANY, "Group1 Radio1",
+ [{style, ?wxRB_GROUP}]),
+ wxRadioButton:new(Panel, ?wxID_ANY, "Group1 Radio2", []),
+ wxRadioButton:new(Panel, ?wxID_ANY, "Group1 Radio3", []),
+ wxRadioButton:new(Panel, ?wxID_ANY, "Group2 Radio1",
+ [{style, ?wxRB_GROUP}]),
+ wxRadioButton:new(Panel, ?wxID_ANY, "Group2 Radio2", []),
+ wxRadioButton:new(Panel, ?wxID_ANY, "Group2 Radio3", [])],
+ Fun =
+ fun(Item) ->
+ wxRadioButton:connect(Item, command_radiobutton_selected),
+ wxSizer:add(RadioButtonSizer, Item)
+ end,
+
+ wx:foreach(Fun, Buttons),
+ RadioButtonSizer.
diff --git a/lib/wx/examples/demo/ex_sashWindow.erl b/lib/wx/examples/demo/ex_sashWindow.erl
new file mode 100644
index 0000000000..dd05f4e45f
--- /dev/null
+++ b/lib/wx/examples/demo/ex_sashWindow.erl
@@ -0,0 +1,128 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_sashWindow).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config,
+ top_sash,
+ bottom_sash
+ }).
+
+-define(TOP_SASH, 1).
+-define(BOTTOM_SASH, 2).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+
+ TopSash = wxSashWindow:new(Panel, [{id, ?TOP_SASH},
+ {style, ?wxSW_3D}]),
+ Win1 = wxPanel:new(TopSash, []),
+ wxStaticText:new(Win1, ?wxID_ANY, "This is the top sash", []),
+ BottomSash = wxSashWindow:new(Panel, [{id, ?BOTTOM_SASH},
+ {style, ?wxSW_3D}]),
+ Win2 = wxPanel:new(BottomSash, []),
+ wxStaticText:new(Win2, ?wxID_ANY, "This is the bottom sash", []),
+
+ %% Make the bottom edge of the top sash dragable
+ wxSashWindow:setSashVisible(TopSash, ?wxSASH_BOTTOM, true),
+ wxPanel:connect(Panel, sash_dragged),
+ wxPanel:connect(Panel, size),
+
+ %% Add to sizers
+ Options = [{flag, ?wxEXPAND}, {proportion, 1}],
+ wxSizer:add(Sizer, TopSash, Options),
+ wxSizer:add(Sizer, BottomSash, Options),
+ wxSizer:add(MainSizer, Sizer, Options),
+ wxPanel:setSizer(Panel, MainSizer),
+ wxSizer:fit(MainSizer, Panel),
+ wxSizer:setSizeHints(MainSizer, Panel),
+ {Panel, #state{parent=Panel, config=Config,
+ top_sash = TopSash, bottom_sash = BottomSash}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxSash{dragRect = {_X,Y, _W, H}}},
+ State = #state{top_sash = TopSash,
+ bottom_sash = BottomSash}) ->
+ {OldW, OldH} = wxPanel:getSize(State#state.parent),
+ Diff = OldH - H,
+ {OldX, _} = wxSashWindow:getPosition(BottomSash),
+ wxSashWindow:setMinSize(BottomSash, {OldW,Diff}),
+ wxSashWindow:setMinSize(TopSash, {OldW,H}),
+ wxSashWindow:setSize(BottomSash, {OldX, Y,OldW,Diff}),
+ wxSashWindow:setSize(TopSash, {OldW,H}),
+ wxPanel:refresh(State#state.parent),
+ {noreply, State};
+handle_event(#wx{event = #wxSize{size = {W, H}}},
+ State = #state{top_sash = TopSash,
+ bottom_sash = BottomSash}) ->
+ wxSashWindow:setMinSize(TopSash, {W, H div 2}),
+ wxSashWindow:setMinSize(BottomSash, {W, H div 2}),
+ wxSashWindow:setSize(TopSash, {W, H div 2}),
+ wxSashWindow:setSize(BottomSash, {0,H div 2,W,H div 2}),
+ wxPanel:refresh(State#state.parent),
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_sizers.erl b/lib/wx/examples/demo/ex_sizers.erl
new file mode 100644
index 0000000000..2cc6efd503
--- /dev/null
+++ b/lib/wx/examples/demo/ex_sizers.erl
@@ -0,0 +1,436 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_sizers).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxSizer"}]),
+
+ Choices = ["Vertical Example",
+ "Horizontal Example",
+ "Add A Strechable",
+ "More Than One Strechable",
+ "Weighting Factor",
+ "Edge Affinity",
+ "Spacer",
+ "Centering In Avalible Space",
+ "Simple Border",
+ "East And West Border",
+ "North And South Border",
+ "Box In Box",
+ "Boxes Inside A Border",
+ "Border In A Box",
+ "Simple Grid",
+ "More Grid Features",
+ "Flexible Grid",
+ "Grid With Alignment",
+ "Proportional Resize With Alignments"],
+
+ ListBox = wxListBox:new(Panel, ?wxID_ANY, [{choices, Choices}]),
+ wxListBox:connect(ListBox, command_listbox_doubleclicked),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, ListBox, [{flag, ?wxEXPAND}]),
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND}, {proportion, 1}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxCommand{type = command_listbox_doubleclicked,
+ cmdString = Choice}},
+ State = #state{}) ->
+ create_example(State#state.parent, Choice),
+ {noreply, State};
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config, "Got Event ~p\n", [Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+create_example(Parent, Example) ->
+ Frame = wxFrame:new(Parent, ?wxID_ANY, Example,
+ [{style, ?wxDEFAULT_FRAME_STYLE bor ?wxFRAME_FLOAT_ON_PARENT}]),
+ wxFrame:center(Frame),
+ Panel = wxPanel:new(Frame, []),
+ Sizer =
+ case Example of
+ "Proportional Resize With Alignments" ->
+ proportional_resize_with_alignments(Panel);
+ "Grid With Alignment" ->
+ grid_with_alignment(Panel);
+ "Flexible Grid" ->
+ flexible_grid(Panel);
+ "More Grid Features" ->
+ more_grid_features(Panel);
+ "Simple Grid" ->
+ simple_grid(Panel);
+ "Border In A Box" ->
+ border_in_a_box(Panel);
+ "Boxes Inside A Border" ->
+ boxes_inside_a_border(Panel);
+ "Box In Box" ->
+ box_in_box(Panel);
+ "East And West Border" ->
+ east_and_west_border(Panel);
+ "North And South Border" ->
+ north_and_south_border(Panel);
+ "Simple Border" ->
+ simple_border(Panel);
+ "Centering In Avalible Space" ->
+ centering_in_avalible_space(Panel);
+ "Spacer" ->
+ spacer(Panel);
+ "Edge Affinity" ->
+ edge_affinity(Panel);
+ "Weighting Factor" ->
+ weighting_factor(Panel);
+ "More Than One Strechable" ->
+ more_than_one_strechable(Panel);
+ "Add A Strechable" ->
+ add_a_strechable(Panel);
+ "Vertical Example" ->
+ vertical(Panel);
+ "Horizontal Example" ->
+ horizontal(Panel)
+ end,
+ wxPanel:setSizer(Panel, Sizer),
+ wxSizer:fit(Sizer, Panel),
+ wxFrame:createStatusBar(Frame),
+ wxFrame:setStatusText(Frame, "Resize window to see how the sizers respond.."),
+ wxFrame:fit(Frame),
+ wxFrame:show(Frame).
+
+create_box(Parent) ->
+ Win = wxWindow:new(Parent, ?wxID_ANY, [{style, ?wxBORDER_SIMPLE},
+ {size, {50,25}}]),
+ wxWindow:setBackgroundColour(Win, ?wxWHITE),
+ Win.
+
+
+vertical(Parent) ->
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+
+horizontal(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+add_a_strechable(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+more_than_one_strechable(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+weighting_factor(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 3}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+edge_affinity(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxALIGN_TOP}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxALIGN_CENTER}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxALIGN_BOTTOM}]),
+ Sizer.
+
+spacer(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, 60,20, [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+centering_in_avalible_space(Parent) ->
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, 0,0, [{proportion, 1}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxALIGN_CENTER}]),
+ wxSizer:add(Sizer, 0,0, [{proportion, 1}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+simple_border(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ Win = create_box(Parent),
+ wxWindow:setSize(Win, 80,80),
+ wxSizer:add(Sizer, Win, [{proportion, 1}, {flag, ?wxEXPAND bor ?wxALL},
+ {border, 15}]),
+ Sizer.
+
+east_and_west_border(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ Win = create_box(Parent),
+ wxWindow:setSize(Win, 80,80),
+ wxSizer:add(Sizer, Win, [{proportion, 1}, {flag, ?wxEXPAND bor ?wxEAST bor ?wxWEST},
+ {border, 15}]),
+ Sizer.
+
+north_and_south_border(Parent) ->
+ Sizer = wxBoxSizer:new(?wxHORIZONTAL),
+ Win = create_box(Parent),
+ wxWindow:setSize(Win, 80,80),
+ wxSizer:add(Sizer, Win, [{proportion, 1}, {flag, ?wxEXPAND bor ?wxNORTH bor ?wxSOUTH},
+ {border, 15}]),
+ Sizer.
+
+
+box_in_box(Parent) ->
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ Sizer2 = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ Sizer3 = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 2}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+
+ wxSizer:add(Sizer2, Sizer3, [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, Sizer2, [{proportion, 1}, {flag, ?wxEXPAND}]),
+
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ Sizer.
+
+boxes_inside_a_border(Parent) ->
+ Border = wxBoxSizer:new(?wxHORIZONTAL),
+ Sizer = add_a_strechable(Parent),
+ wxSizer:add(Border, Sizer, [{proportion, 1}, {flag, ?wxEXPAND bor ?wxALL},
+ {border, 15}]),
+ Border.
+
+border_in_a_box(Parent) ->
+ InsideBox = wxBoxSizer:new(?wxHORIZONTAL),
+
+ Sizer2 = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ wxSizer:add(InsideBox, Sizer2, [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ Border = wxBoxSizer:new(?wxHORIZONTAL),
+ wxSizer:add(Border, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND bor ?wxALL}]),
+ wxSizer:add(InsideBox, Border, [{proportion, 1}, {flag, ?wxEXPAND bor ?wxALL},
+ {border, 20}]),
+
+
+ Sizer3 = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 2}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer3, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+
+ wxSizer:add(InsideBox, Sizer3, [{proportion, 1}, {flag, ?wxEXPAND}]),
+
+ OutsideBox = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(OutsideBox, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(OutsideBox, InsideBox, [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(OutsideBox, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ OutsideBox.
+
+simple_grid(Parent) ->
+ GridSizer = wxGridSizer:new(3, 3, 2, 2),
+
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ GridSizer.
+
+more_grid_features(Parent) ->
+ GridSizer = wxGridSizer:new(3, 3, 1, 1), % rows, cols, vgap, hgap
+
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, create_box(Parent), [{proportion, 1}, {flag, ?wxEXPAND}]),
+
+ GridSizer2 = wxGridSizer:new(2, 2, 4, 4),
+ wxSizer:add(GridSizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer2, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxALIGN_RIGHT bor ?wxALIGN_BOTTOM}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxALIGN_LEFT bor ?wxALIGN_BOTTOM}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxALIGN_CENTER}]),
+ wxSizer:add(GridSizer, Sizer, [{proportion, 0}, {flag, ?wxEXPAND bor ?wxALL},
+ {border, 10}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(GridSizer, GridSizer2, [{proportion, 0}, {flag, ?wxEXPAND bor ?wxALL},
+ {border, 4}]),
+ GridSizer.
+
+
+flexible_grid(Parent) ->
+ FlexGridSizer = wxFlexGridSizer:new(3, 3, 2, 2), % rows, cols, vgap, hgap
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, 175, 50, []),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+ wxSizer:add(FlexGridSizer, create_box(Parent), [{proportion, 0}, {flag, ?wxEXPAND}]),
+
+ wxFlexGridSizer:addGrowableRow(FlexGridSizer, 0),
+ wxFlexGridSizer:addGrowableRow(FlexGridSizer, 2),
+ wxFlexGridSizer:addGrowableCol(FlexGridSizer, 1),
+ FlexGridSizer.
+
+grid_with_alignment(Parent) ->
+ GridSizer = wxGridSizer:new(3, 3, 2, 2), % rows, cols, vgap, hgap
+
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_TOP bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_TOP bor ?wxALIGN_CENTER_HORIZONTAL}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_TOP bor ?wxALIGN_RIGHT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_CENTER_VERTICAL bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_CENTER}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_CENTER_VERTICAL bor ?wxALIGN_RIGHT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_BOTTOM bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_BOTTOM bor ?wxALIGN_CENTER_HORIZONTAL}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxALIGN_BOTTOM bor ?wxALIGN_RIGHT}]),
+ GridSizer.
+
+proportional_resize_with_alignments(Parent) ->
+ GridSizer = wxGridSizer:new(3, 3, 2, 2), % rows, cols, vgap, hgap
+
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_TOP bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_TOP bor ?wxALIGN_CENTER_HORIZONTAL}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_TOP bor ?wxALIGN_RIGHT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_CENTER_VERTICAL bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_CENTER}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_CENTER_VERTICAL bor ?wxALIGN_RIGHT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_BOTTOM bor ?wxALIGN_LEFT}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_BOTTOM bor ?wxALIGN_CENTER_HORIZONTAL}]),
+ wxSizer:add(GridSizer, create_box(Parent),
+ [{proportion, 0}, {flag, ?wxSHAPED bor ?wxALIGN_BOTTOM bor ?wxALIGN_RIGHT}]),
+ GridSizer.
+
diff --git a/lib/wx/examples/demo/ex_slider.erl b/lib/wx/examples/demo/ex_slider.erl
new file mode 100644
index 0000000000..7b669d96f6
--- /dev/null
+++ b/lib/wx/examples/demo/ex_slider.erl
@@ -0,0 +1,113 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_slider).
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Horizontal wxSlider"}]),
+ Sizer2 = wxStaticBoxSizer:new(?wxHORIZONTAL, Panel,
+ [{label, "Vertical wxSlider"}]),
+
+ %% Setup slider with range from 0 to 100
+ %% and a start value of 25
+ Min = 0,
+ Max = 100,
+ StartValue = 25,
+ %% Horizontal slider (default) with label
+ Slider = wxSlider:new(Panel, 1, StartValue, Min, Max,
+ [{style, ?wxSL_HORIZONTAL bor
+ ?wxSL_LABELS}]),
+ %% Horizontal inverse slider with label
+ InverseSlider = wxSlider:new(Panel, 2, StartValue, Min, Max,
+ [{style, ?wxSL_HORIZONTAL bor
+ ?wxSL_LABELS bor
+ ?wxSL_INVERSE}]),
+ VerticalSlider = wxSlider:new(Panel, 3, StartValue, Min, Max,
+ [{style, ?wxSL_VERTICAL bor
+ ?wxSL_LABELS}]),
+ InverseVerticalSlider = wxSlider:new(Panel, 4, StartValue, Min, Max,
+ [{style, ?wxSL_VERTICAL bor
+ ?wxSL_LABELS bor
+ ?wxSL_INVERSE}]),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Slider, [{flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, InverseSlider, [{flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, VerticalSlider, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+ wxSizer:add(Sizer2, InverseVerticalSlider, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND}]),
+ wxSizer:add(MainSizer, Sizer2, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p\n",[Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply, {error, nyi},State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_splitterWindow.erl b/lib/wx/examples/demo/ex_splitterWindow.erl
new file mode 100644
index 0000000000..c135f298fa
--- /dev/null
+++ b/lib/wx/examples/demo/ex_splitterWindow.erl
@@ -0,0 +1,102 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_splitterWindow).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, [{size, {100, 100}}]),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxSplitterWindow"}]),
+
+ Splitter = wxSplitterWindow:new(Panel, []),
+
+ Win1 = wxTextCtrl:new(Splitter, 1, [{value, "Splitted Window 1"},
+ {style, ?wxDEFAULT bor ?wxTE_MULTILINE}]),
+ Win2 = wxTextCtrl:new(Splitter, 1, [{value, "Splitted Window 1"},
+ {style, ?wxDEFAULT bor ?wxTE_MULTILINE}]),
+
+ wxSplitterWindow:splitVertically(Splitter, Win1, Win2),
+ wxSplitterWindow:setSashGravity(Splitter, 0.5),
+ %% Set pane-size =/= 0 to not unsplit on doubleclick
+ %% on the splitter
+ wxSplitterWindow:setMinimumPaneSize(Splitter,50),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, Splitter, [{flag, ?wxEXPAND},
+ {proportion, 1}]),
+
+ wxSizer:add(MainSizer, Sizer, [{proportion, 1},
+ {flag, ?wxEXPAND}]),
+ wxPanel:connect(Panel, command_splitter_sash_pos_changed),
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxSplitter{type = command_splitter_sash_pos_changed}},
+ State = #state{}) ->
+ demo:format(State#state.config, "Splitter pos changed.\n", []),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_static.erl b/lib/wx/examples/demo/ex_static.erl
new file mode 100644
index 0000000000..67061520c4
--- /dev/null
+++ b/lib/wx/examples/demo/ex_static.erl
@@ -0,0 +1,117 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_static).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxScrolledWindow:new(Parent, []),
+ wxScrolledWindow:setScrollRate(Panel, 5, 5),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ TextSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxStaticText"}]),
+ BitmapSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxStaticBitmap"}]),
+ LineSizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxStaticLine"}]),
+
+ %% Create static texts
+ Texts = [wxStaticText:new(Panel, 1, "This is a regular text (left aligned)", []),
+ wxStaticText:new(Panel, 2, "This is a centered text",
+ [{style, ?wxALIGN_CENTER bor ?wxST_NO_AUTORESIZE}]),
+ wxStaticText:new(Panel, 3, "This is a right aligned text",
+ [{style, ?wxALIGN_RIGHT bor ?wxST_NO_AUTORESIZE}])],
+
+
+ Image = wxImage:new("image.jpg", []),
+ Bitmap = wxBitmap:new(wxImage:scale(Image,
+ round(wxImage:getWidth(Image)*1.5),
+ round(wxImage:getHeight(Image)*1.5),
+ [{quality, ?wxIMAGE_QUALITY_HIGH}])),
+ StaticBitmap = wxStaticBitmap:new(Panel, 1, Bitmap),
+
+ Line = wxStaticLine:new(Panel, [{style, ?wxLI_HORIZONTAL}]),
+ Line2 = wxStaticLine:new(Panel, [{style, ?wxLI_VERTICAL},
+ {size, {-1, 100}}]),
+
+ %% Add to sizers
+ [wxSizer:add(TextSizer, Text, [{flag, ?wxEXPAND bor ?wxALL},
+ {border, 10}]) || Text <- Texts],
+ wxSizer:add(BitmapSizer, StaticBitmap, []),
+ wxSizer:add(LineSizer, Line, [{flag, ?wxTOP bor ?wxBOTTOM bor ?wxEXPAND},
+ {border, 10}]),
+ wxSizer:add(LineSizer, Line2, [{flag, ?wxLEFT},
+ {border, 50}]),
+
+ wxSizer:add(MainSizer, TextSizer, [{flag, ?wxEXPAND}]),
+ wxSizer:add(MainSizer, BitmapSizer, []),
+ wxSizer:add(MainSizer, LineSizer, [{flag, ?wxEXPAND}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{}, State = #state{}) ->
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_textCtrl.erl b/lib/wx/examples/demo/ex_textCtrl.erl
new file mode 100644
index 0000000000..95837c7c4c
--- /dev/null
+++ b/lib/wx/examples/demo/ex_textCtrl.erl
@@ -0,0 +1,104 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_textCtrl).
+
+-behaviour(wx_object).
+
+-export([start/1, init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxTextCtrl single line"}]),
+ Sizer2 = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxTextCtrl single line password"}]),
+ Sizer3 = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxTextCtrl multiline"}]),
+
+ TextCtrl = wxTextCtrl:new(Panel, 1, [{value, "This is a single line wxTextCtrl"},
+ {style, ?wxDEFAULT}]),
+ TextCtrl2 = wxTextCtrl:new(Panel, 2, [{value, "password"},
+ {style, ?wxDEFAULT bor
+ ?wxTE_PASSWORD}]),
+ TextCtrl3 = wxTextCtrl:new(Panel, 3, [{value, "This is a\n"
+ "multiline\n"
+ "wxTextCtrl"},
+ {style, ?wxDEFAULT bor
+ ?wxTE_MULTILINE}]),
+
+ %% Add to sizers
+ wxSizer:add(Sizer, TextCtrl, [{flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer2, TextCtrl2, []),
+ wxSizer:add(Sizer3, TextCtrl3, [{flag, ?wxEXPAND}]),
+
+ wxSizer:add(MainSizer, Sizer, [{flag, ?wxEXPAND}]),
+ wxSizer:addSpacer(MainSizer, 10),
+ wxSizer:add(MainSizer, Sizer2, [{flag, ?wxEXPAND}]),
+ wxSizer:addSpacer(MainSizer, 10),
+ wxSizer:add(MainSizer, Sizer3, [{flag, ?wxEXPAND}]),
+
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(Ev = #wx{}, State = #state{}) ->
+ demo:format(State#state.config,"Got Event ~p\n",[Ev]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n",[Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config,"Got Call ~p\n",[Msg]),
+ {reply, {error,nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/ex_treeCtrl.erl b/lib/wx/examples/demo/ex_treeCtrl.erl
new file mode 100644
index 0000000000..fa40795393
--- /dev/null
+++ b/lib/wx/examples/demo/ex_treeCtrl.erl
@@ -0,0 +1,121 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(ex_treeCtrl).
+
+-behaviour(wx_object).
+
+%% Client API
+-export([start/1]).
+
+%% wx_object callbacks
+-export([init/1, terminate/2, code_change/3,
+ handle_info/2, handle_call/3, handle_event/2]).
+
+-include_lib("wx/include/wx.hrl").
+
+-record(state,
+ {
+ parent,
+ config
+ }).
+
+start(Config) ->
+ wx_object:start_link(?MODULE, Config, []).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init(Config) ->
+ wx:batch(fun() -> do_init(Config) end).
+
+do_init(Config) ->
+ Parent = proplists:get_value(parent, Config),
+ Panel = wxPanel:new(Parent, []),
+
+ %% Setup sizers
+ MainSizer = wxBoxSizer:new(?wxVERTICAL),
+ Sizer = wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "wxTreeCtrl"}]),
+
+ %% Setup treeCtrl
+ TreeCtrl = wxTreeCtrl:new(Panel, []),
+ RootId = wxTreeCtrl:addRoot(TreeCtrl, "Root"),
+ %% Name the first items
+ Items = ["item "++integer_to_list(Int)||
+ Int <- lists:seq(1,10)],
+ %% Create the first items in the treeCtrl
+ SubItems = [{wxTreeCtrl:appendItem(TreeCtrl, RootId, Item), Item}||
+ Item <- Items],
+ %% Create sub items
+ [wxTreeCtrl:appendItem(TreeCtrl, ItemId, Item++" sub item "++integer_to_list(Int))||
+ {ItemId, Item} <- SubItems, Int <- lists:seq(1,10)],
+ wxTreeCtrl:expand(TreeCtrl, RootId),
+
+ %% Add to sizers
+ Options = [{flag, ?wxEXPAND}, {proportion, 1}],
+ wxSizer:add(Sizer, TreeCtrl, Options),
+ wxSizer:add(MainSizer, Sizer, Options),
+
+ wxTreeCtrl:connect(TreeCtrl, command_tree_item_collapsed),
+ wxTreeCtrl:connect(TreeCtrl, command_tree_item_expanded),
+ wxTreeCtrl:connect(TreeCtrl, command_tree_sel_changed),
+ wxPanel:setSizer(Panel, MainSizer),
+ {Panel, #state{parent=Panel, config=Config}}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event = #wxTree{type = command_tree_item_collapsed,
+ item = Item},
+ obj = TreeCtrl},
+ State = #state{}) ->
+ ItemText = wxTreeCtrl:getItemText(TreeCtrl, Item),
+ demo:format(State#state.config, "You have collapsed ~p.\n", [ItemText]),
+ {noreply, State};
+handle_event(#wx{event = #wxTree{type = command_tree_item_expanded,
+ item = Item},
+ obj = TreeCtrl},
+ State = #state{}) ->
+ ItemText = wxTreeCtrl:getItemText(TreeCtrl, Item),
+ demo:format(State#state.config, "You have expanded ~p.\n", [ItemText]),
+ {noreply, State};
+handle_event(#wx{event = #wxTree{type = command_tree_sel_changed,
+ item = Item},
+ obj = TreeCtrl},
+ State = #state{}) ->
+ ItemText = wxTreeCtrl:getItemText(TreeCtrl, Item),
+ demo:format(State#state.config, "You have selected ~p.\n", [ItemText]),
+ {noreply, State}.
+
+%% Callbacks handled as normal gen_server callbacks
+handle_info(Msg, State) ->
+ demo:format(State#state.config, "Got Info ~p\n", [Msg]),
+ {noreply, State}.
+
+handle_call(Msg, _From, State) ->
+ demo:format(State#state.config, "Got Call ~p\n", [Msg]),
+ {reply,{error, nyi}, State}.
+
+code_change(_, _, State) ->
+ {stop, ignore, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Local functions
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
diff --git a/lib/wx/examples/demo/image.jpg b/lib/wx/examples/demo/image.jpg
new file mode 100644
index 0000000000..ce5bfc2629
--- /dev/null
+++ b/lib/wx/examples/demo/image.jpg
Binary files differ
diff --git a/lib/wx/examples/simple/Makefile b/lib/wx/examples/simple/Makefile
new file mode 100644
index 0000000000..41f0b46eb1
--- /dev/null
+++ b/lib/wx/examples/simple/Makefile
@@ -0,0 +1,65 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../../vsn.mk
+include ../../config.mk
+
+TOPDIR = ../..
+SRC = .
+BIN = .
+ERLINC = $(TOPDIR)/include
+ERLC = erlc
+TESTMODS = hello hello2 minimal menu
+TESTTARGETS = $(TESTMODS:%=%.beam)
+TESTSRC = $(TESTMODS:%=%.erl)
+
+# Targets
+opt debug: $(TESTTARGETS)
+clean:
+ rm -f $(TESTTARGETS)
+ rm -f *~ core erl_crash.dump
+
+docs:
+
+run: opt
+ erl -smp -detached -pa $(TOPDIR)/ebin -s hello
+
+ifneq ($(INSIDE_ERLSRC),true)
+
+%.beam: %.erl
+ $(ERLC) -W -I$(ERLINC) -bbeam -o$(BIN) $<
+
+else
+EXRELSYSDIR = $(RELSYSDIR)/examples/simple
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+docs:
+
+release_spec:
+ $(INSTALL_DIR) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTSRC) $(EXRELSYSDIR)
+ $(INSTALL_DATA) copy.xpm sample.xpm $(TESTTARGETS) $(EXRELSYSDIR)
+
+release_tests_spec:
+
+release_docs_spec:
+
+endif
+
+
diff --git a/lib/wx/examples/simple/copy.xpm b/lib/wx/examples/simple/copy.xpm
new file mode 100644
index 0000000000..b14b414834
--- /dev/null
+++ b/lib/wx/examples/simple/copy.xpm
@@ -0,0 +1,44 @@
+/* XPM */
+static const char * copy_xpm[] = {
+/* columns rows colors chars-per-pixel */
+"16 15 23 1",
+"+ c #769CDA",
+": c #DCE6F6",
+"X c #3365B7",
+"* c #FFFFFF",
+"o c #9AB6E4",
+"< c #EAF0FA",
+"# c #B1C7EB",
+". c #6992D7",
+"3 c #F7F9FD",
+", c #F0F5FC",
+"$ c #A8C0E8",
+" c None",
+"- c #FDFEFF",
+"& c #C4D5F0",
+"1 c #E2EAF8",
+"O c #89A9DF",
+"= c #D2DFF4",
+"4 c #FAFCFE",
+"2 c #F5F8FD",
+"; c #DFE8F7",
+"% c #B8CCEC",
+"> c #E5EDF9",
+"@ c #648FD6",
+/* pixels */
+" .....XX ",
+" .oO+@X#X ",
+" .$oO+X##X ",
+" .%$o........ ",
+" .&%$.*=&#o.-. ",
+" .=&%.*;=&#.--. ",
+" .:=&.*>;=&.... ",
+" .>:=.*,>;=&#o. ",
+" .<1:.*2,>:=&#. ",
+" .2<1.*32,>:=&. ",
+" .32<.*432,>:=. ",
+" .32<.*-432,>:. ",
+" .....**-432,>. ",
+" .***-432,. ",
+" .......... "
+};
diff --git a/lib/wx/examples/simple/hello.erl b/lib/wx/examples/simple/hello.erl
new file mode 100755
index 0000000000..dc845ddfbb
--- /dev/null
+++ b/lib/wx/examples/simple/hello.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : hello.erl
+%%% Author : Matthew Harrison <harryhuk at users.sourceforge.net>
+%%% Description : _really_ minimal example of a wxerlang app
+%%%
+%%% Created : 18 Sep 2008 by Matthew Harrison <harryhuk at users.sourceforge.net>
+%%%-------------------------------------------------------------------
+-module(hello).
+
+-include_lib("wx/include/wx.hrl").
+
+-export([start/0]).
+-compile(export_all).
+
+start() ->
+ Wx = wx:new(),
+ Frame = wx:batch(fun() -> create_window(Wx) end),
+ wxWindow:show(Frame),
+ loop(Frame),
+ wx:destroy(),
+ ok.
+
+create_window(Wx) ->
+ Frame = wxFrame:new(Wx,
+ -1, % window id
+ "Hello World", % window title
+ [{size, {600,400}}]),
+
+
+ wxFrame:createStatusBar(Frame,[]),
+
+ %% if we don't handle this ourselves, wxwidgets will close the window
+ %% when the user clicks the frame's close button, but the event loop still runs
+ wxFrame:connect(Frame, close_window),
+
+ ok = wxFrame:setStatusText(Frame, "Hello World!",[]),
+ Frame.
+
+loop(Frame) ->
+ receive
+ #wx{event=#wxClose{}} ->
+ io:format("~p Closing window ~n",[self()]),
+ ok = wxFrame:setStatusText(Frame, "Closing...",[]),
+ wxWindow:destroy(Frame),
+ ok;
+ Msg ->
+ io:format("Got ~p ~n", [Msg]),
+ loop(Frame)
+ end.
+
+
diff --git a/lib/wx/examples/simple/hello2.erl b/lib/wx/examples/simple/hello2.erl
new file mode 100644
index 0000000000..af825f2e3c
--- /dev/null
+++ b/lib/wx/examples/simple/hello2.erl
@@ -0,0 +1,81 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : hello.erl
+%%% Author : Matthew Harrison <harryhuk at users.sourceforge.net>
+%%% Description : _really_ minimal example of a wxerlang app
+%%% implemented with wx_object behaviour
+%%%
+%%% Created : 18 Sep 2008 by Matthew Harrison <harryhuk at users.sourceforge.net>
+%%% Dan rewrote it to show wx_object behaviour
+%%%-------------------------------------------------------------------
+-module(hello2).
+-include_lib("wx/include/wx.hrl").
+
+-export([start/0]).
+-compile(export_all).
+
+-behavoiur(wx_object).
+
+-record(state, {win}).
+
+start() ->
+ wx_object:start_link(?MODULE, [], []).
+
+%% Init is called in the new process.
+init([]) ->
+ wx:new(),
+ Frame = wxFrame:new(wx:null(),
+ -1, % window id
+ "Hello World", % window title
+ [{size, {600,400}}]),
+
+ wxFrame:createStatusBar(Frame,[]),
+
+ %% if we don't handle this ourselves, wxwidgets will close the window
+ %% when the user clicks the frame's close button, but the event loop still runs
+ wxFrame:connect(Frame, close_window),
+
+ ok = wxFrame:setStatusText(Frame, "Hello World!",[]),
+ wxWindow:show(Frame),
+ {Frame, #state{win=Frame}}.
+
+
+%% Handled as in normal gen_server callbacks
+handle_info(Msg, State) ->
+ io:format("Got Info ~p~n",[Msg]),
+ {noreply,State}.
+
+handle_call(Msg, _From, State) ->
+ io:format("Got Call ~p~n",[Msg]),
+ {reply,ok,State}.
+
+%% Async Events are handled in handle_event as in handle_info
+handle_event(#wx{event=#wxClose{}}, State = #state{win=Frame}) ->
+ io:format("~p Closing window ~n",[self()]),
+ ok = wxFrame:setStatusText(Frame, "Closing...",[]),
+ wxWindow:destroy(Frame),
+ {stop, normal, State}.
+
+code_change(_, _, State) ->
+ {stop, not_yet_implemented, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
diff --git a/lib/wx/examples/simple/menu.erl b/lib/wx/examples/simple/menu.erl
new file mode 100755
index 0000000000..d573fcf13a
--- /dev/null
+++ b/lib/wx/examples/simple/menu.erl
@@ -0,0 +1,607 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : menus.erl
+%%% Author : Matthew Harrison <harryhuk at users.sourceforge.net>
+%%% Description : Test of menus
+%%%
+%%% Created : 18 Sep 2008 by Matthew Harrison <harryhuk at users.sourceforge.net>
+%%%-------------------------------------------------------------------
+-module(menu).
+
+-include_lib("wx/include/wx.hrl").
+
+-export([start/0]).
+-compile(export_all).
+
+%%%Lots of IDs to declare!
+-define(menuID_FILE_QUIT, ?wxID_EXIT).
+-define(menuID_FILE_CLEAR_LOG, 100).
+
+-define(menuID_MENUBAR_TOGGLE, 200).
+-define(menuID_MENUBAR_APPEND, 201).
+-define(menuID_MENUBAR_INSERT, 202).
+-define(menuID_MENUBAR_DELETE, 203).
+-define(menuID_MENUBAR_ENABLE, 204).
+-define(menuID_MENUBAR_GET_LABEL, 206).
+-define(menuID_MENUBAR_SET_LABEL, 207).
+-define(menuID_MENUBAR_FIND_MENU, 208).
+
+-define(menuID_MENU_APPEND, 300).
+-define(menuID_MENU_APPEND_SUB, 301).
+-define(menuID_MENU_INSERT, 302).
+-define(menuID_MENU_DELETE, 303).
+-define(menuID_MENU_ENABLE, 304).
+-define(menuID_MENU_CHECK, 305).
+-define(menuID_MENU_GET_LABEL, 306).
+-define(menuID_MENU_SET_LABEL, 307).
+-define(menuID_MENU_GET_INFO, 308).
+-define(menuID_MENU_FIND_ITEM, 309).
+
+-define(menuID_TEST_NORMAL, 400).
+-define(menuID_TEST_CHECK, 401).
+-define(menuID_TEST_RADIO_1, 402).
+-define(menuID_TEST_RADIO_2, 403).
+-define(menuID_TEST_RADIO_3, 404).
+
+-define(menuID_SUBMENU, 450).
+-define(menuID_SUBMENU_NORMAL, 451).
+-define(menuID_SUBMENU_CHECK, 452).
+-define(menuID_SUBMENU_RADIO_1, 453).
+-define(menuID_SUBMENU_RADIO_2, 454).
+-define(menuID_SUBMENU_RADIO_3, 455).
+
+-define(menuID_DUMMY_FIRST, 500).
+-define(menuID_DUMMY_SECOND, 501).
+-define(menuID_DUMMY_THIRD, 502).
+-define(menuID_DUMMY_FOURTH, 503).
+-define(menuID_DUMMY_LAST, 504).
+
+-define(menuID_HELP_ABOUT, ?wxID_ABOUT).
+
+-define(menuID_POPUP_TO_BE_DELETED, 2000).
+-define(menuID_POPUP_TO_BE_GREYED, 2001).
+-define(menuID_POPUP_TO_BE_CHECKED, 2002).
+-define(menuID_POPUP_TO_BE_SUBMENU, 2003).
+
+-define(wID_LOG_TEXT_CTRL, 3000).
+
+-record(state, {dummyMenuCount=0, fileMenu=undefined}).
+
+%%
+%%
+%%
+start() ->
+ Wx = wx:new(),
+ Frame = wx:batch(fun() -> create_frame(Wx) end),
+ wxWindow:show(Frame),
+
+ State = #state{},
+
+ loop(State),
+ ok.
+
+
+%%
+%%
+%%
+create_frame(Wx) ->
+ Frame = wxFrame:new(Wx, -1, "wxErlang menu sample", [{size, {600,400}}]),
+
+ Path = filename:dirname(code:which(?MODULE)),
+ wxFrame:setIcon(Frame, wxIcon:new(filename:join(Path,"sample.xpm"))),
+
+ wxFrame:createStatusBar(Frame,[]),
+ wxFrame:connect(Frame, close_window),
+
+ FileMenu = create_file_menu(),
+ MenuBarMenu = create_menubar_menu(),
+ MenuMenu = create_menu_menu(),
+ TestMenu = create_test_menu(),
+ HelpMenu = create_help_menu(),
+
+ MenuBar = wxMenuBar:new(?wxMB_DOCKABLE),
+
+
+ wxMenuBar:append(MenuBar, FileMenu, "&File"),
+ wxMenuBar:append(MenuBar, MenuBarMenu, "Menu&bar"),
+ wxMenuBar:append(MenuBar, MenuMenu, "&Menu"),
+ wxMenuBar:append(MenuBar, TestMenu, "&Test"),
+ wxMenuBar:append(MenuBar, HelpMenu, "&Help"),
+
+ wxFrame:setMenuBar(Frame, MenuBar),
+
+ LogTextCtrl = wxTextCtrl:new(Frame, ?wID_LOG_TEXT_CTRL,
+ [{value, ""},
+ %{pos, ?wxDefaultPosition},
+ %{size, ?wxDefaultSize},
+ {style, ?wxTE_MULTILINE}]),
+ wxTextCtrl:setEditable(LogTextCtrl, false),
+
+ ok = wxFrame:setStatusText(Frame, "Welcome to wxErlang menu sample",[]),
+
+ ok = wxFrame:connect(Frame, command_menu_selected),
+
+ String = "Brief explanations:~n"
+ "the commands from the \"Menu\" menu append/insert/delete items to/from the last menu.~n"
+ "The commands from \"Menubar\" menu work with the menubar itself.~n~n",
+ %% "Right click the band below to test popup menus.~n",
+ logMessage(Frame, String),
+ Frame.
+
+%%
+%%
+%%
+create_file_menu() ->
+ FileMenu = wxMenu:new(),
+
+ wxMenu:append(FileMenu, wxMenuItem:new([
+ {id, ?menuID_SUBMENU},
+ {subMenu, create_stock_menu()},
+ {text, "&Standard items demo"}
+ ])),
+ ClearLogBitmap = wxBitmap:new("copy.xpm"),
+ ClearLogItem = wxMenuItem:new([
+ {id, ?menuID_FILE_CLEAR_LOG},
+ {text, "Clear &log\tCtrl-L"} %% note mnemonic and accelerator
+ ]),
+ wxMenuItem:setBitmap(ClearLogItem, ClearLogBitmap),
+
+ wxMenu:append(FileMenu, ClearLogItem ),
+ wxMenu:appendSeparator(FileMenu),
+ wxMenu:append(FileMenu, wxMenuItem:new([
+ {id, ?menuID_FILE_QUIT} %,
+ %{text, "E&xit\tAlt-X"}
+ ])),
+ FileMenu.
+
+%%
+%%
+%%
+create_menubar_menu() ->
+ MenuBarMenu = wxMenu:new(),
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_APPEND},
+ {text, "&Append menu\tCtrl-A"},
+ {help, "Append a menu to the menubar"}
+ ])),
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_INSERT},
+ {text, "&Insert menu\tCtrl-I"},
+ {help, "Insert a menu into the menubar"}
+ ])),
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_DELETE},
+ {text, "&Delete menu\tCtrl-D"},
+ {help, "Insert a menu into the menubar"}
+ ])),
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_TOGGLE},
+ {text, "&Toggle menu\tCtrl-T"},
+ {help, "Toggle the first menu in the menubar"},
+ {kind, ?wxITEM_CHECK}
+ ])),
+ wxMenu:appendSeparator(MenuBarMenu), %% --------------------------
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_ENABLE},
+ {text, "&Enable menu\tCtrl-E"},
+ {help, "Enable or disable the last menu"},
+ {kind, ?wxITEM_CHECK}
+ ])),
+ wxMenu:appendSeparator(MenuBarMenu), %% --------------------------
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_GET_LABEL},
+ {text, "&Get menu label\tCtrl-G"},
+ {help, "Get the label of the last menu"}
+ ])),
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_SET_LABEL},
+ {text, "&Set menu label\tCtrl-S"},
+ {help, "Change the label of the last menu"}
+ ])),
+ wxMenu:appendSeparator(MenuBarMenu), %% --------------------------
+ wxMenu:append(MenuBarMenu, wxMenuItem:new([
+ {id, ?menuID_MENUBAR_FIND_MENU},
+ {text, "&Find menu from label\tCtrl-F"},
+ {help, "Find a menu by searching for its label"}
+ ])),
+ MenuBarMenu.
+
+
+%%
+%%
+%%
+create_submenu_menu() ->
+ SubMenuMenu = wxMenu:new(),
+ wxMenu:append(SubMenuMenu, wxMenuItem:new([
+ {id, ?menuID_SUBMENU_NORMAL},
+ {text, "&Normal submenu item"},
+ {help, "Disabled submenu item"}
+ ])),
+ %% note different way of adding check menu item
+ wxMenu:appendCheckItem(SubMenuMenu,
+ ?menuID_SUBMENU_CHECK,
+ "&Check submenu item",
+ [{help, "Check submenu item"}]),
+ wxMenu:appendRadioItem(SubMenuMenu,
+ ?menuID_SUBMENU_RADIO_1,
+ "Radio item &1",
+ [{help, "Radio item"}]),
+ wxMenu:appendRadioItem(SubMenuMenu,
+ ?menuID_SUBMENU_RADIO_2,
+ "Radio item &2",
+ [{help, "Radio item"}]),
+ wxMenu:appendRadioItem(SubMenuMenu,
+ ?menuID_SUBMENU_RADIO_3,
+ "Radio item &3",
+ [{help, "Radio item"}]),
+ SubMenuMenu.
+
+
+%%
+%%
+%%
+create_menu_menu() ->
+ MenuMenu = wxMenu:new(),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_APPEND},
+ {text, "&Append menu item\tAlt-A"},
+ {help, "Append a menu item to the last menu"}
+ ])),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_APPEND_SUB},
+ {text, "&Append sub menu\tAlt-S"},
+ {help, "Append a sub menu to the last menu"}
+ ])),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_INSERT},
+ {text, "&Insert menu item\tAlt-I"},
+ {help, "Insert a menu item in head of the last menu"}
+ ])),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_DELETE},
+ {text, "&Delete menu item\tAlt-D"},
+ {help, "Delete the last menu item from the last menu"}
+ ])),
+ wxMenu:appendSeparator(MenuMenu), %% --------------------------
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_ENABLE},
+ {text, "&Enable menu item\tAlt-E"},
+ {help, "Enable or disable the last menu item"},
+ {kind, ?wxITEM_CHECK}
+ ])),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_CHECK},
+ {text, "&Check menu item\tAlt-C"},
+ {help, "Check or uncheck the last menu item"},
+ {kind, ?wxITEM_CHECK}
+ ])),
+ wxMenu:appendSeparator(MenuMenu), %% --------------------------
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_GET_INFO},
+ {text, "Get menu item in&fo\tAlt-F"},
+ {help, "Show the state of the last menu item"}
+ ])),
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_SET_LABEL},
+ {text, "&Set menu label\tCtrl-S"},
+ {help, "Change the label of the last menu"}
+ ])),
+ wxMenu:appendSeparator(MenuMenu), %% --------------------------
+ wxMenu:append(MenuMenu, wxMenuItem:new([
+ {id, ?menuID_MENU_FIND_ITEM},
+ {text, "Find menu item from label"},
+ {help, "Find a menu item by searching for its label"}
+ ])),
+ MenuMenu.
+
+
+%%
+%%
+%%
+create_test_menu() ->
+ TestMenu = wxMenu:new(),
+ wxMenu:append(TestMenu, wxMenuItem:new([
+ {id, ?menuID_TEST_NORMAL},
+ {text, "&Normal submenu item"},
+ {help, "Disabled submenu item"}
+ ])),
+ wxMenu:appendSeparator(TestMenu), %% --------------------------
+ %% note different way of adding check menu item
+ wxMenu:appendCheckItem(TestMenu, ?menuID_TEST_CHECK, "&Check item"),
+ wxMenu:appendSeparator(TestMenu), %% --------------------------
+ wxMenu:appendRadioItem(TestMenu, ?menuID_TEST_RADIO_1, "Radio item &1"),
+ wxMenu:appendRadioItem(TestMenu, ?menuID_TEST_RADIO_2, "Radio item &2"),
+ wxMenu:appendRadioItem(TestMenu, ?menuID_TEST_RADIO_3, "Radio item &3"),
+ TestMenu.
+
+%%
+%%
+%%
+create_help_menu() ->
+ HelpMenu = wxMenu:new(),
+ % unlike wxwidgets the stock menu items still need text to be given,
+ % although help text does appear
+ % Note the keybord accelerator
+ wxMenu:append(HelpMenu, wxMenuItem:new([
+ {id, ?menuID_HELP_ABOUT},
+ %{text, "&About\tF1"},
+ {help, "About menu sample"}
+ ])),
+ HelpMenu.
+
+%%
+%%
+%%
+create_stock_menu() ->
+ % unlike wxwidgets the stock menu items still need text to be given,
+ % although help text does appear
+ StockSubMenu = wxMenu:new(),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_ADD }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_APPLY }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_BOLD }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_CANCEL }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_CLEAR }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_CLOSE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_COPY }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_CUT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_DELETE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_FIND }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_REPLACE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_BACKWARD }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_DOWN }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_FORWARD }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_UP }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_HELP }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_HOME }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_INDENT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_INDEX }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_ITALIC }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_JUSTIFY_CENTER }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_JUSTIFY_FILL }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_JUSTIFY_LEFT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_JUSTIFY_RIGHT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_NEW }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_NO }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_OK }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_OPEN }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_PASTE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_PREFERENCES }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_PRINT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_PREVIEW }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_PROPERTIES }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_EXIT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_REDO }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_REFRESH }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_REMOVE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_REVERT_TO_SAVED }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_SAVE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_SAVEAS }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_STOP }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_UNDELETE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_UNDERLINE }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_UNDO }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_UNINDENT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_YES }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_ZOOM_100 }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_ZOOM_FIT }])),
+ wxMenu:append(StockSubMenu, wxMenuItem:new([{id, ?wxID_ZOOM_OUT }])),
+
+ StockSubMenu.
+
+create_dummy_menu() ->
+ DummyMenu = wxMenu:new(),
+ wxMenu:append(DummyMenu, ?menuID_DUMMY_FIRST, "&First item\tCtrl-F1"),
+ wxMenu:appendSeparator(DummyMenu), %% --------------------------
+ wxMenu:append(DummyMenu, ?menuID_DUMMY_SECOND, "&Second item\tCtrl-F2"),
+ DummyMenu.
+
+loop(State) ->
+ receive
+ #wx{event=#wxClose{}, obj=Frame} ->
+ io:format("~p Closing window ~n",[self()]),
+ wxWindow:destroy(Frame); %onClose(Frame);
+ #wx{id=?menuID_FILE_QUIT, obj=Frame, event=#wxCommand{type=command_menu_selected}} ->
+ io:format("~p Closing window ~n",[self()]),
+ wxWindow:destroy(Frame); %onClose(Frame);
+
+ #wx{obj=Frame, userData=UserData, event=#wxCommand{type=command_menu_selected}} = Wx->
+ logMessage(Frame, "got wx:~p ud:~p~n", [Wx, UserData]),
+ State1 = onMenuAction(Wx, State),
+ loop(State1);
+ Msg ->
+ io:format("Got ~p ~n", [Msg]),
+ loop(State)
+ after 5000 ->
+ loop(State)
+ end.
+
+
+onMenuAction(#wx{id=?menuID_FILE_CLEAR_LOG, obj=Frame}, #state{} = State) ->
+ wxTextCtrl:clear(findLogger(Frame)),
+ State;
+
+
+onMenuAction(#wx{id=?menuID_MENUBAR_APPEND, obj=Frame}, #state{} = State) ->
+ MenuBar = wxFrame:getMenuBar(Frame),
+ wxMenuBar:append(MenuBar, create_dummy_menu(), "DummyMenu"),
+ State;
+
+onMenuAction(#wx{id=?menuID_MENUBAR_INSERT, obj=Frame}, #state{} = State) ->
+ MenuBar = wxFrame:getMenuBar(Frame),
+ wxMenuBar:insert(MenuBar, 0, create_dummy_menu(), "DummyMenu"),
+ State;
+
+onMenuAction(#wx{id=?menuID_MENUBAR_DELETE, obj=Frame}, #state{} = State) ->
+ MenuBar = wxFrame:getMenuBar(Frame),
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ if
+ (Count > 2) ->
+ wxMenuBar:remove(MenuBar, Count -1);
+ true ->
+ logMessage(Frame, "Cannot delete any more menus~n")
+ end,
+ State;
+
+onMenuAction(#wx{id=?menuID_MENUBAR_TOGGLE, obj=Frame}, #state{fileMenu=FileMenu} = State) ->
+ logMessage(Frame, "onMenubarToggle ~p ~n", [FileMenu]),
+ MenuBar = wxFrame:getMenuBar(Frame),
+ if
+ FileMenu =:= undefined ->
+ Menu = wxMenuBar:remove(MenuBar, 0),
+ State#state{fileMenu=Menu};
+ true ->
+ wxMenuBar:insert(MenuBar, 0, FileMenu, "&File"),
+ State#state{fileMenu=undefined}
+ end;
+
+onMenuAction( #wx{id=?menuID_MENUBAR_ENABLE=Id, obj=Frame}, #state{} = State) ->
+%% logMessage(Frame, "onMenubarEnable ~n"),
+ MenuBar = wxFrame:getMenuBar(Frame),
+ MenuItem = wxMenuBar:findItem(MenuBar, Id),
+ Enable = (not wxMenuItem:isCheckable(MenuItem)) orelse wxMenuItem:isChecked(MenuItem),
+
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ wxMenuBar:enableTop(MenuBar, (Count - 1), Enable),
+ State;
+
+
+onMenuAction( #wx{id=?menuID_MENUBAR_GET_LABEL, obj=Frame}, #state{} = State) ->
+ logMessage(Frame, "onMenubarGetLabel ~n"),
+ MenuBar = wxFrame:getMenuBar(Frame),
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ Label = wxMenuBar:getLabelTop(MenuBar, (Count - 1)),
+ logMessage(Frame, "The label of the last menu item is ~p", [Label]),
+ State;
+
+onMenuAction( #wx{id=?menuID_MENUBAR_SET_LABEL, obj=Frame}, #state{} = State) ->
+%% logMessage(Frame, "onMenubarGetLabel ~n"),
+ MenuBar = wxFrame:getMenuBar(Frame),
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ Label = wxMenuBar:getLabelTop(MenuBar, (Count - 1)),
+ TextDialog = wxTextEntryDialog:new(Frame,
+ "Enter new label: ",
+ [{caption, "Change last menu text"}, {value, Label}]),
+ wxDialog:showModal(TextDialog),
+ NewLabel = wxTextEntryDialog:getValue(TextDialog),
+ wxMenuBar:setLabelTop(MenuBar, (Count - 1), NewLabel),
+ wxDialog:destroy(TextDialog),
+ State;
+
+onMenuAction( #wx{id=?menuID_MENUBAR_FIND_MENU, obj=Frame}, #state{} = State) ->
+%% logMessage(Frame, "onMenubarFindMenu ~n"),
+ MenuBar = wxFrame:getMenuBar(Frame),
+ _Count = wxMenuBar:getMenuCount(MenuBar),
+% Label = wxMenuBar:getLabelTop(MenuBar, (Count - 1)),
+ TextDialog = wxTextEntryDialog:new(Frame,
+ "Enter label to search for: ",
+ [{caption, "Find menu"}]),
+ wxDialog:showModal(TextDialog),
+ Label = wxTextEntryDialog:getValue(TextDialog),
+ Len = string:len(Label),
+ if
+ (Len > 0) ->
+ Index = wxMenuBar:findMenu(MenuBar, Label),
+ if
+ (Index =:= ?wxNOT_FOUND) ->
+ logMessage(Frame, "Warning: No menu with label ~p", [Label]);
+ true ->
+ logMessage(Frame, "Menu ~p has label ~p", [Index, Label])
+ end;
+ true -> true
+ end,
+
+ State;
+
+onMenuAction(#wx{id=?menuID_MENU_APPEND, obj=Frame}, #state{} = State) ->
+ MenuBar = wxFrame:getMenuBar(Frame),
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ Menu = wxMenuBar:getMenu(MenuBar, Count - 1),
+ io:format("MenuBar ~p Menu ~p Count ~p ~n", [MenuBar, Menu, Count]),
+ wxMenu:appendSeparator(Menu),
+ wxMenu:append(Menu, wxMenuItem:new([
+ {id, ?menuID_DUMMY_THIRD},
+ {text, "&Third dummy item\tCtrl-F3"},
+ {kind, ?wxITEM_CHECK}
+ ])),
+
+ State;
+
+onMenuAction(#wx{id=?menuID_MENU_APPEND_SUB, obj=Frame}, #state{} = State) ->
+ MenuBar = wxFrame:getMenuBar(Frame),
+ Count = wxMenuBar:getMenuCount(MenuBar),
+ Menu = wxMenuBar:getMenu(MenuBar, Count - 2),
+ wxMenu:appendSeparator(Menu),
+ wxMenu:append(Menu, wxMenuItem:new([
+ {id, ?menuID_DUMMY_LAST},
+ {text, "&Dummy sub menu"},
+ {help, "Dummy sub menu help"},
+ {subMenu, create_dummy_menu()}
+ ])),
+
+ State;
+
+onMenuAction(#wx{id=Id, obj=Frame}, #state{}=State) when ((Id >= ?menuID_DUMMY_FIRST) and (Id =< ?menuID_DUMMY_LAST)) ->
+ logMessage(Frame, "Dummy item #~p ~n", [Id - ?menuID_DUMMY_FIRST + 1]),
+ State;
+
+onMenuAction( #wx{id=?menuID_HELP_ABOUT=Id, obj=Frame}, #state{} = State) ->
+ showDialog(Id, Frame),
+ State;
+
+onMenuAction( #wx{obj=Frame} = Wx, State) ->
+ logMessage(Frame, "unimplemented menu item event ~p ~n", [Wx]),
+ State.
+
+logMessage(Frame, Msg) ->
+ logMessage(Frame, Msg, []).
+
+logMessage(Frame, Msg, ArgList) ->
+ String = lists:flatten(io_lib:format(Msg, ArgList)),
+
+ wxTextCtrl:appendText(findLogger(Frame), String).
+
+findLogger(Frame) ->
+ LogWin = wxWindow:findWindowById(?wID_LOG_TEXT_CTRL, [{parent, Frame}]),
+ wx:typeCast(LogWin, wxTextCtrl).
+
+
+showDialog(?menuID_HELP_ABOUT, Frame) ->
+ String = lists:flatten(io_lib:format("Welcome to wxErlang 0.97.5.26!~n~n"
+ "This is the minimal wxErlang sample~n"
+ "running under ~p.",
+ [wx_misc:getOsDescription()])),
+ MessageDialog = wxMessageDialog:new(Frame,
+ String,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "About wxErlang minimal sample"}]),
+
+ wxDialog:showModal(MessageDialog),
+ wxDialog:destroy(MessageDialog);
+
+showDialog(Id, Frame) ->
+ String = lists:flatten(io_lib:format("Unimplemented Dialog ~p", [Id])),
+ MessageDialog = wxMessageDialog:new(Frame,
+ String,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "wxErlang minimal sample"}]),
+
+ wxDialog:showModal(MessageDialog),
+ wxDialog:destroy(MessageDialog).
+
diff --git a/lib/wx/examples/simple/minimal.erl b/lib/wx/examples/simple/minimal.erl
new file mode 100755
index 0000000000..dca4adc643
--- /dev/null
+++ b/lib/wx/examples/simple/minimal.erl
@@ -0,0 +1,109 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%%%-------------------------------------------------------------------
+%%% File : minimal.erl
+%%% Author : Matthew Harrison <harryhuk at users.sourceforge.net>
+%%% Description : Minimal example of a wxerlang application
+%%%
+%%% Created : 18 Sep 2008 by Matthew Harrison <harryhuk at users.sourceforge.net>
+%%%-------------------------------------------------------------------
+-module(minimal).
+
+-include_lib("wx/include/wx.hrl").
+
+-export([start/0]).
+-compile(export_all).
+
+start() ->
+ Wx = wx:new(),
+ Frame = wx:batch(fun() -> create_window(Wx) end),
+ wxWindow:show(Frame),
+ loop(Frame),
+ wx:destroy(),
+ ok.
+
+create_window(Wx) ->
+ Frame = wxFrame:new(Wx, -1, "Minimal wxErlang App", [{size, {600,400}}]),
+
+ Path = filename:dirname(code:which(?MODULE)),
+ wxFrame:setIcon(Frame, wxIcon:new(filename:join(Path,"sample.xpm"))),
+
+ wxFrame:createStatusBar(Frame,[]),
+ wxFrame:connect(Frame, close_window),
+
+ MenuBar = wxMenuBar:new(),
+ FileM = wxMenu:new([]),
+ HelpM = wxMenu:new([]),
+
+ % unlike wxwidgets the stock menu items still need text to be given,
+ % although help text does appear
+ _QuitMenuItem = wxMenu:append(FileM, ?wxID_EXIT, "&Quit"),
+ % Note the keybord accelerator
+ _AboutMenuItem = wxMenu:append(HelpM, ?wxID_ABOUT, "&About...\tF1"),
+
+ wxMenu:appendSeparator(HelpM),
+ ContentsMenuItem = wxMenu:append(HelpM, ?wxID_HELP_CONTENTS, "&Contents"),
+ wxMenuItem:enable(ContentsMenuItem, [{enable, false}]),
+
+ ok = wxFrame:connect(Frame, command_menu_selected),
+
+ wxMenuBar:append(MenuBar, FileM, "&File"),
+ wxMenuBar:append(MenuBar, HelpM, "&Help"),
+ wxFrame:setMenuBar(Frame, MenuBar),
+
+ ok = wxFrame:setStatusText(Frame, "Welcome to wxErlang!",[]),
+ Frame.
+
+loop(Frame) ->
+ receive
+ #wx{event=#wxClose{}} ->
+ io:format("~p Closing window ~n",[self()]),
+ wxFrame:destroy(Frame),
+ ok;
+ #wx{id=?wxID_EXIT, event=#wxCommand{type=command_menu_selected}} ->
+ wxWindow:destroy(Frame),
+ ok;
+ #wx{id=?wxID_ABOUT, event=#wxCommand{type=command_menu_selected}} ->
+ io:format("Got about ~n", []),
+ dialog(?wxID_ABOUT, Frame),
+ loop(Frame);
+ Msg ->
+ io:format("Got ~p ~n", [Msg]),
+ loop(Frame)
+ after 1000 ->
+ io:fwrite("."),
+ loop(Frame)
+ end.
+
+dialog(?wxID_ABOUT, Frame) ->
+ Str = string:join(["Welcome to wxErlang.",
+ "This is the minimal wxErlang sample\n",
+ "running under ",
+ wx_misc:getOsDescription(),
+ "."],
+ ""),
+ MD = wxMessageDialog:new(Frame,
+ Str,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "About wxErlang minimal sample"}]),
+
+ wxDialog:showModal(MD),
+ wxDialog:destroy(MD).
+
+
diff --git a/lib/wx/examples/simple/sample.xpm b/lib/wx/examples/simple/sample.xpm
new file mode 100755
index 0000000000..3263b15f8a
--- /dev/null
+++ b/lib/wx/examples/simple/sample.xpm
@@ -0,0 +1,44 @@
+/* XPM */
+static const char * sample_xpm[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 6 1",
+" c black",
+". c navy",
+"X c red",
+"o c yellow",
+"O c gray100",
+"+ c None",
+/* pixels */
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++ ++++++++++",
+"++++++++ ............ ++++++++++",
+"++++++++ ............ ++++++++++",
+"++++++++ .OO......... ++++++++++",
+"++++++++ .OO......... ++++++++++",
+"++++++++ .OO......... ++++++++++",
+"++++++++ .OO...... ",
+"++++++++ .OO...... oooooooooooo ",
+" .OO...... oooooooooooo ",
+" XXXXXXX .OO...... oOOooooooooo ",
+" XXXXXXX .OO...... oOOooooooooo ",
+" XOOXXXX ......... oOOooooooooo ",
+" XOOXXXX ......... oOOooooooooo ",
+" XOOXXXX oOOooooooooo ",
+" XOOXXXXXXXXX ++++ oOOooooooooo ",
+" XOOXXXXXXXXX ++++ oOOooooooooo ",
+" XOOXXXXXXXXX ++++ oOOooooooooo ",
+" XOOXXXXXXXXX ++++ oooooooooooo ",
+" XOOXXXXXXXXX ++++ oooooooooooo ",
+" XXXXXXXXXXXX ++++ ",
+" XXXXXXXXXXXX ++++++++++++++++++",
+" ++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++",
+"++++++++++++++++++++++++++++++++"
+};
diff --git a/lib/wx/examples/sudoku/Makefile b/lib/wx/examples/sudoku/Makefile
new file mode 100755
index 0000000000..b86c654fdd
--- /dev/null
+++ b/lib/wx/examples/sudoku/Makefile
@@ -0,0 +1,66 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../../vsn.mk
+include ../../config.mk
+
+TOPDIR = ../..
+SRC = .
+BIN = .
+ERLINC = $(TOPDIR)/include
+ERLC = erlc
+TESTMODS = sudoku sudoku_board sudoku_game sudoku_gui
+TESTTARGETS = $(TESTMODS:%=%.beam)
+TESTSRC = $(TESTMODS:%=%.erl)
+
+# Targets
+opt debug: $(TESTTARGETS)
+clean:
+ rm -f $(TESTTARGETS)
+ rm -f *~ core erl_crash.dump
+
+docs:
+
+run: opt
+ erl -smp -detached -pa $(TOPDIR)/ebin -s sudoku
+
+ifneq ($(INSIDE_ERLSRC),true)
+
+%.beam: %.erl
+ $(ERLC) -W -I$(ERLINC) -bbeam -o$(BIN) $<
+
+else
+EXRELSYSDIR = $(RELSYSDIR)/examples/sudoku
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+docs:
+
+release_spec:
+ $(INSTALL_DIR) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTSRC) sudoku.hrl $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTTARGETS) $(EXRELSYSDIR)
+
+release_tests_spec:
+
+release_docs_spec:
+
+endif
+
+
+
diff --git a/lib/wx/examples/sudoku/sudoku.erl b/lib/wx/examples/sudoku/sudoku.erl
new file mode 100755
index 0000000000..01caeb9524
--- /dev/null
+++ b/lib/wx/examples/sudoku/sudoku.erl
@@ -0,0 +1,53 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : sudoku.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Sudoku
+%%%
+%%% Created : 13 Mar 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-module(sudoku).
+
+-export([go/0]).
+
+-compile(export_all).
+
+-include("sudoku.hrl").
+
+start() ->
+ spawn_link(fun() -> init(halt) end).
+go() ->
+ spawn_link(fun() -> init(keep) end).
+
+init(Halt) ->
+ ?TC(sudoku_gui:new(self())),
+ receive {gfx, GFX} -> ok end,
+ case sudoku_game:init(GFX) of
+ Halt -> erlang:halt();
+ Stop -> exit(Stop)
+ end.
+
+tc(Fun,Mod,Line) ->
+ case timer:tc(erlang, apply, [Fun,[]]) of
+ {_,{'EXIT',Reason}} -> exit(Reason);
+ {T,R} ->
+ io:format("~p:~p: Time: ~p\n", [Mod, Line, T]),
+ R
+ end.
diff --git a/lib/wx/examples/sudoku/sudoku.hrl b/lib/wx/examples/sudoku/sudoku.hrl
new file mode 100755
index 0000000000..775b563bdc
--- /dev/null
+++ b/lib/wx/examples/sudoku/sudoku.hrl
@@ -0,0 +1,44 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+-include("../../include/wx.hrl").
+
+-record(s,{gfx,gen,games=[],p,m,mr,mc,v}).
+-define(TC(Cmd), tc(fun() -> Cmd end, ?MODULE, ?LINE)).
+
+-define(NEW, 121).
+-define(EMPTY, 122).
+-define(HINT, 123).
+
+-define(OPEN, 130).
+-define(SAVE, 131).
+-define(RULES, 132).
+-define(CLEAR, 135).
+-define(SHOW_ERROR, 136).
+-define(PRINT, 137).
+-define(PRINT_PRE, 138).
+-define(PRINT_PAGE_SETUP, 139).
+
+-define(TRIVIAL, 240).
+-define(EASY, 235).
+-define(NORMAL, 230).
+-define(HARD, 225).
+-define(HARDEST, 210).
+
+-define(QUIT, ?wxID_EXIT). %% Use OS specific version if available
+-define(ABOUT, ?wxID_ABOUT). %% Use OS specific
diff --git a/lib/wx/examples/sudoku/sudoku_board.erl b/lib/wx/examples/sudoku/sudoku_board.erl
new file mode 100755
index 0000000000..756837582f
--- /dev/null
+++ b/lib/wx/examples/sudoku/sudoku_board.erl
@@ -0,0 +1,358 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : sud_board.erl
+%%% Author : <[email protected]>
+%%% Description : Manages the gui board
+%%%
+%%% Created : 9 Jan 2008 by <[email protected]>
+%%%-------------------------------------------------------------------
+-module(sudoku_board).
+
+-export([new/1, setup_board/2, clear_board/1, left/1,
+ get_board_data/1,set_board_data/2,
+ set_butt/3, butt_correct/3,
+ draw/3,
+ %% Callbacks
+ init/1, handle_sync_event/3,
+ handle_event/2, handle_info/2, handle_call/3,
+ code_change/3, terminate/2]).
+
+-include("sudoku.hrl").
+
+-record(state, {win, parent, board=[], pen, fonts=[]}).
+-record(sq, {key,val,correct=true,given=false}).
+-define(BRD,10).
+-define(ARC_R, 10).
+
+-behaviour(wx_object).
+
+%% API
+new(ParentObj) ->
+ wx_object:start_link(?MODULE, [ParentObj, self()], []).
+
+setup_board(Board, Init) ->
+ wx_object:call(Board, {setup_board, Init}).
+
+clear_board(Board) ->
+ wx_object:call(Board, clear_board).
+
+butt_correct(Board, Key, Correct) ->
+ wx_object:call(Board, {butt_correct, Key, Correct}).
+
+set_butt(Board, Indx, Val) when is_integer(Indx) ->
+ {R,C,_} = sudoku_game:rcm(Indx),
+ set_butt(Board, {R,C}, Val);
+set_butt(Board, Id, Val) ->
+ wx_object:call(Board, {set_butt, Id, Val}).
+
+left(Board) ->
+ wx_object:call(Board, left).
+
+get_board_data(Board) ->
+ wx_object:call(Board, get_board_data).
+set_board_data(Board, List) ->
+ wx_object:call(Board, {set_board_data, List}).
+
+
+draw(Board, DC, Size) ->
+ wx_object:call(Board, {draw, DC, Size}).
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+init([ParentObj, ParentPid]) ->
+ Win = wxPanel:new(ParentObj, [{style, ?wxFULL_REPAINT_ON_RESIZE}]),
+ wxWindow:setFocus(Win), %% Get keyboard focus
+ wxWindow:setSizeHints(Win, {250,250}),
+ wxWindow:connect(Win, paint, [callback]),
+ wxWindow:connect(Win, size, []),
+ wxWindow:connect(Win, erase_background, []),
+ wxWindow:connect(Win, key_up, [{skip, true}]),
+ wxWindow:connect(Win, left_down, [{skip, true}]),
+ wxWindow:connect(Win, enter_window, [{skip, true}]),
+
+ %% Init pens and fonts
+ Pen = wxPen:new({0,0,0}, [{width, 3}]),
+ Fs0 = [{Sz,wxFont:new(Sz, ?wxSWISS, ?wxNORMAL, ?wxNORMAL,[])} ||
+ Sz <- [8,9,10,11,12,13,14,16,18,20,22,24,26,28,30,34,38,42,44,46]],
+ TestDC = wxClientDC:new(Win),
+ CW = fun({Sz,Font},Acc) ->
+ case wxFont:ok(Font) of
+ true ->
+ wxDC:setFont(TestDC, Font),
+ CH = wxDC:getCharHeight(TestDC),
+ [{CH,Sz,Font} | Acc];
+ false ->
+ Acc
+ end
+ end,
+ Fs = lists:foldl(CW, [], Fs0),
+ wxClientDC:destroy(TestDC),
+ {Win, #state{win=Win, board=[], pen=Pen, fonts=Fs, parent=ParentPid}}.
+
+handle_sync_event(#wx{event=#wxPaint{}}, _Obj, State = #state{win=Win}) ->
+ %% io:format("EPaint~n",[]),
+ Size = wxWindow:getSize(Win),
+ DC = wxPaintDC:new(Win),
+ wxDC:destroyClippingRegion(DC),
+ redraw(DC,Size,State),
+ wxPaintDC:destroy(DC),
+ %%io:format("...EPaint~n",[]),
+ ok.
+
+handle_event(#wx{event=#wxMouse{type=enter_window}}, State = #state{win=Win}) ->
+ wxWindow:setFocus(Win), %% Get keyboard focus
+ {noreply,State};
+handle_event(#wx{event=#wxKey{keyCode=KeyC, x=X,y=Y}},
+ S = #state{parent=Pid, win=Win}) ->
+ Val = if KeyC > 47, KeyC < 58 -> KeyC - $0;
+ KeyC > 325, KeyC < 336 -> KeyC - 326; %% NUM LOCK
+ true -> 0
+ end,
+ case get_butt(X,Y,S) of
+ error -> %% Mac don't get correct coordinates.
+ Global = wx_misc:getMousePosition(),
+ {CX,CY} = wxWindow:screenToClient(Win, Global),
+ case get_butt(CX,CY,S) of
+ error -> ignore;
+ Id -> Pid ! {set_val,Id,Val}
+ end;
+ Id ->
+ Pid ! {set_val,Id,Val}
+ end,
+ {noreply, S};
+handle_event(#wx{event=#wxMouse{type=left_down,x=X,y=Y}},
+ S = #state{parent=Gui, win=F}) ->
+ Id = get_butt(X,Y,S),
+ case Id of
+ error -> ignore;
+ _ -> create_popup_menu(Gui,Id,X,Y,F)
+ end,
+ {noreply, S};
+handle_event(#wx{event=#wxSize{}}, State) ->
+ redraw(State),
+ {noreply,State};
+handle_event(_Ev, State) ->
+ {noreply,State}.
+
+%%%%%%%%%%%%%%%%%%%
+
+handle_call({set_butt, Key, 0},_From,S0=#state{board=B0}) -> %% Reset
+ B = lists:keydelete(Key,2,B0),
+ S = S0#state{board=B},
+ redraw(S),
+ {reply, ok, S};
+
+handle_call({set_butt, Key, Val},_From,S0=#state{board=B0}) ->
+ case lists:keysearch(Key,2,B0) of
+ {value, _} ->
+ B = lists:keyreplace(Key, 2, B0, #sq{key=Key,val=Val});
+ false ->
+ B = [#sq{key=Key, val=Val}|B0]
+ end,
+ S = S0#state{board=B},
+ redraw(S),
+ {reply, ok, S};
+
+handle_call({butt_correct, Key, Correct},_From, S0=#state{board=B0}) ->
+ case lists:keysearch(Key,2,B0) of
+ {value, Butt} ->
+ B = lists:keyreplace(Key, 2, B0, Butt#sq{key=Key,correct=Correct});
+ false ->
+ B = B0
+ end,
+ S = S0#state{board=B},
+ redraw(S),
+ {reply, ok, S};
+
+handle_call({setup_board, Init},_From, State) ->
+ B = [#sq{given=true, correct=true, key=Key, val=Val} || {Key,Val} <- Init],
+ S = State#state{board=B},
+ redraw(S),
+ {reply, ok, S};
+
+handle_call(clear_board,_From, State = #state{board=B0}) ->
+ B = [Butt || Butt = #sq{given=true} <- B0],
+ S = State#state{board=B},
+ redraw(S),
+ Given = [{Key, Val} || #sq{key=Key,val=Val,given=true} <- B],
+ {reply, Given, S};
+handle_call(get_board_data,_From, S=#state{board=B0}) ->
+ {reply, B0, S};
+handle_call({set_board_data, B},_From, S0) ->
+ S = S0#state{board=B},
+ redraw(S),
+ G1 = [{Key, Val} || #sq{key=Key,val=Val,given=true} <- B],
+ G2 = [{Key, Val} || #sq{key=Key,val=Val,given=false,correct=true} <- B],
+ G3 = [{Key, Val} || #sq{key=Key,val=Val,given=false,correct=false} <- B],
+ {reply, G1 ++ G2 ++ G3, S};
+handle_call(left,_From, S = #state{board=B}) ->
+ Res = 81 - length([ok || #sq{correct=C} <- B, C /= false]),
+ {reply, Res, S};
+handle_call({draw, DC, Size},_From, S) ->
+ redraw(DC,Size,S),
+ {reply, ok, S}.
+
+code_change(_, _, State) ->
+ {stop, not_yet_implemented, State}.
+
+handle_info(Msg, State) ->
+ {stop, {info, Msg}, State}.
+
+terminate(_Reason, _State) ->
+ normal.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+get_butt(X, Y, #state{win=Win}) ->
+ {W0,H0} = wxWindow:getSize(Win),
+ BoxSz = getGeomSz(W0,H0),
+ %% io:format("~p ~p ~p ~p~n", [{X,Y}, {W0,H0}, BoxSz, calc_pos(X-?BRD,Y-?BRD, BoxSz)]),
+ case calc_pos(X-?BRD,Y-?BRD, BoxSz) of
+ Pos = {R,C} when 0 < R, R < 10, 0 < C, C < 10 -> Pos;
+ _ -> error
+ end.
+
+calc_pos(X,Y, BoxSz) ->
+ {1+(Y*3 div BoxSz), 1+(X*3 div BoxSz)}.
+
+redraw(S = #state{win=Win}) ->
+ DC0 = wxClientDC:new(Win),
+ DC = wxBufferedDC:new(DC0),
+ Size = wxWindow:getSize(Win),
+ redraw(DC, Size, S),
+ wxBufferedDC:destroy(DC),
+ wxClientDC:destroy(DC0),
+ ok.
+
+redraw(DC, Size, S) ->
+ wx:batch(fun() ->
+ wxDC:setBackground(DC, ?wxWHITE_BRUSH),
+ wxDC:clear(DC),
+ BoxSz = draw_board(DC,Size,S),
+ F = sel_font(BoxSz div 3,S#state.fonts),
+ [draw_number(DC,F,BoxSz,Sq) || Sq <- S#state.board]
+ end).
+
+sel_font(_BS,[{_H,_Sz,F}]) ->
+ %% io:format("Font sz ~p height ~p in BS ~p~n",[_Sz,_H, _BS]),
+ F;
+sel_font(BS,[{H,_Sz,F}|_]) when BS > (H + 6) ->
+ %% io:format("Font sz ~p height ~p in BS ~p~n",[_Sz,H, BS]),
+ F;
+sel_font(BS,[_|Fs]) ->
+ sel_font(BS,Fs).
+
+draw_number(DC,F,Sz,#sq{key={R,C},val=Num,given=Bold,correct=Correct}) ->
+ {X,Y} = get_coords(Sz,R-1,C-1),
+ TBox = Sz div 3,
+ if Bold ->
+ wxFont:setWeight(F,?wxBOLD),
+ wxDC:setTextForeground(DC,{0,0,0});
+ Correct =:= false ->
+ wxFont:setWeight(F,?wxNORMAL),
+ wxDC:setTextForeground(DC,{255,40,40,255});
+ true ->
+ wxFont:setWeight(F,?wxNORMAL),
+ wxDC:setTextForeground(DC,{50,50,100,255})
+ end,
+ wxDC:setFont(DC,F),
+ CH = (TBox - wxDC:getCharHeight(DC)) div 2,
+ CW = (TBox - wxDC:getCharWidth(DC)) div 2,
+ wxDC:drawText(DC, integer_to_list(Num), {X+CW,Y+CH+1}),
+ ok.
+
+get_coords(Sz,R,C) ->
+ TBox = Sz div 3,
+ R1 = R div 3,
+ R2 = R rem 3,
+ C1 = C div 3,
+ C2 = C rem 3,
+ {?BRD + C1*Sz + C2*TBox,
+ ?BRD + R1*Sz + R2*TBox}.
+
+draw_board(DC,{W0,H0},#state{pen=Pen}) ->
+ BoxSz = getGeomSz(W0,H0),
+ BS = ?BRD+3*BoxSz,
+
+ wxPen:setWidth(Pen, 3),
+ wxPen:setColour(Pen, {0,0,0}),
+ wxDC:setPen(DC,Pen),
+
+ wxDC:drawRoundedRectangle(DC, {?BRD,?BRD,3*BoxSz+1,3*BoxSz+1},
+ float(?ARC_R)),
+ %% Testing DrawLines
+ wxDC:drawLines(DC, [{?BRD+BoxSz, ?BRD}, {?BRD+BoxSz, BS}]),
+ wxDC:drawLine(DC, {?BRD+BoxSz*2, ?BRD}, {?BRD+BoxSz*2, BS}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+BoxSz}, {BS, ?BRD+BoxSz}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+BoxSz*2}, {BS, ?BRD+BoxSz*2}),
+
+ %% Draw inside lines
+ wxPen:setWidth(Pen, 1),
+ wxDC:setPen(DC,Pen),
+ TBox = BoxSz div 3,
+ wxDC:drawLine(DC, {?BRD+TBox, ?BRD}, {?BRD+TBox, BS}),
+ wxDC:drawLine(DC, {?BRD+TBox*2, ?BRD}, {?BRD+TBox*2, BS}),
+ wxDC:drawLine(DC, {?BRD+TBox+BoxSz, ?BRD}, {?BRD+TBox+BoxSz, BS}),
+ wxDC:drawLine(DC, {?BRD+TBox*2+BoxSz, ?BRD}, {?BRD+TBox*2+BoxSz, BS}),
+ wxDC:drawLine(DC, {?BRD+TBox+BoxSz*2, ?BRD}, {?BRD+TBox+BoxSz*2, BS}),
+ wxDC:drawLine(DC, {?BRD+TBox*2+BoxSz*2, ?BRD}, {?BRD+TBox*2+BoxSz*2, BS}),
+ %% Vert
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox}, {BS, ?BRD+TBox}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox*2}, {BS, ?BRD+TBox*2}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox+BoxSz}, {BS, ?BRD+TBox+BoxSz}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox*2+BoxSz}, {BS, ?BRD+TBox*2+BoxSz}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox+BoxSz*2}, {BS, ?BRD+TBox+BoxSz*2}),
+ wxDC:drawLine(DC, {?BRD, ?BRD+TBox*2+BoxSz*2}, {BS, ?BRD+TBox*2+BoxSz*2}),
+ BoxSz.
+
+getGeomSz(W,H) ->
+ Small = if W < H -> W; true -> H end,
+ (Small - 2*?BRD) div 3.
+
+
+%% popupmenu
+
+create_popup_menu(GFX,Butt,X,Y,Frame) ->
+ Port = wx:get_env(),
+ spawn_link(fun() -> create_popup_menu1(GFX,Butt,Port,X,Y,Frame) end).
+
+create_popup_menu1(GFX,Butt,Port,X,Y,Frame) ->
+ wx:set_env(Port),
+ PopupMenu = wxMenu:new(),
+ create_popup_menu2(1, PopupMenu),
+
+ wxEvtHandler:connect(PopupMenu, command_menu_selected),
+ wxWindow:popupMenu(Frame,PopupMenu,X,Y),
+ receive
+ #wx{event=#wxCommand{type=command_menu_selected},id=10} ->
+ GFX ! {set_val,Butt,0};
+ #wx{event=#wxCommand{type=command_menu_selected},id=What} ->
+ GFX ! {set_val,Butt,What}
+ end.
+
+create_popup_menu2(N,PP) when N > 9 ->
+ wxMenu:append(PP, 10, "Clear");
+create_popup_menu2(N,PP) ->
+ wxMenu:append(PP, N,integer_to_list(N)),
+ create_popup_menu2(N+1,PP).
+
diff --git a/lib/wx/examples/sudoku/sudoku_game.erl b/lib/wx/examples/sudoku/sudoku_game.erl
new file mode 100755
index 0000000000..470aee0e3b
--- /dev/null
+++ b/lib/wx/examples/sudoku/sudoku_game.erl
@@ -0,0 +1,503 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+-module(sudoku_game).
+-compile(export_all).
+-include("sudoku.hrl").
+
+init(GFX) ->
+ Empty = empty_table(#s{}),
+ Add = fun({Butt,Val},SN) ->
+ validate(rcm(Butt),Val,false,SN)
+ end,
+
+ Game = test(),
+ GFX ! {init, Game},
+ Self = self(),
+ Gen = spawn_opt(fun() -> create_games(levels(),Self) end,
+ [link, {priority,low}]),
+ loop(lists:foldl(Add,Empty#s{gfx=GFX, gen=Gen},Game)).
+
+%%%%%%%%%%%%%%%%%% Game Engine %%%%%%%%%%%%%%%%%%
+
+empty_table(S) ->
+ Nine = lists:seq(1,9),
+ D = gb_sets:from_ordset(Nine),
+ Mat = list_to_tuple([D || _ <- Nine]),
+ Poss = list_to_tuple([D || _ <- lists:seq(1,9*9)]),
+ Vals = list_to_tuple([0 || _ <- lists:seq(1,9*9)]),
+ Must = list_to_tuple([gb_sets:empty() || _ <- lists:seq(1,9*3)]),
+ S#s{p=Poss,m=Mat,mr=Must,mc=Must,v=Vals}.
+
+loop(S0 = #s{gfx = Gfx, v=Vs}) ->
+ receive
+ quit ->
+ halt;
+ {'EXIT', Gfx, Reason} ->
+ io:format("The GUI crashed: ~p~n", [Reason]);
+ {validate, Butt, Val} ->
+ Ix = indx(Butt),
+ case element(Ix,Vs) of
+ Val -> loop(S0);
+ 0 ->
+ S = validate(rcm(Butt),Val,true,S0),
+ loop(S);
+ _ ->
+ S1 = S0#s{v=setelement(Ix,Vs,0)},
+ S2 = rebuild_all(rcm(Butt),S1),
+ S = validate(rcm(Butt),Val,true,S2),
+ loop(S)
+ end;
+ {loaded, Game} ->
+ S1 = empty_table(S0),
+ Add = fun({Butt,Val},SN) ->
+ validate(rcm(Butt),Val,true,SN)
+ end,
+ loop(lists:foldl(Add,S1,Game));
+ {op,?EMPTY} ->
+ loop(empty_table(S0));
+ {op,?NEW, Level} ->
+ case find_game(Level,S0) of
+ {Game, S1} ->
+ S0#s.gen ! {gen_game, Level},
+ Gfx ! {busy,start},
+ Gfx ! {init, Game};
+ false ->
+ S1 = S0,
+ Gfx ! {busy,start},
+ Temp = new_game(S0),
+ Game = pick_shown(Temp,Level,Gfx),
+ S0#s.gen ! {gen_game, Level},
+ Game
+ end,
+ S2 = empty_table(S1),
+ Add = fun({Butt,Val},SN) ->
+ validate(rcm(Butt),Val,false, SN)
+ end,
+ Gfx ! {init, Game},
+ Gfx ! {busy,stop},
+ loop(lists:foldl(Add,S2,Game));
+ {solve, All} ->
+ Res = solve(S0, All),
+ [Gfx ! {set_val, Ind, Val} || {Ind,Val} <- element(2,Res)],
+ loop(S0);
+ {get_game, Pid} ->
+ Pid ! {game, get_known(S0)},
+ loop(S0);
+ {game, Game} ->
+ loop(S0#s{games=[Game|S0#s.games]});
+ CMD ->
+ io:format("Game loop got ~p~n", [CMD]),
+ ?MODULE:loop(S0)
+ end.
+
+validate({R,C,_M},0,Send,St = #s{gfx=Gfx}) ->
+ if Send -> Gfx ! {correct, {R,C}}; true -> ok end,
+ St;
+validate(RCM={R,C,_M},Val,Send,St = #s{gfx=Gfx,v=Vs}) ->
+ S = poss(RCM,St),
+ case gb_sets:is_member(Val,S) of
+ true ->
+ if Send -> Gfx ! {correct, {R,C}}; true -> ok end,
+ add(RCM,Val,St);
+ false ->
+ if Send -> Gfx ! {wrong, {R,C}}; true -> ok end,
+ St#s{v=setelement(indx(R,C),Vs,Val)}
+ end.
+
+rebuild_all(_, S0) ->
+ Solved = get_known(S0),
+ S1 = empty_table(S0),
+ lists:foldl(fun({Indx,Val},Acc) ->
+ add(rcm(Indx),Val,Acc)
+ end, S1, Solved).
+
+is_ok({RI,CI,MI}, Vals) ->
+ [Ri,Ci,Mi] = all(RI,CI,MI),
+ case element(indx(RI,CI),Vals) of
+ 0 -> true;
+ Val ->
+ Vs = [[element(indx(R,C),Vals)||{R,C} <- Obs,
+ not ((R == RI) and (C == CI))]
+ || Obs <- [Ri,Ci,Mi]],
+ not lists:member(Val,lists:flatten(Vs))
+ end.
+
+test() -> %% Known to solvable
+ [{{1,2},6}, {{1,4},1}, {{1,6},4}, {{1,8},5},
+ {{2,3},8}, {{2,4},3}, {{2,6},5}, {{2,7},6},
+ {{3,1},2}, {{3,9},1},
+ {{4,1},8}, {{4,4},4}, {{4,6},7}, {{4,9},6},
+ {{5,3},6}, {{5,7},3},
+ {{6,1},7}, {{6,4},9}, {{6,6},1}, {{6,9},4},
+ {{7,1},5}, {{7,9},2},
+ {{8,3},7}, {{8,4},2}, {{8,6},6}, {{8,7},9},
+ {{9,2},4}, {{9,4},5}, {{9,6},8}, {{9,8},7}].
+
+new_game(S) ->
+ {X,Y,Z} = erlang:now(),
+ random:seed(Y,X,Z),
+ case new_game(1,1,gb_sets:empty(),empty_table(S#s{}),[], 0) of
+ stop -> new_game(S);
+ Game -> Game
+ end.
+
+
+new_game(_,_,_,_St,_Acc,Cnt) when Cnt > 200 ->
+ %% Backtracked 200 times, Bad path lets start over
+ stop;
+new_game(R,C,BT,St,Acc,Cnt) when R < 10, C < 10 ->
+ M = mat(R,C),
+ U = poss({R,C,M},St),
+ S = gb_sets:difference(U,BT),
+ case gb_sets:size(S) of
+ 0 ->
+ [{{BR,BC},BVal,BBT,BST}|BAcc] = Acc,
+ new_game(BR,BC,gb_sets:add(BVal,BBT),BST,BAcc,Cnt+1);
+ Size ->
+ Ind = random:uniform(Size),
+ V = lists:nth(Ind,gb_sets:to_list(S)),
+ new_game(R,C+1,gb_sets:empty(),
+ add({R,C,M},V,St),
+ [{{R,C},V,BT,St}|Acc], Cnt)
+ end;
+new_game(R,_C,Bt,S,Acc,Cnt) when R < 10 ->
+ new_game(R+1,1,Bt,S,Acc,Cnt);
+new_game(_,_,_,S,_Acc,_Cnt) ->
+%% io:format("Backtracked ~p ~n",[_Cnt]),
+ S.
+
+pick_shown(S0, Level, Gfx) ->
+ Given = gb_sets:from_ordset([I || I <- lists:seq(1,9*9)]),
+ get_known(pick_shown(Given,Given,S0,level(Level),Gfx)).
+
+get_known(#s{v=Vals}) ->
+ lists:foldl(fun(Index,Acc) ->
+ case element(Index,Vals) of
+ 0 -> Acc;
+ Val ->
+ {R,C,_} = rcm(Index),
+ [{{R,C},Val}|Acc]
+ end
+ end, [], lists:seq(1,9*9)).
+
+pick_shown(Given,Left,S0,Level,Gfx) ->
+ LeftSz = gb_sets:size(Left),
+ GivenSz = gb_sets:size(Given),
+ if LeftSz == 0 ->
+ io:format("No left ~p~n", [GivenSz]),
+ S0;
+ GivenSz < Level ->
+ io:format("Below level ~p ~p~n", [GivenSz,Level]),
+ S0;
+ true ->
+ Ran = random:uniform(LeftSz),
+ V = lists:nth(Ran,gb_sets:to_list(Left)),
+ S1 = rebuild_all(rcm(V),S0#s{v=setelement(V,S0#s.v,0)}),
+ case solve(S1, true) of
+ {true, _, _} ->
+ catch Gfx ! {working, 100-LeftSz},
+ pick_shown(gb_sets:delete(V,Given),
+ gb_sets:delete(V,Left),
+ S1, Level,Gfx);
+ {false,_,_} ->
+ pick_shown(Given,gb_sets:delete(V,Left),
+ S0, Level,Gfx)
+ end
+ end.
+
+solve(St=#s{v=Vals},All) ->
+ Unsolved = [I || I <- lists:seq(1,9*9), element(I,Vals) == 0],
+ solve(Unsolved, All, St, [], [], lists:reverse(Unsolved)).
+
+solve(Rem, false, _St, [Solved|_], Unsolved, _) -> {true, [Solved], Rem ++ Unsolved};
+solve([], _, _St, Solved, [], _) -> {true, Solved, []};
+solve([], _, _St, Solved, Unsolved, Unsolved) -> {false, Solved, Unsolved};
+solve([], _, St, Solved, Unsolved, _Orig) ->
+ solve(Unsolved,true,St,Solved,[],lists:reverse(Unsolved));
+solve([Index|Rest],All, St, S, US, Orig) ->
+ RCM = rcm(Index),
+ Poss = poss(RCM,St),
+ case gb_sets:size(Poss) of
+ 1 ->
+ %% io:format("S1 ~n",[]),
+ [Val] = gb_sets:to_list(Poss),
+ solve(Rest, All, add(RCM,Val,St), [{Index,Val}|S],US,Orig);
+ _ ->
+ case solve_1(RCM, Poss, St) of
+ false ->
+ solve(Rest, All, St, S, [Index|US],Orig);
+ Val ->
+ solve(Rest, All, add(RCM,Val,St), [{Index,Val}|S],US,Orig)
+ end
+ end.
+
+solve_1(RCM={R,C,_M}, Avail, St) ->
+ All = all(RCM),
+ Poss = fun({RI,CI},Acc) when (RI == R) and (CI == C) -> Acc;
+ ({RI,CI},Acc) -> gb_sets:union(poss(rcm({RI,CI}),St),Acc)
+ end,
+ D = fun({RI,CI},Acc) when (RI == R) and (CI == C) ->
+ io:format("~p:~p: ignore~n",[RI,CI]),
+ Acc;
+ ({RI,CI},Acc) ->
+ Res = gb_sets:union(poss(rcm({RI,CI}),St),Acc),
+ io:format("~p:~p: ~p => ~p ~n",[RI,CI,gb_sets:to_list(poss(rcm({RI,CI}),St)),gb_sets:to_list(Res)]),
+ Res
+ end,
+ solve_2(All,{Poss,D},Avail).
+
+solve_2([],_, _) -> false;
+solve_2([First|R],{Poss,D},Avail) ->
+ All = lists:foldl(Poss, gb_sets:empty(), First),
+ Res = gb_sets:difference(Avail, All),
+ case gb_sets:size(Res) of
+ 1 ->
+ %% lists:foldl(D, gb_sets:empty(), First),
+ %% io:format("Poss: ~w~nA: ~p O:~p ~n",[First,gb_sets:to_list(Avail),gb_sets:to_list(All)]),
+ [Val] = gb_sets:to_list(Res),
+ Val;
+ _ ->
+ solve_2(R,{Poss,D},Avail)
+ end.
+
+all({RI,CI,MI}) -> all(RI,CI,MI).
+all(RI,CI,MI) ->
+ MR = ((MI-1) div 3)*3,
+ MC = ((MI-1) rem 3)*3,
+ Ri = [{RI,N} || N <- lists:seq(1,9)],
+ Ci = [{N,CI} || N <- lists:seq(1,9)],
+ Mi = [{1+MR,1+MC},{1+MR,2+MC},{1+MR,3+MC},
+ {2+MR,1+MC},{2+MR,2+MC},{2+MR,3+MC},
+ {3+MR,1+MC},{3+MR,2+MC},{3+MR,3+MC}],
+ [Ri,Ci,Mi].
+
+other_mats(N) ->
+ if N < 4 -> P1=3, P2= 6;
+ N < 7 -> P1=-3,P2= 3;
+ true -> P1=-6,P2=-3
+ end,
+ case (N-1) rem 3 of
+ 0 -> [N+1,N+2,N+P1,N+P2];
+ 1 -> [N-1,N+1,N+P1,N+P2];
+ 2 -> [N-2,N-1,N+P1,N+P2]
+ end.
+
+check_must(S=#s{p=Poss,m=MS,mr=MR0,mc=MC0}) ->
+ List = lists:seq(1,9),
+ {MR,MC} = lists:foldl(fun(Val,{MRT,MCT}) ->
+ check_must2(List,Val,Poss,MS,MRT,MCT)
+ end, {MR0,MC0}, List),
+ S#s{mr=MR,mc=MC}.
+
+check_must2([M|Rest],Val,Poss,Ms,MR0,MC0) ->
+ case gb_sets:is_member(Val, element(M,Ms)) of
+ true ->
+ {Rows,Cols} = rc_in_mat(M),
+ MR1 = check_must3(Rows,Val,Poss,row,MR0),
+ MC1 = check_must3(Cols,Val,Poss,col,MC0),
+ check_must2(Rest,Val,Poss,Ms,MR1,MC1);
+ false ->
+ check_must2(Rest,Val,Poss,Ms,MR0,MC0)
+ end;
+check_must2([],_,_,_,MR,MC) -> {MR,MC}.
+
+check_must3({F1,F2,F3},Val,Check,Type,Must0) ->
+ R1 = not gb_sets:is_member(Val, get_poss(F1,Check,gb_sets:empty())),
+ R2 = not gb_sets:is_member(Val, get_poss(F2,Check,gb_sets:empty())),
+ R3 = not gb_sets:is_member(Val, get_poss(F3,Check,gb_sets:empty())),
+ %% io:format("M=~p ~p ~p ~p ~p~n",[M,[R1,R2,R3],gb_sets:to_list(element(F1,Check)),gb_sets:to_list(element(F2,Check)),gb_sets:to_list(element(F3,Check))]),
+ if R1,R2 -> update_must(Type,F3,Val,Must0);
+ R1,R3 -> update_must(Type,F2,Val,Must0);
+ R2,R3 -> update_must(Type,F1,Val,Must0);
+ true -> Must0
+ end.
+
+update_must(Type,[Indx|_],Val,Must) ->
+ N = mindx(Type, Indx),
+ %% io:format("~p ~p ~p must contain ~p~n",[Type,N,rcm(Indx),Val]),
+ Set = element(N,Must),
+ setelement(N,Must, gb_sets:add(Val,Set)).
+
+add(RCM={R,C,M},Val,S=#s{p=P0,m=MS,v=Vals,mr=MR0,mc=MC0}) ->
+ Ri = mindx(R,M),
+ Ci = mindx(M,C),
+ MR = delete(Val,Ri,MR0),
+ MC = delete(Val,Ci,MC0),
+ P1 = setelement(indx(RCM),P0,gb_sets:empty()),
+ check_must(S#s{p=delete(Val,lists:flatten(all(RCM)),P1),
+ m=delete(Val,M,MS),
+ mr=MR,mc=MC,
+ v=setelement(indx(RCM),Vals,Val)}).
+
+poss(RCM={R,C,M}, #s{p=P,v=Vals,mr=MR,mc=MC}) ->
+ I = indx(R,C),
+ case element(I, Vals) of
+ 0 ->
+ Rm = mindx(R,M),
+ Cm = mindx(M,C),
+ T1 = gb_sets:intersection(element(Rm,MR),element(Cm,MC)),
+ case gb_sets:size(T1) of
+ 1 -> T1;
+ _ ->
+ Not = get_nots(RCM,MR,MC),
+ gb_sets:difference(element(I,P),Not)
+ end;
+ _ ->
+ gb_sets:empty()
+ end.
+
+get_nots({R,C,M},MR,MC) ->
+ [RM1,RM2,CM1,CM2] = other_mats(M),
+ R1 = get_poss([mindx(R,RM1),mindx(R,RM2)],MR,gb_sets:empty()),
+ R2 = get_poss([mindx(CM1,C),mindx(CM2,C)],MC,R1),
+ %% io:format("~p:~p:~p ~p ~p~n",
+ %% [C,CM1,CM2,
+ %% gb_sets:to_list(element(mindx(CM1,C),MC)),
+ %% gb_sets:to_list(element(mindx(CM2,C),MC))]),
+ R2.
+
+get_poss([],_,Tot) -> Tot;
+get_poss([H|R],What,Tot) ->
+ %% io:format("~p~n",[H]),
+ get_poss(R,What, gb_sets:union(element(H,What),Tot)).
+
+r2rs(R) ->
+ R0 = (R-1)*3,
+ [R0+1,R0+2,R0+3].
+
+c2cs(C) ->
+ C0 = (C-1) rem 9,
+ [C0+1, C0+10, C0+19].
+
+mindx(row,Indx) ->
+ {R,_C,M} = rcm(Indx),
+ mindx(R,M);
+mindx(col,Indx) ->
+ {_R,C,M} = rcm(Indx),
+ mindx(M,C);
+
+mindx(R,M) ->
+ 1+(R-1)*3 + (M-1) rem 3.
+
+rcm(Indx) when is_integer(Indx) ->
+ rcm({((Indx-1) div 9)+1, (Indx-1) rem 9+1});
+rcm({R,C}) ->
+ M = mat(R,C),
+ {R,C,M}.
+mat(R,C) ->
+ 1+(C-1) div 3 + ((R-1) div 3)*3.
+
+rc_in_mat(M) ->
+ R1 = 1+3*((M-1) div 3),
+ C1 = 1+3*((M-1) rem 3),
+ {{[indx({R1+0,C1+0}),indx({R1+0,C1+1}),indx({R1+0,C1+2})],
+ [indx({R1+1,C1+0}),indx({R1+1,C1+1}),indx({R1+1,C1+2})],
+ [indx({R1+2,C1+0}),indx({R1+2,C1+1}),indx({R1+2,C1+2})]},
+
+ {[indx({R1+0,C1+0}),indx({R1+1,C1+0}),indx({R1+2,C1+0})],
+ [indx({R1+0,C1+1}),indx({R1+1,C1+1}),indx({R1+2,C1+1})],
+ [indx({R1+0,C1+2}),indx({R1+1,C1+2}),indx({R1+2,C1+2})]}}.
+
+indx(Indx) when is_integer(Indx) -> Indx;
+indx({Row, Col}) ->
+ indx(Row,Col);
+indx({Row, Col,_}) ->
+ indx(Row,Col).
+indx(Row, Col) ->
+ (Row-1)*9+Col.
+
+delete(_Val,[],S0) -> S0;
+delete(Val,[I1|R],S0) ->
+ I = if is_integer(I1) -> I1;
+ true -> indx(I1)
+ end,
+ S = setelement(I,S0,gb_sets:delete_any(Val, element(I,S0))),
+ delete(Val,R,S);
+delete(Val,I,S) ->
+ setelement(I,S,gb_sets:delete_any(Val, element(I,S))).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%% Pre generate games on low priority
+create_games(Levels,Engine) ->
+ gen_loop(Levels, Engine, 5).
+
+gen_loop([], Engine,_) ->
+ receive
+ {gen_game, Level} ->
+ gen_loop([Level], Engine,5)
+ end;
+gen_loop([Level|Ls], Engine, N) when N > 0 ->
+ Empty = empty_table(#s{}),
+ Temp = new_game(Empty),
+ Game = pick_shown(Temp,Level,undefined),
+ ResLev = length(Game),
+ Engine ! {game, {ResLev, Game}},
+ case ResLev =< level(Level) of
+ true ->
+ gen_loop(Ls,Engine, 5);
+ false ->
+ gen_loop([Level|Ls],Engine, N-1)
+ end;
+gen_loop([_|Ls],Engine, _) ->
+ gen_loop(Ls,Engine, 5).
+
+find_game(_, #s{games=[]}) -> false;
+find_game(hardest, S = #s{games=Gs0}) ->
+ Hard = level(hard),
+ case lists:sort(Gs0) of
+ [{Level,G}|Gs] when Level < (Hard-5) ->
+ {G, S#s{games=Gs}};
+ _ -> false
+ end;
+find_game(Level, S = #s{games=Gs0}) ->
+ case find_game2(level(Level), lists:reverse(lists:sort(Gs0)), []) of
+ false -> false;
+ {Game, Gs} -> {Game,S#s{games=Gs}}
+ end.
+
+find_game2(Hard, [{Level,G}|Gs], Acc) when Level =< Hard, Level > (Hard-5) ->
+ {G, Gs ++ Acc};
+find_game2(Hard, [G|Gs], Acc) ->
+ find_game2(Hard, Gs, [G|Acc]);
+find_game2(_Hard, [], _ ) -> false.
+
+levels() ->
+ [trivial,easy,normal,hard,hardest].
+
+level(Level) when is_atom(Level) ->
+ case Level of
+ all -> 100;
+ trivial -> 40;
+ easy -> 35;
+ normal -> 30;
+ hard -> 25;
+ hardest -> 0
+ end;
+level(Int) when is_integer(Int) ->
+ if
+ Int =< 20 -> hardest;
+ Int =< 25 -> hard;
+ Int =< 30 -> normal;
+ Int =< 35 -> easy;
+ true -> trivial
+ end.
+
+
+
diff --git a/lib/wx/examples/sudoku/sudoku_gui.erl b/lib/wx/examples/sudoku/sudoku_gui.erl
new file mode 100755
index 0000000000..4aaecfe086
--- /dev/null
+++ b/lib/wx/examples/sudoku/sudoku_gui.erl
@@ -0,0 +1,391 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : sudoku_gui.erl
+%%% Author : <[email protected]>
+%%% Description : The Gui and it's event loop
+%%%
+%%% Created : 9 Jan 2008 by <[email protected]>
+%%%-------------------------------------------------------------------
+-module(sudoku_gui).
+
+-export([init/1, handle_info/2, handle_call/3, handle_event/2,
+ terminate/2, code_change/3]).
+
+-compile(export_all).
+
+-behaviour(wx_object).
+
+-include("sudoku.hrl").
+
+-import(sudoku_game, [indx/1]).
+
+%%%%%%%%%% Graphic engine %%%%%%%%%%%%%%
+
+-record(gs,{board,show_err=true,level=hard,game,frame,orig=[], print_d, print_psdd}).
+
+new(Game) ->
+ wx:new(),
+ wx_object:start_link(?MODULE, [Game], []).
+
+%%%%%%%%%%%%%%%%%%%%% Server callbacks %%%%%%%%%%%%%
+
+init([Game]) ->
+ {Frame, Board} = wx:batch(fun() -> create_window() end),
+ Game ! {gfx, self()},
+ {Frame, init_printer(#gs{board=Board,game=Game,frame=Frame})}.
+
+create_window() ->
+ Frame = wxFrame:new(wx:null(), -1, "Sudoku", []),
+
+ wxFrame:createStatusBar(Frame,[]),
+ wxFrame:connect(Frame, close_window),
+
+ MenuBar = wxMenuBar:new(),
+ File = wxMenu:new([]),
+ Opt = wxMenu:new([]),
+ Help = wxMenu:new([]),
+
+ wxMenu:append(File, ?NEW, "&New Game"),
+ wxMenu:append(File, ?OPEN, "&Open Game"),
+ wxMenu:append(File, ?SAVE, "&Save Game"),
+ wxMenu:appendSeparator(File),
+ wxMenu:append(File, ?PRINT, "Print"),
+ wxMenu:append(File, ?PRINT_PAGE_SETUP, "Page Setup"),
+ wxMenu:append(File, ?PRINT_PRE, "Print Preview"),
+ wxMenu:appendSeparator(File),
+ wxMenu:append(File, ?QUIT, "&Quit Game"),
+
+ wxMenu:append(Help, ?RULES, "Rules"),
+ wxMenu:append(Help, ?ABOUT, "About"),
+
+ wxMenu:appendRadioItem(Opt, ?TRIVIAL, "Level: Trivial"),
+ wxMenu:appendRadioItem(Opt, ?EASY, "Level: Easy"),
+ LItem = wxMenu:appendRadioItem(Opt, ?NORMAL, "Level: Normal"),
+ wxMenu:appendRadioItem(Opt, ?HARD, "Level: Hard"),
+ wxMenu:appendRadioItem(Opt, ?HARDEST, "Level: Hardest"),
+ wxMenu:appendSeparator(Opt),
+ EItem = wxMenu:appendCheckItem(Opt, ?SHOW_ERROR, "Show errors"),
+
+ wxMenuBar:append(MenuBar, File, "&File"),
+ wxMenuBar:append(MenuBar, Opt, "O&ptions"),
+ wxMenuBar:append(MenuBar, Help, "&Help"),
+
+ wxFrame:setMenuBar(Frame, MenuBar),
+ wxFrame:connect(Frame, command_menu_selected),
+
+ MainSz = wxBoxSizer:new(?wxVERTICAL),
+ Top = wxBoxSizer:new(?wxHORIZONTAL),
+
+ Panel = wxPanel:new(Frame),
+ NewGame = wxButton:new(Panel, ?NEW, [{label,"New Game"}]),
+ wxButton:connect(NewGame, command_button_clicked),
+ Empty = wxButton:new(Panel, ?EMPTY, [{label,"Empty Board "}]),
+ wxButton:connect(Empty, command_button_clicked),
+ Clean = wxButton:new(Panel, ?CLEAR, [{label,"Clear"}]),
+ wxButton:connect(Clean, command_button_clicked),
+ Hint = wxButton:new(Panel, ?HINT, [{label, "Hint"}]),
+ wxButton:connect(Hint, command_button_clicked),
+
+ wxSizer:addSpacer(Top,2),
+ SF = wxSizerFlags:new(),
+ wxSizerFlags:proportion(SF,1),
+ wxSizer:add(Top, NewGame, wxSizerFlags:left(SF)),
+ wxSizer:addSpacer(Top,3),
+ wxSizer:add(Top, Empty, wxSizerFlags:center(SF)),
+ wxSizer:addSpacer(Top,3),
+ wxSizer:add(Top, Clean, wxSizerFlags:center(SF)),
+ wxSizer:addSpacer(Top,3),
+ wxSizer:add(Top, Hint, wxSizerFlags:right(SF)),
+
+ wxSizer:addSpacer(MainSz,5),
+ wxSizer:add(MainSz, Top, wxSizerFlags:center(wxSizerFlags:proportion(SF,0))),
+ wxSizer:addSpacer(MainSz,10),
+
+ Board = sudoku_board:new(Panel),
+
+ wxSizer:add(MainSz, Board, wxSizerFlags:proportion(wxSizerFlags:expand(SF),1)),
+ wxWindow:setSizer(Panel,MainSz),
+ wxSizer:fit(MainSz, Frame),
+ wxSizer:setSizeHints(MainSz,Frame),
+ wxWindow:show(Frame),
+ %% Check after append so it's initialized on all platforms
+ wxMenuItem:check(LItem),
+ wxMenuItem:check(EItem),
+ {Frame, Board}.
+
+status(Win, F, A) ->
+ Str = lists:flatten(io_lib:format(F, A)),
+ wxFrame:setStatusText(Win, Str).
+
+%%%%%%%%%%%%%%%% Info i.e. messages %%%%%%%%%%%%%%%%%%%%%
+
+handle_info(quit, S=#gs{game=G,frame=F}) ->
+ wxWindow:close(F),
+ wx_core:quit(),
+ G ! quit,
+ {stop, shutdown, S};
+
+handle_info({init, Init}, S = #gs{board=Board,frame=F}) ->
+ sudoku_board:setup_board(Board, Init),
+ status(F, "Given ~p Left ~p", [length(Init), sudoku_board:left(Board)]),
+ {noreply, S#gs{orig=[indx(Id)||{Id,_}<-Init]}};
+handle_info({correct, ButtI}, S = #gs{board=Board, orig=Orig,frame=F}) ->
+ sudoku_board:butt_correct(Board, ButtI, true),
+ case sudoku_board:left(Board) of
+ 0 ->
+ Str = "Congrats, now try a harder one",
+ MD = wxMessageDialog:new(F,Str,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "Complete"}]),
+ wxDialog:showModal(MD),
+ wxDialog:destroy(MD),
+ status(F, "Given ~p Left ~p", [length(Orig), 0]);
+ L ->
+ status(F, "Given ~p Left ~p", [length(Orig), L])
+ end,
+ {noreply, S};
+handle_info({wrong, ButtI}, S = #gs{board=Board}) ->
+ case S#gs.show_err of
+ true ->
+ sudoku_board:butt_correct(Board, ButtI, false);
+ false ->
+ ignore
+ end,
+ {noreply, S};
+handle_info({set_val, ButtI, Val}, S = #gs{game=G,board=Board,orig=Orig}) ->
+ case lists:member(indx(ButtI), Orig) of
+ false -> set_val(ButtI, Val, Board, G);
+ true -> ignore
+ end,
+ {noreply, S};
+handle_info({working, Done}, S = #gs{frame=F}) ->
+ status(F, "Thinking: ~p%", [Done]),
+ {noreply, S};
+handle_info({busy, Mode},S) ->
+ case Mode of
+ start -> wx_misc:beginBusyCursor();
+ stop -> wx_misc:endBusyCursor()
+ end,
+ {noreply, S}.
+
+%%%%%%%%%%%%%%%%% GUI-Events %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+handle_event(#wx{id=?HINT, event=#wxCommand{type=command_button_clicked}},
+ S = #gs{game=G}) ->
+ G ! {solve,false},
+ {noreply,S};
+
+handle_event(#wx{event=#wxClose{}},
+ S = #gs{game=G,frame=F}) ->
+ catch wxWindow:'Destroy'(F),
+ G ! quit,
+ {stop, shutdown, S};
+
+handle_event(#wx{id=?QUIT, event=#wxCommand{type=command_menu_selected}},
+ S = #gs{game=G,frame=F}) ->
+ wxWindow:close(F,[]),
+ G ! quit,
+ {stop, shutdown, S};
+
+%% type=command_button_clicked,
+handle_event(#wx{id=?NEW, event=#wxCommand{}},
+ S = #gs{game=G, board=Board}) ->
+ G ! {op,?NEW,S#gs.level},
+ sudoku_board:setup_board(Board,[]),
+ {noreply, S#gs{orig=[]}};
+handle_event(#wx{id=?EMPTY, event=#wxCommand{}},
+ S = #gs{game=G, board=Board}) ->
+ G ! {op,?EMPTY},
+ sudoku_board:setup_board(Board,[]),
+ {noreply, S#gs{orig=[]}};
+handle_event(#wx{id=?CLEAR, event=#wxCommand{}},
+ S = #gs{game=G,board=Board}) ->
+ Vals = sudoku_board:clear_board(Board),
+ G ! {loaded, Vals},
+ {noreply, S};
+handle_event(#wx{id=ID, event=#wxCommand{}}, S) when ID > 125 ->
+ New = dialog(ID, S),
+ {noreply, New};
+handle_event(Msg,S) ->
+ io:format("~p: Unhandled event ~p~n",[?MODULE, Msg]),
+ %%sudoku_board:event(Msg, Ids),
+ {noreply, S}.
+
+handle_call(What, _From, State) ->
+ {stop, {call, What}, State}.
+
+code_change(_, _, State) ->
+ {stop, not_yet_implemented, State}.
+
+terminate(_Reason, _State) ->
+ normal.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+dialog(?SHOW_ERROR, S=#gs{show_err=Show}) ->
+ S#gs{show_err = not Show};
+dialog(ID, S) when ID >= 210, ID =< 240 ->
+ Level = sudoku_game:level(ID-200),
+ S#gs{level = Level};
+dialog(?SAVE, S=#gs{frame=Frame, board=Board}) ->
+ FD = wxFileDialog:new(Frame, [{style, ?wxFD_SAVE bor
+ ?wxFD_OVERWRITE_PROMPT}]),
+ case wxFileDialog:showModal(FD) of
+ ?wxID_OK ->
+ Path = wxFileDialog:getPath(FD),
+ {ok,Fd} = file:open(Path, [write]),
+ List = sudoku_board:get_board_data(Board),
+ io:format(Fd, "~w.~n", [List]),
+ file:close(Fd);
+ _ ->
+ ignore
+ end,
+ wxDialog:destroy(FD),
+ S;
+dialog(?OPEN, S=#gs{game=Server, frame=Frame, board=Board}) ->
+ FD = wxFileDialog:new(Frame,[{style, ?wxFD_OPEN bor ?wxFD_FILE_MUST_EXIST}]),
+ case wxDialog:showModal(FD) of
+ ?wxID_OK ->
+ Path = wxFileDialog:getPath(FD),
+ case file:consult(Path) of
+ {ok, [Game]} when is_list(Game) ->
+ Vals = sudoku_board:set_board_data(Board, Game),
+ Server ! {loaded, Vals};
+ _ ->
+ ignore
+ end;
+ _ ->
+ ignore
+ end,
+ wxFileDialog:destroy(FD),
+ S;
+dialog(?ABOUT, S=#gs{frame=Frame}) ->
+ Str = "I'm just testing WxWidgets.\n"
+ "Testing various features and usages.\n/Dgud",
+ MD = wxMessageDialog:new(Frame,Str,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "About box"}]),
+ wxDialog:showModal(MD),
+ wxDialog:destroy(MD),
+ S;
+dialog(?RULES, S) ->
+ wx_misc:launchDefaultBrowser("http://www.sudoku.com"),
+ S;
+
+dialog(?PRINT_PAGE_SETUP, S = #gs{frame=Frame, print_psdd=PsDD0, print_d=PD0}) ->
+ wxPageSetupDialogData:setPrintData(PsDD0, PD0),
+ PSD = wxPageSetupDialog:new(Frame, [{data,PsDD0}]),
+ wxPageSetupDialog:showModal(PSD),
+
+ PSDD1 = wxPageSetupDialog:getPageSetupData(PSD),
+ PD1 = wxPageSetupDialogData:getPrintData(PSDD1),
+ %% Create new objects using copy constr.
+ PD = wxPrintData:new(PD1),
+ PsDD = wxPageSetupDialogData:new(PSDD1),
+ wxPageSetupDialog:destroy(PSD),
+ wxPageSetupDialogData:destroy(PsDD0),
+ wxPrintData:destroy(PD0),
+ S#gs{print_psdd=PsDD, print_d=PD};
+dialog(?PRINT_PRE, S = #gs{frame=Frame, print_d=PD}) ->
+ PDD = wxPrintDialogData:new(PD),
+ Printout1 = wxPrintout:new("Print", fun(This,Page) -> printout(This,Page,S) end,
+ [{getPageInfo, fun getPageInfo/1}]),
+ Printout2 = wxPrintout:new("Print", fun(This,Page) -> printout(This,Page,S) end,
+ [{getPageInfo, fun getPageInfo/1}]),
+ Preview = wxPrintPreview:new(Printout1, [{printoutForPrinting,Printout2},{data,PDD}]),
+ case wxPrintPreview:isOk(Preview) of
+ true ->
+ PF = wxPreviewFrame:new(Preview, Frame, [{title, "Print Preview"}]),
+ wxPreviewFrame:centre(PF, [{dir, ?wxBOTH}]),
+ wxPreviewFrame:initialize(PF),
+ wxPreviewFrame:centre(PF),
+ wxPreviewFrame:show(PF);
+ false ->
+ io:format("Could not create preview window.\n"
+ "Perhaps your current printer is not set correctly?~n", []),
+ wxPrintPreview:destroy(Preview)
+ end,
+ S;
+dialog(?PRINT, S = #gs{frame=Frame, print_d=PD}) ->
+ PDD = wxPrintDialogData:new(PD),
+ Printer = wxPrinter:new([{data,PDD}]),
+ Printout = wxPrintout:new("Print", fun(This,Page) -> printout(This,Page,S) end,
+ [{getPageInfo, fun getPageInfo/1}]),
+
+ case wxPrinter:print(Printer, Frame, Printout, [{prompt,true}]) of
+ false ->
+ case wxPrinter:getLastError() of
+ ?wxPRINTER_ERROR ->
+ io:format("There was a problem printing.\n"
+ "Perhaps your current printer is not set correctly?~n", []);
+ _ ->
+ io:format("You canceled printing~n", [])
+ end,
+ wxPrinter:destroy(Printer),
+ S;
+ true ->
+ PDD2 = wxPrinter:getPrintDialogData(Printer),
+ PD2 = wxPrintDialogData:getPrintData(PDD2),
+ %% Copy data PD2 will be deleted when Printer is destroyed
+ PD3 = wxPrintData:new(PD2),
+ wxPrintData:destroy(PD),
+ wxPrinter:destroy(Printer),
+ S#gs{print_d = PD3}
+ end;
+
+dialog(Other, S) ->
+ io:format("other ~p~n",[Other]),
+ S.
+
+init_printer(S) ->
+ PD = wxPrintData:new(),
+
+ %% You could set an initial paper size here
+ %% g_printData->SetPaperId(wxPAPER_LETTER); // for Americans
+ %% g_printData->SetPaperId(wxPAPER_A4); // for everyone else
+
+ PSDD = wxPageSetupDialogData:new(PD),
+ wxPageSetupDialogData:setMarginTopLeft(PSDD,{15,15}),
+ wxPageSetupDialogData:setMarginBottomRight(PSDD,{15,15}),
+
+ S#gs{print_d=PD, print_psdd=PSDD}.
+
+getPageInfo(_This) ->
+ {1,1,1,1}.
+
+printout(This, _Page, #gs{board=Board, print_psdd=PsDD}) ->
+ MX = MY = 500,
+ wxPrintout:fitThisSizeToPageMargins(This, {MX,MY}, PsDD),
+
+ _DBG = {_X,_Y,W,H} = wxPrintout:getLogicalPageMarginsRect(This, PsDD),
+ wxPrintout:offsetLogicalOrigin(This,(W-MX) div 2, (H-MY) div 2),
+%% io:format("~p ->{~p,~p} ~n", [_DBG, (W-MX) div 2, (H-MY) div 2]),
+
+ DC = wxPrintout:getDC(This),
+ sudoku_board:draw(Board, DC, {500,500}),
+ true.
+
+set_val(Id, Val, Board, G) ->
+ sudoku_board:set_butt(Board, Id,Val),
+ G ! {validate, Id, Val},
+ ok.
+
+
+
diff --git a/lib/wx/examples/xrc/Makefile b/lib/wx/examples/xrc/Makefile
new file mode 100755
index 0000000000..1dfaae9689
--- /dev/null
+++ b/lib/wx/examples/xrc/Makefile
@@ -0,0 +1,76 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../../vsn.mk
+include ../../config.mk
+
+TOPDIR = ../..
+EBIN = .
+ERLINC = $(TOPDIR)/include
+ERLC = erlc
+TESTMODS = xrc
+TESTTARGETS = $(TESTMODS:%=%.beam)
+TESTSRC = $(TESTMODS:%=%.erl)
+
+RESOURCEFILES = appicon.ico basicdlg.xpm custclas.xpm fileopen.gif menu.xrc \
+ resource.xrc uncenter.xpm variable.xrc appicon.xpm basicdlg.xrc \
+ custclas.xrc filesave.gif platform.xpm stop.xpm uncenter.xrc \
+ artprov.xpm controls.xpm derivdlg.xpm frame.xrc platform.xrc \
+ throbber.gif update.gif artprov.xrc controls.xrc derivdlg.xrc \
+ fuzzy.gif quotes.gif toolbar.xrc variable.xpm
+
+TESTRESOURCE = $(RESOURCEFILES:%=rc/%)
+
+# Targets
+opt debug: $(TESTTARGETS)
+clean:
+ rm -f $(TESTTARGETS)
+ rm -f *~ core erl_crash.dump
+
+docs:
+
+run: opt
+ erl -smp -detached -pa $(TOPDIR)/ebin -s xrc
+
+ifneq ($(INSIDE_ERLSRC),true)
+
+%.beam: %.erl
+ $(ERLC) -W -I$(ERLINC) -bbeam -o$(BIN) $<
+
+else
+EXRELSYSDIR = $(RELSYSDIR)/examples/xrc
+include $(ERL_TOP)/make/otp_release_targets.mk
+
+docs:
+
+release_spec:
+ $(INSTALL_DIR) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTSRC) $(EXRELSYSDIR)
+ $(INSTALL_DATA) $(TESTTARGETS) $(EXRELSYSDIR)
+ $(INSTALL_DIR) $(EXRELSYSDIR)/rc
+ $(INSTALL_DATA) $(TESTRESOURCE) $(EXRELSYSDIR)/rc
+
+release_tests_spec:
+
+release_docs_spec:
+
+endif
+
+
+
diff --git a/lib/wx/examples/xrc/rc/appicon.ico b/lib/wx/examples/xrc/rc/appicon.ico
new file mode 100644
index 0000000000..f3ef7918d2
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/appicon.ico
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/appicon.xpm b/lib/wx/examples/xrc/rc/appicon.xpm
new file mode 100644
index 0000000000..7c61a99318
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/appicon.xpm
@@ -0,0 +1,52 @@
+/* XPM */
+static char * appicon_xpm[] = {
+"32 32 17 1",
+" c None",
+". c #000000",
+"+ c #800000",
+"@ c #008000",
+"# c #808000",
+"$ c #000080",
+"% c #800080",
+"& c #008080",
+"* c #C0C0C0",
+"= c #808080",
+"- c #FF0000",
+"; c #00FF00",
+"> c #FFFF00",
+", c #0000FF",
+"' c #FF00FF",
+") c #00FFFF",
+"! c #FFFFFF",
+" ",
+"===============================.",
+"=*****************************=.",
+"=*$$$$$$$$$$$$$$$$$$$$$$$$$$$$=.",
+"=*$$$$$$$$$$$$$$$$$$$**.**.**.=.",
+"=*$$$$$$$$$$$$$$$$$$$**.**.**.=.",
+"=*$$$$$$$$$$$$$$$$$$$.........=.",
+"=*****************************=.",
+"=*=============================.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*=!!!!!!!,!!!!!!!!!!!,!!!!!!*=.",
+"=*=!!!!!!,,!!!!!!!!!!!,,!!!!!*=.",
+"=*=!!!!!,,!!!!!!!!!!!!!,,!!!!*=.",
+"=*=!!!!,,!!...........!!,,!!!*=.",
+"=*=!!!,,!!!.$$$$$$!!!.!!!,,!!*=.",
+"=*=!!,,!!!!.$$$$$$!!!.!!!!,,!*=.",
+"=*=!!,,!!!!.$$$$$$!!!.!!!!,,!*=.",
+"=*=!!!,,!!!.$$$$$$!!!.!!!,,!!*=.",
+"=*=!!!!,,!!...........!!,,!!!*=.",
+"=*=!!!!!,,!!!!!!!!!!!!!,,!!!!*=.",
+"=*=!!!!!!,,!!!!!!!!!!!,,!!!!!*=.",
+"=*=!!!!!!!,!!!!!!!!!!!,!!!!!!*=.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*=!!!!!!!!!!!!!!!!!!!!!!!!!!*=.",
+"=*****************************=.",
+"===============================.",
+"................................",
+" ",
+" "};
diff --git a/lib/wx/examples/xrc/rc/artprov.xpm b/lib/wx/examples/xrc/rc/artprov.xpm
new file mode 100644
index 0000000000..55e204881b
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/artprov.xpm
@@ -0,0 +1,23 @@
+/* XPM */
+static char * artprov_xpm[] = {
+"16 16 4 1",
+" c None",
+". c #000000",
+"+ c #0E2CEF",
+"@ c #FFFFFF",
+" . ",
+" . . ",
+" . . ",
+"++++++++++++++++",
+"+@@@@@@@@@@@@@@+",
+"+@@@@@@++@@@@@@+",
+"+@@@@@@@@@@@@@@+",
+"+@@@@@+++@@@@@@+",
+"+@@@@@@++@@@@@@+",
+"+@@@@@@++@@@@@@+",
+"+@@@@@@++@@@@@@+",
+"+@@@@@++++@@@@@+",
+"+@@@@@@@@@@@@@@+",
+"++++++++++++++++",
+" ",
+" "};
diff --git a/lib/wx/examples/xrc/rc/artprov.xrc b/lib/wx/examples/xrc/rc/artprov.xrc
new file mode 100644
index 0000000000..2256b73ebf
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/artprov.xrc
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="art_provider_dialog">
+ <title>wxArtProvider Example</title>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>You can specify wxArtProvider icons in your XRC resources. These icons will be retrieved from the active wxArtProvider (see wxArtProvider in docs and /samples/artprov for more information on wxArtProvider).\n\nThe most common usage for this is that you want a dialog, toolbar or menu item to have the correct platform-specific icon in your interface, such as a custom "Don't show this again" checkbox message dialog that has the appropriate icon, as shown below.\n\nYou can also use it to manage your own custom bitmaps though, too--instead of having to write multiple versions of an XRC file that only differ in their bitmaps, you can instead just write one XRC file with the bitmap to be retrieved from the wxArtProvider at runtime, having your custom wxArtProvider use some code to serve out the desired bitmap based on such things as a wxConfig n entry of a desired icon set, what OS the application is running on, what size or resolution the display is, and so on.\n\nNote that your application's custom bitmaps are the only thing that will differ between OS's in order to ensure proper Look And Feel, as everything else: windows decoration, colors, fonts, widgets, etc already match perfectly since wxWindows runs natively.\n\nTo use a wxArtProvider bitmap instead of usual bitmap, in your XRC, instead of &lt;bitmap&gt;somefile.png&lt;/bitmap&gt;, use &lt;bitmap stock__id="SOME__ART__ID" client="SOME__CLIENT__ID"&gt;somefile.png&lt;/bitmap&gt;. The stock__id parameter is required for a bitmap to be read from wxArtProvider, stock__client is optional. The image filename is also optional, and is just used as a fallback in case the wxArtProvider couldn't return a bitmap for that particular stock__id (and particular stock__client if your wxArtProvider is set up to also filter stock__client).</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>1</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticBitmap" name="my_bitmap">
+ <bitmap stock_id="wxART_INFORMATION" stock_client="wxART_MESSAGE_BOX">derivdlg.xpm</bitmap>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="message_statictext">
+ <label>Your web connection is optimized perfectly.</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="dont_show_checkbox">
+ <label>Don't show this message again</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/basicdlg.xpm b/lib/wx/examples/xrc/rc/basicdlg.xpm
new file mode 100644
index 0000000000..19054822ba
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/basicdlg.xpm
@@ -0,0 +1,24 @@
+/* XPM */
+static char * basicdlg_xpm[] = {
+"16 16 5 1",
+" c None",
+". c #000000",
+"+ c #808080",
+"@ c #0000FF",
+"# c #FFFFFF",
+" ",
+"................",
+".++++++++++++++.",
+".+@@@@@@@@@@@@+.",
+".++++++++++++++.",
+".+############+.",
+".+############+.",
+".+############+.",
+".+############+.",
+".+############+.",
+".+############+.",
+".+############+.",
+".+############+.",
+".++++++++++++++.",
+"................",
+" "};
diff --git a/lib/wx/examples/xrc/rc/basicdlg.xrc b/lib/wx/examples/xrc/rc/basicdlg.xrc
new file mode 100644
index 0000000000..ae632f6e10
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/basicdlg.xrc
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="non_derived_dialog">
+ <title>Non-Derived Dialog Example</title>
+ <centered>1</centered>
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>This is the basic non-derived XRC dialog. It is just an instance of wxDialog, not a instance of a class derived from wxDialog that was given some added functionality.\n\nYou can put whatever controls you want on these non-derived dialogs, but the dialog won't interact with the controls, nor do anything in response to any of their events. It only has the built-in functionality of a wxDialog, and that is it. A non-derived dialog can automatically close itself when you hit either the OK or Cancel button (returning a return code of what button you pressed), and not much else.\n\nThese are useful for an About dialog, or a message dialog popup, but that's about it. For the rest you will almost certainly use a derived dialog (see next example).</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxEXPAND|wxALL</flag>
+ <border>5</border>
+ <object class="wxStdDialogButtonSizer">
+ <object class="button">
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ <object class="button">
+ <object class="wxButton" name="wxID_CANCEL">
+ <label>Cancel</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/controls.xpm b/lib/wx/examples/xrc/rc/controls.xpm
new file mode 100644
index 0000000000..2bbdd34857
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/controls.xpm
@@ -0,0 +1,25 @@
+/* XPM */
+static char * controls_xpm[] = {
+"16 16 6 1",
+" c None",
+". c #000000",
+"+ c #808080",
+"@ c #0000FF",
+"# c #FFFFFF",
+"$ c #0E2CEF",
+" ",
+" ",
+" ",
+" ",
+" ",
+"................",
+".++++++++++++++.",
+".+@@@@@@@@####+.",
+".+$$$$$$$$####+.",
+".+$$$$$$$$####+.",
+".++++++++++++++.",
+"................",
+" ",
+" ",
+" ",
+" "};
diff --git a/lib/wx/examples/xrc/rc/controls.xrc b/lib/wx/examples/xrc/rc/controls.xrc
new file mode 100644
index 0000000000..77d5daac3e
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/controls.xrc
@@ -0,0 +1,1243 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!-- $Id: controls.xrc 43684 2006-11-27 15:02:49Z VZ $ -->
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="controls_dialog">
+ <title>Controls Example</title>
+ <style>wxCAPTION|wxSYSTEM_MENU|wxRESIZE_BORDER</style>
+ <exstyle>wxDIALOG_EX_CONTEXTHELP</exstyle>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxNotebook" name="controls_notebook">
+ <usenotebooksizer>1</usenotebooksizer>
+ <size>550,250</size>
+ <object class="notebookpage">
+ <label>wxTreebook</label>
+ <object class="wxTreebook" name="controls_treebook">
+ <size>350,280</size>
+ <style>wxSUNKEN_BORDER</style>
+ <object class="treebookpage">
+ <label>Page 1</label>
+ <depth>0</depth>
+ <object class="wxButton" name="controls_treebook_button1">
+ <size>200,180</size>
+ <label>Button N1</label>
+ </object>
+ </object>
+ <object class="treebookpage">
+ <label>Empty Page 2</label>
+ <depth>1</depth>
+ </object>
+ <object class="treebookpage">
+ <label>Page 3</label>
+ <depth>2</depth>
+ <object class="wxButton" name="controls_treebook_button3">
+ <size>200,180</size>
+ <label>Button N3</label>
+ </object>
+ </object>
+ <object class="treebookpage">
+ <label>Page 4</label>
+ <depth>1</depth>
+ <object class="wxButton" name="controls_treebook_button4">
+ <size>200,180</size>
+ <label>Button N4</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxToolBar</label>
+ <object class="wxPanel" name="button">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_normal_button">
+ <label>Transparent background:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <size>300,60</size>
+ <object class="wxToolBar">
+ <style>wxTB_FLAT|wxTB_NODIVIDER</style>
+ <margins>2,2</margins>
+ <object class="tool" name="non_derived_dialog_tool_or_menuitem">
+ <tooltip>Non-Derived Dialog Example</tooltip>
+ <bitmap>basicdlg.xpm</bitmap>
+ <longhelp>The basic instance of wxDialog loaded via XRC</longhelp>
+ </object>
+ <object class="tool" name="derived_tool_or_menuitem">
+ <tooltip>Derived Dialog Example</tooltip>
+ <bitmap>derivdlg.xpm</bitmap>
+ <longhelp>The most important example: load an XRC for a derived dialog</longhelp>
+ </object>
+ <object class="tool" name="controls_tool_or_menuitem">
+ <tooltip>Controls Example</tooltip>
+ <bitmap>controls.xpm</bitmap>
+ <longhelp>A notebook displaying all the wxWidgets controls</longhelp>
+ </object>
+ <object class="tool" name="uncentered_tool_or_menuitem">
+ <tooltip>Uncentered Example</tooltip>
+ <bitmap>uncenter.xpm</bitmap>
+ <longhelp>Disable autocentering of a dialog on its parent</longhelp>
+ </object>
+ <separator/>
+ <object class="tool" name="custom_class_tool_or_menuitem">
+ <tooltip>Custom Class Example</tooltip>
+ <bitmap>custclas.xpm</bitmap>
+ <longhelp>Embed your own custom classes into an XRC</longhelp>
+ </object>
+ <object class="tool" name="platform_property_tool_or_menuitem">
+ <tooltip>Platform Specific Example</tooltip>
+ <bitmap>platform.xpm</bitmap>
+ <longhelp>Customize parts of an interface for a desired platform</longhelp>
+ </object>
+ <object class="tool" name="art_provider_tool_or_menuitem">
+ <tooltip>wxArtProvider Example</tooltip>
+ <bitmap>artprov.xpm</bitmap>
+ <longhelp>Use wxArtProvider to insert desired icons at runtime</longhelp>
+ </object>
+ <object class="tool" name="variable_expansion_tool_or_menuitem">
+ <tooltip>Variable Expansion Example</tooltip>
+ <bitmap>variable.xpm</bitmap>
+ <longhelp>Replace variables in the XRC file at runtime</longhelp>
+ </object>
+ <object class="wxComboBox">
+ <content>
+ <item>Just</item>
+ <item>a combobox</item>
+ <item>in the toolbar</item>
+ </content>
+ </object>
+ <object class="wxOwnerDrawnComboBox">
+ <content>
+ <item>Owner Drawn</item>
+ <item>combobox</item>
+ <item>in the toolbar</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_statictext2_button">
+ <label>Fixed color background:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxToolBar">
+ <style>wxTB_FLAT|wxTB_NODIVIDER</style>
+ <bg>#bbbbff</bg>
+ <margins>2,2</margins>
+ <object class="tool" name="non_derived_dialog_tool_or_menuitem">
+ <tooltip>Non-Derived Dialog Example</tooltip>
+ <bitmap>basicdlg.xpm</bitmap>
+ <longhelp>The basic instance of wxDialog loaded via XRC</longhelp>
+ </object>
+ <object class="tool" name="derived_tool_or_menuitem">
+ <tooltip>Derived Dialog Example</tooltip>
+ <bitmap>derivdlg.xpm</bitmap>
+ <longhelp>The most important example: load an XRC for a derived dialog</longhelp>
+ </object>
+ <object class="tool" name="controls_tool_or_menuitem">
+ <tooltip>Controls Example</tooltip>
+ <bitmap>controls.xpm</bitmap>
+ <longhelp>A notebook displaying all the wxWidgets controls</longhelp>
+ </object>
+ <object class="tool" name="uncentered_tool_or_menuitem">
+ <tooltip>Uncentered Example</tooltip>
+ <bitmap>uncenter.xpm</bitmap>
+ <longhelp>Disable autocentering of a dialog on its parent</longhelp>
+ </object>
+ <separator/>
+ <object class="tool" name="custom_class_tool_or_menuitem">
+ <tooltip>Custom Class Example</tooltip>
+ <bitmap>custclas.xpm</bitmap>
+ <longhelp>Embed your own custom classes into an XRC</longhelp>
+ </object>
+ <object class="tool" name="platform_property_tool_or_menuitem">
+ <tooltip>Platform Specific Example</tooltip>
+ <bitmap>platform.xpm</bitmap>
+ <longhelp>Customize parts of an interface for a desired platform</longhelp>
+ </object>
+ <object class="tool" name="art_provider_tool_or_menuitem">
+ <tooltip>wxArtProvider Example</tooltip>
+ <bitmap>artprov.xpm</bitmap>
+ <longhelp>Use wxArtProvider to insert desired icons at runtime</longhelp>
+ </object>
+ <object class="tool" name="variable_expansion_tool_or_menuitem">
+ <tooltip>Variable Expansion Example</tooltip>
+ <bitmap>variable.xpm</bitmap>
+ <longhelp>Replace variables in the XRC file at runtime</longhelp>
+ </object>
+ <object class="wxComboBox">
+ <content>
+ <item>Just</item>
+ <item>a combobox</item>
+ <item>in the toolbar</item>
+ </content>
+ </object>
+ <object class="wxOwnerDrawnComboBox">
+ <content>
+ <item>Owner Drawn</item>
+ <item>combobox</item>
+ <item>in the toolbar</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+
+
+ <object class="notebookpage">
+ <label>wxBitmapButton</label>
+ <object class="wxPanel" name="bitmapbutton">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxBitmapButton" name="controls_bitmapbutton">
+ <bitmap>controls.xpm</bitmap>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxButton</label>
+ <object class="wxPanel" name="button">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_normal_button">
+ <label>Normal button:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="controls_normal_button">
+ <label>OK</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_statictext2_button">
+ <label>wxNO_BORDER style:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="controls_flat_button">
+ <style>wxNO_BORDER</style>
+ <label>OK</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxCalendarControl</label>
+ <object class="wxPanel" name="calendar">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCalendarCtrl" name="controls_calendarctrl">
+ <size>-1,-1</size>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxCheckBox</label>
+ <object class="wxPanel" name="checkbox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="controls_unchecked_checkbox">
+ <label>Unchecked initially</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="controls_checked_checkbox">
+ <label>Checked initially</label>
+ <checked>1</checked>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxCheckListBox</label>
+ <object class="wxPanel" name="checklist">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckListBox" name="conrols_checklist">
+ <size>180,180</size>
+ <content>
+ <item checked="1">Download library</item>
+ <item checked="1">Compile samples</item>
+ <item checked="1">Skim docs</item>
+ <item checked="1">Finish project</item>
+ <item>Wash car</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+
+ <object class="notebookpage">
+ <label>wxChoice</label>
+ <object class="wxPanel" name="choice">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxChoice" name="controls_choice">
+ <size>180,-1</size>
+ <content>
+ <item>See</item>
+ <item>Hear</item>
+ <item>Feel</item>
+ <item>Smell</item>
+ <item>Taste</item>
+ <item>The Sixth Sense!</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxComboBox</label>
+ <object class="wxPanel" name="combobox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxComboBox" name="controls_combobox">
+ <size>200,-1</size>
+ <style>wxCB_DROPDOWN</style>
+ <selection>4</selection>
+ <content>
+ <item>vim</item>
+ <item>emacs</item>
+ <item>notepad.exe</item>
+ <item>bbedit</item>
+ <item>nedit</item>
+ </content>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_TOP|wxALIGN_CENTRE_HORIZONTAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxBitmapComboBox">
+ <size>200,-1</size>
+ <style>wxCB_READONLY</style>
+ <selection>2</selection>
+ <object class="ownerdrawnitem">
+ <text>This is a</text>
+ <bitmap>basicdlg.xpm</bitmap>
+ </object>
+ <object class="ownerdrawnitem">
+ <text>read-only</text>
+ <bitmap>derivdlg.xpm</bitmap>
+ </object>
+ <object class="ownerdrawnitem">
+ <text>wxBitmapComboBox</text>
+ <bitmap>uncenter.xpm</bitmap>
+ </object>
+ <object class="ownerdrawnitem">
+ <text>control</text>
+ <bitmap>custclas.xpm</bitmap>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxGauge</label>
+ <object class="wxPanel" name="gauge">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_guage1_statictext">
+ <label>Horizontal smooth:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxGauge" name="controls_horizontal_gauge">
+ <style>wxGA_SMOOTH</style>
+ <size>100,-1</size>
+ <max>100</max>
+ <value>50</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_gauge2_statictext">
+ <label>Vertical: custom width</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxGauge" name="controls_vertical_gauge">
+ <style>wxGA_VERTICAL</style>
+ <size>40,60</size>
+ <max>100</max>
+ <value>40</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxGenericDirCtrl</label>
+ <object class="wxPanel" name="genericdirctrl">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxGenericDirCtrl" name="controls_genericdirctrl">
+ <size>200,200</size>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxHtmlWindow</label>
+ <object class="wxPanel" name="htmlwindow">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxHtmlWindow" name="controls_htmlwindow">
+ <size>450,250</size>
+ <htmlcode>
+ &lt;h2&gt;XRC Resources HTML&lt;/h2&gt;
+ &lt;p&gt;&lt;font color="#0000FF"&gt;XRC=Blue skies ahead.&lt;/font&gt;
+ &lt;p&gt;Italics useful for quoted or emphasized text:&lt;i&gt;"Some see things as they are and say why.
+ I dream things that never were, and say why not"&lt;/i&gt;
+ &lt;p&gt;&lt;pre&gt;Fixed width for code snippets.&lt;/pre&gt;
+ &lt;p&gt;Horizontal rules to organize sections: &lt;hr&gt;
+ &lt;p&gt;A wxImage is worth a thousand words and can be also used.
+ </htmlcode>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxListBox</label>
+ <object class="wxPanel" name="listbox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER|wxALL</flag>
+ <border>5</border>
+ <object class="wxListBox" name="controls_listbox">
+ <size>250,160</size>
+ <style>wxLB_SINGLE</style>
+ <content>
+ <item>Milk</item>
+ <item>Pizza</item>
+ <item>Bread</item>
+ <item>Orange juice</item>
+ <item>Paper towels</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxSimpleHtmlListBox</label>
+ <object class="wxPanel" name="simplehtmllistbox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER|wxALL</flag>
+ <border>5</border>
+ <object class="wxSimpleHtmlListBox" name="controls_simplehtmllistbox">
+ <size>250,160</size>
+ <style>wxHLB_MULTIPLE|wxHLB_DEFAULT_STYLE</style>
+ <content>
+ <item>&lt;b&gt;Bold&lt;/b&gt; Milk</item>
+ <item>&lt;i&gt;Rainbow &lt;font color="red"&gt;P&lt;/font&gt;&lt;font color="blue"&gt;i&lt;/font&gt;&lt;font color="yellow"&gt;z&lt;/font&gt;&lt;font color="green"&gt;z&lt;/font&gt;&lt;font color="purple"&gt;a&lt;/font&gt;&lt;/i&gt;</item>
+ <item>&lt;tt&gt;Plain bread&lt;/tt&gt;</item>
+ <item>&lt;font color="orange" size="+1"&gt;Orange juice&lt;/font&gt;</item>
+ <item>Paper towels</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxListCtrl</label>
+ <object class="wxPanel" name="listctrl">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER|wxALL</flag>
+ <border>5</border>
+ <object class="wxListCtrl" name="controls_listctrl">
+ <size>220,160</size>
+ <style>wxLC_REPORT|wxSUNKEN_BORDER</style>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxPanel</label>
+ <object class="wxPanel" name="panel">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxPanel" name="controls_panel">
+ <size>200,160</size>
+ <bg>#0000FF</bg>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxSplitterWindow</label>
+ <object class="wxPanel" name="panel">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxSplitterWindow">
+ <minsize>50</minsize>
+ <sashpos>100</sashpos>
+ <size>400,200</size>
+ <object class="wxPanel" name="controls_panel">
+ <bg>#0000FF</bg>
+ </object>
+ <object class="wxPanel" name="controls_panel">
+ <bg>#00FF00</bg>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxRadioButton</label>
+ <object class="wxPanel" name="radiobutton">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxRadioButton" name="controls_unselected_radiobutton">
+ <label>Not selected</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxRadioButton" name="controls_selected_radiobutton">
+ <label>Selected</label>
+ <value>1</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxRadioBox</label>
+ <object class="wxPanel" name="radiobox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxRadioBox" name="controls_radiobox">
+ <style>wxRA_SPECIFY_COLS</style>
+ <label>Radio stations</label>
+ <dimension>1</dimension>
+ <selection>0</selection>
+ <content>
+ <item tooltip="Powerful radio station" helptext="This station is for amateurs of hard rock and heavy metal">Power 108</item>
+ <item tooltip="">WMMS 100.7</item>
+ <item tooltip="E=mc^2">Energy 98.3</item>
+ <item helptext="Favourite chukcha's radio">CHUM FM</item>
+ <item>92FM</item>
+ </content>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxScrollBar</label>
+ <object class="wxPanel" name="scrollbar">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxScrollBar" name="controls_scrollbar">
+ <size>-1,160</size>
+ <value>50</value>
+ <range>100</range>
+ <thumbsize>30</thumbsize>
+ <style>wxSB_VERTICAL</style>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxSlider</label>
+ <object class="wxPanel" name="slider">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_slider1_statictext">
+ <label>Without ticks:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxSlider" name="controls_noticks_slider">
+ <size>100,-1</size>
+ <style>wxSL_HORIZONTAL</style>
+ <max>100</max>
+ <value>0</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_slider2_statictext">
+ <label>With ticks:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxSlider" name="controls_ticks_slider">
+ <size>100,-1</size>
+ <style>wxSL_HORIZONTAL|wxSL_LABELS</style>
+ <max>100</max>
+ <value>0</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxSpinButton</label>
+ <object class="wxPanel" name="spinbutton">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxSpinButton" name="controls_spinbutton">
+ <style>wxSP_WRAP</style>
+ <max>100</max>
+ <value>0</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxSpinCtrl</label>
+ <object class="wxPanel" name="spinctrl">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxSpinCtrl" name="controls_spinctrl">
+ <size>100,-1</size>
+ <max>100</max>
+ <value>0</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxStaticBitmap</label>
+ <object class="wxPanel" name="staticbitmap">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticBitmap" name="controls_staticbitmap">
+ <bitmap>appicon.xpm</bitmap>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxStaticBox</label>
+ <object class="wxPanel" name="staticbox">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <label>Internet options</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxStaticLine</label>
+ <object class="wxPanel" name="staticline">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0,1</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticLine" name="controls_v_staticline">
+ <size>-1,100</size>
+ <style>wxLI_VERTICAL</style>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticLine" name="controls_h_staticline">
+ <size>150,-1</size>
+ <style>wxLI_HORIZONTAL</style>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxStaticText</label>
+ <object class="wxPanel" name="statictext">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_statictext">
+ <label>It was a dark and stormy night.</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxTextCtrl</label>
+ <object class="wxPanel" name="textctrl">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1,2</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_textctrl1_statictext">
+ <label>Single line:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="controls_single_textctrl">
+ <size>180,-1</size>
+ <value>A.A. Milne</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_textctrl2_statictext">
+ <label>Password:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="controls_password_textctrl">
+ <size>180,-1</size>
+ <style>wxTE_PASSWORD</style>
+ <value>TooManySecrets</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_textctrl3_statictext">
+ <label>Multiline:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="controls_multiline_textctrl">
+ <size>180,90</size>
+ <style>wxTE_MULTILINE</style>
+ <value>"So many pretty widgets" said Pooh, said he. "So many pretty widgets", said Pooh.</value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="notebookpage">
+ <label>wxTreeCtrl</label>
+ <object class="wxPanel" name="treectrl">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxTreeCtrl" name="controls_treectrl">
+ <size>280,180</size>
+ <style>wxTR_HAS_BUTTONS|wxSUNKEN_BORDER</style>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+
+ <object class="notebookpage">
+ <label>wx*PickerCtrl</label>
+ <object class="wxPanel" name="pickers">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>0</rows>
+ <vgap>10</vgap>
+ <hgap>10</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0,1,2,3</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_pickers_statictext">
+ <label>wxColourPickerCtrl:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALL</flag>
+ <option>1</option>
+ <border>5</border>
+ <object class="wxColourPickerCtrl" name="controls_colourpicker">
+ <value>#00ff00</value>
+ <style>wxCLRP_SHOW_LABEL</style>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_pickers_statictext2">
+ <label>wxFilePickerCtrl:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALL</flag>
+ <option>1</option>
+ <border>5</border>
+ <object class="wxFilePickerCtrl" name="controls_filepicker">
+ <message>Here goes a message</message>
+ <style>wxFLP_OPEN</style>
+ <wildcard>*.png</wildcard>
+ <value/>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_pickers_statictext3">
+ <label>wxDirPickerCtrl:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALL</flag>
+ <option>1</option>
+ <border>5</border>
+ <object class="wxDirPickerCtrl" name="controls_dirpicker">
+ <value/>
+ <style>wxDIRP_CHANGE_DIR</style>
+ <message>Here goes a message</message>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_pickers_statictext4">
+ <label>wxFontPickerCtrl:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALL</flag>
+ <option>1</option>
+ <border>5</border>
+ <object class="wxFontPickerCtrl" name="controls_fontpicker">
+ <style>wxFNTP_USEFONT_FOR_LABEL</style>
+ <value>
+ <size>20</size>
+ <sysfont>wxSYS_DEFAULT_GUI_FONT</sysfont>
+ </value>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+
+ <object class="notebookpage">
+ <label>wxAnimationCtrl</label>
+ <object class="wxPanel" name="animctrl">
+ <object class="wxFlexGridSizer">
+ <cols>2</cols>
+ <rows>1</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0,1</growablecols>
+ <growablerows>0</growablerows>
+
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="controls_animation_button_play">
+ <label>Play</label>
+ </object>
+ </object>
+
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxAnimationCtrl" name="controls_animation_ctrl">
+ <animation>throbber.gif</animation>
+ <inactive-bitmap>stop.xpm</inactive-bitmap>
+ </object>
+ </object>
+
+ </object>
+ </object>
+ </object>
+
+ <object class="notebookpage">
+ <label>wxCollapsiblePane</label>
+ <object class="wxPanel" name="collpane">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>1</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+
+ <object class="sizeritem">
+ <flag>wxGROW|wxALL</flag>
+ <border>5</border>
+ <option>1</option>
+ <object class="wxCollapsiblePane" name="controls_collpane">
+ <label>Details:</label>
+ <collapsed>0</collapsed>
+ <object class="panewindow">
+
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>1</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_dialog_statictext">
+ <label>
+Inside a wxCollapsiblePane you can put everything you want and
+lay them out using wxSizers, absolute positioning, everything you like!
+ </label>
+ </object>
+ </object>
+ </object>
+
+ </object>
+ </object>
+ </object>
+
+ </object>
+ </object>
+ </object>
+
+ <object class="notebookpage">
+ <label>The Rest</label>
+ <object class="wxPanel" name="Rest">
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0,1,2,3,4,5,6</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_dialog_statictext">
+ <label>wxDialog (This dialog is one)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_frame_statictext">
+ <label>wxFrame (This application's main frame is one)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_menu_statictext">
+ <label>wxMenu (This application's main frame uses one)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_notebook_statictextT">
+ <label>wxNotebook (This dialog uses one)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_sizer">
+ <label>wxSizer (Used throughout application)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_toolbar_statictext">
+ <label>wxToolbar (This application's main frame uses one)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="controls_unknown_statictext">
+ <label>unknown controls (See Custom Class example)</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ <default>1</default>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/custclas.xpm b/lib/wx/examples/xrc/rc/custclas.xpm
new file mode 100644
index 0000000000..49e82d4587
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/custclas.xpm
@@ -0,0 +1,26 @@
+/* XPM */
+static char * custclas_xpm[] = {
+"16 16 7 1",
+" c None",
+". c #EBF70E",
+"+ c #000000",
+"@ c #808080",
+"# c #0000FF",
+"$ c #FFFFFF",
+"% c #0E2CEF",
+" ",
+" . ",
+" . ",
+" . . . ",
+" ... ",
+"...+....++++++++",
+"+@...@@@@@@@@@@+",
+"+.#.#.####$$$$@+",
+"+@%.%%%%%%$$$$@+",
+"+@%.%%%%%%$$$$@+",
+"+@@@@@@@@@@@@@@+",
+"++++++++++++++++",
+" ",
+" ",
+" ",
+" "};
diff --git a/lib/wx/examples/xrc/rc/custclas.xrc b/lib/wx/examples/xrc/rc/custclas.xrc
new file mode 100644
index 0000000000..4f0109a992
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/custclas.xrc
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="custom_class_dialog">
+ <title>Custom Class Example</title>
+ <centered>1</centered>
+ <style>wxCAPTION|wxSYSTEM_MENU|wxRESIZE_BORDER</style>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>You can embed your own custom classes into an XRC file. This is referred to as attaching an unknown control.\n\nThere are 3 main cases when you would want to do this:\n\n(A) Most commonly: you have derived a class from one of the main wxWidgets controls, so that it can manage its own state and look after its own events, because it is better management to have a portable class with all the code for that control in there with the class, instead of being having many event handlers for that control scattered up in its parent dialog (which is allowed, but gets messy if a control has alot of methods). For example, if you require a wxListCtrl that popups a menu when right-clicked on an item, and you want the wxListCtrl to resize its columns in response to an OnSize(), and a few more methods, it makes better sourcecode logic to package all these methods into by a standalone derived wxListCtrl class, instead of having the parent dialog manage all these events and other functions. This is what the example below shows: it does a custom behaviour of resizing its first column to appropriately fill up the width of the control on a resize event, and it pops up a context-menu in response to a left click (and shades out popup menu item appropriately if there is no item currenty selected in the listctrl).\n\n(B)You have an utterly new widget that has no equivalent in the wxWindows class heirarchy, so you thus need to embed your class to get the needed functionality.\n\n(C) You are using one of the rarely used wxWindows controls that doesn't have an XRC handler in the XRC library. However, all of the major controls: wxButton, wxTextCtrl, etc have an XRC handler, so this is pretty rare, and you could always write your own XRC handler for that control if you wanted. You can choose the "Controls example" from the XRC demo menu to see all the controls that have an XRC handler.\n\nThe typical formula for attaching an unknown control is:\n\n(1) If you are deriving your own custom class to be embedded into the XRC, describe that class with its own .cpp and .h file. In this example it is custclass.cpp and custclass.h\n\n(2)Specify an "unknown" tag in the XRC file that you want to embed it into (see the unknown tag in custclass.xrc). This will be the placeholder of the new class.\n\n(3) Load the XRC dialog as usual, but before you show the dialog to the user, construct an instance of your custom control, and then use wxXmlResource::Get()-&gt;AttachUnknownControl() to put the custom class into its "unknown" placeholder in the XRC file.\n\nThe result is what you see below, a custom class control that fits in seemlessly with the whole dialog, the same as if it was read from XRC directly. Try out resizing this dialog, and watch the listctrl column resize, and right-click to call up its popup menu. By the way, if you look at the source of this XRC dialog, you will that this dialog node has a set of style flags that includes wxRESIZE__BORDER--that is why this dialog is resizable, whereas most of the rest of the dialogs in the XRC sample that don't include this tag, are not resizable.</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="unknown" name="custom_control_placeholder">
+ <size>100,100</size>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/derivdlg.xpm b/lib/wx/examples/xrc/rc/derivdlg.xpm
new file mode 100644
index 0000000000..ed1978b7f2
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/derivdlg.xpm
@@ -0,0 +1,25 @@
+/* XPM */
+static char * derivdlg_xpm[] = {
+"16 16 6 1",
+" c None",
+". c #EBF70E",
+"+ c #000000",
+"@ c #808080",
+"# c #0000FF",
+"$ c #FFFFFF",
+" . ",
+"+++.++++++++++++",
+"+.@.@.@@@@@@@@@+",
+"+@...#########@+",
+"...@....@@@@@@@+",
+"+@...$$$$$$$$$@+",
+"+.$.@.@@@@@@$$@+",
+"+@$.@@@@@@@@$$@+",
+"+@$.$$$$$$$$$$@+",
+"+@$$$$$$$$$$$$@+",
+"+@$$$$@@@@$$$$@+",
+"+@$$$$@@@@$$$$@+",
+"+@$$$$$$$$$$$$@+",
+"+@@@@@@@@@@@@@@+",
+"++++++++++++++++",
+" "};
diff --git a/lib/wx/examples/xrc/rc/derivdlg.xrc b/lib/wx/examples/xrc/rc/derivdlg.xrc
new file mode 100644
index 0000000000..cb67b9ae87
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/derivdlg.xrc
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="derived_dialog">
+ <title>Derived Dialog Example</title>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>This is a derived dialog using XRC. This type of derived dialog will likely be the heart of your project, and thus is the most important example in this demonstration.\n\nIt is recommended to open up derivdlg.cpp, derivdlg.h and derivdlg.xrc and follow along what is going on.\n\nThe steps to use a derived dialog are:\n\n(1) Derive your own dialog from wxDialog (derivdlg.cpp and derivdlg.h are an example).\n\n(2) In the source of the constructor of the derived dialog, load the XRC into the file, using the code as shown in the derivdlg.cpp\n\n(3)Add to the derived dilog's sourcecode some event handlers and other methods you want the dialog to do.\n\n(4)You can now just make an instance of the derived dialog and show it using ShowModal(), as is done in the MyFrame::OnDerivedDialogToolOrMenuCommand() method.\n\nThe remainder of this docuent will talk about how to use events with derived dialogs and XRC. There are 3 bits of an extra event functionality that this derived dialog can do, these will be described in turn:\n\n(A) Something to do when a user clicks on your custom button: This is straightforward. You name a control in the XRC file (in this example it is "my__button"). Then in the .cpp file, put an entry in the event table that will connect button clicks with that ID to a function that will be fired. The event table entry in the example is EVT__BUTTON( XRCID( "my__button" ), PreferencesDialog::OnMyButtonClicked ) This event table entry has 3 parts: The first part, EVT__BUTTON tells that you are describing a button click event. The final part, PreferencesDialog::OnMyButtonClicked() is what you want done in response to a button event. The middle part, XRCID( "my__button" ) is the restriction that only button events generated by a wxButton of that ID should trigger go on to do the function. This XRCID is the name of the wxButton in your XRC file. Now just describe, in the .h file and .cpp file, what you want your custom OnMyButtonClicked() function to do.\n\n(B) The second example is a very common requirement: that a checkbox or radiobutton disables some other control. The event table is set up the same as the "My Button" example above. However, it isn't an EVT__BUTTON event, it is an EVT__UPDATE__UI event: when the dialog does an updating of its UI (and thus fires this event) if the updating if of a control matching that XRCID, then it will do the specified function (which in this case looks at whether or not the checkbox is checked, and if it isn't checked, then disable the textctrl).\n\n(C) The last example shows how to handle the OK button. You will likely want to do something when the user presses OK, like save preferences or start some action (this example shows a simple case of just popping up a dialog and stopping a close). OK buttons are always named wxID__OK, so the XRC file should have it as wxID__OK also. The Event table has an EVT__BUTTON entry for wxID__OK (no XRCID though). Since this is a derived dialog with an event table, in response to an EVT__BUTTON event from a wxID__OK button, it will first look around in its own event table to see if there was any EVT__BUTTON entries, and since there is, it will do that one--if there wasn't it then checks out the base class's event table and sees if there was one there, and so on up the chain of inherited classes. Note that this is exactly what happens with the derived dialog's wxID__CANCEL button. You didn't put any EVT__BUTTON entries with an identifier of wxID__CANCEL, so after it scans your derived dialog's event table, it will then look at wxDialog's event table and see if there is one in that event table, and so on until it finds one. It will find a wxID__CANCEL handler, which will connect to the proper function (which causes the dialog to close).
+ </value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="my_button">
+ <label>My Button</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxBoxSizer">
+ <orient>wxHORIZONTAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="my_checkbox">
+ <label>Enable listbox</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="my_textctrl">
+ <size>80,-1</size>
+ <value></value>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxBoxSizer">
+ <orient>wxHORIZONTAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_CANCEL">
+ <label>Cancel</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/fileopen.gif b/lib/wx/examples/xrc/rc/fileopen.gif
new file mode 100644
index 0000000000..bc51b401b9
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/fileopen.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/filesave.gif b/lib/wx/examples/xrc/rc/filesave.gif
new file mode 100644
index 0000000000..6dd1fd98b5
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/filesave.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/frame.xrc b/lib/wx/examples/xrc/rc/frame.xrc
new file mode 100644
index 0000000000..ad7b03f7d6
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/frame.xrc
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxFrame" name="main_frame">
+ <title>XML Resources Demo</title>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,280</size>
+ <style>wxTE_MULTILINE</style>
+ <value>Welcome to the wxWidgets XmlResource (XRC) sample! Using wxWidgets XML resources makes your GUI C++ programming much faster and easier.\n\nView the examples under the "Basic" menu to learn how to get up and running with XRC quickly, and later have a look at the examples under the "Advanced" menu for advanced techniques.\n\nThe XML file that described this frame is the sample's frame.xrc file, with the menu in menu.xrc, and the toolbar in toolbar.xrc. The frame XRC file structure is exactly the same as the XRC files for the dialogs, except that the top level node is a wxFrame, not a wxDialog. Each of the other dialog in this example is a separate XRC file, each of which can be examined for how they work.</value>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/fuzzy.gif b/lib/wx/examples/xrc/rc/fuzzy.gif
new file mode 100644
index 0000000000..b6296c5135
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/fuzzy.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/menu.xrc b/lib/wx/examples/xrc/rc/menu.xrc
new file mode 100644
index 0000000000..91409e5c21
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/menu.xrc
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxMenuBar" name="main_menu">
+<style>wxMB_DOCKABLE</style>
+ <object class="wxMenu" name="file_tool_or_menuitem">
+ <label>_File</label>
+ <style>wxMENU_TEAROFF</style>
+ <object class="wxMenuItem" name="unload_resource_menuitem">
+ <label>_Unload resource\tCtrl-U</label>
+ <help>Unload basic dialog resource</help>
+ </object>
+ <object class="wxMenuItem" name="reload_resource_menuitem">
+ <label>_Reload resource\tCtrl-R</label>
+ <help>Reload basic dialog resource</help>
+ </object>
+
+ <!-- we use wxID_EXIT name here to get the default menu item stock icon -->
+ <object class="wxMenuItem" name="wxID_EXIT">
+ <label>E_xit\tAlt-X</label>
+ <help>Exit this application</help>
+ </object>
+ </object>
+ <object class="wxMenu" name="basic_demos_menu">
+ <label>_Basic</label>
+ <help>Basic techniques with XRC</help>
+ <object class="wxMenuItem" name="non_derived_dialog_tool_or_menuitem">
+ <label>_Non-Derived Dialog Example</label>
+ <bitmap>basicdlg.xpm</bitmap>
+ <help>The basic instance of wxDialog loaded via XRC</help>
+ </object>
+ <object class="wxMenuItem" name="derived_tool_or_menuitem">
+ <label>_Derived Dialog Example</label>
+ <bitmap>derivdlg.xpm</bitmap>
+ <help>The most important example: load an XRC for a derived dialog</help>
+ </object>
+ <object class="wxMenuItem" name="controls_tool_or_menuitem">
+ <label>_Controls Example</label>
+ <bitmap>controls.xpm</bitmap>
+ <help>A notebook displaying all the wxWidgets controls</help>
+ </object>
+ <object class="wxMenuItem" name="uncentered_tool_or_menuitem">
+ <label>_Uncentered Example</label>
+ <bitmap>uncenter.xpm</bitmap>
+ <help>Disable autocentering of a dialog on its parent</help>
+ </object>
+ </object>
+ <object class="wxMenu" name="advanced_demos_menu">
+ <label>_Advanced</label>
+ <help>Advanced techniques with XRC</help>
+ <object class="wxMenuItem" name="custom_class_tool_or_menuitem">
+ <label>_Custom Class Example</label>
+ <bitmap>custclas.xpm</bitmap>
+ <help>Embed your own custom classes into an XRC</help>
+ </object>
+ <object class="wxMenuItem" name="platform_property_tool_or_menuitem">
+ <label>_Platform Specific Example</label>
+ <bitmap>platform.xpm</bitmap>
+ <help>Customize parts of an interface for a desired platform</help>
+ </object>
+ <object class="wxMenuItem" name="art_provider_tool_or_menuitem">
+ <label>wx_ArtProvider Example</label>
+ <bitmap>artprov.xpm</bitmap>
+ <help>Use wxArtProvider to insert desired icons at runtime</help>
+ </object>
+ <object class="wxMenuItem" name="variable_expansion_tool_or_menuitem">
+ <label>_Variable Expansion Example</label>
+ <bitmap>variable.xpm</bitmap>
+ <help>Replace variables in the XRC file at runtime</help>
+ </object>
+ </object>
+ <object class="wxMenu" name="help_menu">
+ <label>_Help</label>
+
+ <!-- we use wxID_ABOUT name here to get the default menu item stock icon -->
+ <object class="wxMenuItem" name="wxID_ABOUT">
+ <label>_About...</label>
+ <help>About this application</help>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/platform.xpm b/lib/wx/examples/xrc/rc/platform.xpm
new file mode 100644
index 0000000000..3737055fe7
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/platform.xpm
@@ -0,0 +1,28 @@
+/* XPM */
+static char *platform_xpm[] = {
+/* columns rows colors chars-per-pixel */
+"16 16 6 1",
+". c Black",
+"o c #FFFFFF",
+"X c #000080",
+"O c #FFFF00",
+" c None",
+"+ c #FF0000",
+/* pixels */
+" ",
+" ",
+" ",
+" ....... ",
+" .XXXXX. ",
+" .oXXXX. ",
+" .oXXX.......",
+".....oXXX.OOOOO.",
+".+++.XXXX.oOOOO.",
+".o++......oOOOO.",
+".o++++. .oOOOO.",
+".o++++. .OOOOO.",
+".+++++. .......",
+"....... ",
+" ",
+" "
+};
diff --git a/lib/wx/examples/xrc/rc/platform.xrc b/lib/wx/examples/xrc/rc/platform.xrc
new file mode 100644
index 0000000000..43313cb853
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/platform.xrc
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="platform_property_dialog">
+ <title>Platform Property Example</title>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>You can specify certain nodes of an XRC file to only be used for a certain platform.\n\nTo do this, there is a "platform" property that can be placed in any node [ie inside an opening tag]. The value of the tag can be any combination of the following: mac, win, unix, or os2. Use a | symbol between multiple platforms, for example &lt;label platform="win|mac"&gt;\n\nAt runtime, if there is a platform property in the tag, if it matches the current operating system, that node will be included, otherwise it won't.\n\nThe notebook example below shows how you can specify a high level node to only appear on a certain platform: the example here being a page of preferences that only make sense on a certain platform.\n\nThe second example shows how to replace a single attribute of a control: here the label of a download link. It is also very useful for specifying menu item accelerators keystrokes on the target platform.</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxNotebook" name="platform_notebook">
+ <usenotebooksizer>1</usenotebooksizer>
+ <size>200,160</size>
+ <object class="notebookpage">
+ <label>Shared options</label>
+ <object class="wxPanel" name="shared_tab">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="shared_checkbox">
+ <label>This preference is for all operating systems</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object platform="mac" class="notebookpage">
+ <label>Macintosh options</label>
+ <object class="wxPanel" name="mac_specific">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="mac_checkbox">
+ <label>Save output in iMovie compatible format</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object platform="win" class="notebookpage">
+ <label>Windows options</label>
+ <object class="wxPanel" name="win_specific">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="win_checkbox">
+ <label>Show application in icon tray instead of taskbar</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object platform="unix" class="notebookpage">
+ <label>Linux options</label>
+ <object class="wxPanel" name="unix_specific">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="unix_checkbox">
+ <label>Check my home directory for previous files</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object platform="os2" class="notebookpage">
+ <label>OS2 options</label>
+ <object class="wxPanel" name="os2_specific">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxCheckBox" name="os2_checkbox">
+ <label>Use WarpIn installer</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object platform="mac" class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="download_mac_statictext">
+ <label>Get latest update at www.mycompany.com/download/mac</label>
+ </object>
+ </object>
+ <object platform="win" class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="download_win_statictext">
+ <label>Get latest update at www.mycompany.com/download/win</label>
+ </object>
+ </object>
+ <object platform="unix" class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="download_unix_statictext">
+ <label>Get latest update at www.mycompany.com/download/unix</label>
+ </object>
+ </object>
+ <object platform="os2kurva" class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="download_os2_statictext">
+ <label>Get latest update at www.mycompany.com/download/os2</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/quotes.gif b/lib/wx/examples/xrc/rc/quotes.gif
new file mode 100644
index 0000000000..3ea61bde43
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/quotes.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/resource.xrc b/lib/wx/examples/xrc/rc/resource.xrc
new file mode 100644
index 0000000000..6673e0e8f2
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/resource.xrc
@@ -0,0 +1,154 @@
+<?xml version="1.0"?>
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+ <object class="wxMenuBar" name="mainmenu">
+ <style>wxMB_DOCKABLE</style>
+ <object class="wxMenu" name="menu_file">
+ <label>_File</label>
+ <style>wxMENU_TEAROFF</style>
+ <object class="wxMenuItem" name="menu_about">
+ <label>_About...</label>
+ <bitmap>filesave.gif</bitmap>
+ </object>
+ <object class="separator"/>
+ <object class="wxMenuItem" name="menu_dlg1">
+ <label>Dialog 1</label>
+ </object>
+ <object class="wxMenuItem" name="menu_dlg2">
+ <label>Dialog 2</label>
+ </object>
+ <object class="separator"/>
+ <object class="wxMenuItem" name="menu_quit">
+ <label>E_xit\tAlt-X</label>
+ </object>
+ </object>
+ </object>
+ <object class="wxToolBar" name="toolbar">
+ <style>wxTB_FLAT|wxTB_DOCKABLE</style>
+ <margins>2,2</margins>
+ <object class="tool" name="menu_open">
+ <bitmap>fileopen.gif</bitmap>
+ <tooltip>Open catalog</tooltip>
+ </object>
+ <object class="tool" name="menu_save">
+ <bitmap>filesave.gif</bitmap>
+ <tooltip>Save catalog</tooltip>
+ </object>
+ <object class="tool" name="menu_update">
+ <bitmap>update.gif</bitmap>
+ <tooltip>Update catalog - synchronize it with sources</tooltip>
+ </object>
+ <separator/>
+ <object class="tool" name="menu_quotes">
+ <bitmap>quotes.gif</bitmap>
+ <toggle>1</toggle>
+ <tooltip>Display quotes around the string?</tooltip>
+ </object>
+ <object class="separator"/>
+ <object class="tool" name="menu_fuzzy">
+ <bitmap>fuzzy.gif</bitmap>
+ <tooltip>Toggled if selected string is fuzzy translation</tooltip>
+ <toggle>1</toggle>
+ </object>
+ </object>
+ <object class="wxDialog" name="dlg1">
+ <object class="wxBoxSizer">
+ <object class="sizeritem">
+ <object class="wxBitmapButton">
+ <bitmap>fuzzy.gif</bitmap>
+ <focus>fileopen.gif</focus>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <object class="wxPanel">
+ <object class="wxStaticText">
+ <label>fdgdfgdfgdfg</label>
+ </object>
+ <style>wxSUNKEN_BORDER</style>
+ </object>
+ <flag>wxALIGN_CENTER</flag>
+ </object>
+ <object class="sizeritem">
+ <object class="wxButton">
+ <label>Buttonek</label>
+ </object>
+ <border>10d</border>
+ <flag>wxALL</flag>
+ </object>
+ <object class="sizeritem">
+ <object class="wxHtmlWindow">
+ <htmlcode>&lt;h1&gt;Hi,&lt;/h1&gt;man</htmlcode>
+ <size>100,45d</size>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <object class="wxNotebook">
+ <object class="notebookpage">
+ <object class="wxPanel">
+ <object class="wxBoxSizer">
+ <object class="sizeritem">
+ <object class="wxHtmlWindow">
+ <htmlcode>Hello, we are inside a &lt;u&gt;NOTEBOOK&lt;/u&gt;...</htmlcode>
+ <size>50,50d</size>
+ </object>
+ <option>1</option>
+ </object>
+ </object>
+ </object>
+ <label>Page</label>
+ </object>
+ <object class="notebookpage">
+ <object class="wxPanel">
+ <object class="wxBoxSizer">
+ <object class="sizeritem">
+ <object class="wxHtmlWindow">
+ <htmlcode>Hello, we are inside a &lt;u&gt;NOTEBOOK&lt;/u&gt;...</htmlcode>
+ <size>50,50d</size>
+ </object>
+ </object>
+ </object>
+ </object>
+ <label>Page 2</label>
+ </object>
+ <usenotebooksizer>1</usenotebooksizer>
+ </object>
+ <flag>wxEXPAND</flag>
+ </object>
+ <orient>wxVERTICAL</orient>
+ </object>
+ </object>
+ <object class="wxDialog" name="dlg2">
+ <object class="wxBoxSizer">
+ <orient>wxVERTICAL</orient>
+ <object class="sizeritem" name="dfgdfg">
+ <object class="wxTextCtrl">
+ <size>200,200d</size>
+ <style>wxTE_MULTILINE|wxSUNKEN_BORDER</style>
+ <value>Hello, this is an ordinary multiline\n textctrl....</value>
+ </object>
+ <option>1</option>
+ <flag>wxEXPAND|wxALL</flag>
+ <border>10</border>
+ </object>
+ <object class="sizeritem">
+ <object class="wxBoxSizer">
+ <object class="sizeritem">
+ <object class="wxButton" name="wxID_OK">
+ <label>Ok</label>
+ <default>1</default>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <object class="wxButton" name="wxID_CANCEL">
+ <label>Cancel</label>
+ </object>
+ <border>10</border>
+ <flag>wxLEFT</flag>
+ </object>
+ </object>
+ <flag>wxLEFT|wxRIGHT|wxBOTTOM|wxALIGN_RIGHT</flag>
+ <border>10</border>
+ </object>
+ </object>
+ <title>Second testing dialog</title>
+ </object>
+</resource>
diff --git a/lib/wx/examples/xrc/rc/stop.xpm b/lib/wx/examples/xrc/rc/stop.xpm
new file mode 100644
index 0000000000..7c26312696
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/stop.xpm
@@ -0,0 +1,164 @@
+/* XPM */
+static char * stop_xpm[] = {
+"32 32 129 2",
+" c None",
+". c #C9CBC8",
+"+ c #C3C4C1",
+"@ c #C4C6C3",
+"# c #C1C3C0",
+"$ c #C3C5C2",
+"% c #C3C3C0",
+"& c #C4C4C1",
+"* c #C2C4C1",
+"= c #C6C6C3",
+"- c #C0C2BF",
+"; c #C7C9C6",
+"> c #636662",
+", c #201F1B",
+"' c #242621",
+") c #171B16",
+"! c #1F221E",
+"~ c #1E1B17",
+"{ c #222621",
+"] c #221F1B",
+"^ c #1B1F1A",
+"/ c #292622",
+"( c #141713",
+"_ c #5D605C",
+": c #050904",
+"< c #60635F",
+"[ c #0F0904",
+"} c #B50701",
+"| c #E40600",
+"1 c #850702",
+"2 c #C8CAC7",
+"3 c #616460",
+"4 c #060A05",
+"5 c #0E0904",
+"6 c #A30701",
+"7 c #FF0600",
+"8 c #BB0701",
+"9 c #0C0904",
+"0 c #BC0701",
+"a c #8E0702",
+"b c #646763",
+"c c #676A66",
+"d c #AB0701",
+"e c #FC0600",
+"f c #9B0702",
+"g c #5F625E",
+"h c #0B0904",
+"i c #B30701",
+"j c #686B67",
+"k c #5B5E5A",
+"l c #090904",
+"m c #9D0702",
+"n c #FA0A04",
+"o c #6C6F6B",
+"p c #BABCB9",
+"q c #AD0701",
+"r c #F91B15",
+"s c #E35651",
+"t c #ED0600",
+"u c #FE0802",
+"v c #E95753",
+"w c #EE211B",
+"x c #CC6A66",
+"y c #DA3630",
+"z c #950702",
+"A c #323631",
+"B c #EC0600",
+"C c #FE0903",
+"D c #CAC8C5",
+"E c #F23732",
+"F c #EA524E",
+"G c #CFB4B1",
+"H c #FB150F",
+"I c #E11D18",
+"J c #EB4D48",
+"K c #E85A55",
+"L c #F62621",
+"M c #F42D27",
+"N c #E60903",
+"O c #F2241E",
+"P c #FA140E",
+"Q c #EE433E",
+"R c #EE1C16",
+"S c #F50600",
+"T c #FD0D07",
+"U c #E6625D",
+"V c #C48581",
+"W c #F20B05",
+"X c #CD6762",
+"Y c #F03C36",
+"Z c #FD0F09",
+"` c #EF302A",
+" . c #F62822",
+".. c #E56661",
+"+. c #FC100A",
+"@. c #FA1A14",
+"#. c #F91C16",
+"$. c #F62823",
+"%. c #F91D17",
+"&. c #E70600",
+"*. c #F03E39",
+"=. c #FD0E08",
+"-. c #DB534E",
+";. c #BEC0BD",
+">. c #10140F",
+",. c #FD0C06",
+"'. c #F90802",
+"). c #D26A66",
+"!. c #FB1510",
+"~. c #FF0701",
+"{. c #FE0600",
+"]. c #110904",
+"^. c #C50701",
+"/. c #8A0702",
+"(. c #1A0904",
+"_. c #BF0701",
+":. c #B60701",
+"<. c #A40701",
+"[. c #BA0701",
+"}. c #080C07",
+"|. c #1B0904",
+"1. c #C70701",
+"2. c #FD0600",
+"3. c #920702",
+"4. c #70736F",
+"5. c #380803",
+"6. c #340803",
+"7. c #5C5F5B",
+"8. c #BCBEBB",
+". . . . . . . . . . + @ # $ $ % @ & * = - * . . . . . . . . . . ",
+". . . . . . . . ; > , ' ) ! ! ~ { ] ^ / ( ^ > ; . . . . . . . . ",
+". . . . . . . . _ : : : : : : : : : : : : : : _ . . . . . . . . ",
+". . . . . . . < : [ } | | | | | | | | | | 1 [ : < . . . . . . . ",
+". . . . . 2 3 4 5 6 7 7 7 7 7 7 7 7 7 7 7 7 8 9 4 3 2 . . . . . ",
+". . . . 2 > : : 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 a : : > 2 . . . . ",
+". . . . b : : 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 a [ : b . . . . ",
+". . . c : 5 d e 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 f 5 : c . . . ",
+". - g 4 h f 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 i h 4 j . . ",
+"$ k : l m 7 7 7 7 7 7 7 7 7 7 7 7 7 n 7 7 7 7 7 7 7 7 7 l : o . ",
+"p : : q 7 r . . s t . . . . . . u v . . w 7 7 . . . x y z : A . ",
+"p : : B C . . . D E . . . . . . F . . . . 7 7 . . . . G B : A . ",
+"p : : B H . . I . . J K . . K L . . . . . . 7 . . K . . B : A . ",
+"p : : B H . . 7 . . 7 7 . . 7 M . . 7 N . . 7 . . 7 O . B : A . ",
+"p : : B P . . . 7 7 7 7 . . 7 Q . . 7 7 . . 7 . . 7 R . B : A . ",
+"p : : B S . . . . T 7 7 . . 7 Q . . 7 7 . . 7 . . U V . B : A . ",
+"p : : B 7 W X . . . 7 7 . . 7 Q . . 7 7 . . 7 . . . . . B : A . ",
+"p : : B 7 7 7 Y . . Z 7 . . 7 Q . . 7 7 . . 7 . . . . ` B : A . ",
+"p : : B .. . 7 ... +.7 . . 7 @.. . 7 #.. . 7 . . 7 7 7 B : A . ",
+"p : : B $.. . %.. . 7 7 . . 7 &.* . . . . *.7 . . 7 7 7 B : A . ",
+"p : : B =.. . . . . 7 7 . . 7 7 -.. . . . 7 7 . . 7 7 7 B : A . ",
+";.>.: q 7 r . . . ,.7 7 . . 7 7 '.).. . !.7 7 . . 7 7 7 z : A . ",
+". o : l } 7 7 n 7 7 7 7 7 7 7 7 7 7 C ~.7 7 7 7 7 7 {.m l : o . ",
+". . j 4 ].^.7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 /.: 4 j . . ",
+". . . c : (._.7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 e d 5 : c . . . ",
+". . . . b : [ :.7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 f : : b . . . . ",
+". . . . 2 > : 9 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 <.9 : > 2 . . . . ",
+". . . . . 2 3 4 5 8 7 7 7 7 7 7 7 7 7 7 7 {.[.5 }.3 2 . . . . . ",
+". . . . . . . < : |.1.7 7 7 7 7 7 7 7 7 2.3.: : 4.. . . . . . . ",
+". . . . . . . . _ : ].5.5.5.5.5.5.5.5.5.6.: : _ . . . . . . . . ",
+". . . . . . . . ; 7.: : : : : : : : : : : : 7.; . . . . . . . . ",
+". . . . . . . . . ; 8.8.8.8.8.8.8.8.8.8.8.8.; . . . . . . . . . "};
diff --git a/lib/wx/examples/xrc/rc/throbber.gif b/lib/wx/examples/xrc/rc/throbber.gif
new file mode 100644
index 0000000000..82c2170acc
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/throbber.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/toolbar.xrc b/lib/wx/examples/xrc/rc/toolbar.xrc
new file mode 100644
index 0000000000..ee7833309b
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/toolbar.xrc
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxToolBar" name="main_toolbar">
+ <style>wxTB_FLAT|wxTB_DOCKABLE</style>
+ <margins>2,2</margins>
+ <object class="tool" name="non_derived_dialog_tool_or_menuitem">
+ <tooltip>Non-Derived Dialog Example</tooltip>
+ <bitmap>basicdlg.xpm</bitmap>
+ <longhelp>The basic instance of wxDialog loaded via XRC</longhelp>
+ </object>
+ <object class="tool" name="derived_tool_or_menuitem">
+ <tooltip>Derived Dialog Example</tooltip>
+ <bitmap>derivdlg.xpm</bitmap>
+ <longhelp>The most important example: load an XRC for a derived dialog</longhelp>
+ </object>
+ <object class="tool" name="controls_tool_or_menuitem">
+ <tooltip>Controls Example</tooltip>
+ <bitmap>controls.xpm</bitmap>
+ <longhelp>A notebook displaying all the wxWidgets controls</longhelp>
+ </object>
+ <object class="tool" name="uncentered_tool_or_menuitem">
+ <tooltip>Uncentered Example</tooltip>
+ <bitmap>uncenter.xpm</bitmap>
+ <longhelp>Disable autocentering of a dialog on its parent</longhelp>
+ </object>
+ <separator/>
+ <object class="tool" name="custom_class_tool_or_menuitem">
+ <tooltip>Custom Class Example</tooltip>
+ <bitmap>custclas.xpm</bitmap>
+ <longhelp>Embed your own custom classes into an XRC</longhelp>
+ </object>
+ <object class="tool" name="platform_property_tool_or_menuitem">
+ <tooltip>Platform Specific Example</tooltip>
+ <bitmap>platform.xpm</bitmap>
+ <longhelp>Customize parts of an interface for a desired platform</longhelp>
+ </object>
+ <object class="tool" name="art_provider_tool_or_menuitem">
+ <tooltip>wxArtProvider Example</tooltip>
+ <bitmap>artprov.xpm</bitmap>
+ <longhelp>Use wxArtProvider to insert desired icons at runtime</longhelp>
+ </object>
+ <object class="tool" name="variable_expansion_tool_or_menuitem">
+ <tooltip>Variable Expansion Example</tooltip>
+ <bitmap>variable.xpm</bitmap>
+ <longhelp>Replace variables in the XRC file at runtime</longhelp>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/uncenter.xpm b/lib/wx/examples/xrc/rc/uncenter.xpm
new file mode 100644
index 0000000000..103b1cb301
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/uncenter.xpm
@@ -0,0 +1,24 @@
+/* XPM */
+static char * uncenter_xpm[] = {
+"16 16 5 1",
+" c None",
+". c #000000",
+"+ c #808080",
+"@ c #0000FF",
+"# c #FFFFFF",
+" ",
+"................",
+".++++++++++++++.",
+".+@@@@@@@@@@@@+.",
+".++++++++++++++.",
+".+############+.",
+".+###....#####+.",
+".+###..#######+.",
+".+###.#.######+.",
+".+###.##.#####+.",
+".+#######.####+.",
+".+########.###+.",
+".+############+.",
+".++++++++++++++.",
+"................",
+" "};
diff --git a/lib/wx/examples/xrc/rc/uncenter.xrc b/lib/wx/examples/xrc/rc/uncenter.xrc
new file mode 100644
index 0000000000..4f6f6ce532
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/uncenter.xrc
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="uncentered_dialog">
+ <title>Uncentered Example</title>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>All of the dialogs in the XRC demo, except for this dialog, center themselves automatically on their parent window, since that is what is most commonly needed. The centering for the other dialogs was done automatically simply by including a &lt;centered&gt;1&lt;/centered&gt; as a tag directly under the dialog node.\n\nHowever, there may be some times when you don't want autocentering. If you don't want the dialog centered, just don't use the &lt;centered&gt; tag and the dialog will be placed in the default window position (which is at screen coordinate 0,0 in the upper left corner of the screen). This dialog is an example of when centering is turned off.</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxBoxSizer">
+ <orient>wxHORIZONTAL</orient>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_CANCEL">
+ <label>Cancel</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/rc/update.gif b/lib/wx/examples/xrc/rc/update.gif
new file mode 100644
index 0000000000..9b66868827
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/update.gif
Binary files differ
diff --git a/lib/wx/examples/xrc/rc/variable.xpm b/lib/wx/examples/xrc/rc/variable.xpm
new file mode 100644
index 0000000000..3e95bd869d
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/variable.xpm
@@ -0,0 +1,21 @@
+/* XPM */
+static char * variable_xpm[] = {
+"16 16 2 1",
+" c None",
+". c #0E2CEF",
+" ",
+" . ",
+" ... .. ",
+" .... .. ",
+" ...... .. ",
+" . ... .. ",
+" . ..... ",
+" ... ",
+" .... ",
+" ..... . ",
+" .. ... . ",
+" .. ..... ",
+" .. ... ",
+" . ... ",
+" ",
+" "};
diff --git a/lib/wx/examples/xrc/rc/variable.xrc b/lib/wx/examples/xrc/rc/variable.xrc
new file mode 100644
index 0000000000..91d7d5cc24
--- /dev/null
+++ b/lib/wx/examples/xrc/rc/variable.xrc
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
+
+<object class="wxDialog" name="variable_expansion_dialog">
+ <title>Variable Expansion Example</title>
+ <centered>1</centered>
+ <object class="wxFlexGridSizer">
+ <cols>1</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>0</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxTextCtrl" name="message_textctrl">
+ <size>500,150</size>
+ <style>wxTE_MULTILINE</style>
+ <value>VARIABLE EXPANSION ISN'T IMPLEMENTED CURRENTLY. You can use variable expansion in your XRC files. The steps to do this are:\n\n(1)Enclose a variable inside a dollarsign and round brackets, like this: dollarsign(version).\n\n(2) Set the XmlResource flags to allow expansion of variables.\n\n(3)Before you use that XML resource, inform the XmlResourceHandler what you want that variable's value to be, via wxResourceHandler::Get()-&gt;SetVariable( "version", "2.4.0")\n\n Now, at runtime, the variable will be automatically replace by its value before the control is constructed.\n\nThe number in the version at the bottom of this dialog is an example of this expansion in action.\n\nThis is very handy for things like replacing the text in a wxStaticText, since it is a much simpler way to make a wxStaticText be a proper size: by creating it the proper size. This is in contrast to the alternative way of having using some static non-variable value in your XRC, having XRC construct it, then your application having code to change the text of it, then your app getting its best size, then setting the statictext's size, then laying out the dialog's sizer again, and other work.</value>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxGROW|wxALIGN_BOTTOM</flag>
+ <object class="wxFlexGridSizer">
+ <cols>3</cols>
+ <rows>0</rows>
+ <vgap>0</vgap>
+ <hgap>0</hgap>
+ <growablecols>2</growablecols>
+ <growablerows>0</growablerows>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="build_information_statictext">
+ <label>This build is:</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_CENTRE|wxALL</flag>
+ <border>5</border>
+ <object class="wxStaticText" name="version_statictext">
+ <label>$(version)</label>
+ </object>
+ </object>
+ <object class="sizeritem">
+ <flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL</flag>
+ <border>5</border>
+ <object class="wxButton" name="wxID_OK">
+ <label>OK</label>
+ </object>
+ </object>
+ </object>
+ </object>
+ </object>
+</object>
+
+</resource>
diff --git a/lib/wx/examples/xrc/xrc.erl b/lib/wx/examples/xrc/xrc.erl
new file mode 100644
index 0000000000..6478171b4f
--- /dev/null
+++ b/lib/wx/examples/xrc/xrc.erl
@@ -0,0 +1,323 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%
+%%% Description : Testing and demo xrc's
+%%% This mimics the xrc demo from wxwidgets.
+%%% Created : 4 Dec 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-module(xrc).
+-compile(export_all).
+
+-include("../../include/wx.hrl").
+
+
+%% I've put all "classes" in the same file, but you can see the follow
+%% the code in xrcdemo from the samples directory in wxWidgets src package
+
+start() ->
+ %% Starts wxwidgets
+ WX = wx:new(),
+ %% In erlang wx, all image handlers are initilized already.
+ %% wxImage::AddHandler(new wxXPMHandler);
+
+ %% Initialize all the XRC handlers. Always required (unless you feel like
+ %% going through and initializing a handler of each control type you will
+ %% be using (ie initialize the spinctrl handler, initialize the textctrl
+ %% handler). However, if you are only using a few control types, it will
+ %% save some space to only initialize the ones you will be using. See
+ %% wxXRC docs for details.
+
+ Xrc = wxXmlResource:get(),
+ wxXmlResource:initAllHandlers(Xrc),
+ true = wxXmlResource:load(Xrc, rc_dir("menu.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("toolbar.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("basicdlg.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("derivdlg.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("controls.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("frame.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("uncenter.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("custclas.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("artprov.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("platform.xrc")),
+ true = wxXmlResource:load(Xrc, rc_dir("variable.xrc")),
+ Frame = wxFrame:new(),
+ myframe(WX,Frame),
+ wxFrame:show(Frame),
+ loop(Frame),
+ wx:destroy().
+
+rc_dir(File) ->
+ SelfDir = filename:dirname(code:which(?MODULE)),
+ filename:join([SelfDir,rc,File]).
+
+loop(Frame) ->
+ receive
+ #wx{id=Id, event=#wxCommand{}} ->
+ handle_cmd(get(Id), Id, Frame),
+ loop(Frame);
+ #wx{event=#wxClose{}} ->
+ catch wxWindows:'Destroy'(Frame),
+ ok;
+ Ev = #wx{} ->
+ io:format("Got ~p ~n", [Ev]),
+ loop(Frame)
+ end.
+
+myframe(Parent, Frame) ->
+ Xrc = wxXmlResource:get(),
+ wxXmlResource:loadFrame(Xrc, Frame, Parent, "main_frame"),
+ %% wxTopLevelWindow:setIcon(Frame, wxXmlResource:loadIcon(Xrc,"appicon")),
+ %% Load and setup menubar
+ wxFrame:setMenuBar(Frame, wxXmlResource:loadMenuBar(Xrc, "main_menu")),
+ %% hmm wxSystemOptions::SetOption ( wxT("msw.remap"), 0 );
+ wxFrame:setToolBar(Frame, wxXmlResource:loadToolBar(Xrc, Frame, "main_toolbar")),
+ wxFrame:createStatusBar(Frame, [{number,1}]),
+ ok = wxFrame:connect(Frame, close_window),
+ connect(Frame).
+
+connect(Frame) ->
+ Menues = [unload_resource_menuitem, reload_resource_menuitem,
+ non_derived_dialog_tool_or_menuitem, derived_tool_or_menuitem,
+ controls_tool_or_menuitem, uncentered_tool_or_menuitem,
+ custom_class_tool_or_menuitem, platform_property_tool_or_menuitem,
+ art_provider_tool_or_menuitem, variable_expansion_tool_or_menuitem
+ ],
+ wxFrame:connect(Frame,command_menu_selected, [{id, ?wxID_EXIT}]),
+ wxFrame:connect(Frame,command_menu_selected, [{id, ?wxID_ABOUT}]),
+ [connect_xrcid(Str,Frame) || Str <- Menues],
+ ok.
+
+connect_xrcid(Name,Frame) ->
+ ID = wxXmlResource:getXRCID(atom_to_list(Name)),
+ put(ID, Name),
+ wxFrame:connect(Frame,command_menu_selected,[{id,ID}]).
+
+%% Handle commands
+
+handle_cmd(unload_resource_menuitem, _, _Frame) ->
+ Xrc = wxXmlResource:get(),
+ case wxXmlResource:unload(Xrc, "rc/basicdlg") of
+ true ->
+ io:format("Basic dialog unloaded~n",[]);
+ false ->
+ io:format("Failed to unload basic dialog~n",[])
+ end;
+
+handle_cmd(reload_resource_menuitem, _, _Frame) ->
+ Xrc = wxXmlResource:get(),
+ case wxXmlResource:reload(Xrc, "rc/basicdlg") of
+ true ->
+ io:format("Basic dialog reloaded~n",[]);
+ false ->
+ io:format("Failed to reload basic dialog~n",[])
+ end;
+
+handle_cmd(_, ?wxID_EXIT, Frame) ->
+ wxFrame:close(Frame);
+
+handle_cmd(non_derived_dialog_tool_or_menuitem, _, Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ %% "non_derived_dialog" is the name of the wxDialog XRC node that should
+ %% be loaded.
+ case wxXmlResource:loadDialog(Xrc, Dlg, Frame, "non_derived_dialog") of
+ true ->
+ wxDialog:showModal(Dlg);
+ false ->
+ io:format("Failed to load non_derived_dialog~n",[])
+ end,
+ %% In Erlang you should delete the dialog afterwards
+ wxDialog:destroy(Dlg);
+
+handle_cmd(derived_tool_or_menuitem, _, Frame) ->
+ Pref = prefDialog(Frame),
+ wxDialog:showModal(Pref);
+
+handle_cmd(animation_ctrl_play, _, _Frame) ->
+ %% Not yet implemented
+ ok;
+
+handle_cmd(controls_tool_or_menuitem,_,Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"),
+
+ LCtrl = wxXmlResource:xrcctrl(Dlg, "controls_listctrl", wxListCtrl),
+ wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]),
+ wxListCtrl:insertItem(LCtrl, 0, "Todd Hope"),
+ wxListCtrl:insertItem(LCtrl, 1, "Kim Wynd"),
+ wxListCtrl:insertItem(LCtrl, 2, "Leon Li"),
+
+ TCtrl = wxXmlResource:xrcctrl(Dlg, "controls_treectrl", wxTreeCtrl),
+ wxTreeCtrl:addRoot(TCtrl, "Godfather"),
+ TRoot = wxTreeCtrl:getRootItem(TCtrl),
+ wxTreeCtrl:appendItem(TCtrl,TRoot, "Evil henchmen 1"),
+ wxTreeCtrl:appendItem(TCtrl,TRoot, "Evil henchmen 2"),
+ wxTreeCtrl:appendItem(TCtrl,TRoot, "Evil accountant"),
+
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+
+handle_cmd(uncentered_tool_or_menuitem,_,Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "uncentered_dialog"),
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+
+handle_cmd(custom_class_tool_or_menuitem,_,Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "custom_class_dialog"),
+
+ ResizeableLC = myResizeableListCtrl(Dlg, ?wxID_ANY, {-1,-1}, {-1,-1},?wxLC_REPORT),
+ %% "custom_control_placeholder" is the name of the "unknown" tag in the
+ %% custctrl.xrc XRC file.
+ wxXmlResource:attachUnknownControl(Xrc, "custom_control_placeholder", ResizeableLC),
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+
+handle_cmd(platform_property_tool_or_menuitem, _, Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "platform_property_dialog"),
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+
+handle_cmd(art_provider_tool_or_menuitem, _, Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "art_provider_dialog"),
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+
+handle_cmd(variable_expansion_tool_or_menuitem, _, Frame) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "variable_expansion_dialog"),
+ wxDialog:showModal(Dlg),
+ wxDialog:destroy(Dlg);
+handle_cmd(_, ?wxID_ABOUT, Frame) ->
+ Msg = "This is the about dialog of XML resources demo.\n",
+ MD = wxMessageDialog:new(Frame,Msg,
+ [{style, ?wxOK bor ?wxICON_INFORMATION},
+ {caption, "About"}]),
+ wxDialog:showModal(MD),
+ wxDialog:destroy(MD);
+handle_cmd(Dialog, Id, _) ->
+ io:format("Not implemented yet ~p (~p) ~n",[Dialog, Id]).
+
+
+%%%%%%%%%%%%%%%%
+%% Trying to mimic the derived dialog example
+%%%%%%%%%%%%%%%%
+
+prefDialog(Parent) ->
+ Xrc = wxXmlResource:get(),
+ Dlg = wxDialog:new(),
+ true = wxXmlResource:loadDialog(Xrc, Dlg, Parent, "derived_dialog"),
+
+ %% Shows that callbacks can be used it doesn't need to though.
+ OnMyButtonClicked = fun(_EvRec, _wxEvent) ->
+ MD = wxMessageDialog:new(Dlg, "You clicked on My Button"),
+ wxMessageDialog:showModal(MD),
+ wxMessageDialog:destroy(MD)
+ end,
+ wxDialog:connect(Dlg, command_button_clicked,
+ [{id,wxXmlResource:getXRCID("my_button")},
+ {callback,OnMyButtonClicked}]),
+
+ OnMyCheckBox = fun(_EvRec, _Event) ->
+ CheckB = wxXmlResource:xrcctrl(Dlg, "my_checkbox", wxCheckBox),
+ Text = wxXmlResource:xrcctrl(Dlg, "my_textctrl", wxTextCtrl),
+ Bool = wxCheckBox:isChecked(CheckB),
+ wxTextCtrl:enable(Text, [{enable,Bool}])
+ end,
+ wxDialog:connect(Dlg,update_ui,[{id,wxXmlResource:getXRCID("my_checkbox")},
+ {callback,OnMyCheckBox}]),
+
+ %% Keep updateUI event interval at 250ms
+ wxUpdateUIEvent:setUpdateInterval(250),
+
+ OnOk = fun(_,_) ->
+ Str =
+ "Press Ok to close derived dialog, or Cancel to abort"
+ "Overriding base class ok button handler",
+ MD = wxMessageDialog:new(Dlg, Str, [{style, ?wxOK bor ?wxCANCEL bor ?wxCENTER}]),
+ case wxMessageDialog:showModal(MD) of
+ ?wxID_OK ->
+ wxMessageDialog:endModal(Dlg, ?wxID_OK);
+ _R ->
+ ignore
+ end,
+ wxMessageDialog:destroy(MD)
+ end,
+ wxDialog:connect(Dlg,command_button_clicked,[{id,?wxID_OK},{callback,OnOk}]),
+ Dlg.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+-define(RECORD_COLUMN, 0).
+-define(ACTION_COLUMN, 1).
+-define(PRIORITY_COLUMN,2).
+
+-define(PU_ADD_RECORD, ?wxID_HIGHEST+1).
+-define(PU_EDIT_RECORD, ?wxID_HIGHEST+2).
+-define(PU_DELETE_RECORD, ?wxID_HIGHEST+3).
+
+myResizeableListCtrl(Parent,Id,Pos,Size,Style) ->
+ LC = wxListCtrl:new(Parent, [{winid,Id}, {pos,Pos}, {size,Size}, {style,Style}]),
+ wxListCtrl:insertColumn(LC,?RECORD_COLUMN, "Record", [{width, 140}]),
+ wxListCtrl:insertColumn(LC,?ACTION_COLUMN, "Action", [{width, 70}]),
+ wxListCtrl:insertColumn(LC,?PRIORITY_COLUMN, "Priority", [{width, 70}]),
+ wxListCtrl:connect(LC, right_down, [{id,Id}, {callback, fun lc_onRightClick/2}]),
+ wxListCtrl:connect(LC, size, [{id,Id}, {callback, fun lc_onSize/2}]),
+ LC.
+
+lc_onRightClick(#wx{obj=ListCtrl, event=#wxMouse{x=X,y=Y}},_Ev) ->
+ Menu = wxMenu:new(),
+ wxMenu:append(Menu, ?PU_ADD_RECORD, "Add a new record"),
+ wxMenu:append(Menu, ?PU_EDIT_RECORD,"Edit selected record"),
+ wxMenu:append(Menu, ?PU_DELETE_RECORD, "Delete selected record"),
+ case wxListCtrl:getSelectedItemCount(ListCtrl) of
+ 0 ->
+ wxMenu:enable(Menu, ?PU_EDIT_RECORD, false),
+ wxMenu:enable(Menu, ?PU_DELETE_RECORD, false);
+ _ ->
+ ignore
+ end,
+ MenuCB = fun(_,_) -> io:format("Menu selected~n",[]) end,
+ wxWindow:connect(ListCtrl, command_menu_selected, [{callback, MenuCB}]),
+ wxWindow:popupMenu(ListCtrl, Menu, [{pos, {X,Y}}]),
+ wxMenu:destroy(Menu).
+
+lc_onSize(#wx{obj=ListCtrl},EvObj) ->
+ {LeftMostColW0,_} = wxListCtrl:getSize(ListCtrl),
+ LeftMostColW1 = LeftMostColW0 - wxListCtrl:getColumnWidth(ListCtrl, ?ACTION_COLUMN),
+ LeftMostColW2 = LeftMostColW1 - wxListCtrl:getColumnWidth(ListCtrl, ?PRIORITY_COLUMN),
+ %% Hmm missing wxSystemSettings::GetMetric( wxSYS_VSCROLL_X );
+ LeftMostColW = LeftMostColW2 - 5,
+ wxListCtrl:setColumnWidth(ListCtrl, ?RECORD_COLUMN, LeftMostColW),
+ %% REQURED event.Skip() call to allow this event to propagate
+ %% upwards so others can do what they need to do in response to
+ %% this size event.
+ wxEvent:skip(EvObj),
+ io:format("Successfully set column width~n").
+
+%%%%%
diff --git a/lib/wx/include/gl.hrl b/lib/wx/include/gl.hrl
new file mode 100644
index 0000000000..7891ebf568
--- /dev/null
+++ b/lib/wx/include/gl.hrl
@@ -0,0 +1,3686 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% OPENGL DEFINITIONS
+
+%% This file is generated DO NOT EDIT
+
+-define(GL_VERSION_1_1, 1).
+-define(GL_CURRENT_BIT, 16#1).
+-define(GL_POINT_BIT, 16#2).
+-define(GL_LINE_BIT, 16#4).
+-define(GL_POLYGON_BIT, 16#8).
+-define(GL_POLYGON_STIPPLE_BIT, 16#10).
+-define(GL_PIXEL_MODE_BIT, 16#20).
+-define(GL_LIGHTING_BIT, 16#40).
+-define(GL_FOG_BIT, 16#80).
+-define(GL_DEPTH_BUFFER_BIT, 16#100).
+-define(GL_ACCUM_BUFFER_BIT, 16#200).
+-define(GL_STENCIL_BUFFER_BIT, 16#400).
+-define(GL_VIEWPORT_BIT, 16#800).
+-define(GL_TRANSFORM_BIT, 16#1000).
+-define(GL_ENABLE_BIT, 16#2000).
+-define(GL_COLOR_BUFFER_BIT, 16#4000).
+-define(GL_HINT_BIT, 16#8000).
+-define(GL_EVAL_BIT, 16#10000).
+-define(GL_LIST_BIT, 16#20000).
+-define(GL_TEXTURE_BIT, 16#40000).
+-define(GL_SCISSOR_BIT, 16#80000).
+-define(GL_ALL_ATTRIB_BITS, 16#FFFFFFFF).
+-define(GL_CLIENT_PIXEL_STORE_BIT, 16#1).
+-define(GL_CLIENT_VERTEX_ARRAY_BIT, 16#2).
+-define(GL_CLIENT_ALL_ATTRIB_BITS, 16#FFFFFFFF).
+-define(GL_FALSE, 0).
+-define(GL_TRUE, 1).
+-define(GL_POINTS, 16#0).
+-define(GL_LINES, 16#1).
+-define(GL_LINE_LOOP, 16#2).
+-define(GL_LINE_STRIP, 16#3).
+-define(GL_TRIANGLES, 16#4).
+-define(GL_TRIANGLE_STRIP, 16#5).
+-define(GL_TRIANGLE_FAN, 16#6).
+-define(GL_QUADS, 16#7).
+-define(GL_QUAD_STRIP, 16#8).
+-define(GL_POLYGON, 16#9).
+-define(GL_ACCUM, 16#100).
+-define(GL_LOAD, 16#101).
+-define(GL_RETURN, 16#102).
+-define(GL_MULT, 16#103).
+-define(GL_ADD, 16#104).
+-define(GL_NEVER, 16#200).
+-define(GL_LESS, 16#201).
+-define(GL_EQUAL, 16#202).
+-define(GL_LEQUAL, 16#203).
+-define(GL_GREATER, 16#204).
+-define(GL_NOTEQUAL, 16#205).
+-define(GL_GEQUAL, 16#206).
+-define(GL_ALWAYS, 16#207).
+-define(GL_ZERO, 0).
+-define(GL_ONE, 1).
+-define(GL_SRC_COLOR, 16#300).
+-define(GL_ONE_MINUS_SRC_COLOR, 16#301).
+-define(GL_SRC_ALPHA, 16#302).
+-define(GL_ONE_MINUS_SRC_ALPHA, 16#303).
+-define(GL_DST_ALPHA, 16#304).
+-define(GL_ONE_MINUS_DST_ALPHA, 16#305).
+-define(GL_DST_COLOR, 16#306).
+-define(GL_ONE_MINUS_DST_COLOR, 16#307).
+-define(GL_SRC_ALPHA_SATURATE, 16#308).
+-define(GL_NONE, 0).
+-define(GL_FRONT_LEFT, 16#400).
+-define(GL_FRONT_RIGHT, 16#401).
+-define(GL_BACK_LEFT, 16#402).
+-define(GL_BACK_RIGHT, 16#403).
+-define(GL_FRONT, 16#404).
+-define(GL_BACK, 16#405).
+-define(GL_LEFT, 16#406).
+-define(GL_RIGHT, 16#407).
+-define(GL_FRONT_AND_BACK, 16#408).
+-define(GL_AUX0, 16#409).
+-define(GL_AUX1, 16#40A).
+-define(GL_AUX2, 16#40B).
+-define(GL_AUX3, 16#40C).
+-define(GL_NO_ERROR, 0).
+-define(GL_INVALID_ENUM, 16#500).
+-define(GL_INVALID_VALUE, 16#501).
+-define(GL_INVALID_OPERATION, 16#502).
+-define(GL_STACK_OVERFLOW, 16#503).
+-define(GL_STACK_UNDERFLOW, 16#504).
+-define(GL_OUT_OF_MEMORY, 16#505).
+-define(GL_TABLE_TOO_LARGE, 16#8031).
+-define(GL_2D, 16#600).
+-define(GL_3D, 16#601).
+-define(GL_3D_COLOR, 16#602).
+-define(GL_3D_COLOR_TEXTURE, 16#603).
+-define(GL_4D_COLOR_TEXTURE, 16#604).
+-define(GL_PASS_THROUGH_TOKEN, 16#700).
+-define(GL_POINT_TOKEN, 16#701).
+-define(GL_LINE_TOKEN, 16#702).
+-define(GL_POLYGON_TOKEN, 16#703).
+-define(GL_BITMAP_TOKEN, 16#704).
+-define(GL_DRAW_PIXEL_TOKEN, 16#705).
+-define(GL_COPY_PIXEL_TOKEN, 16#706).
+-define(GL_LINE_RESET_TOKEN, 16#707).
+-define(GL_EXP, 16#800).
+-define(GL_EXP2, 16#801).
+-define(GL_CW, 16#900).
+-define(GL_CCW, 16#901).
+-define(GL_COEFF, 16#A00).
+-define(GL_ORDER, 16#A01).
+-define(GL_DOMAIN, 16#A02).
+-define(GL_PIXEL_MAP_I_TO_I, 16#C70).
+-define(GL_PIXEL_MAP_S_TO_S, 16#C71).
+-define(GL_PIXEL_MAP_I_TO_R, 16#C72).
+-define(GL_PIXEL_MAP_I_TO_G, 16#C73).
+-define(GL_PIXEL_MAP_I_TO_B, 16#C74).
+-define(GL_PIXEL_MAP_I_TO_A, 16#C75).
+-define(GL_PIXEL_MAP_R_TO_R, 16#C76).
+-define(GL_PIXEL_MAP_G_TO_G, 16#C77).
+-define(GL_PIXEL_MAP_B_TO_B, 16#C78).
+-define(GL_PIXEL_MAP_A_TO_A, 16#C79).
+-define(GL_VERTEX_ARRAY_POINTER, 16#808E).
+-define(GL_NORMAL_ARRAY_POINTER, 16#808F).
+-define(GL_COLOR_ARRAY_POINTER, 16#8090).
+-define(GL_INDEX_ARRAY_POINTER, 16#8091).
+-define(GL_TEXTURE_COORD_ARRAY_POINTER, 16#8092).
+-define(GL_EDGE_FLAG_ARRAY_POINTER, 16#8093).
+-define(GL_CURRENT_COLOR, 16#B00).
+-define(GL_CURRENT_INDEX, 16#B01).
+-define(GL_CURRENT_NORMAL, 16#B02).
+-define(GL_CURRENT_TEXTURE_COORDS, 16#B03).
+-define(GL_CURRENT_RASTER_COLOR, 16#B04).
+-define(GL_CURRENT_RASTER_INDEX, 16#B05).
+-define(GL_CURRENT_RASTER_TEXTURE_COORDS, 16#B06).
+-define(GL_CURRENT_RASTER_POSITION, 16#B07).
+-define(GL_CURRENT_RASTER_POSITION_VALID, 16#B08).
+-define(GL_CURRENT_RASTER_DISTANCE, 16#B09).
+-define(GL_POINT_SMOOTH, 16#B10).
+-define(GL_POINT_SIZE, 16#B11).
+-define(GL_SMOOTH_POINT_SIZE_RANGE, 16#B12).
+-define(GL_SMOOTH_POINT_SIZE_GRANULARITY, 16#B13).
+-define(GL_POINT_SIZE_RANGE, ?GL_SMOOTH_POINT_SIZE_RANGE).
+-define(GL_POINT_SIZE_GRANULARITY, ?GL_SMOOTH_POINT_SIZE_GRANULARITY).
+-define(GL_LINE_SMOOTH, 16#B20).
+-define(GL_LINE_WIDTH, 16#B21).
+-define(GL_SMOOTH_LINE_WIDTH_RANGE, 16#B22).
+-define(GL_SMOOTH_LINE_WIDTH_GRANULARITY, 16#B23).
+-define(GL_LINE_WIDTH_RANGE, ?GL_SMOOTH_LINE_WIDTH_RANGE).
+-define(GL_LINE_WIDTH_GRANULARITY, ?GL_SMOOTH_LINE_WIDTH_GRANULARITY).
+-define(GL_LINE_STIPPLE, 16#B24).
+-define(GL_LINE_STIPPLE_PATTERN, 16#B25).
+-define(GL_LINE_STIPPLE_REPEAT, 16#B26).
+-define(GL_LIST_MODE, 16#B30).
+-define(GL_MAX_LIST_NESTING, 16#B31).
+-define(GL_LIST_BASE, 16#B32).
+-define(GL_LIST_INDEX, 16#B33).
+-define(GL_POLYGON_MODE, 16#B40).
+-define(GL_POLYGON_SMOOTH, 16#B41).
+-define(GL_POLYGON_STIPPLE, 16#B42).
+-define(GL_EDGE_FLAG, 16#B43).
+-define(GL_CULL_FACE, 16#B44).
+-define(GL_CULL_FACE_MODE, 16#B45).
+-define(GL_FRONT_FACE, 16#B46).
+-define(GL_LIGHTING, 16#B50).
+-define(GL_LIGHT_MODEL_LOCAL_VIEWER, 16#B51).
+-define(GL_LIGHT_MODEL_TWO_SIDE, 16#B52).
+-define(GL_LIGHT_MODEL_AMBIENT, 16#B53).
+-define(GL_SHADE_MODEL, 16#B54).
+-define(GL_COLOR_MATERIAL_FACE, 16#B55).
+-define(GL_COLOR_MATERIAL_PARAMETER, 16#B56).
+-define(GL_COLOR_MATERIAL, 16#B57).
+-define(GL_FOG, 16#B60).
+-define(GL_FOG_INDEX, 16#B61).
+-define(GL_FOG_DENSITY, 16#B62).
+-define(GL_FOG_START, 16#B63).
+-define(GL_FOG_END, 16#B64).
+-define(GL_FOG_MODE, 16#B65).
+-define(GL_FOG_COLOR, 16#B66).
+-define(GL_DEPTH_RANGE, 16#B70).
+-define(GL_DEPTH_TEST, 16#B71).
+-define(GL_DEPTH_WRITEMASK, 16#B72).
+-define(GL_DEPTH_CLEAR_VALUE, 16#B73).
+-define(GL_DEPTH_FUNC, 16#B74).
+-define(GL_ACCUM_CLEAR_VALUE, 16#B80).
+-define(GL_STENCIL_TEST, 16#B90).
+-define(GL_STENCIL_CLEAR_VALUE, 16#B91).
+-define(GL_STENCIL_FUNC, 16#B92).
+-define(GL_STENCIL_VALUE_MASK, 16#B93).
+-define(GL_STENCIL_FAIL, 16#B94).
+-define(GL_STENCIL_PASS_DEPTH_FAIL, 16#B95).
+-define(GL_STENCIL_PASS_DEPTH_PASS, 16#B96).
+-define(GL_STENCIL_REF, 16#B97).
+-define(GL_STENCIL_WRITEMASK, 16#B98).
+-define(GL_MATRIX_MODE, 16#BA0).
+-define(GL_NORMALIZE, 16#BA1).
+-define(GL_VIEWPORT, 16#BA2).
+-define(GL_MODELVIEW_STACK_DEPTH, 16#BA3).
+-define(GL_PROJECTION_STACK_DEPTH, 16#BA4).
+-define(GL_TEXTURE_STACK_DEPTH, 16#BA5).
+-define(GL_MODELVIEW_MATRIX, 16#BA6).
+-define(GL_PROJECTION_MATRIX, 16#BA7).
+-define(GL_TEXTURE_MATRIX, 16#BA8).
+-define(GL_ATTRIB_STACK_DEPTH, 16#BB0).
+-define(GL_CLIENT_ATTRIB_STACK_DEPTH, 16#BB1).
+-define(GL_ALPHA_TEST, 16#BC0).
+-define(GL_ALPHA_TEST_FUNC, 16#BC1).
+-define(GL_ALPHA_TEST_REF, 16#BC2).
+-define(GL_DITHER, 16#BD0).
+-define(GL_BLEND_DST, 16#BE0).
+-define(GL_BLEND_SRC, 16#BE1).
+-define(GL_BLEND, 16#BE2).
+-define(GL_LOGIC_OP_MODE, 16#BF0).
+-define(GL_INDEX_LOGIC_OP, 16#BF1).
+-define(GL_LOGIC_OP, ?GL_INDEX_LOGIC_OP).
+-define(GL_COLOR_LOGIC_OP, 16#BF2).
+-define(GL_AUX_BUFFERS, 16#C00).
+-define(GL_DRAW_BUFFER, 16#C01).
+-define(GL_READ_BUFFER, 16#C02).
+-define(GL_SCISSOR_BOX, 16#C10).
+-define(GL_SCISSOR_TEST, 16#C11).
+-define(GL_INDEX_CLEAR_VALUE, 16#C20).
+-define(GL_INDEX_WRITEMASK, 16#C21).
+-define(GL_COLOR_CLEAR_VALUE, 16#C22).
+-define(GL_COLOR_WRITEMASK, 16#C23).
+-define(GL_INDEX_MODE, 16#C30).
+-define(GL_RGBA_MODE, 16#C31).
+-define(GL_DOUBLEBUFFER, 16#C32).
+-define(GL_STEREO, 16#C33).
+-define(GL_RENDER_MODE, 16#C40).
+-define(GL_PERSPECTIVE_CORRECTION_HINT, 16#C50).
+-define(GL_POINT_SMOOTH_HINT, 16#C51).
+-define(GL_LINE_SMOOTH_HINT, 16#C52).
+-define(GL_POLYGON_SMOOTH_HINT, 16#C53).
+-define(GL_FOG_HINT, 16#C54).
+-define(GL_TEXTURE_GEN_S, 16#C60).
+-define(GL_TEXTURE_GEN_T, 16#C61).
+-define(GL_TEXTURE_GEN_R, 16#C62).
+-define(GL_TEXTURE_GEN_Q, 16#C63).
+-define(GL_PIXEL_MAP_I_TO_I_SIZE, 16#CB0).
+-define(GL_PIXEL_MAP_S_TO_S_SIZE, 16#CB1).
+-define(GL_PIXEL_MAP_I_TO_R_SIZE, 16#CB2).
+-define(GL_PIXEL_MAP_I_TO_G_SIZE, 16#CB3).
+-define(GL_PIXEL_MAP_I_TO_B_SIZE, 16#CB4).
+-define(GL_PIXEL_MAP_I_TO_A_SIZE, 16#CB5).
+-define(GL_PIXEL_MAP_R_TO_R_SIZE, 16#CB6).
+-define(GL_PIXEL_MAP_G_TO_G_SIZE, 16#CB7).
+-define(GL_PIXEL_MAP_B_TO_B_SIZE, 16#CB8).
+-define(GL_PIXEL_MAP_A_TO_A_SIZE, 16#CB9).
+-define(GL_UNPACK_SWAP_BYTES, 16#CF0).
+-define(GL_UNPACK_LSB_FIRST, 16#CF1).
+-define(GL_UNPACK_ROW_LENGTH, 16#CF2).
+-define(GL_UNPACK_SKIP_ROWS, 16#CF3).
+-define(GL_UNPACK_SKIP_PIXELS, 16#CF4).
+-define(GL_UNPACK_ALIGNMENT, 16#CF5).
+-define(GL_PACK_SWAP_BYTES, 16#D00).
+-define(GL_PACK_LSB_FIRST, 16#D01).
+-define(GL_PACK_ROW_LENGTH, 16#D02).
+-define(GL_PACK_SKIP_ROWS, 16#D03).
+-define(GL_PACK_SKIP_PIXELS, 16#D04).
+-define(GL_PACK_ALIGNMENT, 16#D05).
+-define(GL_MAP_COLOR, 16#D10).
+-define(GL_MAP_STENCIL, 16#D11).
+-define(GL_INDEX_SHIFT, 16#D12).
+-define(GL_INDEX_OFFSET, 16#D13).
+-define(GL_RED_SCALE, 16#D14).
+-define(GL_RED_BIAS, 16#D15).
+-define(GL_ZOOM_X, 16#D16).
+-define(GL_ZOOM_Y, 16#D17).
+-define(GL_GREEN_SCALE, 16#D18).
+-define(GL_GREEN_BIAS, 16#D19).
+-define(GL_BLUE_SCALE, 16#D1A).
+-define(GL_BLUE_BIAS, 16#D1B).
+-define(GL_ALPHA_SCALE, 16#D1C).
+-define(GL_ALPHA_BIAS, 16#D1D).
+-define(GL_DEPTH_SCALE, 16#D1E).
+-define(GL_DEPTH_BIAS, 16#D1F).
+-define(GL_MAX_EVAL_ORDER, 16#D30).
+-define(GL_MAX_LIGHTS, 16#D31).
+-define(GL_MAX_CLIP_PLANES, 16#D32).
+-define(GL_MAX_TEXTURE_SIZE, 16#D33).
+-define(GL_MAX_PIXEL_MAP_TABLE, 16#D34).
+-define(GL_MAX_ATTRIB_STACK_DEPTH, 16#D35).
+-define(GL_MAX_MODELVIEW_STACK_DEPTH, 16#D36).
+-define(GL_MAX_NAME_STACK_DEPTH, 16#D37).
+-define(GL_MAX_PROJECTION_STACK_DEPTH, 16#D38).
+-define(GL_MAX_TEXTURE_STACK_DEPTH, 16#D39).
+-define(GL_MAX_VIEWPORT_DIMS, 16#D3A).
+-define(GL_MAX_CLIENT_ATTRIB_STACK_DEPTH, 16#D3B).
+-define(GL_SUBPIXEL_BITS, 16#D50).
+-define(GL_INDEX_BITS, 16#D51).
+-define(GL_RED_BITS, 16#D52).
+-define(GL_GREEN_BITS, 16#D53).
+-define(GL_BLUE_BITS, 16#D54).
+-define(GL_ALPHA_BITS, 16#D55).
+-define(GL_DEPTH_BITS, 16#D56).
+-define(GL_STENCIL_BITS, 16#D57).
+-define(GL_ACCUM_RED_BITS, 16#D58).
+-define(GL_ACCUM_GREEN_BITS, 16#D59).
+-define(GL_ACCUM_BLUE_BITS, 16#D5A).
+-define(GL_ACCUM_ALPHA_BITS, 16#D5B).
+-define(GL_NAME_STACK_DEPTH, 16#D70).
+-define(GL_AUTO_NORMAL, 16#D80).
+-define(GL_MAP1_COLOR_4, 16#D90).
+-define(GL_MAP1_INDEX, 16#D91).
+-define(GL_MAP1_NORMAL, 16#D92).
+-define(GL_MAP1_TEXTURE_COORD_1, 16#D93).
+-define(GL_MAP1_TEXTURE_COORD_2, 16#D94).
+-define(GL_MAP1_TEXTURE_COORD_3, 16#D95).
+-define(GL_MAP1_TEXTURE_COORD_4, 16#D96).
+-define(GL_MAP1_VERTEX_3, 16#D97).
+-define(GL_MAP1_VERTEX_4, 16#D98).
+-define(GL_MAP2_COLOR_4, 16#DB0).
+-define(GL_MAP2_INDEX, 16#DB1).
+-define(GL_MAP2_NORMAL, 16#DB2).
+-define(GL_MAP2_TEXTURE_COORD_1, 16#DB3).
+-define(GL_MAP2_TEXTURE_COORD_2, 16#DB4).
+-define(GL_MAP2_TEXTURE_COORD_3, 16#DB5).
+-define(GL_MAP2_TEXTURE_COORD_4, 16#DB6).
+-define(GL_MAP2_VERTEX_3, 16#DB7).
+-define(GL_MAP2_VERTEX_4, 16#DB8).
+-define(GL_MAP1_GRID_DOMAIN, 16#DD0).
+-define(GL_MAP1_GRID_SEGMENTS, 16#DD1).
+-define(GL_MAP2_GRID_DOMAIN, 16#DD2).
+-define(GL_MAP2_GRID_SEGMENTS, 16#DD3).
+-define(GL_TEXTURE_1D, 16#DE0).
+-define(GL_TEXTURE_2D, 16#DE1).
+-define(GL_FEEDBACK_BUFFER_POINTER, 16#DF0).
+-define(GL_FEEDBACK_BUFFER_SIZE, 16#DF1).
+-define(GL_FEEDBACK_BUFFER_TYPE, 16#DF2).
+-define(GL_SELECTION_BUFFER_POINTER, 16#DF3).
+-define(GL_SELECTION_BUFFER_SIZE, 16#DF4).
+-define(GL_POLYGON_OFFSET_UNITS, 16#2A00).
+-define(GL_POLYGON_OFFSET_POINT, 16#2A01).
+-define(GL_POLYGON_OFFSET_LINE, 16#2A02).
+-define(GL_POLYGON_OFFSET_FILL, 16#8037).
+-define(GL_POLYGON_OFFSET_FACTOR, 16#8038).
+-define(GL_TEXTURE_BINDING_1D, 16#8068).
+-define(GL_TEXTURE_BINDING_2D, 16#8069).
+-define(GL_TEXTURE_BINDING_3D, 16#806A).
+-define(GL_VERTEX_ARRAY, 16#8074).
+-define(GL_NORMAL_ARRAY, 16#8075).
+-define(GL_COLOR_ARRAY, 16#8076).
+-define(GL_INDEX_ARRAY, 16#8077).
+-define(GL_TEXTURE_COORD_ARRAY, 16#8078).
+-define(GL_EDGE_FLAG_ARRAY, 16#8079).
+-define(GL_VERTEX_ARRAY_SIZE, 16#807A).
+-define(GL_VERTEX_ARRAY_TYPE, 16#807B).
+-define(GL_VERTEX_ARRAY_STRIDE, 16#807C).
+-define(GL_NORMAL_ARRAY_TYPE, 16#807E).
+-define(GL_NORMAL_ARRAY_STRIDE, 16#807F).
+-define(GL_COLOR_ARRAY_SIZE, 16#8081).
+-define(GL_COLOR_ARRAY_TYPE, 16#8082).
+-define(GL_COLOR_ARRAY_STRIDE, 16#8083).
+-define(GL_INDEX_ARRAY_TYPE, 16#8085).
+-define(GL_INDEX_ARRAY_STRIDE, 16#8086).
+-define(GL_TEXTURE_COORD_ARRAY_SIZE, 16#8088).
+-define(GL_TEXTURE_COORD_ARRAY_TYPE, 16#8089).
+-define(GL_TEXTURE_COORD_ARRAY_STRIDE, 16#808A).
+-define(GL_EDGE_FLAG_ARRAY_STRIDE, 16#808C).
+-define(GL_TEXTURE_WIDTH, 16#1000).
+-define(GL_TEXTURE_HEIGHT, 16#1001).
+-define(GL_TEXTURE_INTERNAL_FORMAT, 16#1003).
+-define(GL_TEXTURE_COMPONENTS, ?GL_TEXTURE_INTERNAL_FORMAT).
+-define(GL_TEXTURE_BORDER_COLOR, 16#1004).
+-define(GL_TEXTURE_BORDER, 16#1005).
+-define(GL_TEXTURE_RED_SIZE, 16#805C).
+-define(GL_TEXTURE_GREEN_SIZE, 16#805D).
+-define(GL_TEXTURE_BLUE_SIZE, 16#805E).
+-define(GL_TEXTURE_ALPHA_SIZE, 16#805F).
+-define(GL_TEXTURE_LUMINANCE_SIZE, 16#8060).
+-define(GL_TEXTURE_INTENSITY_SIZE, 16#8061).
+-define(GL_TEXTURE_PRIORITY, 16#8066).
+-define(GL_TEXTURE_RESIDENT, 16#8067).
+-define(GL_DONT_CARE, 16#1100).
+-define(GL_FASTEST, 16#1101).
+-define(GL_NICEST, 16#1102).
+-define(GL_AMBIENT, 16#1200).
+-define(GL_DIFFUSE, 16#1201).
+-define(GL_SPECULAR, 16#1202).
+-define(GL_POSITION, 16#1203).
+-define(GL_SPOT_DIRECTION, 16#1204).
+-define(GL_SPOT_EXPONENT, 16#1205).
+-define(GL_SPOT_CUTOFF, 16#1206).
+-define(GL_CONSTANT_ATTENUATION, 16#1207).
+-define(GL_LINEAR_ATTENUATION, 16#1208).
+-define(GL_QUADRATIC_ATTENUATION, 16#1209).
+-define(GL_COMPILE, 16#1300).
+-define(GL_COMPILE_AND_EXECUTE, 16#1301).
+-define(GL_BYTE, 16#1400).
+-define(GL_UNSIGNED_BYTE, 16#1401).
+-define(GL_SHORT, 16#1402).
+-define(GL_UNSIGNED_SHORT, 16#1403).
+-define(GL_INT, 16#1404).
+-define(GL_UNSIGNED_INT, 16#1405).
+-define(GL_FLOAT, 16#1406).
+-define(GL_2_BYTES, 16#1407).
+-define(GL_3_BYTES, 16#1408).
+-define(GL_4_BYTES, 16#1409).
+-define(GL_DOUBLE, 16#140A).
+-define(GL_DOUBLE_EXT, 16#140A).
+-define(GL_CLEAR, 16#1500).
+-define(GL_AND, 16#1501).
+-define(GL_AND_REVERSE, 16#1502).
+-define(GL_COPY, 16#1503).
+-define(GL_AND_INVERTED, 16#1504).
+-define(GL_NOOP, 16#1505).
+-define(GL_XOR, 16#1506).
+-define(GL_OR, 16#1507).
+-define(GL_NOR, 16#1508).
+-define(GL_EQUIV, 16#1509).
+-define(GL_INVERT, 16#150A).
+-define(GL_OR_REVERSE, 16#150B).
+-define(GL_COPY_INVERTED, 16#150C).
+-define(GL_OR_INVERTED, 16#150D).
+-define(GL_NAND, 16#150E).
+-define(GL_SET, 16#150F).
+-define(GL_EMISSION, 16#1600).
+-define(GL_SHININESS, 16#1601).
+-define(GL_AMBIENT_AND_DIFFUSE, 16#1602).
+-define(GL_COLOR_INDEXES, 16#1603).
+-define(GL_MODELVIEW, 16#1700).
+-define(GL_PROJECTION, 16#1701).
+-define(GL_TEXTURE, 16#1702).
+-define(GL_COLOR, 16#1800).
+-define(GL_DEPTH, 16#1801).
+-define(GL_STENCIL, 16#1802).
+-define(GL_COLOR_INDEX, 16#1900).
+-define(GL_STENCIL_INDEX, 16#1901).
+-define(GL_DEPTH_COMPONENT, 16#1902).
+-define(GL_RED, 16#1903).
+-define(GL_GREEN, 16#1904).
+-define(GL_BLUE, 16#1905).
+-define(GL_ALPHA, 16#1906).
+-define(GL_RGB, 16#1907).
+-define(GL_RGBA, 16#1908).
+-define(GL_LUMINANCE, 16#1909).
+-define(GL_LUMINANCE_ALPHA, 16#190A).
+-define(GL_BITMAP, 16#1A00).
+-define(GL_POINT, 16#1B00).
+-define(GL_LINE, 16#1B01).
+-define(GL_FILL, 16#1B02).
+-define(GL_RENDER, 16#1C00).
+-define(GL_FEEDBACK, 16#1C01).
+-define(GL_SELECT, 16#1C02).
+-define(GL_FLAT, 16#1D00).
+-define(GL_SMOOTH, 16#1D01).
+-define(GL_KEEP, 16#1E00).
+-define(GL_REPLACE, 16#1E01).
+-define(GL_INCR, 16#1E02).
+-define(GL_DECR, 16#1E03).
+-define(GL_VENDOR, 16#1F00).
+-define(GL_RENDERER, 16#1F01).
+-define(GL_VERSION, 16#1F02).
+-define(GL_EXTENSIONS, 16#1F03).
+-define(GL_S, 16#2000).
+-define(GL_T, 16#2001).
+-define(GL_R, 16#2002).
+-define(GL_Q, 16#2003).
+-define(GL_MODULATE, 16#2100).
+-define(GL_DECAL, 16#2101).
+-define(GL_TEXTURE_ENV_MODE, 16#2200).
+-define(GL_TEXTURE_ENV_COLOR, 16#2201).
+-define(GL_TEXTURE_ENV, 16#2300).
+-define(GL_EYE_LINEAR, 16#2400).
+-define(GL_OBJECT_LINEAR, 16#2401).
+-define(GL_SPHERE_MAP, 16#2402).
+-define(GL_TEXTURE_GEN_MODE, 16#2500).
+-define(GL_OBJECT_PLANE, 16#2501).
+-define(GL_EYE_PLANE, 16#2502).
+-define(GL_NEAREST, 16#2600).
+-define(GL_LINEAR, 16#2601).
+-define(GL_NEAREST_MIPMAP_NEAREST, 16#2700).
+-define(GL_LINEAR_MIPMAP_NEAREST, 16#2701).
+-define(GL_NEAREST_MIPMAP_LINEAR, 16#2702).
+-define(GL_LINEAR_MIPMAP_LINEAR, 16#2703).
+-define(GL_TEXTURE_MAG_FILTER, 16#2800).
+-define(GL_TEXTURE_MIN_FILTER, 16#2801).
+-define(GL_TEXTURE_WRAP_S, 16#2802).
+-define(GL_TEXTURE_WRAP_T, 16#2803).
+-define(GL_PROXY_TEXTURE_1D, 16#8063).
+-define(GL_PROXY_TEXTURE_2D, 16#8064).
+-define(GL_CLAMP, 16#2900).
+-define(GL_REPEAT, 16#2901).
+-define(GL_R3_G3_B2, 16#2A10).
+-define(GL_ALPHA4, 16#803B).
+-define(GL_ALPHA8, 16#803C).
+-define(GL_ALPHA12, 16#803D).
+-define(GL_ALPHA16, 16#803E).
+-define(GL_LUMINANCE4, 16#803F).
+-define(GL_LUMINANCE8, 16#8040).
+-define(GL_LUMINANCE12, 16#8041).
+-define(GL_LUMINANCE16, 16#8042).
+-define(GL_LUMINANCE4_ALPHA4, 16#8043).
+-define(GL_LUMINANCE6_ALPHA2, 16#8044).
+-define(GL_LUMINANCE8_ALPHA8, 16#8045).
+-define(GL_LUMINANCE12_ALPHA4, 16#8046).
+-define(GL_LUMINANCE12_ALPHA12, 16#8047).
+-define(GL_LUMINANCE16_ALPHA16, 16#8048).
+-define(GL_INTENSITY, 16#8049).
+-define(GL_INTENSITY4, 16#804A).
+-define(GL_INTENSITY8, 16#804B).
+-define(GL_INTENSITY12, 16#804C).
+-define(GL_INTENSITY16, 16#804D).
+-define(GL_RGB4, 16#804F).
+-define(GL_RGB5, 16#8050).
+-define(GL_RGB8, 16#8051).
+-define(GL_RGB10, 16#8052).
+-define(GL_RGB12, 16#8053).
+-define(GL_RGB16, 16#8054).
+-define(GL_RGBA2, 16#8055).
+-define(GL_RGBA4, 16#8056).
+-define(GL_RGB5_A1, 16#8057).
+-define(GL_RGBA8, 16#8058).
+-define(GL_RGB10_A2, 16#8059).
+-define(GL_RGBA12, 16#805A).
+-define(GL_RGBA16, 16#805B).
+-define(GL_V2F, 16#2A20).
+-define(GL_V3F, 16#2A21).
+-define(GL_C4UB_V2F, 16#2A22).
+-define(GL_C4UB_V3F, 16#2A23).
+-define(GL_C3F_V3F, 16#2A24).
+-define(GL_N3F_V3F, 16#2A25).
+-define(GL_C4F_N3F_V3F, 16#2A26).
+-define(GL_T2F_V3F, 16#2A27).
+-define(GL_T4F_V4F, 16#2A28).
+-define(GL_T2F_C4UB_V3F, 16#2A29).
+-define(GL_T2F_C3F_V3F, 16#2A2A).
+-define(GL_T2F_N3F_V3F, 16#2A2B).
+-define(GL_T2F_C4F_N3F_V3F, 16#2A2C).
+-define(GL_T4F_C4F_N3F_V4F, 16#2A2D).
+-define(GL_CLIP_PLANE0, 16#3000).
+-define(GL_CLIP_PLANE1, 16#3001).
+-define(GL_CLIP_PLANE2, 16#3002).
+-define(GL_CLIP_PLANE3, 16#3003).
+-define(GL_CLIP_PLANE4, 16#3004).
+-define(GL_CLIP_PLANE5, 16#3005).
+-define(GL_LIGHT0, 16#4000).
+-define(GL_LIGHT1, 16#4001).
+-define(GL_LIGHT2, 16#4002).
+-define(GL_LIGHT3, 16#4003).
+-define(GL_LIGHT4, 16#4004).
+-define(GL_LIGHT5, 16#4005).
+-define(GL_LIGHT6, 16#4006).
+-define(GL_LIGHT7, 16#4007).
+-define(GL_ABGR_EXT, 16#8000).
+-define(GL_FUNC_SUBTRACT_EXT, 16#800A).
+-define(GL_FUNC_REVERSE_SUBTRACT_EXT, 16#800B).
+-define(GL_UNSIGNED_BYTE_3_3_2_EXT, 16#8032).
+-define(GL_UNSIGNED_SHORT_4_4_4_4_EXT, 16#8033).
+-define(GL_UNSIGNED_SHORT_5_5_5_1_EXT, 16#8034).
+-define(GL_UNSIGNED_INT_8_8_8_8_EXT, 16#8035).
+-define(GL_UNSIGNED_INT_10_10_10_2_EXT, 16#8036).
+-define(GL_PACK_SKIP_IMAGES, 16#806B).
+-define(GL_PACK_IMAGE_HEIGHT, 16#806C).
+-define(GL_UNPACK_SKIP_IMAGES, 16#806D).
+-define(GL_UNPACK_IMAGE_HEIGHT, 16#806E).
+-define(GL_TEXTURE_3D, 16#806F).
+-define(GL_PROXY_TEXTURE_3D, 16#8070).
+-define(GL_TEXTURE_DEPTH, 16#8071).
+-define(GL_TEXTURE_WRAP_R, 16#8072).
+-define(GL_MAX_3D_TEXTURE_SIZE, 16#8073).
+-define(GL_BGR, 16#80E0).
+-define(GL_BGRA, 16#80E1).
+-define(GL_UNSIGNED_BYTE_3_3_2, 16#8032).
+-define(GL_UNSIGNED_BYTE_2_3_3_REV, 16#8362).
+-define(GL_UNSIGNED_SHORT_5_6_5, 16#8363).
+-define(GL_UNSIGNED_SHORT_5_6_5_REV, 16#8364).
+-define(GL_UNSIGNED_SHORT_4_4_4_4, 16#8033).
+-define(GL_UNSIGNED_SHORT_4_4_4_4_REV, 16#8365).
+-define(GL_UNSIGNED_SHORT_5_5_5_1, 16#8034).
+-define(GL_UNSIGNED_SHORT_1_5_5_5_REV, 16#8366).
+-define(GL_UNSIGNED_INT_8_8_8_8, 16#8035).
+-define(GL_UNSIGNED_INT_8_8_8_8_REV, 16#8367).
+-define(GL_UNSIGNED_INT_10_10_10_2, 16#8036).
+-define(GL_UNSIGNED_INT_2_10_10_10_REV, 16#8368).
+-define(GL_RESCALE_NORMAL, 16#803A).
+-define(GL_LIGHT_MODEL_COLOR_CONTROL, 16#81F8).
+-define(GL_SINGLE_COLOR, 16#81F9).
+-define(GL_SEPARATE_SPECULAR_COLOR, 16#81FA).
+-define(GL_CLAMP_TO_EDGE, 16#812F).
+-define(GL_TEXTURE_MIN_LOD, 16#813A).
+-define(GL_TEXTURE_MAX_LOD, 16#813B).
+-define(GL_TEXTURE_BASE_LEVEL, 16#813C).
+-define(GL_TEXTURE_MAX_LEVEL, 16#813D).
+-define(GL_MAX_ELEMENTS_VERTICES, 16#80E8).
+-define(GL_MAX_ELEMENTS_INDICES, 16#80E9).
+-define(GL_ALIASED_POINT_SIZE_RANGE, 16#846D).
+-define(GL_ALIASED_LINE_WIDTH_RANGE, 16#846E).
+-define(GL_ACTIVE_TEXTURE, 16#84E0).
+-define(GL_CLIENT_ACTIVE_TEXTURE, 16#84E1).
+-define(GL_MAX_TEXTURE_UNITS, 16#84E2).
+-define(GL_TEXTURE0, 16#84C0).
+-define(GL_TEXTURE1, 16#84C1).
+-define(GL_TEXTURE2, 16#84C2).
+-define(GL_TEXTURE3, 16#84C3).
+-define(GL_TEXTURE4, 16#84C4).
+-define(GL_TEXTURE5, 16#84C5).
+-define(GL_TEXTURE6, 16#84C6).
+-define(GL_TEXTURE7, 16#84C7).
+-define(GL_TEXTURE8, 16#84C8).
+-define(GL_TEXTURE9, 16#84C9).
+-define(GL_TEXTURE10, 16#84CA).
+-define(GL_TEXTURE11, 16#84CB).
+-define(GL_TEXTURE12, 16#84CC).
+-define(GL_TEXTURE13, 16#84CD).
+-define(GL_TEXTURE14, 16#84CE).
+-define(GL_TEXTURE15, 16#84CF).
+-define(GL_TEXTURE16, 16#84D0).
+-define(GL_TEXTURE17, 16#84D1).
+-define(GL_TEXTURE18, 16#84D2).
+-define(GL_TEXTURE19, 16#84D3).
+-define(GL_TEXTURE20, 16#84D4).
+-define(GL_TEXTURE21, 16#84D5).
+-define(GL_TEXTURE22, 16#84D6).
+-define(GL_TEXTURE23, 16#84D7).
+-define(GL_TEXTURE24, 16#84D8).
+-define(GL_TEXTURE25, 16#84D9).
+-define(GL_TEXTURE26, 16#84DA).
+-define(GL_TEXTURE27, 16#84DB).
+-define(GL_TEXTURE28, 16#84DC).
+-define(GL_TEXTURE29, 16#84DD).
+-define(GL_TEXTURE30, 16#84DE).
+-define(GL_TEXTURE31, 16#84DF).
+-define(GL_NORMAL_MAP, 16#8511).
+-define(GL_REFLECTION_MAP, 16#8512).
+-define(GL_TEXTURE_CUBE_MAP, 16#8513).
+-define(GL_TEXTURE_BINDING_CUBE_MAP, 16#8514).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 16#8515).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 16#8516).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 16#8517).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 16#8518).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Z, 16#8519).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, 16#851A).
+-define(GL_PROXY_TEXTURE_CUBE_MAP, 16#851B).
+-define(GL_MAX_CUBE_MAP_TEXTURE_SIZE, 16#851C).
+-define(GL_COMBINE, 16#8570).
+-define(GL_COMBINE_RGB, 16#8571).
+-define(GL_COMBINE_ALPHA, 16#8572).
+-define(GL_RGB_SCALE, 16#8573).
+-define(GL_ADD_SIGNED, 16#8574).
+-define(GL_INTERPOLATE, 16#8575).
+-define(GL_CONSTANT, 16#8576).
+-define(GL_PRIMARY_COLOR, 16#8577).
+-define(GL_PREVIOUS, 16#8578).
+-define(GL_SOURCE0_RGB, 16#8580).
+-define(GL_SOURCE1_RGB, 16#8581).
+-define(GL_SOURCE2_RGB, 16#8582).
+-define(GL_SOURCE0_ALPHA, 16#8588).
+-define(GL_SOURCE1_ALPHA, 16#8589).
+-define(GL_SOURCE2_ALPHA, 16#858A).
+-define(GL_OPERAND0_RGB, 16#8590).
+-define(GL_OPERAND1_RGB, 16#8591).
+-define(GL_OPERAND2_RGB, 16#8592).
+-define(GL_OPERAND0_ALPHA, 16#8598).
+-define(GL_OPERAND1_ALPHA, 16#8599).
+-define(GL_OPERAND2_ALPHA, 16#859A).
+-define(GL_SUBTRACT, 16#84E7).
+-define(GL_TRANSPOSE_MODELVIEW_MATRIX, 16#84E3).
+-define(GL_TRANSPOSE_PROJECTION_MATRIX, 16#84E4).
+-define(GL_TRANSPOSE_TEXTURE_MATRIX, 16#84E5).
+-define(GL_TRANSPOSE_COLOR_MATRIX, 16#84E6).
+-define(GL_COMPRESSED_ALPHA, 16#84E9).
+-define(GL_COMPRESSED_LUMINANCE, 16#84EA).
+-define(GL_COMPRESSED_LUMINANCE_ALPHA, 16#84EB).
+-define(GL_COMPRESSED_INTENSITY, 16#84EC).
+-define(GL_COMPRESSED_RGB, 16#84ED).
+-define(GL_COMPRESSED_RGBA, 16#84EE).
+-define(GL_TEXTURE_COMPRESSION_HINT, 16#84EF).
+-define(GL_TEXTURE_COMPRESSED_IMAGE_SIZE, 16#86A0).
+-define(GL_TEXTURE_COMPRESSED, 16#86A1).
+-define(GL_NUM_COMPRESSED_TEXTURE_FORMATS, 16#86A2).
+-define(GL_COMPRESSED_TEXTURE_FORMATS, 16#86A3).
+-define(GL_DOT3_RGB, 16#86AE).
+-define(GL_DOT3_RGBA, 16#86AF).
+-define(GL_CLAMP_TO_BORDER, 16#812D).
+-define(GL_MULTISAMPLE, 16#809D).
+-define(GL_SAMPLE_ALPHA_TO_COVERAGE, 16#809E).
+-define(GL_SAMPLE_ALPHA_TO_ONE, 16#809F).
+-define(GL_SAMPLE_COVERAGE, 16#80A0).
+-define(GL_SAMPLE_BUFFERS, 16#80A8).
+-define(GL_SAMPLES, 16#80A9).
+-define(GL_SAMPLE_COVERAGE_VALUE, 16#80AA).
+-define(GL_SAMPLE_COVERAGE_INVERT, 16#80AB).
+-define(GL_MULTISAMPLE_BIT, 16#20000000).
+-define(GL_VERTEX_ARRAY_EXT, 16#8074).
+-define(GL_NORMAL_ARRAY_EXT, 16#8075).
+-define(GL_COLOR_ARRAY_EXT, 16#8076).
+-define(GL_INDEX_ARRAY_EXT, 16#8077).
+-define(GL_TEXTURE_COORD_ARRAY_EXT, 16#8078).
+-define(GL_EDGE_FLAG_ARRAY_EXT, 16#8079).
+-define(GL_VERTEX_ARRAY_SIZE_EXT, 16#807A).
+-define(GL_VERTEX_ARRAY_TYPE_EXT, 16#807B).
+-define(GL_VERTEX_ARRAY_STRIDE_EXT, 16#807C).
+-define(GL_VERTEX_ARRAY_COUNT_EXT, 16#807D).
+-define(GL_NORMAL_ARRAY_TYPE_EXT, 16#807E).
+-define(GL_NORMAL_ARRAY_STRIDE_EXT, 16#807F).
+-define(GL_NORMAL_ARRAY_COUNT_EXT, 16#8080).
+-define(GL_COLOR_ARRAY_SIZE_EXT, 16#8081).
+-define(GL_COLOR_ARRAY_TYPE_EXT, 16#8082).
+-define(GL_COLOR_ARRAY_STRIDE_EXT, 16#8083).
+-define(GL_COLOR_ARRAY_COUNT_EXT, 16#8084).
+-define(GL_INDEX_ARRAY_TYPE_EXT, 16#8085).
+-define(GL_INDEX_ARRAY_STRIDE_EXT, 16#8086).
+-define(GL_INDEX_ARRAY_COUNT_EXT, 16#8087).
+-define(GL_TEXTURE_COORD_ARRAY_SIZE_EXT, 16#8088).
+-define(GL_TEXTURE_COORD_ARRAY_TYPE_EXT, 16#8089).
+-define(GL_TEXTURE_COORD_ARRAY_STRIDE_EXT, 16#808A).
+-define(GL_TEXTURE_COORD_ARRAY_COUNT_EXT, 16#808B).
+-define(GL_EDGE_FLAG_ARRAY_STRIDE_EXT, 16#808C).
+-define(GL_EDGE_FLAG_ARRAY_COUNT_EXT, 16#808D).
+-define(GL_VERTEX_ARRAY_POINTER_EXT, 16#808E).
+-define(GL_NORMAL_ARRAY_POINTER_EXT, 16#808F).
+-define(GL_COLOR_ARRAY_POINTER_EXT, 16#8090).
+-define(GL_INDEX_ARRAY_POINTER_EXT, 16#8091).
+-define(GL_TEXTURE_COORD_ARRAY_POINTER_EXT, 16#8092).
+-define(GL_EDGE_FLAG_ARRAY_POINTER_EXT, 16#8093).
+-define(GL_TEXTURE_MIN_LOD_SGIS, 16#813A).
+-define(GL_TEXTURE_MAX_LOD_SGIS, 16#813B).
+-define(GL_TEXTURE_BASE_LEVEL_SGIS, 16#813C).
+-define(GL_TEXTURE_MAX_LEVEL_SGIS, 16#813D).
+-define(GL_SHARED_TEXTURE_PALETTE_EXT, 16#81FB).
+-define(GL_RESCALE_NORMAL_EXT, 16#803A).
+-define(GL_TEXTURE_COMPARE_SGIX, 16#819A).
+-define(GL_TEXTURE_COMPARE_OPERATOR_SGIX, 16#819B).
+-define(GL_TEXTURE_LEQUAL_R_SGIX, 16#819C).
+-define(GL_TEXTURE_GEQUAL_R_SGIX, 16#819D).
+-define(GL_DEPTH_COMPONENT16_SGIX, 16#81A5).
+-define(GL_DEPTH_COMPONENT24_SGIX, 16#81A6).
+-define(GL_DEPTH_COMPONENT32_SGIX, 16#81A7).
+-define(GL_GENERATE_MIPMAP_SGIS, 16#8191).
+-define(GL_GENERATE_MIPMAP_HINT_SGIS, 16#8192).
+-define(GL_POINT_SIZE_MIN, 16#8126).
+-define(GL_POINT_SIZE_MAX, 16#8127).
+-define(GL_POINT_FADE_THRESHOLD_SIZE, 16#8128).
+-define(GL_POINT_DISTANCE_ATTENUATION, 16#8129).
+-define(GL_FOG_COORDINATE_SOURCE, 16#8450).
+-define(GL_FOG_COORDINATE, 16#8451).
+-define(GL_FRAGMENT_DEPTH, 16#8452).
+-define(GL_CURRENT_FOG_COORDINATE, 16#8453).
+-define(GL_FOG_COORDINATE_ARRAY_TYPE, 16#8454).
+-define(GL_FOG_COORDINATE_ARRAY_STRIDE, 16#8455).
+-define(GL_FOG_COORDINATE_ARRAY_POINTER, 16#8456).
+-define(GL_FOG_COORDINATE_ARRAY, 16#8457).
+-define(GL_COLOR_SUM, 16#8458).
+-define(GL_CURRENT_SECONDARY_COLOR, 16#8459).
+-define(GL_SECONDARY_COLOR_ARRAY_SIZE, 16#845A).
+-define(GL_SECONDARY_COLOR_ARRAY_TYPE, 16#845B).
+-define(GL_SECONDARY_COLOR_ARRAY_STRIDE, 16#845C).
+-define(GL_SECONDARY_COLOR_ARRAY_POINTER, 16#845D).
+-define(GL_SECONDARY_COLOR_ARRAY, 16#845E).
+-define(GL_INCR_WRAP, 16#8507).
+-define(GL_DECR_WRAP, 16#8508).
+-define(GL_MAX_TEXTURE_LOD_BIAS, 16#84FD).
+-define(GL_TEXTURE_FILTER_CONTROL, 16#8500).
+-define(GL_TEXTURE_LOD_BIAS, 16#8501).
+-define(GL_GENERATE_MIPMAP, 16#8191).
+-define(GL_GENERATE_MIPMAP_HINT, 16#8192).
+-define(GL_BLEND_DST_RGB, 16#80C8).
+-define(GL_BLEND_SRC_RGB, 16#80C9).
+-define(GL_BLEND_DST_ALPHA, 16#80CA).
+-define(GL_BLEND_SRC_ALPHA, 16#80CB).
+-define(GL_MIRRORED_REPEAT, 16#8370).
+-define(GL_DEPTH_COMPONENT16, 16#81A5).
+-define(GL_DEPTH_COMPONENT24, 16#81A6).
+-define(GL_DEPTH_COMPONENT32, 16#81A7).
+-define(GL_TEXTURE_DEPTH_SIZE, 16#884A).
+-define(GL_DEPTH_TEXTURE_MODE, 16#884B).
+-define(GL_TEXTURE_COMPARE_MODE, 16#884C).
+-define(GL_TEXTURE_COMPARE_FUNC, 16#884D).
+-define(GL_COMPARE_R_TO_TEXTURE, 16#884E).
+-define(GL_GLEXT_VERSION, 52).
+-define(GL_CONSTANT_COLOR, 16#8001).
+-define(GL_ONE_MINUS_CONSTANT_COLOR, 16#8002).
+-define(GL_CONSTANT_ALPHA, 16#8003).
+-define(GL_ONE_MINUS_CONSTANT_ALPHA, 16#8004).
+-define(GL_BLEND_COLOR, 16#8005).
+-define(GL_FUNC_ADD, 16#8006).
+-define(GL_MIN, 16#8007).
+-define(GL_MAX, 16#8008).
+-define(GL_BLEND_EQUATION, 16#8009).
+-define(GL_FUNC_SUBTRACT, 16#800A).
+-define(GL_FUNC_REVERSE_SUBTRACT, 16#800B).
+-define(GL_CONVOLUTION_1D, 16#8010).
+-define(GL_CONVOLUTION_2D, 16#8011).
+-define(GL_SEPARABLE_2D, 16#8012).
+-define(GL_CONVOLUTION_BORDER_MODE, 16#8013).
+-define(GL_CONVOLUTION_FILTER_SCALE, 16#8014).
+-define(GL_CONVOLUTION_FILTER_BIAS, 16#8015).
+-define(GL_REDUCE, 16#8016).
+-define(GL_CONVOLUTION_FORMAT, 16#8017).
+-define(GL_CONVOLUTION_WIDTH, 16#8018).
+-define(GL_CONVOLUTION_HEIGHT, 16#8019).
+-define(GL_MAX_CONVOLUTION_WIDTH, 16#801A).
+-define(GL_MAX_CONVOLUTION_HEIGHT, 16#801B).
+-define(GL_POST_CONVOLUTION_RED_SCALE, 16#801C).
+-define(GL_POST_CONVOLUTION_GREEN_SCALE, 16#801D).
+-define(GL_POST_CONVOLUTION_BLUE_SCALE, 16#801E).
+-define(GL_POST_CONVOLUTION_ALPHA_SCALE, 16#801F).
+-define(GL_POST_CONVOLUTION_RED_BIAS, 16#8020).
+-define(GL_POST_CONVOLUTION_GREEN_BIAS, 16#8021).
+-define(GL_POST_CONVOLUTION_BLUE_BIAS, 16#8022).
+-define(GL_POST_CONVOLUTION_ALPHA_BIAS, 16#8023).
+-define(GL_HISTOGRAM, 16#8024).
+-define(GL_PROXY_HISTOGRAM, 16#8025).
+-define(GL_HISTOGRAM_WIDTH, 16#8026).
+-define(GL_HISTOGRAM_FORMAT, 16#8027).
+-define(GL_HISTOGRAM_RED_SIZE, 16#8028).
+-define(GL_HISTOGRAM_GREEN_SIZE, 16#8029).
+-define(GL_HISTOGRAM_BLUE_SIZE, 16#802A).
+-define(GL_HISTOGRAM_ALPHA_SIZE, 16#802B).
+-define(GL_HISTOGRAM_LUMINANCE_SIZE, 16#802C).
+-define(GL_HISTOGRAM_SINK, 16#802D).
+-define(GL_MINMAX, 16#802E).
+-define(GL_MINMAX_FORMAT, 16#802F).
+-define(GL_MINMAX_SINK, 16#8030).
+-define(GL_COLOR_MATRIX, 16#80B1).
+-define(GL_COLOR_MATRIX_STACK_DEPTH, 16#80B2).
+-define(GL_MAX_COLOR_MATRIX_STACK_DEPTH, 16#80B3).
+-define(GL_POST_COLOR_MATRIX_RED_SCALE, 16#80B4).
+-define(GL_POST_COLOR_MATRIX_GREEN_SCALE, 16#80B5).
+-define(GL_POST_COLOR_MATRIX_BLUE_SCALE, 16#80B6).
+-define(GL_POST_COLOR_MATRIX_ALPHA_SCALE, 16#80B7).
+-define(GL_POST_COLOR_MATRIX_RED_BIAS, 16#80B8).
+-define(GL_POST_COLOR_MATRIX_GREEN_BIAS, 16#80B9).
+-define(GL_POST_COLOR_MATRIX_BLUE_BIAS, 16#80BA).
+-define(GL_POST_COLOR_MATRIX_ALPHA_BIAS, 16#80BB).
+-define(GL_COLOR_TABLE, 16#80D0).
+-define(GL_POST_CONVOLUTION_COLOR_TABLE, 16#80D1).
+-define(GL_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D2).
+-define(GL_PROXY_COLOR_TABLE, 16#80D3).
+-define(GL_PROXY_POST_CONVOLUTION_COLOR_TABLE, 16#80D4).
+-define(GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE, 16#80D5).
+-define(GL_COLOR_TABLE_SCALE, 16#80D6).
+-define(GL_COLOR_TABLE_BIAS, 16#80D7).
+-define(GL_COLOR_TABLE_FORMAT, 16#80D8).
+-define(GL_COLOR_TABLE_WIDTH, 16#80D9).
+-define(GL_COLOR_TABLE_RED_SIZE, 16#80DA).
+-define(GL_COLOR_TABLE_GREEN_SIZE, 16#80DB).
+-define(GL_COLOR_TABLE_BLUE_SIZE, 16#80DC).
+-define(GL_COLOR_TABLE_ALPHA_SIZE, 16#80DD).
+-define(GL_COLOR_TABLE_LUMINANCE_SIZE, 16#80DE).
+-define(GL_COLOR_TABLE_INTENSITY_SIZE, 16#80DF).
+-define(GL_CONSTANT_BORDER, 16#8151).
+-define(GL_REPLICATE_BORDER, 16#8153).
+-define(GL_CONVOLUTION_BORDER_COLOR, 16#8154).
+-define(GL_BUFFER_SIZE, 16#8764).
+-define(GL_BUFFER_USAGE, 16#8765).
+-define(GL_QUERY_COUNTER_BITS, 16#8864).
+-define(GL_CURRENT_QUERY, 16#8865).
+-define(GL_QUERY_RESULT, 16#8866).
+-define(GL_QUERY_RESULT_AVAILABLE, 16#8867).
+-define(GL_ARRAY_BUFFER, 16#8892).
+-define(GL_ELEMENT_ARRAY_BUFFER, 16#8893).
+-define(GL_ARRAY_BUFFER_BINDING, 16#8894).
+-define(GL_ELEMENT_ARRAY_BUFFER_BINDING, 16#8895).
+-define(GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, 16#889F).
+-define(GL_READ_ONLY, 16#88B8).
+-define(GL_WRITE_ONLY, 16#88B9).
+-define(GL_READ_WRITE, 16#88BA).
+-define(GL_BUFFER_ACCESS, 16#88BB).
+-define(GL_BUFFER_MAPPED, 16#88BC).
+-define(GL_BUFFER_MAP_POINTER, 16#88BD).
+-define(GL_STREAM_DRAW, 16#88E0).
+-define(GL_STREAM_READ, 16#88E1).
+-define(GL_STREAM_COPY, 16#88E2).
+-define(GL_STATIC_DRAW, 16#88E4).
+-define(GL_STATIC_READ, 16#88E5).
+-define(GL_STATIC_COPY, 16#88E6).
+-define(GL_DYNAMIC_DRAW, 16#88E8).
+-define(GL_DYNAMIC_READ, 16#88E9).
+-define(GL_DYNAMIC_COPY, 16#88EA).
+-define(GL_SAMPLES_PASSED, 16#8914).
+-define(GL_VERTEX_ARRAY_BUFFER_BINDING, 16#8896).
+-define(GL_NORMAL_ARRAY_BUFFER_BINDING, 16#8897).
+-define(GL_COLOR_ARRAY_BUFFER_BINDING, 16#8898).
+-define(GL_INDEX_ARRAY_BUFFER_BINDING, 16#8899).
+-define(GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING, 16#889A).
+-define(GL_EDGE_FLAG_ARRAY_BUFFER_BINDING, 16#889B).
+-define(GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING, 16#889C).
+-define(GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING, 16#889D).
+-define(GL_WEIGHT_ARRAY_BUFFER_BINDING, 16#889E).
+-define(GL_FOG_COORD_SRC, 16#8450).
+-define(GL_FOG_COORD, 16#8451).
+-define(GL_CURRENT_FOG_COORD, 16#8453).
+-define(GL_FOG_COORD_ARRAY_TYPE, 16#8454).
+-define(GL_FOG_COORD_ARRAY_STRIDE, 16#8455).
+-define(GL_FOG_COORD_ARRAY_POINTER, 16#8456).
+-define(GL_FOG_COORD_ARRAY, 16#8457).
+-define(GL_FOG_COORD_ARRAY_BUFFER_BINDING, 16#889D).
+-define(GL_SRC0_RGB, 16#8580).
+-define(GL_SRC1_RGB, 16#8581).
+-define(GL_SRC2_RGB, 16#8582).
+-define(GL_SRC0_ALPHA, 16#8588).
+-define(GL_SRC1_ALPHA, 16#8589).
+-define(GL_SRC2_ALPHA, 16#858A).
+-define(GL_BLEND_EQUATION_RGB, 16#8009).
+-define(GL_VERTEX_ATTRIB_ARRAY_ENABLED, 16#8622).
+-define(GL_VERTEX_ATTRIB_ARRAY_SIZE, 16#8623).
+-define(GL_VERTEX_ATTRIB_ARRAY_STRIDE, 16#8624).
+-define(GL_VERTEX_ATTRIB_ARRAY_TYPE, 16#8625).
+-define(GL_CURRENT_VERTEX_ATTRIB, 16#8626).
+-define(GL_VERTEX_PROGRAM_POINT_SIZE, 16#8642).
+-define(GL_VERTEX_ATTRIB_ARRAY_POINTER, 16#8645).
+-define(GL_STENCIL_BACK_FUNC, 16#8800).
+-define(GL_STENCIL_BACK_FAIL, 16#8801).
+-define(GL_STENCIL_BACK_PASS_DEPTH_FAIL, 16#8802).
+-define(GL_STENCIL_BACK_PASS_DEPTH_PASS, 16#8803).
+-define(GL_MAX_DRAW_BUFFERS, 16#8824).
+-define(GL_DRAW_BUFFER0, 16#8825).
+-define(GL_DRAW_BUFFER1, 16#8826).
+-define(GL_DRAW_BUFFER2, 16#8827).
+-define(GL_DRAW_BUFFER3, 16#8828).
+-define(GL_DRAW_BUFFER4, 16#8829).
+-define(GL_DRAW_BUFFER5, 16#882A).
+-define(GL_DRAW_BUFFER6, 16#882B).
+-define(GL_DRAW_BUFFER7, 16#882C).
+-define(GL_DRAW_BUFFER8, 16#882D).
+-define(GL_DRAW_BUFFER9, 16#882E).
+-define(GL_DRAW_BUFFER10, 16#882F).
+-define(GL_DRAW_BUFFER11, 16#8830).
+-define(GL_DRAW_BUFFER12, 16#8831).
+-define(GL_DRAW_BUFFER13, 16#8832).
+-define(GL_DRAW_BUFFER14, 16#8833).
+-define(GL_DRAW_BUFFER15, 16#8834).
+-define(GL_BLEND_EQUATION_ALPHA, 16#883D).
+-define(GL_MAX_VERTEX_ATTRIBS, 16#8869).
+-define(GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, 16#886A).
+-define(GL_MAX_TEXTURE_IMAGE_UNITS, 16#8872).
+-define(GL_FRAGMENT_SHADER, 16#8B30).
+-define(GL_VERTEX_SHADER, 16#8B31).
+-define(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, 16#8B49).
+-define(GL_MAX_VERTEX_UNIFORM_COMPONENTS, 16#8B4A).
+-define(GL_MAX_VARYING_FLOATS, 16#8B4B).
+-define(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, 16#8B4C).
+-define(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, 16#8B4D).
+-define(GL_SHADER_TYPE, 16#8B4F).
+-define(GL_FLOAT_VEC2, 16#8B50).
+-define(GL_FLOAT_VEC3, 16#8B51).
+-define(GL_FLOAT_VEC4, 16#8B52).
+-define(GL_INT_VEC2, 16#8B53).
+-define(GL_INT_VEC3, 16#8B54).
+-define(GL_INT_VEC4, 16#8B55).
+-define(GL_BOOL, 16#8B56).
+-define(GL_BOOL_VEC2, 16#8B57).
+-define(GL_BOOL_VEC3, 16#8B58).
+-define(GL_BOOL_VEC4, 16#8B59).
+-define(GL_FLOAT_MAT2, 16#8B5A).
+-define(GL_FLOAT_MAT3, 16#8B5B).
+-define(GL_FLOAT_MAT4, 16#8B5C).
+-define(GL_SAMPLER_1D, 16#8B5D).
+-define(GL_SAMPLER_2D, 16#8B5E).
+-define(GL_SAMPLER_3D, 16#8B5F).
+-define(GL_SAMPLER_CUBE, 16#8B60).
+-define(GL_SAMPLER_1D_SHADOW, 16#8B61).
+-define(GL_SAMPLER_2D_SHADOW, 16#8B62).
+-define(GL_DELETE_STATUS, 16#8B80).
+-define(GL_COMPILE_STATUS, 16#8B81).
+-define(GL_LINK_STATUS, 16#8B82).
+-define(GL_VALIDATE_STATUS, 16#8B83).
+-define(GL_INFO_LOG_LENGTH, 16#8B84).
+-define(GL_ATTACHED_SHADERS, 16#8B85).
+-define(GL_ACTIVE_UNIFORMS, 16#8B86).
+-define(GL_ACTIVE_UNIFORM_MAX_LENGTH, 16#8B87).
+-define(GL_SHADER_SOURCE_LENGTH, 16#8B88).
+-define(GL_ACTIVE_ATTRIBUTES, 16#8B89).
+-define(GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, 16#8B8A).
+-define(GL_FRAGMENT_SHADER_DERIVATIVE_HINT, 16#8B8B).
+-define(GL_SHADING_LANGUAGE_VERSION, 16#8B8C).
+-define(GL_CURRENT_PROGRAM, 16#8B8D).
+-define(GL_POINT_SPRITE_COORD_ORIGIN, 16#8CA0).
+-define(GL_LOWER_LEFT, 16#8CA1).
+-define(GL_UPPER_LEFT, 16#8CA2).
+-define(GL_STENCIL_BACK_REF, 16#8CA3).
+-define(GL_STENCIL_BACK_VALUE_MASK, 16#8CA4).
+-define(GL_STENCIL_BACK_WRITEMASK, 16#8CA5).
+-define(GL_VERTEX_PROGRAM_TWO_SIDE, 16#8643).
+-define(GL_POINT_SPRITE, 16#8861).
+-define(GL_COORD_REPLACE, 16#8862).
+-define(GL_MAX_TEXTURE_COORDS, 16#8871).
+-define(GL_PIXEL_PACK_BUFFER, 16#88EB).
+-define(GL_PIXEL_UNPACK_BUFFER, 16#88EC).
+-define(GL_PIXEL_PACK_BUFFER_BINDING, 16#88ED).
+-define(GL_PIXEL_UNPACK_BUFFER_BINDING, 16#88EF).
+-define(GL_FLOAT_MAT2x3, 16#8B65).
+-define(GL_FLOAT_MAT2x4, 16#8B66).
+-define(GL_FLOAT_MAT3x2, 16#8B67).
+-define(GL_FLOAT_MAT3x4, 16#8B68).
+-define(GL_FLOAT_MAT4x2, 16#8B69).
+-define(GL_FLOAT_MAT4x3, 16#8B6A).
+-define(GL_SRGB, 16#8C40).
+-define(GL_SRGB8, 16#8C41).
+-define(GL_SRGB_ALPHA, 16#8C42).
+-define(GL_SRGB8_ALPHA8, 16#8C43).
+-define(GL_COMPRESSED_SRGB, 16#8C48).
+-define(GL_COMPRESSED_SRGB_ALPHA, 16#8C49).
+-define(GL_CURRENT_RASTER_SECONDARY_COLOR, 16#845F).
+-define(GL_SLUMINANCE_ALPHA, 16#8C44).
+-define(GL_SLUMINANCE8_ALPHA8, 16#8C45).
+-define(GL_SLUMINANCE, 16#8C46).
+-define(GL_SLUMINANCE8, 16#8C47).
+-define(GL_COMPRESSED_SLUMINANCE, 16#8C4A).
+-define(GL_COMPRESSED_SLUMINANCE_ALPHA, 16#8C4B).
+-define(GL_COMPARE_REF_TO_TEXTURE, 16#884E).
+-define(GL_CLIP_DISTANCE0, 16#3000).
+-define(GL_CLIP_DISTANCE1, 16#3001).
+-define(GL_CLIP_DISTANCE2, 16#3002).
+-define(GL_CLIP_DISTANCE3, 16#3003).
+-define(GL_CLIP_DISTANCE4, 16#3004).
+-define(GL_CLIP_DISTANCE5, 16#3005).
+-define(GL_MAX_CLIP_DISTANCES, 16#D32).
+-define(GL_MAJOR_VERSION, 16#821B).
+-define(GL_MINOR_VERSION, 16#821C).
+-define(GL_NUM_EXTENSIONS, 16#821D).
+-define(GL_CONTEXT_FLAGS, 16#821E).
+-define(GL_DEPTH_BUFFER, 16#8223).
+-define(GL_STENCIL_BUFFER, 16#8224).
+-define(GL_COMPRESSED_RED, 16#8225).
+-define(GL_COMPRESSED_RG, 16#8226).
+-define(GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT, 16#1).
+-define(GL_RGBA32F, 16#8814).
+-define(GL_RGB32F, 16#8815).
+-define(GL_RGBA16F, 16#881A).
+-define(GL_RGB16F, 16#881B).
+-define(GL_VERTEX_ATTRIB_ARRAY_INTEGER, 16#88FD).
+-define(GL_MAX_ARRAY_TEXTURE_LAYERS, 16#88FF).
+-define(GL_MIN_PROGRAM_TEXEL_OFFSET, 16#8904).
+-define(GL_MAX_PROGRAM_TEXEL_OFFSET, 16#8905).
+-define(GL_CLAMP_READ_COLOR, 16#891C).
+-define(GL_FIXED_ONLY, 16#891D).
+-define(GL_MAX_VARYING_COMPONENTS, 16#8B4B).
+-define(GL_TEXTURE_1D_ARRAY, 16#8C18).
+-define(GL_PROXY_TEXTURE_1D_ARRAY, 16#8C19).
+-define(GL_TEXTURE_2D_ARRAY, 16#8C1A).
+-define(GL_PROXY_TEXTURE_2D_ARRAY, 16#8C1B).
+-define(GL_TEXTURE_BINDING_1D_ARRAY, 16#8C1C).
+-define(GL_TEXTURE_BINDING_2D_ARRAY, 16#8C1D).
+-define(GL_R11F_G11F_B10F, 16#8C3A).
+-define(GL_UNSIGNED_INT_10F_11F_11F_REV, 16#8C3B).
+-define(GL_RGB9_E5, 16#8C3D).
+-define(GL_UNSIGNED_INT_5_9_9_9_REV, 16#8C3E).
+-define(GL_TEXTURE_SHARED_SIZE, 16#8C3F).
+-define(GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH, 16#8C76).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_MODE, 16#8C7F).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS, 16#8C80).
+-define(GL_TRANSFORM_FEEDBACK_VARYINGS, 16#8C83).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_START, 16#8C84).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_SIZE, 16#8C85).
+-define(GL_PRIMITIVES_GENERATED, 16#8C87).
+-define(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN, 16#8C88).
+-define(GL_RASTERIZER_DISCARD, 16#8C89).
+-define(GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS, 16#8C8A).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, 16#8C8B).
+-define(GL_INTERLEAVED_ATTRIBS, 16#8C8C).
+-define(GL_SEPARATE_ATTRIBS, 16#8C8D).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER, 16#8C8E).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_BINDING, 16#8C8F).
+-define(GL_RGBA32UI, 16#8D70).
+-define(GL_RGB32UI, 16#8D71).
+-define(GL_RGBA16UI, 16#8D76).
+-define(GL_RGB16UI, 16#8D77).
+-define(GL_RGBA8UI, 16#8D7C).
+-define(GL_RGB8UI, 16#8D7D).
+-define(GL_RGBA32I, 16#8D82).
+-define(GL_RGB32I, 16#8D83).
+-define(GL_RGBA16I, 16#8D88).
+-define(GL_RGB16I, 16#8D89).
+-define(GL_RGBA8I, 16#8D8E).
+-define(GL_RGB8I, 16#8D8F).
+-define(GL_RED_INTEGER, 16#8D94).
+-define(GL_GREEN_INTEGER, 16#8D95).
+-define(GL_BLUE_INTEGER, 16#8D96).
+-define(GL_RGB_INTEGER, 16#8D98).
+-define(GL_RGBA_INTEGER, 16#8D99).
+-define(GL_BGR_INTEGER, 16#8D9A).
+-define(GL_BGRA_INTEGER, 16#8D9B).
+-define(GL_SAMPLER_1D_ARRAY, 16#8DC0).
+-define(GL_SAMPLER_2D_ARRAY, 16#8DC1).
+-define(GL_SAMPLER_1D_ARRAY_SHADOW, 16#8DC3).
+-define(GL_SAMPLER_2D_ARRAY_SHADOW, 16#8DC4).
+-define(GL_SAMPLER_CUBE_SHADOW, 16#8DC5).
+-define(GL_UNSIGNED_INT_VEC2, 16#8DC6).
+-define(GL_UNSIGNED_INT_VEC3, 16#8DC7).
+-define(GL_UNSIGNED_INT_VEC4, 16#8DC8).
+-define(GL_INT_SAMPLER_1D, 16#8DC9).
+-define(GL_INT_SAMPLER_2D, 16#8DCA).
+-define(GL_INT_SAMPLER_3D, 16#8DCB).
+-define(GL_INT_SAMPLER_CUBE, 16#8DCC).
+-define(GL_INT_SAMPLER_1D_ARRAY, 16#8DCE).
+-define(GL_INT_SAMPLER_2D_ARRAY, 16#8DCF).
+-define(GL_UNSIGNED_INT_SAMPLER_1D, 16#8DD1).
+-define(GL_UNSIGNED_INT_SAMPLER_2D, 16#8DD2).
+-define(GL_UNSIGNED_INT_SAMPLER_3D, 16#8DD3).
+-define(GL_UNSIGNED_INT_SAMPLER_CUBE, 16#8DD4).
+-define(GL_UNSIGNED_INT_SAMPLER_1D_ARRAY, 16#8DD6).
+-define(GL_UNSIGNED_INT_SAMPLER_2D_ARRAY, 16#8DD7).
+-define(GL_QUERY_WAIT, 16#8E13).
+-define(GL_QUERY_NO_WAIT, 16#8E14).
+-define(GL_QUERY_BY_REGION_WAIT, 16#8E15).
+-define(GL_QUERY_BY_REGION_NO_WAIT, 16#8E16).
+-define(GL_CLAMP_VERTEX_COLOR, 16#891A).
+-define(GL_CLAMP_FRAGMENT_COLOR, 16#891B).
+-define(GL_ALPHA_INTEGER, 16#8D97).
+-define(GL_SAMPLER_2D_RECT, 16#8B63).
+-define(GL_SAMPLER_2D_RECT_SHADOW, 16#8B64).
+-define(GL_SAMPLER_BUFFER, 16#8DC2).
+-define(GL_INT_SAMPLER_2D_RECT, 16#8DCD).
+-define(GL_INT_SAMPLER_BUFFER, 16#8DD0).
+-define(GL_UNSIGNED_INT_SAMPLER_2D_RECT, 16#8DD5).
+-define(GL_UNSIGNED_INT_SAMPLER_BUFFER, 16#8DD8).
+-define(GL_TEXTURE_BUFFER, 16#8C2A).
+-define(GL_MAX_TEXTURE_BUFFER_SIZE, 16#8C2B).
+-define(GL_TEXTURE_BINDING_BUFFER, 16#8C2C).
+-define(GL_TEXTURE_BUFFER_DATA_STORE_BINDING, 16#8C2D).
+-define(GL_TEXTURE_BUFFER_FORMAT, 16#8C2E).
+-define(GL_TEXTURE_RECTANGLE, 16#84F5).
+-define(GL_TEXTURE_BINDING_RECTANGLE, 16#84F6).
+-define(GL_PROXY_TEXTURE_RECTANGLE, 16#84F7).
+-define(GL_MAX_RECTANGLE_TEXTURE_SIZE, 16#84F8).
+-define(GL_RED_SNORM, 16#8F90).
+-define(GL_RG_SNORM, 16#8F91).
+-define(GL_RGB_SNORM, 16#8F92).
+-define(GL_RGBA_SNORM, 16#8F93).
+-define(GL_R8_SNORM, 16#8F94).
+-define(GL_RG8_SNORM, 16#8F95).
+-define(GL_RGB8_SNORM, 16#8F96).
+-define(GL_RGBA8_SNORM, 16#8F97).
+-define(GL_R16_SNORM, 16#8F98).
+-define(GL_RG16_SNORM, 16#8F99).
+-define(GL_RGB16_SNORM, 16#8F9A).
+-define(GL_RGBA16_SNORM, 16#8F9B).
+-define(GL_SIGNED_NORMALIZED, 16#8F9C).
+-define(GL_PRIMITIVE_RESTART, 16#8F9D).
+-define(GL_PRIMITIVE_RESTART_INDEX, 16#8F9E).
+-define(GL_TEXTURE0_ARB, 16#84C0).
+-define(GL_TEXTURE1_ARB, 16#84C1).
+-define(GL_TEXTURE2_ARB, 16#84C2).
+-define(GL_TEXTURE3_ARB, 16#84C3).
+-define(GL_TEXTURE4_ARB, 16#84C4).
+-define(GL_TEXTURE5_ARB, 16#84C5).
+-define(GL_TEXTURE6_ARB, 16#84C6).
+-define(GL_TEXTURE7_ARB, 16#84C7).
+-define(GL_TEXTURE8_ARB, 16#84C8).
+-define(GL_TEXTURE9_ARB, 16#84C9).
+-define(GL_TEXTURE10_ARB, 16#84CA).
+-define(GL_TEXTURE11_ARB, 16#84CB).
+-define(GL_TEXTURE12_ARB, 16#84CC).
+-define(GL_TEXTURE13_ARB, 16#84CD).
+-define(GL_TEXTURE14_ARB, 16#84CE).
+-define(GL_TEXTURE15_ARB, 16#84CF).
+-define(GL_TEXTURE16_ARB, 16#84D0).
+-define(GL_TEXTURE17_ARB, 16#84D1).
+-define(GL_TEXTURE18_ARB, 16#84D2).
+-define(GL_TEXTURE19_ARB, 16#84D3).
+-define(GL_TEXTURE20_ARB, 16#84D4).
+-define(GL_TEXTURE21_ARB, 16#84D5).
+-define(GL_TEXTURE22_ARB, 16#84D6).
+-define(GL_TEXTURE23_ARB, 16#84D7).
+-define(GL_TEXTURE24_ARB, 16#84D8).
+-define(GL_TEXTURE25_ARB, 16#84D9).
+-define(GL_TEXTURE26_ARB, 16#84DA).
+-define(GL_TEXTURE27_ARB, 16#84DB).
+-define(GL_TEXTURE28_ARB, 16#84DC).
+-define(GL_TEXTURE29_ARB, 16#84DD).
+-define(GL_TEXTURE30_ARB, 16#84DE).
+-define(GL_TEXTURE31_ARB, 16#84DF).
+-define(GL_ACTIVE_TEXTURE_ARB, 16#84E0).
+-define(GL_CLIENT_ACTIVE_TEXTURE_ARB, 16#84E1).
+-define(GL_MAX_TEXTURE_UNITS_ARB, 16#84E2).
+-define(GL_TRANSPOSE_MODELVIEW_MATRIX_ARB, 16#84E3).
+-define(GL_TRANSPOSE_PROJECTION_MATRIX_ARB, 16#84E4).
+-define(GL_TRANSPOSE_TEXTURE_MATRIX_ARB, 16#84E5).
+-define(GL_TRANSPOSE_COLOR_MATRIX_ARB, 16#84E6).
+-define(GL_MULTISAMPLE_ARB, 16#809D).
+-define(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB, 16#809E).
+-define(GL_SAMPLE_ALPHA_TO_ONE_ARB, 16#809F).
+-define(GL_SAMPLE_COVERAGE_ARB, 16#80A0).
+-define(GL_SAMPLE_BUFFERS_ARB, 16#80A8).
+-define(GL_SAMPLES_ARB, 16#80A9).
+-define(GL_SAMPLE_COVERAGE_VALUE_ARB, 16#80AA).
+-define(GL_SAMPLE_COVERAGE_INVERT_ARB, 16#80AB).
+-define(GL_MULTISAMPLE_BIT_ARB, 16#20000000).
+-define(GL_NORMAL_MAP_ARB, 16#8511).
+-define(GL_REFLECTION_MAP_ARB, 16#8512).
+-define(GL_TEXTURE_CUBE_MAP_ARB, 16#8513).
+-define(GL_TEXTURE_BINDING_CUBE_MAP_ARB, 16#8514).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB, 16#8515).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB, 16#8516).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB, 16#8517).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB, 16#8518).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB, 16#8519).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB, 16#851A).
+-define(GL_PROXY_TEXTURE_CUBE_MAP_ARB, 16#851B).
+-define(GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB, 16#851C).
+-define(GL_COMPRESSED_ALPHA_ARB, 16#84E9).
+-define(GL_COMPRESSED_LUMINANCE_ARB, 16#84EA).
+-define(GL_COMPRESSED_LUMINANCE_ALPHA_ARB, 16#84EB).
+-define(GL_COMPRESSED_INTENSITY_ARB, 16#84EC).
+-define(GL_COMPRESSED_RGB_ARB, 16#84ED).
+-define(GL_COMPRESSED_RGBA_ARB, 16#84EE).
+-define(GL_TEXTURE_COMPRESSION_HINT_ARB, 16#84EF).
+-define(GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB, 16#86A0).
+-define(GL_TEXTURE_COMPRESSED_ARB, 16#86A1).
+-define(GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB, 16#86A2).
+-define(GL_COMPRESSED_TEXTURE_FORMATS_ARB, 16#86A3).
+-define(GL_CLAMP_TO_BORDER_ARB, 16#812D).
+-define(GL_POINT_SIZE_MIN_ARB, 16#8126).
+-define(GL_POINT_SIZE_MAX_ARB, 16#8127).
+-define(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 16#8128).
+-define(GL_POINT_DISTANCE_ATTENUATION_ARB, 16#8129).
+-define(GL_MAX_VERTEX_UNITS_ARB, 16#86A4).
+-define(GL_ACTIVE_VERTEX_UNITS_ARB, 16#86A5).
+-define(GL_WEIGHT_SUM_UNITY_ARB, 16#86A6).
+-define(GL_VERTEX_BLEND_ARB, 16#86A7).
+-define(GL_CURRENT_WEIGHT_ARB, 16#86A8).
+-define(GL_WEIGHT_ARRAY_TYPE_ARB, 16#86A9).
+-define(GL_WEIGHT_ARRAY_STRIDE_ARB, 16#86AA).
+-define(GL_WEIGHT_ARRAY_SIZE_ARB, 16#86AB).
+-define(GL_WEIGHT_ARRAY_POINTER_ARB, 16#86AC).
+-define(GL_WEIGHT_ARRAY_ARB, 16#86AD).
+-define(GL_MODELVIEW0_ARB, 16#1700).
+-define(GL_MODELVIEW1_ARB, 16#850A).
+-define(GL_MODELVIEW2_ARB, 16#8722).
+-define(GL_MODELVIEW3_ARB, 16#8723).
+-define(GL_MODELVIEW4_ARB, 16#8724).
+-define(GL_MODELVIEW5_ARB, 16#8725).
+-define(GL_MODELVIEW6_ARB, 16#8726).
+-define(GL_MODELVIEW7_ARB, 16#8727).
+-define(GL_MODELVIEW8_ARB, 16#8728).
+-define(GL_MODELVIEW9_ARB, 16#8729).
+-define(GL_MODELVIEW10_ARB, 16#872A).
+-define(GL_MODELVIEW11_ARB, 16#872B).
+-define(GL_MODELVIEW12_ARB, 16#872C).
+-define(GL_MODELVIEW13_ARB, 16#872D).
+-define(GL_MODELVIEW14_ARB, 16#872E).
+-define(GL_MODELVIEW15_ARB, 16#872F).
+-define(GL_MODELVIEW16_ARB, 16#8730).
+-define(GL_MODELVIEW17_ARB, 16#8731).
+-define(GL_MODELVIEW18_ARB, 16#8732).
+-define(GL_MODELVIEW19_ARB, 16#8733).
+-define(GL_MODELVIEW20_ARB, 16#8734).
+-define(GL_MODELVIEW21_ARB, 16#8735).
+-define(GL_MODELVIEW22_ARB, 16#8736).
+-define(GL_MODELVIEW23_ARB, 16#8737).
+-define(GL_MODELVIEW24_ARB, 16#8738).
+-define(GL_MODELVIEW25_ARB, 16#8739).
+-define(GL_MODELVIEW26_ARB, 16#873A).
+-define(GL_MODELVIEW27_ARB, 16#873B).
+-define(GL_MODELVIEW28_ARB, 16#873C).
+-define(GL_MODELVIEW29_ARB, 16#873D).
+-define(GL_MODELVIEW30_ARB, 16#873E).
+-define(GL_MODELVIEW31_ARB, 16#873F).
+-define(GL_MATRIX_PALETTE_ARB, 16#8840).
+-define(GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB, 16#8841).
+-define(GL_MAX_PALETTE_MATRICES_ARB, 16#8842).
+-define(GL_CURRENT_PALETTE_MATRIX_ARB, 16#8843).
+-define(GL_MATRIX_INDEX_ARRAY_ARB, 16#8844).
+-define(GL_CURRENT_MATRIX_INDEX_ARB, 16#8845).
+-define(GL_MATRIX_INDEX_ARRAY_SIZE_ARB, 16#8846).
+-define(GL_MATRIX_INDEX_ARRAY_TYPE_ARB, 16#8847).
+-define(GL_MATRIX_INDEX_ARRAY_STRIDE_ARB, 16#8848).
+-define(GL_MATRIX_INDEX_ARRAY_POINTER_ARB, 16#8849).
+-define(GL_COMBINE_ARB, 16#8570).
+-define(GL_COMBINE_RGB_ARB, 16#8571).
+-define(GL_COMBINE_ALPHA_ARB, 16#8572).
+-define(GL_SOURCE0_RGB_ARB, 16#8580).
+-define(GL_SOURCE1_RGB_ARB, 16#8581).
+-define(GL_SOURCE2_RGB_ARB, 16#8582).
+-define(GL_SOURCE0_ALPHA_ARB, 16#8588).
+-define(GL_SOURCE1_ALPHA_ARB, 16#8589).
+-define(GL_SOURCE2_ALPHA_ARB, 16#858A).
+-define(GL_OPERAND0_RGB_ARB, 16#8590).
+-define(GL_OPERAND1_RGB_ARB, 16#8591).
+-define(GL_OPERAND2_RGB_ARB, 16#8592).
+-define(GL_OPERAND0_ALPHA_ARB, 16#8598).
+-define(GL_OPERAND1_ALPHA_ARB, 16#8599).
+-define(GL_OPERAND2_ALPHA_ARB, 16#859A).
+-define(GL_RGB_SCALE_ARB, 16#8573).
+-define(GL_ADD_SIGNED_ARB, 16#8574).
+-define(GL_INTERPOLATE_ARB, 16#8575).
+-define(GL_SUBTRACT_ARB, 16#84E7).
+-define(GL_CONSTANT_ARB, 16#8576).
+-define(GL_PRIMARY_COLOR_ARB, 16#8577).
+-define(GL_PREVIOUS_ARB, 16#8578).
+-define(GL_DOT3_RGB_ARB, 16#86AE).
+-define(GL_DOT3_RGBA_ARB, 16#86AF).
+-define(GL_MIRRORED_REPEAT_ARB, 16#8370).
+-define(GL_DEPTH_COMPONENT16_ARB, 16#81A5).
+-define(GL_DEPTH_COMPONENT24_ARB, 16#81A6).
+-define(GL_DEPTH_COMPONENT32_ARB, 16#81A7).
+-define(GL_TEXTURE_DEPTH_SIZE_ARB, 16#884A).
+-define(GL_DEPTH_TEXTURE_MODE_ARB, 16#884B).
+-define(GL_TEXTURE_COMPARE_MODE_ARB, 16#884C).
+-define(GL_TEXTURE_COMPARE_FUNC_ARB, 16#884D).
+-define(GL_COMPARE_R_TO_TEXTURE_ARB, 16#884E).
+-define(GL_TEXTURE_COMPARE_FAIL_VALUE_ARB, 16#80BF).
+-define(GL_COLOR_SUM_ARB, 16#8458).
+-define(GL_VERTEX_PROGRAM_ARB, 16#8620).
+-define(GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB, 16#8622).
+-define(GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB, 16#8623).
+-define(GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB, 16#8624).
+-define(GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB, 16#8625).
+-define(GL_CURRENT_VERTEX_ATTRIB_ARB, 16#8626).
+-define(GL_PROGRAM_LENGTH_ARB, 16#8627).
+-define(GL_PROGRAM_STRING_ARB, 16#8628).
+-define(GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB, 16#862E).
+-define(GL_MAX_PROGRAM_MATRICES_ARB, 16#862F).
+-define(GL_CURRENT_MATRIX_STACK_DEPTH_ARB, 16#8640).
+-define(GL_CURRENT_MATRIX_ARB, 16#8641).
+-define(GL_VERTEX_PROGRAM_POINT_SIZE_ARB, 16#8642).
+-define(GL_VERTEX_PROGRAM_TWO_SIDE_ARB, 16#8643).
+-define(GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB, 16#8645).
+-define(GL_PROGRAM_ERROR_POSITION_ARB, 16#864B).
+-define(GL_PROGRAM_BINDING_ARB, 16#8677).
+-define(GL_MAX_VERTEX_ATTRIBS_ARB, 16#8869).
+-define(GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB, 16#886A).
+-define(GL_PROGRAM_ERROR_STRING_ARB, 16#8874).
+-define(GL_PROGRAM_FORMAT_ASCII_ARB, 16#8875).
+-define(GL_PROGRAM_FORMAT_ARB, 16#8876).
+-define(GL_PROGRAM_INSTRUCTIONS_ARB, 16#88A0).
+-define(GL_MAX_PROGRAM_INSTRUCTIONS_ARB, 16#88A1).
+-define(GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB, 16#88A2).
+-define(GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, 16#88A3).
+-define(GL_PROGRAM_TEMPORARIES_ARB, 16#88A4).
+-define(GL_MAX_PROGRAM_TEMPORARIES_ARB, 16#88A5).
+-define(GL_PROGRAM_NATIVE_TEMPORARIES_ARB, 16#88A6).
+-define(GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB, 16#88A7).
+-define(GL_PROGRAM_PARAMETERS_ARB, 16#88A8).
+-define(GL_MAX_PROGRAM_PARAMETERS_ARB, 16#88A9).
+-define(GL_PROGRAM_NATIVE_PARAMETERS_ARB, 16#88AA).
+-define(GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB, 16#88AB).
+-define(GL_PROGRAM_ATTRIBS_ARB, 16#88AC).
+-define(GL_MAX_PROGRAM_ATTRIBS_ARB, 16#88AD).
+-define(GL_PROGRAM_NATIVE_ATTRIBS_ARB, 16#88AE).
+-define(GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB, 16#88AF).
+-define(GL_PROGRAM_ADDRESS_REGISTERS_ARB, 16#88B0).
+-define(GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB, 16#88B1).
+-define(GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB, 16#88B2).
+-define(GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB, 16#88B3).
+-define(GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB, 16#88B4).
+-define(GL_MAX_PROGRAM_ENV_PARAMETERS_ARB, 16#88B5).
+-define(GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB, 16#88B6).
+-define(GL_TRANSPOSE_CURRENT_MATRIX_ARB, 16#88B7).
+-define(GL_MATRIX0_ARB, 16#88C0).
+-define(GL_MATRIX1_ARB, 16#88C1).
+-define(GL_MATRIX2_ARB, 16#88C2).
+-define(GL_MATRIX3_ARB, 16#88C3).
+-define(GL_MATRIX4_ARB, 16#88C4).
+-define(GL_MATRIX5_ARB, 16#88C5).
+-define(GL_MATRIX6_ARB, 16#88C6).
+-define(GL_MATRIX7_ARB, 16#88C7).
+-define(GL_MATRIX8_ARB, 16#88C8).
+-define(GL_MATRIX9_ARB, 16#88C9).
+-define(GL_MATRIX10_ARB, 16#88CA).
+-define(GL_MATRIX11_ARB, 16#88CB).
+-define(GL_MATRIX12_ARB, 16#88CC).
+-define(GL_MATRIX13_ARB, 16#88CD).
+-define(GL_MATRIX14_ARB, 16#88CE).
+-define(GL_MATRIX15_ARB, 16#88CF).
+-define(GL_MATRIX16_ARB, 16#88D0).
+-define(GL_MATRIX17_ARB, 16#88D1).
+-define(GL_MATRIX18_ARB, 16#88D2).
+-define(GL_MATRIX19_ARB, 16#88D3).
+-define(GL_MATRIX20_ARB, 16#88D4).
+-define(GL_MATRIX21_ARB, 16#88D5).
+-define(GL_MATRIX22_ARB, 16#88D6).
+-define(GL_MATRIX23_ARB, 16#88D7).
+-define(GL_MATRIX24_ARB, 16#88D8).
+-define(GL_MATRIX25_ARB, 16#88D9).
+-define(GL_MATRIX26_ARB, 16#88DA).
+-define(GL_MATRIX27_ARB, 16#88DB).
+-define(GL_MATRIX28_ARB, 16#88DC).
+-define(GL_MATRIX29_ARB, 16#88DD).
+-define(GL_MATRIX30_ARB, 16#88DE).
+-define(GL_MATRIX31_ARB, 16#88DF).
+-define(GL_FRAGMENT_PROGRAM_ARB, 16#8804).
+-define(GL_PROGRAM_ALU_INSTRUCTIONS_ARB, 16#8805).
+-define(GL_PROGRAM_TEX_INSTRUCTIONS_ARB, 16#8806).
+-define(GL_PROGRAM_TEX_INDIRECTIONS_ARB, 16#8807).
+-define(GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, 16#8808).
+-define(GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, 16#8809).
+-define(GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB, 16#880A).
+-define(GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB, 16#880B).
+-define(GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, 16#880C).
+-define(GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB, 16#880D).
+-define(GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, 16#880E).
+-define(GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, 16#880F).
+-define(GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB, 16#8810).
+-define(GL_MAX_TEXTURE_COORDS_ARB, 16#8871).
+-define(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, 16#8872).
+-define(GL_BUFFER_SIZE_ARB, 16#8764).
+-define(GL_BUFFER_USAGE_ARB, 16#8765).
+-define(GL_ARRAY_BUFFER_ARB, 16#8892).
+-define(GL_ELEMENT_ARRAY_BUFFER_ARB, 16#8893).
+-define(GL_ARRAY_BUFFER_BINDING_ARB, 16#8894).
+-define(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, 16#8895).
+-define(GL_VERTEX_ARRAY_BUFFER_BINDING_ARB, 16#8896).
+-define(GL_NORMAL_ARRAY_BUFFER_BINDING_ARB, 16#8897).
+-define(GL_COLOR_ARRAY_BUFFER_BINDING_ARB, 16#8898).
+-define(GL_INDEX_ARRAY_BUFFER_BINDING_ARB, 16#8899).
+-define(GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB, 16#889A).
+-define(GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB, 16#889B).
+-define(GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB, 16#889C).
+-define(GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB, 16#889D).
+-define(GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB, 16#889E).
+-define(GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, 16#889F).
+-define(GL_READ_ONLY_ARB, 16#88B8).
+-define(GL_WRITE_ONLY_ARB, 16#88B9).
+-define(GL_READ_WRITE_ARB, 16#88BA).
+-define(GL_BUFFER_ACCESS_ARB, 16#88BB).
+-define(GL_BUFFER_MAPPED_ARB, 16#88BC).
+-define(GL_BUFFER_MAP_POINTER_ARB, 16#88BD).
+-define(GL_STREAM_DRAW_ARB, 16#88E0).
+-define(GL_STREAM_READ_ARB, 16#88E1).
+-define(GL_STREAM_COPY_ARB, 16#88E2).
+-define(GL_STATIC_DRAW_ARB, 16#88E4).
+-define(GL_STATIC_READ_ARB, 16#88E5).
+-define(GL_STATIC_COPY_ARB, 16#88E6).
+-define(GL_DYNAMIC_DRAW_ARB, 16#88E8).
+-define(GL_DYNAMIC_READ_ARB, 16#88E9).
+-define(GL_DYNAMIC_COPY_ARB, 16#88EA).
+-define(GL_QUERY_COUNTER_BITS_ARB, 16#8864).
+-define(GL_CURRENT_QUERY_ARB, 16#8865).
+-define(GL_QUERY_RESULT_ARB, 16#8866).
+-define(GL_QUERY_RESULT_AVAILABLE_ARB, 16#8867).
+-define(GL_SAMPLES_PASSED_ARB, 16#8914).
+-define(GL_PROGRAM_OBJECT_ARB, 16#8B40).
+-define(GL_SHADER_OBJECT_ARB, 16#8B48).
+-define(GL_OBJECT_TYPE_ARB, 16#8B4E).
+-define(GL_OBJECT_SUBTYPE_ARB, 16#8B4F).
+-define(GL_FLOAT_VEC2_ARB, 16#8B50).
+-define(GL_FLOAT_VEC3_ARB, 16#8B51).
+-define(GL_FLOAT_VEC4_ARB, 16#8B52).
+-define(GL_INT_VEC2_ARB, 16#8B53).
+-define(GL_INT_VEC3_ARB, 16#8B54).
+-define(GL_INT_VEC4_ARB, 16#8B55).
+-define(GL_BOOL_ARB, 16#8B56).
+-define(GL_BOOL_VEC2_ARB, 16#8B57).
+-define(GL_BOOL_VEC3_ARB, 16#8B58).
+-define(GL_BOOL_VEC4_ARB, 16#8B59).
+-define(GL_FLOAT_MAT2_ARB, 16#8B5A).
+-define(GL_FLOAT_MAT3_ARB, 16#8B5B).
+-define(GL_FLOAT_MAT4_ARB, 16#8B5C).
+-define(GL_SAMPLER_1D_ARB, 16#8B5D).
+-define(GL_SAMPLER_2D_ARB, 16#8B5E).
+-define(GL_SAMPLER_3D_ARB, 16#8B5F).
+-define(GL_SAMPLER_CUBE_ARB, 16#8B60).
+-define(GL_SAMPLER_1D_SHADOW_ARB, 16#8B61).
+-define(GL_SAMPLER_2D_SHADOW_ARB, 16#8B62).
+-define(GL_SAMPLER_2D_RECT_ARB, 16#8B63).
+-define(GL_SAMPLER_2D_RECT_SHADOW_ARB, 16#8B64).
+-define(GL_OBJECT_DELETE_STATUS_ARB, 16#8B80).
+-define(GL_OBJECT_COMPILE_STATUS_ARB, 16#8B81).
+-define(GL_OBJECT_LINK_STATUS_ARB, 16#8B82).
+-define(GL_OBJECT_VALIDATE_STATUS_ARB, 16#8B83).
+-define(GL_OBJECT_INFO_LOG_LENGTH_ARB, 16#8B84).
+-define(GL_OBJECT_ATTACHED_OBJECTS_ARB, 16#8B85).
+-define(GL_OBJECT_ACTIVE_UNIFORMS_ARB, 16#8B86).
+-define(GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB, 16#8B87).
+-define(GL_OBJECT_SHADER_SOURCE_LENGTH_ARB, 16#8B88).
+-define(GL_VERTEX_SHADER_ARB, 16#8B31).
+-define(GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB, 16#8B4A).
+-define(GL_MAX_VARYING_FLOATS_ARB, 16#8B4B).
+-define(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB, 16#8B4C).
+-define(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB, 16#8B4D).
+-define(GL_OBJECT_ACTIVE_ATTRIBUTES_ARB, 16#8B89).
+-define(GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB, 16#8B8A).
+-define(GL_FRAGMENT_SHADER_ARB, 16#8B30).
+-define(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB, 16#8B49).
+-define(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB, 16#8B8B).
+-define(GL_SHADING_LANGUAGE_VERSION_ARB, 16#8B8C).
+-define(GL_POINT_SPRITE_ARB, 16#8861).
+-define(GL_COORD_REPLACE_ARB, 16#8862).
+-define(GL_MAX_DRAW_BUFFERS_ARB, 16#8824).
+-define(GL_DRAW_BUFFER0_ARB, 16#8825).
+-define(GL_DRAW_BUFFER1_ARB, 16#8826).
+-define(GL_DRAW_BUFFER2_ARB, 16#8827).
+-define(GL_DRAW_BUFFER3_ARB, 16#8828).
+-define(GL_DRAW_BUFFER4_ARB, 16#8829).
+-define(GL_DRAW_BUFFER5_ARB, 16#882A).
+-define(GL_DRAW_BUFFER6_ARB, 16#882B).
+-define(GL_DRAW_BUFFER7_ARB, 16#882C).
+-define(GL_DRAW_BUFFER8_ARB, 16#882D).
+-define(GL_DRAW_BUFFER9_ARB, 16#882E).
+-define(GL_DRAW_BUFFER10_ARB, 16#882F).
+-define(GL_DRAW_BUFFER11_ARB, 16#8830).
+-define(GL_DRAW_BUFFER12_ARB, 16#8831).
+-define(GL_DRAW_BUFFER13_ARB, 16#8832).
+-define(GL_DRAW_BUFFER14_ARB, 16#8833).
+-define(GL_DRAW_BUFFER15_ARB, 16#8834).
+-define(GL_TEXTURE_RECTANGLE_ARB, 16#84F5).
+-define(GL_TEXTURE_BINDING_RECTANGLE_ARB, 16#84F6).
+-define(GL_PROXY_TEXTURE_RECTANGLE_ARB, 16#84F7).
+-define(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, 16#84F8).
+-define(GL_RGBA_FLOAT_MODE_ARB, 16#8820).
+-define(GL_CLAMP_VERTEX_COLOR_ARB, 16#891A).
+-define(GL_CLAMP_FRAGMENT_COLOR_ARB, 16#891B).
+-define(GL_CLAMP_READ_COLOR_ARB, 16#891C).
+-define(GL_FIXED_ONLY_ARB, 16#891D).
+-define(GL_HALF_FLOAT_ARB, 16#140B).
+-define(GL_TEXTURE_RED_TYPE_ARB, 16#8C10).
+-define(GL_TEXTURE_GREEN_TYPE_ARB, 16#8C11).
+-define(GL_TEXTURE_BLUE_TYPE_ARB, 16#8C12).
+-define(GL_TEXTURE_ALPHA_TYPE_ARB, 16#8C13).
+-define(GL_TEXTURE_LUMINANCE_TYPE_ARB, 16#8C14).
+-define(GL_TEXTURE_INTENSITY_TYPE_ARB, 16#8C15).
+-define(GL_TEXTURE_DEPTH_TYPE_ARB, 16#8C16).
+-define(GL_UNSIGNED_NORMALIZED_ARB, 16#8C17).
+-define(GL_RGBA32F_ARB, 16#8814).
+-define(GL_RGB32F_ARB, 16#8815).
+-define(GL_ALPHA32F_ARB, 16#8816).
+-define(GL_INTENSITY32F_ARB, 16#8817).
+-define(GL_LUMINANCE32F_ARB, 16#8818).
+-define(GL_LUMINANCE_ALPHA32F_ARB, 16#8819).
+-define(GL_RGBA16F_ARB, 16#881A).
+-define(GL_RGB16F_ARB, 16#881B).
+-define(GL_ALPHA16F_ARB, 16#881C).
+-define(GL_INTENSITY16F_ARB, 16#881D).
+-define(GL_LUMINANCE16F_ARB, 16#881E).
+-define(GL_LUMINANCE_ALPHA16F_ARB, 16#881F).
+-define(GL_PIXEL_PACK_BUFFER_ARB, 16#88EB).
+-define(GL_PIXEL_UNPACK_BUFFER_ARB, 16#88EC).
+-define(GL_PIXEL_PACK_BUFFER_BINDING_ARB, 16#88ED).
+-define(GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, 16#88EF).
+-define(GL_DEPTH_COMPONENT32F, 16#8CAC).
+-define(GL_DEPTH32F_STENCIL8, 16#8CAD).
+-define(GL_FLOAT_32_UNSIGNED_INT_24_8_REV, 16#8DAD).
+-define(GL_INVALID_FRAMEBUFFER_OPERATION, 16#506).
+-define(GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, 16#8210).
+-define(GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, 16#8211).
+-define(GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, 16#8212).
+-define(GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, 16#8213).
+-define(GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, 16#8214).
+-define(GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, 16#8215).
+-define(GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, 16#8216).
+-define(GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, 16#8217).
+-define(GL_FRAMEBUFFER_DEFAULT, 16#8218).
+-define(GL_FRAMEBUFFER_UNDEFINED, 16#8219).
+-define(GL_DEPTH_STENCIL_ATTACHMENT, 16#821A).
+-define(GL_MAX_RENDERBUFFER_SIZE, 16#84E8).
+-define(GL_DEPTH_STENCIL, 16#84F9).
+-define(GL_UNSIGNED_INT_24_8, 16#84FA).
+-define(GL_DEPTH24_STENCIL8, 16#88F0).
+-define(GL_TEXTURE_STENCIL_SIZE, 16#88F1).
+-define(GL_TEXTURE_RED_TYPE, 16#8C10).
+-define(GL_TEXTURE_GREEN_TYPE, 16#8C11).
+-define(GL_TEXTURE_BLUE_TYPE, 16#8C12).
+-define(GL_TEXTURE_ALPHA_TYPE, 16#8C13).
+-define(GL_TEXTURE_DEPTH_TYPE, 16#8C16).
+-define(GL_UNSIGNED_NORMALIZED, 16#8C17).
+-define(GL_FRAMEBUFFER_BINDING, 16#8CA6).
+-define(GL_DRAW_FRAMEBUFFER_BINDING, ?GL_FRAMEBUFFER_BINDING).
+-define(GL_RENDERBUFFER_BINDING, 16#8CA7).
+-define(GL_READ_FRAMEBUFFER, 16#8CA8).
+-define(GL_DRAW_FRAMEBUFFER, 16#8CA9).
+-define(GL_READ_FRAMEBUFFER_BINDING, 16#8CAA).
+-define(GL_RENDERBUFFER_SAMPLES, 16#8CAB).
+-define(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, 16#8CD0).
+-define(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, 16#8CD1).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, 16#8CD2).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, 16#8CD3).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER, 16#8CD4).
+-define(GL_FRAMEBUFFER_COMPLETE, 16#8CD5).
+-define(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, 16#8CD6).
+-define(GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, 16#8CD7).
+-define(GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER, 16#8CDB).
+-define(GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER, 16#8CDC).
+-define(GL_FRAMEBUFFER_UNSUPPORTED, 16#8CDD).
+-define(GL_MAX_COLOR_ATTACHMENTS, 16#8CDF).
+-define(GL_COLOR_ATTACHMENT0, 16#8CE0).
+-define(GL_COLOR_ATTACHMENT1, 16#8CE1).
+-define(GL_COLOR_ATTACHMENT2, 16#8CE2).
+-define(GL_COLOR_ATTACHMENT3, 16#8CE3).
+-define(GL_COLOR_ATTACHMENT4, 16#8CE4).
+-define(GL_COLOR_ATTACHMENT5, 16#8CE5).
+-define(GL_COLOR_ATTACHMENT6, 16#8CE6).
+-define(GL_COLOR_ATTACHMENT7, 16#8CE7).
+-define(GL_COLOR_ATTACHMENT8, 16#8CE8).
+-define(GL_COLOR_ATTACHMENT9, 16#8CE9).
+-define(GL_COLOR_ATTACHMENT10, 16#8CEA).
+-define(GL_COLOR_ATTACHMENT11, 16#8CEB).
+-define(GL_COLOR_ATTACHMENT12, 16#8CEC).
+-define(GL_COLOR_ATTACHMENT13, 16#8CED).
+-define(GL_COLOR_ATTACHMENT14, 16#8CEE).
+-define(GL_COLOR_ATTACHMENT15, 16#8CEF).
+-define(GL_DEPTH_ATTACHMENT, 16#8D00).
+-define(GL_STENCIL_ATTACHMENT, 16#8D20).
+-define(GL_FRAMEBUFFER, 16#8D40).
+-define(GL_RENDERBUFFER, 16#8D41).
+-define(GL_RENDERBUFFER_WIDTH, 16#8D42).
+-define(GL_RENDERBUFFER_HEIGHT, 16#8D43).
+-define(GL_RENDERBUFFER_INTERNAL_FORMAT, 16#8D44).
+-define(GL_STENCIL_INDEX1, 16#8D46).
+-define(GL_STENCIL_INDEX4, 16#8D47).
+-define(GL_STENCIL_INDEX8, 16#8D48).
+-define(GL_STENCIL_INDEX16, 16#8D49).
+-define(GL_RENDERBUFFER_RED_SIZE, 16#8D50).
+-define(GL_RENDERBUFFER_GREEN_SIZE, 16#8D51).
+-define(GL_RENDERBUFFER_BLUE_SIZE, 16#8D52).
+-define(GL_RENDERBUFFER_ALPHA_SIZE, 16#8D53).
+-define(GL_RENDERBUFFER_DEPTH_SIZE, 16#8D54).
+-define(GL_RENDERBUFFER_STENCIL_SIZE, 16#8D55).
+-define(GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE, 16#8D56).
+-define(GL_MAX_SAMPLES, 16#8D57).
+-define(GL_INDEX, 16#8222).
+-define(GL_TEXTURE_LUMINANCE_TYPE, 16#8C14).
+-define(GL_TEXTURE_INTENSITY_TYPE, 16#8C15).
+-define(GL_FRAMEBUFFER_SRGB, 16#8DB9).
+-define(GL_LINES_ADJACENCY_ARB, 16#A).
+-define(GL_LINE_STRIP_ADJACENCY_ARB, 16#B).
+-define(GL_TRIANGLES_ADJACENCY_ARB, 16#C).
+-define(GL_TRIANGLE_STRIP_ADJACENCY_ARB, 16#D).
+-define(GL_PROGRAM_POINT_SIZE_ARB, 16#8642).
+-define(GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB, 16#8C29).
+-define(GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB, 16#8DA7).
+-define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB, 16#8DA8).
+-define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB, 16#8DA9).
+-define(GL_GEOMETRY_SHADER_ARB, 16#8DD9).
+-define(GL_GEOMETRY_VERTICES_OUT_ARB, 16#8DDA).
+-define(GL_GEOMETRY_INPUT_TYPE_ARB, 16#8DDB).
+-define(GL_GEOMETRY_OUTPUT_TYPE_ARB, 16#8DDC).
+-define(GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB, 16#8DDD).
+-define(GL_MAX_VERTEX_VARYING_COMPONENTS_ARB, 16#8DDE).
+-define(GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB, 16#8DDF).
+-define(GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB, 16#8DE0).
+-define(GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB, 16#8DE1).
+-define(GL_HALF_FLOAT, 16#140B).
+-define(GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB, 16#88FE).
+-define(GL_MAP_READ_BIT, 16#1).
+-define(GL_MAP_WRITE_BIT, 16#2).
+-define(GL_MAP_INVALIDATE_RANGE_BIT, 16#4).
+-define(GL_MAP_INVALIDATE_BUFFER_BIT, 16#8).
+-define(GL_MAP_FLUSH_EXPLICIT_BIT, 16#10).
+-define(GL_MAP_UNSYNCHRONIZED_BIT, 16#20).
+-define(GL_TEXTURE_BUFFER_ARB, 16#8C2A).
+-define(GL_MAX_TEXTURE_BUFFER_SIZE_ARB, 16#8C2B).
+-define(GL_TEXTURE_BINDING_BUFFER_ARB, 16#8C2C).
+-define(GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB, 16#8C2D).
+-define(GL_TEXTURE_BUFFER_FORMAT_ARB, 16#8C2E).
+-define(GL_COMPRESSED_RED_RGTC1, 16#8DBB).
+-define(GL_COMPRESSED_SIGNED_RED_RGTC1, 16#8DBC).
+-define(GL_COMPRESSED_RG_RGTC2, 16#8DBD).
+-define(GL_COMPRESSED_SIGNED_RG_RGTC2, 16#8DBE).
+-define(GL_RG, 16#8227).
+-define(GL_RG_INTEGER, 16#8228).
+-define(GL_R8, 16#8229).
+-define(GL_R16, 16#822A).
+-define(GL_RG8, 16#822B).
+-define(GL_RG16, 16#822C).
+-define(GL_R16F, 16#822D).
+-define(GL_R32F, 16#822E).
+-define(GL_RG16F, 16#822F).
+-define(GL_RG32F, 16#8230).
+-define(GL_R8I, 16#8231).
+-define(GL_R8UI, 16#8232).
+-define(GL_R16I, 16#8233).
+-define(GL_R16UI, 16#8234).
+-define(GL_R32I, 16#8235).
+-define(GL_R32UI, 16#8236).
+-define(GL_RG8I, 16#8237).
+-define(GL_RG8UI, 16#8238).
+-define(GL_RG16I, 16#8239).
+-define(GL_RG16UI, 16#823A).
+-define(GL_RG32I, 16#823B).
+-define(GL_RG32UI, 16#823C).
+-define(GL_VERTEX_ARRAY_BINDING, 16#85B5).
+-define(GL_UNIFORM_BUFFER, 16#8A11).
+-define(GL_UNIFORM_BUFFER_BINDING, 16#8A28).
+-define(GL_UNIFORM_BUFFER_START, 16#8A29).
+-define(GL_UNIFORM_BUFFER_SIZE, 16#8A2A).
+-define(GL_MAX_VERTEX_UNIFORM_BLOCKS, 16#8A2B).
+-define(GL_MAX_GEOMETRY_UNIFORM_BLOCKS, 16#8A2C).
+-define(GL_MAX_FRAGMENT_UNIFORM_BLOCKS, 16#8A2D).
+-define(GL_MAX_COMBINED_UNIFORM_BLOCKS, 16#8A2E).
+-define(GL_MAX_UNIFORM_BUFFER_BINDINGS, 16#8A2F).
+-define(GL_MAX_UNIFORM_BLOCK_SIZE, 16#8A30).
+-define(GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, 16#8A31).
+-define(GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, 16#8A32).
+-define(GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, 16#8A33).
+-define(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, 16#8A34).
+-define(GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, 16#8A35).
+-define(GL_ACTIVE_UNIFORM_BLOCKS, 16#8A36).
+-define(GL_UNIFORM_TYPE, 16#8A37).
+-define(GL_UNIFORM_SIZE, 16#8A38).
+-define(GL_UNIFORM_NAME_LENGTH, 16#8A39).
+-define(GL_UNIFORM_BLOCK_INDEX, 16#8A3A).
+-define(GL_UNIFORM_OFFSET, 16#8A3B).
+-define(GL_UNIFORM_ARRAY_STRIDE, 16#8A3C).
+-define(GL_UNIFORM_MATRIX_STRIDE, 16#8A3D).
+-define(GL_UNIFORM_IS_ROW_MAJOR, 16#8A3E).
+-define(GL_UNIFORM_BLOCK_BINDING, 16#8A3F).
+-define(GL_UNIFORM_BLOCK_DATA_SIZE, 16#8A40).
+-define(GL_UNIFORM_BLOCK_NAME_LENGTH, 16#8A41).
+-define(GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, 16#8A42).
+-define(GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, 16#8A43).
+-define(GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, 16#8A44).
+-define(GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER, 16#8A45).
+-define(GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, 16#8A46).
+-define(GL_INVALID_INDEX, 16#FFFFFFFF).
+-define(GL_COPY_READ_BUFFER, 16#8F36).
+-define(GL_COPY_WRITE_BUFFER, 16#8F37).
+-define(GL_CONSTANT_COLOR_EXT, 16#8001).
+-define(GL_ONE_MINUS_CONSTANT_COLOR_EXT, 16#8002).
+-define(GL_CONSTANT_ALPHA_EXT, 16#8003).
+-define(GL_ONE_MINUS_CONSTANT_ALPHA_EXT, 16#8004).
+-define(GL_BLEND_COLOR_EXT, 16#8005).
+-define(GL_POLYGON_OFFSET_EXT, 16#8037).
+-define(GL_POLYGON_OFFSET_FACTOR_EXT, 16#8038).
+-define(GL_POLYGON_OFFSET_BIAS_EXT, 16#8039).
+-define(GL_ALPHA4_EXT, 16#803B).
+-define(GL_ALPHA8_EXT, 16#803C).
+-define(GL_ALPHA12_EXT, 16#803D).
+-define(GL_ALPHA16_EXT, 16#803E).
+-define(GL_LUMINANCE4_EXT, 16#803F).
+-define(GL_LUMINANCE8_EXT, 16#8040).
+-define(GL_LUMINANCE12_EXT, 16#8041).
+-define(GL_LUMINANCE16_EXT, 16#8042).
+-define(GL_LUMINANCE4_ALPHA4_EXT, 16#8043).
+-define(GL_LUMINANCE6_ALPHA2_EXT, 16#8044).
+-define(GL_LUMINANCE8_ALPHA8_EXT, 16#8045).
+-define(GL_LUMINANCE12_ALPHA4_EXT, 16#8046).
+-define(GL_LUMINANCE12_ALPHA12_EXT, 16#8047).
+-define(GL_LUMINANCE16_ALPHA16_EXT, 16#8048).
+-define(GL_INTENSITY_EXT, 16#8049).
+-define(GL_INTENSITY4_EXT, 16#804A).
+-define(GL_INTENSITY8_EXT, 16#804B).
+-define(GL_INTENSITY12_EXT, 16#804C).
+-define(GL_INTENSITY16_EXT, 16#804D).
+-define(GL_RGB2_EXT, 16#804E).
+-define(GL_RGB4_EXT, 16#804F).
+-define(GL_RGB5_EXT, 16#8050).
+-define(GL_RGB8_EXT, 16#8051).
+-define(GL_RGB10_EXT, 16#8052).
+-define(GL_RGB12_EXT, 16#8053).
+-define(GL_RGB16_EXT, 16#8054).
+-define(GL_RGBA2_EXT, 16#8055).
+-define(GL_RGBA4_EXT, 16#8056).
+-define(GL_RGB5_A1_EXT, 16#8057).
+-define(GL_RGBA8_EXT, 16#8058).
+-define(GL_RGB10_A2_EXT, 16#8059).
+-define(GL_RGBA12_EXT, 16#805A).
+-define(GL_RGBA16_EXT, 16#805B).
+-define(GL_TEXTURE_RED_SIZE_EXT, 16#805C).
+-define(GL_TEXTURE_GREEN_SIZE_EXT, 16#805D).
+-define(GL_TEXTURE_BLUE_SIZE_EXT, 16#805E).
+-define(GL_TEXTURE_ALPHA_SIZE_EXT, 16#805F).
+-define(GL_TEXTURE_LUMINANCE_SIZE_EXT, 16#8060).
+-define(GL_TEXTURE_INTENSITY_SIZE_EXT, 16#8061).
+-define(GL_REPLACE_EXT, 16#8062).
+-define(GL_PROXY_TEXTURE_1D_EXT, 16#8063).
+-define(GL_PROXY_TEXTURE_2D_EXT, 16#8064).
+-define(GL_TEXTURE_TOO_LARGE_EXT, 16#8065).
+-define(GL_PACK_SKIP_IMAGES_EXT, 16#806B).
+-define(GL_PACK_IMAGE_HEIGHT_EXT, 16#806C).
+-define(GL_UNPACK_SKIP_IMAGES_EXT, 16#806D).
+-define(GL_UNPACK_IMAGE_HEIGHT_EXT, 16#806E).
+-define(GL_TEXTURE_3D_EXT, 16#806F).
+-define(GL_PROXY_TEXTURE_3D_EXT, 16#8070).
+-define(GL_TEXTURE_DEPTH_EXT, 16#8071).
+-define(GL_TEXTURE_WRAP_R_EXT, 16#8072).
+-define(GL_MAX_3D_TEXTURE_SIZE_EXT, 16#8073).
+-define(GL_FILTER4_SGIS, 16#8146).
+-define(GL_TEXTURE_FILTER4_SIZE_SGIS, 16#8147).
+-define(GL_HISTOGRAM_EXT, 16#8024).
+-define(GL_PROXY_HISTOGRAM_EXT, 16#8025).
+-define(GL_HISTOGRAM_WIDTH_EXT, 16#8026).
+-define(GL_HISTOGRAM_FORMAT_EXT, 16#8027).
+-define(GL_HISTOGRAM_RED_SIZE_EXT, 16#8028).
+-define(GL_HISTOGRAM_GREEN_SIZE_EXT, 16#8029).
+-define(GL_HISTOGRAM_BLUE_SIZE_EXT, 16#802A).
+-define(GL_HISTOGRAM_ALPHA_SIZE_EXT, 16#802B).
+-define(GL_HISTOGRAM_LUMINANCE_SIZE_EXT, 16#802C).
+-define(GL_HISTOGRAM_SINK_EXT, 16#802D).
+-define(GL_MINMAX_EXT, 16#802E).
+-define(GL_MINMAX_FORMAT_EXT, 16#802F).
+-define(GL_MINMAX_SINK_EXT, 16#8030).
+-define(GL_TABLE_TOO_LARGE_EXT, 16#8031).
+-define(GL_CONVOLUTION_1D_EXT, 16#8010).
+-define(GL_CONVOLUTION_2D_EXT, 16#8011).
+-define(GL_SEPARABLE_2D_EXT, 16#8012).
+-define(GL_CONVOLUTION_BORDER_MODE_EXT, 16#8013).
+-define(GL_CONVOLUTION_FILTER_SCALE_EXT, 16#8014).
+-define(GL_CONVOLUTION_FILTER_BIAS_EXT, 16#8015).
+-define(GL_REDUCE_EXT, 16#8016).
+-define(GL_CONVOLUTION_FORMAT_EXT, 16#8017).
+-define(GL_CONVOLUTION_WIDTH_EXT, 16#8018).
+-define(GL_CONVOLUTION_HEIGHT_EXT, 16#8019).
+-define(GL_MAX_CONVOLUTION_WIDTH_EXT, 16#801A).
+-define(GL_MAX_CONVOLUTION_HEIGHT_EXT, 16#801B).
+-define(GL_POST_CONVOLUTION_RED_SCALE_EXT, 16#801C).
+-define(GL_POST_CONVOLUTION_GREEN_SCALE_EXT, 16#801D).
+-define(GL_POST_CONVOLUTION_BLUE_SCALE_EXT, 16#801E).
+-define(GL_POST_CONVOLUTION_ALPHA_SCALE_EXT, 16#801F).
+-define(GL_POST_CONVOLUTION_RED_BIAS_EXT, 16#8020).
+-define(GL_POST_CONVOLUTION_GREEN_BIAS_EXT, 16#8021).
+-define(GL_POST_CONVOLUTION_BLUE_BIAS_EXT, 16#8022).
+-define(GL_POST_CONVOLUTION_ALPHA_BIAS_EXT, 16#8023).
+-define(GL_COLOR_MATRIX_SGI, 16#80B1).
+-define(GL_COLOR_MATRIX_STACK_DEPTH_SGI, 16#80B2).
+-define(GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI, 16#80B3).
+-define(GL_POST_COLOR_MATRIX_RED_SCALE_SGI, 16#80B4).
+-define(GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI, 16#80B5).
+-define(GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI, 16#80B6).
+-define(GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI, 16#80B7).
+-define(GL_POST_COLOR_MATRIX_RED_BIAS_SGI, 16#80B8).
+-define(GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI, 16#80B9).
+-define(GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI, 16#80BA).
+-define(GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI, 16#80BB).
+-define(GL_COLOR_TABLE_SGI, 16#80D0).
+-define(GL_POST_CONVOLUTION_COLOR_TABLE_SGI, 16#80D1).
+-define(GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI, 16#80D2).
+-define(GL_PROXY_COLOR_TABLE_SGI, 16#80D3).
+-define(GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI, 16#80D4).
+-define(GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI, 16#80D5).
+-define(GL_COLOR_TABLE_SCALE_SGI, 16#80D6).
+-define(GL_COLOR_TABLE_BIAS_SGI, 16#80D7).
+-define(GL_COLOR_TABLE_FORMAT_SGI, 16#80D8).
+-define(GL_COLOR_TABLE_WIDTH_SGI, 16#80D9).
+-define(GL_COLOR_TABLE_RED_SIZE_SGI, 16#80DA).
+-define(GL_COLOR_TABLE_GREEN_SIZE_SGI, 16#80DB).
+-define(GL_COLOR_TABLE_BLUE_SIZE_SGI, 16#80DC).
+-define(GL_COLOR_TABLE_ALPHA_SIZE_SGI, 16#80DD).
+-define(GL_COLOR_TABLE_LUMINANCE_SIZE_SGI, 16#80DE).
+-define(GL_COLOR_TABLE_INTENSITY_SIZE_SGI, 16#80DF).
+-define(GL_PIXEL_TEXTURE_SGIS, 16#8353).
+-define(GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS, 16#8354).
+-define(GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS, 16#8355).
+-define(GL_PIXEL_GROUP_COLOR_SGIS, 16#8356).
+-define(GL_PIXEL_TEX_GEN_SGIX, 16#8139).
+-define(GL_PIXEL_TEX_GEN_MODE_SGIX, 16#832B).
+-define(GL_PACK_SKIP_VOLUMES_SGIS, 16#8130).
+-define(GL_PACK_IMAGE_DEPTH_SGIS, 16#8131).
+-define(GL_UNPACK_SKIP_VOLUMES_SGIS, 16#8132).
+-define(GL_UNPACK_IMAGE_DEPTH_SGIS, 16#8133).
+-define(GL_TEXTURE_4D_SGIS, 16#8134).
+-define(GL_PROXY_TEXTURE_4D_SGIS, 16#8135).
+-define(GL_TEXTURE_4DSIZE_SGIS, 16#8136).
+-define(GL_TEXTURE_WRAP_Q_SGIS, 16#8137).
+-define(GL_MAX_4D_TEXTURE_SIZE_SGIS, 16#8138).
+-define(GL_TEXTURE_4D_BINDING_SGIS, 16#814F).
+-define(GL_TEXTURE_COLOR_TABLE_SGI, 16#80BC).
+-define(GL_PROXY_TEXTURE_COLOR_TABLE_SGI, 16#80BD).
+-define(GL_CMYK_EXT, 16#800C).
+-define(GL_CMYKA_EXT, 16#800D).
+-define(GL_PACK_CMYK_HINT_EXT, 16#800E).
+-define(GL_UNPACK_CMYK_HINT_EXT, 16#800F).
+-define(GL_TEXTURE_PRIORITY_EXT, 16#8066).
+-define(GL_TEXTURE_RESIDENT_EXT, 16#8067).
+-define(GL_TEXTURE_1D_BINDING_EXT, 16#8068).
+-define(GL_TEXTURE_2D_BINDING_EXT, 16#8069).
+-define(GL_TEXTURE_3D_BINDING_EXT, 16#806A).
+-define(GL_DETAIL_TEXTURE_2D_SGIS, 16#8095).
+-define(GL_DETAIL_TEXTURE_2D_BINDING_SGIS, 16#8096).
+-define(GL_LINEAR_DETAIL_SGIS, 16#8097).
+-define(GL_LINEAR_DETAIL_ALPHA_SGIS, 16#8098).
+-define(GL_LINEAR_DETAIL_COLOR_SGIS, 16#8099).
+-define(GL_DETAIL_TEXTURE_LEVEL_SGIS, 16#809A).
+-define(GL_DETAIL_TEXTURE_MODE_SGIS, 16#809B).
+-define(GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS, 16#809C).
+-define(GL_LINEAR_SHARPEN_SGIS, 16#80AD).
+-define(GL_LINEAR_SHARPEN_ALPHA_SGIS, 16#80AE).
+-define(GL_LINEAR_SHARPEN_COLOR_SGIS, 16#80AF).
+-define(GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS, 16#80B0).
+-define(GL_MULTISAMPLE_SGIS, 16#809D).
+-define(GL_SAMPLE_ALPHA_TO_MASK_SGIS, 16#809E).
+-define(GL_SAMPLE_ALPHA_TO_ONE_SGIS, 16#809F).
+-define(GL_SAMPLE_MASK_SGIS, 16#80A0).
+-define(GL_1PASS_SGIS, 16#80A1).
+-define(GL_2PASS_0_SGIS, 16#80A2).
+-define(GL_2PASS_1_SGIS, 16#80A3).
+-define(GL_4PASS_0_SGIS, 16#80A4).
+-define(GL_4PASS_1_SGIS, 16#80A5).
+-define(GL_4PASS_2_SGIS, 16#80A6).
+-define(GL_4PASS_3_SGIS, 16#80A7).
+-define(GL_SAMPLE_BUFFERS_SGIS, 16#80A8).
+-define(GL_SAMPLES_SGIS, 16#80A9).
+-define(GL_SAMPLE_MASK_VALUE_SGIS, 16#80AA).
+-define(GL_SAMPLE_MASK_INVERT_SGIS, 16#80AB).
+-define(GL_SAMPLE_PATTERN_SGIS, 16#80AC).
+-define(GL_LINEAR_CLIPMAP_LINEAR_SGIX, 16#8170).
+-define(GL_TEXTURE_CLIPMAP_CENTER_SGIX, 16#8171).
+-define(GL_TEXTURE_CLIPMAP_FRAME_SGIX, 16#8172).
+-define(GL_TEXTURE_CLIPMAP_OFFSET_SGIX, 16#8173).
+-define(GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX, 16#8174).
+-define(GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX, 16#8175).
+-define(GL_TEXTURE_CLIPMAP_DEPTH_SGIX, 16#8176).
+-define(GL_MAX_CLIPMAP_DEPTH_SGIX, 16#8177).
+-define(GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX, 16#8178).
+-define(GL_NEAREST_CLIPMAP_NEAREST_SGIX, 16#844D).
+-define(GL_NEAREST_CLIPMAP_LINEAR_SGIX, 16#844E).
+-define(GL_LINEAR_CLIPMAP_NEAREST_SGIX, 16#844F).
+-define(GL_CLAMP_TO_EDGE_SGIS, 16#812F).
+-define(GL_CLAMP_TO_BORDER_SGIS, 16#812D).
+-define(GL_FUNC_ADD_EXT, 16#8006).
+-define(GL_MIN_EXT, 16#8007).
+-define(GL_MAX_EXT, 16#8008).
+-define(GL_BLEND_EQUATION_EXT, 16#8009).
+-define(GL_INTERLACE_SGIX, 16#8094).
+-define(GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX, 16#813E).
+-define(GL_PIXEL_TILE_CACHE_INCREMENT_SGIX, 16#813F).
+-define(GL_PIXEL_TILE_WIDTH_SGIX, 16#8140).
+-define(GL_PIXEL_TILE_HEIGHT_SGIX, 16#8141).
+-define(GL_PIXEL_TILE_GRID_WIDTH_SGIX, 16#8142).
+-define(GL_PIXEL_TILE_GRID_HEIGHT_SGIX, 16#8143).
+-define(GL_PIXEL_TILE_GRID_DEPTH_SGIX, 16#8144).
+-define(GL_PIXEL_TILE_CACHE_SIZE_SGIX, 16#8145).
+-define(GL_DUAL_ALPHA4_SGIS, 16#8110).
+-define(GL_DUAL_ALPHA8_SGIS, 16#8111).
+-define(GL_DUAL_ALPHA12_SGIS, 16#8112).
+-define(GL_DUAL_ALPHA16_SGIS, 16#8113).
+-define(GL_DUAL_LUMINANCE4_SGIS, 16#8114).
+-define(GL_DUAL_LUMINANCE8_SGIS, 16#8115).
+-define(GL_DUAL_LUMINANCE12_SGIS, 16#8116).
+-define(GL_DUAL_LUMINANCE16_SGIS, 16#8117).
+-define(GL_DUAL_INTENSITY4_SGIS, 16#8118).
+-define(GL_DUAL_INTENSITY8_SGIS, 16#8119).
+-define(GL_DUAL_INTENSITY12_SGIS, 16#811A).
+-define(GL_DUAL_INTENSITY16_SGIS, 16#811B).
+-define(GL_DUAL_LUMINANCE_ALPHA4_SGIS, 16#811C).
+-define(GL_DUAL_LUMINANCE_ALPHA8_SGIS, 16#811D).
+-define(GL_QUAD_ALPHA4_SGIS, 16#811E).
+-define(GL_QUAD_ALPHA8_SGIS, 16#811F).
+-define(GL_QUAD_LUMINANCE4_SGIS, 16#8120).
+-define(GL_QUAD_LUMINANCE8_SGIS, 16#8121).
+-define(GL_QUAD_INTENSITY4_SGIS, 16#8122).
+-define(GL_QUAD_INTENSITY8_SGIS, 16#8123).
+-define(GL_DUAL_TEXTURE_SELECT_SGIS, 16#8124).
+-define(GL_QUAD_TEXTURE_SELECT_SGIS, 16#8125).
+-define(GL_SPRITE_SGIX, 16#8148).
+-define(GL_SPRITE_MODE_SGIX, 16#8149).
+-define(GL_SPRITE_AXIS_SGIX, 16#814A).
+-define(GL_SPRITE_TRANSLATION_SGIX, 16#814B).
+-define(GL_SPRITE_AXIAL_SGIX, 16#814C).
+-define(GL_SPRITE_OBJECT_ALIGNED_SGIX, 16#814D).
+-define(GL_SPRITE_EYE_ALIGNED_SGIX, 16#814E).
+-define(GL_TEXTURE_MULTI_BUFFER_HINT_SGIX, 16#812E).
+-define(GL_POINT_SIZE_MIN_EXT, 16#8126).
+-define(GL_POINT_SIZE_MAX_EXT, 16#8127).
+-define(GL_POINT_FADE_THRESHOLD_SIZE_EXT, 16#8128).
+-define(GL_DISTANCE_ATTENUATION_EXT, 16#8129).
+-define(GL_POINT_SIZE_MIN_SGIS, 16#8126).
+-define(GL_POINT_SIZE_MAX_SGIS, 16#8127).
+-define(GL_POINT_FADE_THRESHOLD_SIZE_SGIS, 16#8128).
+-define(GL_DISTANCE_ATTENUATION_SGIS, 16#8129).
+-define(GL_INSTRUMENT_BUFFER_POINTER_SGIX, 16#8180).
+-define(GL_INSTRUMENT_MEASUREMENTS_SGIX, 16#8181).
+-define(GL_POST_TEXTURE_FILTER_BIAS_SGIX, 16#8179).
+-define(GL_POST_TEXTURE_FILTER_SCALE_SGIX, 16#817A).
+-define(GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX, 16#817B).
+-define(GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX, 16#817C).
+-define(GL_FRAMEZOOM_SGIX, 16#818B).
+-define(GL_FRAMEZOOM_FACTOR_SGIX, 16#818C).
+-define(GL_MAX_FRAMEZOOM_FACTOR_SGIX, 16#818D).
+-define(GL_TEXTURE_DEFORMATION_BIT_SGIX, 16#1).
+-define(GL_GEOMETRY_DEFORMATION_BIT_SGIX, 16#2).
+-define(GL_GEOMETRY_DEFORMATION_SGIX, 16#8194).
+-define(GL_TEXTURE_DEFORMATION_SGIX, 16#8195).
+-define(GL_DEFORMATIONS_MASK_SGIX, 16#8196).
+-define(GL_MAX_DEFORMATION_ORDER_SGIX, 16#8197).
+-define(GL_REFERENCE_PLANE_SGIX, 16#817D).
+-define(GL_REFERENCE_PLANE_EQUATION_SGIX, 16#817E).
+-define(GL_FOG_FUNC_SGIS, 16#812A).
+-define(GL_FOG_FUNC_POINTS_SGIS, 16#812B).
+-define(GL_MAX_FOG_FUNC_POINTS_SGIS, 16#812C).
+-define(GL_FOG_OFFSET_SGIX, 16#8198).
+-define(GL_FOG_OFFSET_VALUE_SGIX, 16#8199).
+-define(GL_IMAGE_SCALE_X_HP, 16#8155).
+-define(GL_IMAGE_SCALE_Y_HP, 16#8156).
+-define(GL_IMAGE_TRANSLATE_X_HP, 16#8157).
+-define(GL_IMAGE_TRANSLATE_Y_HP, 16#8158).
+-define(GL_IMAGE_ROTATE_ANGLE_HP, 16#8159).
+-define(GL_IMAGE_ROTATE_ORIGIN_X_HP, 16#815A).
+-define(GL_IMAGE_ROTATE_ORIGIN_Y_HP, 16#815B).
+-define(GL_IMAGE_MAG_FILTER_HP, 16#815C).
+-define(GL_IMAGE_MIN_FILTER_HP, 16#815D).
+-define(GL_IMAGE_CUBIC_WEIGHT_HP, 16#815E).
+-define(GL_CUBIC_HP, 16#815F).
+-define(GL_AVERAGE_HP, 16#8160).
+-define(GL_IMAGE_TRANSFORM_2D_HP, 16#8161).
+-define(GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP, 16#8162).
+-define(GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP, 16#8163).
+-define(GL_IGNORE_BORDER_HP, 16#8150).
+-define(GL_CONSTANT_BORDER_HP, 16#8151).
+-define(GL_REPLICATE_BORDER_HP, 16#8153).
+-define(GL_CONVOLUTION_BORDER_COLOR_HP, 16#8154).
+-define(GL_TEXTURE_ENV_BIAS_SGIX, 16#80BE).
+-define(GL_VERTEX_DATA_HINT_PGI, 16#1A22A).
+-define(GL_VERTEX_CONSISTENT_HINT_PGI, 16#1A22B).
+-define(GL_MATERIAL_SIDE_HINT_PGI, 16#1A22C).
+-define(GL_MAX_VERTEX_HINT_PGI, 16#1A22D).
+-define(GL_COLOR3_BIT_PGI, 16#10000).
+-define(GL_COLOR4_BIT_PGI, 16#20000).
+-define(GL_EDGEFLAG_BIT_PGI, 16#40000).
+-define(GL_INDEX_BIT_PGI, 16#80000).
+-define(GL_MAT_AMBIENT_BIT_PGI, 16#100000).
+-define(GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI, 16#200000).
+-define(GL_MAT_DIFFUSE_BIT_PGI, 16#400000).
+-define(GL_MAT_EMISSION_BIT_PGI, 16#800000).
+-define(GL_MAT_COLOR_INDEXES_BIT_PGI, 16#1000000).
+-define(GL_MAT_SHININESS_BIT_PGI, 16#2000000).
+-define(GL_MAT_SPECULAR_BIT_PGI, 16#4000000).
+-define(GL_NORMAL_BIT_PGI, 16#8000000).
+-define(GL_TEXCOORD1_BIT_PGI, 16#10000000).
+-define(GL_TEXCOORD2_BIT_PGI, 16#20000000).
+-define(GL_TEXCOORD3_BIT_PGI, 16#40000000).
+-define(GL_TEXCOORD4_BIT_PGI, 16#80000000).
+-define(GL_VERTEX23_BIT_PGI, 16#4).
+-define(GL_VERTEX4_BIT_PGI, 16#8).
+-define(GL_PREFER_DOUBLEBUFFER_HINT_PGI, 16#1A1F8).
+-define(GL_CONSERVE_MEMORY_HINT_PGI, 16#1A1FD).
+-define(GL_RECLAIM_MEMORY_HINT_PGI, 16#1A1FE).
+-define(GL_NATIVE_GRAPHICS_HANDLE_PGI, 16#1A202).
+-define(GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI, 16#1A203).
+-define(GL_NATIVE_GRAPHICS_END_HINT_PGI, 16#1A204).
+-define(GL_ALWAYS_FAST_HINT_PGI, 16#1A20C).
+-define(GL_ALWAYS_SOFT_HINT_PGI, 16#1A20D).
+-define(GL_ALLOW_DRAW_OBJ_HINT_PGI, 16#1A20E).
+-define(GL_ALLOW_DRAW_WIN_HINT_PGI, 16#1A20F).
+-define(GL_ALLOW_DRAW_FRG_HINT_PGI, 16#1A210).
+-define(GL_ALLOW_DRAW_MEM_HINT_PGI, 16#1A211).
+-define(GL_STRICT_DEPTHFUNC_HINT_PGI, 16#1A216).
+-define(GL_STRICT_LIGHTING_HINT_PGI, 16#1A217).
+-define(GL_STRICT_SCISSOR_HINT_PGI, 16#1A218).
+-define(GL_FULL_STIPPLE_HINT_PGI, 16#1A219).
+-define(GL_CLIP_NEAR_HINT_PGI, 16#1A220).
+-define(GL_CLIP_FAR_HINT_PGI, 16#1A221).
+-define(GL_WIDE_LINE_HINT_PGI, 16#1A222).
+-define(GL_BACK_NORMALS_HINT_PGI, 16#1A223).
+-define(GL_COLOR_INDEX1_EXT, 16#80E2).
+-define(GL_COLOR_INDEX2_EXT, 16#80E3).
+-define(GL_COLOR_INDEX4_EXT, 16#80E4).
+-define(GL_COLOR_INDEX8_EXT, 16#80E5).
+-define(GL_COLOR_INDEX12_EXT, 16#80E6).
+-define(GL_COLOR_INDEX16_EXT, 16#80E7).
+-define(GL_TEXTURE_INDEX_SIZE_EXT, 16#80ED).
+-define(GL_CLIP_VOLUME_CLIPPING_HINT_EXT, 16#80F0).
+-define(GL_LIST_PRIORITY_SGIX, 16#8182).
+-define(GL_IR_INSTRUMENT1_SGIX, 16#817F).
+-define(GL_CALLIGRAPHIC_FRAGMENT_SGIX, 16#8183).
+-define(GL_TEXTURE_LOD_BIAS_S_SGIX, 16#818E).
+-define(GL_TEXTURE_LOD_BIAS_T_SGIX, 16#818F).
+-define(GL_TEXTURE_LOD_BIAS_R_SGIX, 16#8190).
+-define(GL_SHADOW_AMBIENT_SGIX, 16#80BF).
+-define(GL_INDEX_MATERIAL_EXT, 16#81B8).
+-define(GL_INDEX_MATERIAL_PARAMETER_EXT, 16#81B9).
+-define(GL_INDEX_MATERIAL_FACE_EXT, 16#81BA).
+-define(GL_INDEX_TEST_EXT, 16#81B5).
+-define(GL_INDEX_TEST_FUNC_EXT, 16#81B6).
+-define(GL_INDEX_TEST_REF_EXT, 16#81B7).
+-define(GL_IUI_V2F_EXT, 16#81AD).
+-define(GL_IUI_V3F_EXT, 16#81AE).
+-define(GL_IUI_N3F_V2F_EXT, 16#81AF).
+-define(GL_IUI_N3F_V3F_EXT, 16#81B0).
+-define(GL_T2F_IUI_V2F_EXT, 16#81B1).
+-define(GL_T2F_IUI_V3F_EXT, 16#81B2).
+-define(GL_T2F_IUI_N3F_V2F_EXT, 16#81B3).
+-define(GL_T2F_IUI_N3F_V3F_EXT, 16#81B4).
+-define(GL_ARRAY_ELEMENT_LOCK_FIRST_EXT, 16#81A8).
+-define(GL_ARRAY_ELEMENT_LOCK_COUNT_EXT, 16#81A9).
+-define(GL_CULL_VERTEX_EXT, 16#81AA).
+-define(GL_CULL_VERTEX_EYE_POSITION_EXT, 16#81AB).
+-define(GL_CULL_VERTEX_OBJECT_POSITION_EXT, 16#81AC).
+-define(GL_YCRCB_422_SGIX, 16#81BB).
+-define(GL_YCRCB_444_SGIX, 16#81BC).
+-define(GL_FRAGMENT_LIGHTING_SGIX, 16#8400).
+-define(GL_FRAGMENT_COLOR_MATERIAL_SGIX, 16#8401).
+-define(GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX, 16#8402).
+-define(GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX, 16#8403).
+-define(GL_MAX_FRAGMENT_LIGHTS_SGIX, 16#8404).
+-define(GL_MAX_ACTIVE_LIGHTS_SGIX, 16#8405).
+-define(GL_CURRENT_RASTER_NORMAL_SGIX, 16#8406).
+-define(GL_LIGHT_ENV_MODE_SGIX, 16#8407).
+-define(GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX, 16#8408).
+-define(GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX, 16#8409).
+-define(GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX, 16#840A).
+-define(GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX, 16#840B).
+-define(GL_FRAGMENT_LIGHT0_SGIX, 16#840C).
+-define(GL_FRAGMENT_LIGHT1_SGIX, 16#840D).
+-define(GL_FRAGMENT_LIGHT2_SGIX, 16#840E).
+-define(GL_FRAGMENT_LIGHT3_SGIX, 16#840F).
+-define(GL_FRAGMENT_LIGHT4_SGIX, 16#8410).
+-define(GL_FRAGMENT_LIGHT5_SGIX, 16#8411).
+-define(GL_FRAGMENT_LIGHT6_SGIX, 16#8412).
+-define(GL_FRAGMENT_LIGHT7_SGIX, 16#8413).
+-define(GL_RASTER_POSITION_UNCLIPPED_IBM, 16#19262).
+-define(GL_TEXTURE_LIGHTING_MODE_HP, 16#8167).
+-define(GL_TEXTURE_POST_SPECULAR_HP, 16#8168).
+-define(GL_TEXTURE_PRE_SPECULAR_HP, 16#8169).
+-define(GL_MAX_ELEMENTS_VERTICES_EXT, 16#80E8).
+-define(GL_MAX_ELEMENTS_INDICES_EXT, 16#80E9).
+-define(GL_PHONG_WIN, 16#80EA).
+-define(GL_PHONG_HINT_WIN, 16#80EB).
+-define(GL_FOG_SPECULAR_TEXTURE_WIN, 16#80EC).
+-define(GL_FRAGMENT_MATERIAL_EXT, 16#8349).
+-define(GL_FRAGMENT_NORMAL_EXT, 16#834A).
+-define(GL_FRAGMENT_COLOR_EXT, 16#834C).
+-define(GL_ATTENUATION_EXT, 16#834D).
+-define(GL_SHADOW_ATTENUATION_EXT, 16#834E).
+-define(GL_TEXTURE_APPLICATION_MODE_EXT, 16#834F).
+-define(GL_TEXTURE_LIGHT_EXT, 16#8350).
+-define(GL_TEXTURE_MATERIAL_FACE_EXT, 16#8351).
+-define(GL_TEXTURE_MATERIAL_PARAMETER_EXT, 16#8352).
+-define(GL_ALPHA_MIN_SGIX, 16#8320).
+-define(GL_ALPHA_MAX_SGIX, 16#8321).
+-define(GL_PIXEL_TEX_GEN_Q_CEILING_SGIX, 16#8184).
+-define(GL_PIXEL_TEX_GEN_Q_ROUND_SGIX, 16#8185).
+-define(GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX, 16#8186).
+-define(GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX, 16#8187).
+-define(GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX, 16#8188).
+-define(GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX, 16#8189).
+-define(GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX, 16#818A).
+-define(GL_BGR_EXT, 16#80E0).
+-define(GL_BGRA_EXT, 16#80E1).
+-define(GL_ASYNC_MARKER_SGIX, 16#8329).
+-define(GL_ASYNC_TEX_IMAGE_SGIX, 16#835C).
+-define(GL_ASYNC_DRAW_PIXELS_SGIX, 16#835D).
+-define(GL_ASYNC_READ_PIXELS_SGIX, 16#835E).
+-define(GL_MAX_ASYNC_TEX_IMAGE_SGIX, 16#835F).
+-define(GL_MAX_ASYNC_DRAW_PIXELS_SGIX, 16#8360).
+-define(GL_MAX_ASYNC_READ_PIXELS_SGIX, 16#8361).
+-define(GL_ASYNC_HISTOGRAM_SGIX, 16#832C).
+-define(GL_MAX_ASYNC_HISTOGRAM_SGIX, 16#832D).
+-define(GL_PARALLEL_ARRAYS_INTEL, 16#83F4).
+-define(GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL, 16#83F5).
+-define(GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL, 16#83F6).
+-define(GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL, 16#83F7).
+-define(GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL, 16#83F8).
+-define(GL_OCCLUSION_TEST_HP, 16#8165).
+-define(GL_OCCLUSION_TEST_RESULT_HP, 16#8166).
+-define(GL_PIXEL_TRANSFORM_2D_EXT, 16#8330).
+-define(GL_PIXEL_MAG_FILTER_EXT, 16#8331).
+-define(GL_PIXEL_MIN_FILTER_EXT, 16#8332).
+-define(GL_PIXEL_CUBIC_WEIGHT_EXT, 16#8333).
+-define(GL_CUBIC_EXT, 16#8334).
+-define(GL_AVERAGE_EXT, 16#8335).
+-define(GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT, 16#8336).
+-define(GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT, 16#8337).
+-define(GL_PIXEL_TRANSFORM_2D_MATRIX_EXT, 16#8338).
+-define(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, 16#81F8).
+-define(GL_SINGLE_COLOR_EXT, 16#81F9).
+-define(GL_SEPARATE_SPECULAR_COLOR_EXT, 16#81FA).
+-define(GL_COLOR_SUM_EXT, 16#8458).
+-define(GL_CURRENT_SECONDARY_COLOR_EXT, 16#8459).
+-define(GL_SECONDARY_COLOR_ARRAY_SIZE_EXT, 16#845A).
+-define(GL_SECONDARY_COLOR_ARRAY_TYPE_EXT, 16#845B).
+-define(GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT, 16#845C).
+-define(GL_SECONDARY_COLOR_ARRAY_POINTER_EXT, 16#845D).
+-define(GL_SECONDARY_COLOR_ARRAY_EXT, 16#845E).
+-define(GL_PERTURB_EXT, 16#85AE).
+-define(GL_TEXTURE_NORMAL_EXT, 16#85AF).
+-define(GL_FOG_COORDINATE_SOURCE_EXT, 16#8450).
+-define(GL_FOG_COORDINATE_EXT, 16#8451).
+-define(GL_FRAGMENT_DEPTH_EXT, 16#8452).
+-define(GL_CURRENT_FOG_COORDINATE_EXT, 16#8453).
+-define(GL_FOG_COORDINATE_ARRAY_TYPE_EXT, 16#8454).
+-define(GL_FOG_COORDINATE_ARRAY_STRIDE_EXT, 16#8455).
+-define(GL_FOG_COORDINATE_ARRAY_POINTER_EXT, 16#8456).
+-define(GL_FOG_COORDINATE_ARRAY_EXT, 16#8457).
+-define(GL_SCREEN_COORDINATES_REND, 16#8490).
+-define(GL_INVERTED_SCREEN_W_REND, 16#8491).
+-define(GL_TANGENT_ARRAY_EXT, 16#8439).
+-define(GL_BINORMAL_ARRAY_EXT, 16#843A).
+-define(GL_CURRENT_TANGENT_EXT, 16#843B).
+-define(GL_CURRENT_BINORMAL_EXT, 16#843C).
+-define(GL_TANGENT_ARRAY_TYPE_EXT, 16#843E).
+-define(GL_TANGENT_ARRAY_STRIDE_EXT, 16#843F).
+-define(GL_BINORMAL_ARRAY_TYPE_EXT, 16#8440).
+-define(GL_BINORMAL_ARRAY_STRIDE_EXT, 16#8441).
+-define(GL_TANGENT_ARRAY_POINTER_EXT, 16#8442).
+-define(GL_BINORMAL_ARRAY_POINTER_EXT, 16#8443).
+-define(GL_MAP1_TANGENT_EXT, 16#8444).
+-define(GL_MAP2_TANGENT_EXT, 16#8445).
+-define(GL_MAP1_BINORMAL_EXT, 16#8446).
+-define(GL_MAP2_BINORMAL_EXT, 16#8447).
+-define(GL_COMBINE_EXT, 16#8570).
+-define(GL_COMBINE_RGB_EXT, 16#8571).
+-define(GL_COMBINE_ALPHA_EXT, 16#8572).
+-define(GL_RGB_SCALE_EXT, 16#8573).
+-define(GL_ADD_SIGNED_EXT, 16#8574).
+-define(GL_INTERPOLATE_EXT, 16#8575).
+-define(GL_CONSTANT_EXT, 16#8576).
+-define(GL_PRIMARY_COLOR_EXT, 16#8577).
+-define(GL_PREVIOUS_EXT, 16#8578).
+-define(GL_SOURCE0_RGB_EXT, 16#8580).
+-define(GL_SOURCE1_RGB_EXT, 16#8581).
+-define(GL_SOURCE2_RGB_EXT, 16#8582).
+-define(GL_SOURCE0_ALPHA_EXT, 16#8588).
+-define(GL_SOURCE1_ALPHA_EXT, 16#8589).
+-define(GL_SOURCE2_ALPHA_EXT, 16#858A).
+-define(GL_OPERAND0_RGB_EXT, 16#8590).
+-define(GL_OPERAND1_RGB_EXT, 16#8591).
+-define(GL_OPERAND2_RGB_EXT, 16#8592).
+-define(GL_OPERAND0_ALPHA_EXT, 16#8598).
+-define(GL_OPERAND1_ALPHA_EXT, 16#8599).
+-define(GL_OPERAND2_ALPHA_EXT, 16#859A).
+-define(GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE, 16#85B0).
+-define(GL_TRANSFORM_HINT_APPLE, 16#85B1).
+-define(GL_FOG_SCALE_SGIX, 16#81FC).
+-define(GL_FOG_SCALE_VALUE_SGIX, 16#81FD).
+-define(GL_UNPACK_CONSTANT_DATA_SUNX, 16#81D5).
+-define(GL_TEXTURE_CONSTANT_DATA_SUNX, 16#81D6).
+-define(GL_GLOBAL_ALPHA_SUN, 16#81D9).
+-define(GL_GLOBAL_ALPHA_FACTOR_SUN, 16#81DA).
+-define(GL_RESTART_SUN, 16#1).
+-define(GL_REPLACE_MIDDLE_SUN, 16#2).
+-define(GL_REPLACE_OLDEST_SUN, 16#3).
+-define(GL_TRIANGLE_LIST_SUN, 16#81D7).
+-define(GL_REPLACEMENT_CODE_SUN, 16#81D8).
+-define(GL_REPLACEMENT_CODE_ARRAY_SUN, 16#85C0).
+-define(GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN, 16#85C1).
+-define(GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN, 16#85C2).
+-define(GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN, 16#85C3).
+-define(GL_R1UI_V3F_SUN, 16#85C4).
+-define(GL_R1UI_C4UB_V3F_SUN, 16#85C5).
+-define(GL_R1UI_C3F_V3F_SUN, 16#85C6).
+-define(GL_R1UI_N3F_V3F_SUN, 16#85C7).
+-define(GL_R1UI_C4F_N3F_V3F_SUN, 16#85C8).
+-define(GL_R1UI_T2F_V3F_SUN, 16#85C9).
+-define(GL_R1UI_T2F_N3F_V3F_SUN, 16#85CA).
+-define(GL_R1UI_T2F_C4F_N3F_V3F_SUN, 16#85CB).
+-define(GL_BLEND_DST_RGB_EXT, 16#80C8).
+-define(GL_BLEND_SRC_RGB_EXT, 16#80C9).
+-define(GL_BLEND_DST_ALPHA_EXT, 16#80CA).
+-define(GL_BLEND_SRC_ALPHA_EXT, 16#80CB).
+-define(GL_RED_MIN_CLAMP_INGR, 16#8560).
+-define(GL_GREEN_MIN_CLAMP_INGR, 16#8561).
+-define(GL_BLUE_MIN_CLAMP_INGR, 16#8562).
+-define(GL_ALPHA_MIN_CLAMP_INGR, 16#8563).
+-define(GL_RED_MAX_CLAMP_INGR, 16#8564).
+-define(GL_GREEN_MAX_CLAMP_INGR, 16#8565).
+-define(GL_BLUE_MAX_CLAMP_INGR, 16#8566).
+-define(GL_ALPHA_MAX_CLAMP_INGR, 16#8567).
+-define(GL_INTERLACE_READ_INGR, 16#8568).
+-define(GL_INCR_WRAP_EXT, 16#8507).
+-define(GL_DECR_WRAP_EXT, 16#8508).
+-define(GL_422_EXT, 16#80CC).
+-define(GL_422_REV_EXT, 16#80CD).
+-define(GL_422_AVERAGE_EXT, 16#80CE).
+-define(GL_422_REV_AVERAGE_EXT, 16#80CF).
+-define(GL_NORMAL_MAP_NV, 16#8511).
+-define(GL_REFLECTION_MAP_NV, 16#8512).
+-define(GL_NORMAL_MAP_EXT, 16#8511).
+-define(GL_REFLECTION_MAP_EXT, 16#8512).
+-define(GL_TEXTURE_CUBE_MAP_EXT, 16#8513).
+-define(GL_TEXTURE_BINDING_CUBE_MAP_EXT, 16#8514).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT, 16#8515).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT, 16#8516).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT, 16#8517).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT, 16#8518).
+-define(GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT, 16#8519).
+-define(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT, 16#851A).
+-define(GL_PROXY_TEXTURE_CUBE_MAP_EXT, 16#851B).
+-define(GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT, 16#851C).
+-define(GL_WRAP_BORDER_SUN, 16#81D4).
+-define(GL_MAX_TEXTURE_LOD_BIAS_EXT, 16#84FD).
+-define(GL_TEXTURE_FILTER_CONTROL_EXT, 16#8500).
+-define(GL_TEXTURE_LOD_BIAS_EXT, 16#8501).
+-define(GL_TEXTURE_MAX_ANISOTROPY_EXT, 16#84FE).
+-define(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, 16#84FF).
+-define(GL_MODELVIEW0_STACK_DEPTH_EXT, ?GL_MODELVIEW_STACK_DEPTH).
+-define(GL_MODELVIEW1_STACK_DEPTH_EXT, 16#8502).
+-define(GL_MODELVIEW0_MATRIX_EXT, ?GL_MODELVIEW_MATRIX).
+-define(GL_MODELVIEW1_MATRIX_EXT, 16#8506).
+-define(GL_VERTEX_WEIGHTING_EXT, 16#8509).
+-define(GL_MODELVIEW0_EXT, ?GL_MODELVIEW).
+-define(GL_MODELVIEW1_EXT, 16#850A).
+-define(GL_CURRENT_VERTEX_WEIGHT_EXT, 16#850B).
+-define(GL_VERTEX_WEIGHT_ARRAY_EXT, 16#850C).
+-define(GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT, 16#850D).
+-define(GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT, 16#850E).
+-define(GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT, 16#850F).
+-define(GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT, 16#8510).
+-define(GL_MAX_SHININESS_NV, 16#8504).
+-define(GL_MAX_SPOT_EXPONENT_NV, 16#8505).
+-define(GL_VERTEX_ARRAY_RANGE_NV, 16#851D).
+-define(GL_VERTEX_ARRAY_RANGE_LENGTH_NV, 16#851E).
+-define(GL_VERTEX_ARRAY_RANGE_VALID_NV, 16#851F).
+-define(GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV, 16#8520).
+-define(GL_VERTEX_ARRAY_RANGE_POINTER_NV, 16#8521).
+-define(GL_REGISTER_COMBINERS_NV, 16#8522).
+-define(GL_VARIABLE_A_NV, 16#8523).
+-define(GL_VARIABLE_B_NV, 16#8524).
+-define(GL_VARIABLE_C_NV, 16#8525).
+-define(GL_VARIABLE_D_NV, 16#8526).
+-define(GL_VARIABLE_E_NV, 16#8527).
+-define(GL_VARIABLE_F_NV, 16#8528).
+-define(GL_VARIABLE_G_NV, 16#8529).
+-define(GL_CONSTANT_COLOR0_NV, 16#852A).
+-define(GL_CONSTANT_COLOR1_NV, 16#852B).
+-define(GL_PRIMARY_COLOR_NV, 16#852C).
+-define(GL_SECONDARY_COLOR_NV, 16#852D).
+-define(GL_SPARE0_NV, 16#852E).
+-define(GL_SPARE1_NV, 16#852F).
+-define(GL_DISCARD_NV, 16#8530).
+-define(GL_E_TIMES_F_NV, 16#8531).
+-define(GL_SPARE0_PLUS_SECONDARY_COLOR_NV, 16#8532).
+-define(GL_UNSIGNED_IDENTITY_NV, 16#8536).
+-define(GL_UNSIGNED_INVERT_NV, 16#8537).
+-define(GL_EXPAND_NORMAL_NV, 16#8538).
+-define(GL_EXPAND_NEGATE_NV, 16#8539).
+-define(GL_HALF_BIAS_NORMAL_NV, 16#853A).
+-define(GL_HALF_BIAS_NEGATE_NV, 16#853B).
+-define(GL_SIGNED_IDENTITY_NV, 16#853C).
+-define(GL_SIGNED_NEGATE_NV, 16#853D).
+-define(GL_SCALE_BY_TWO_NV, 16#853E).
+-define(GL_SCALE_BY_FOUR_NV, 16#853F).
+-define(GL_SCALE_BY_ONE_HALF_NV, 16#8540).
+-define(GL_BIAS_BY_NEGATIVE_ONE_HALF_NV, 16#8541).
+-define(GL_COMBINER_INPUT_NV, 16#8542).
+-define(GL_COMBINER_MAPPING_NV, 16#8543).
+-define(GL_COMBINER_COMPONENT_USAGE_NV, 16#8544).
+-define(GL_COMBINER_AB_DOT_PRODUCT_NV, 16#8545).
+-define(GL_COMBINER_CD_DOT_PRODUCT_NV, 16#8546).
+-define(GL_COMBINER_MUX_SUM_NV, 16#8547).
+-define(GL_COMBINER_SCALE_NV, 16#8548).
+-define(GL_COMBINER_BIAS_NV, 16#8549).
+-define(GL_COMBINER_AB_OUTPUT_NV, 16#854A).
+-define(GL_COMBINER_CD_OUTPUT_NV, 16#854B).
+-define(GL_COMBINER_SUM_OUTPUT_NV, 16#854C).
+-define(GL_MAX_GENERAL_COMBINERS_NV, 16#854D).
+-define(GL_NUM_GENERAL_COMBINERS_NV, 16#854E).
+-define(GL_COLOR_SUM_CLAMP_NV, 16#854F).
+-define(GL_COMBINER0_NV, 16#8550).
+-define(GL_COMBINER1_NV, 16#8551).
+-define(GL_COMBINER2_NV, 16#8552).
+-define(GL_COMBINER3_NV, 16#8553).
+-define(GL_COMBINER4_NV, 16#8554).
+-define(GL_COMBINER5_NV, 16#8555).
+-define(GL_COMBINER6_NV, 16#8556).
+-define(GL_COMBINER7_NV, 16#8557).
+-define(GL_FOG_DISTANCE_MODE_NV, 16#855A).
+-define(GL_EYE_RADIAL_NV, 16#855B).
+-define(GL_EYE_PLANE_ABSOLUTE_NV, 16#855C).
+-define(GL_EMBOSS_LIGHT_NV, 16#855D).
+-define(GL_EMBOSS_CONSTANT_NV, 16#855E).
+-define(GL_EMBOSS_MAP_NV, 16#855F).
+-define(GL_COMBINE4_NV, 16#8503).
+-define(GL_SOURCE3_RGB_NV, 16#8583).
+-define(GL_SOURCE3_ALPHA_NV, 16#858B).
+-define(GL_OPERAND3_RGB_NV, 16#8593).
+-define(GL_OPERAND3_ALPHA_NV, 16#859B).
+-define(GL_COMPRESSED_RGB_S3TC_DXT1_EXT, 16#83F0).
+-define(GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, 16#83F1).
+-define(GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, 16#83F2).
+-define(GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, 16#83F3).
+-define(GL_CULL_VERTEX_IBM, 103050).
+-define(GL_VERTEX_ARRAY_LIST_IBM, 103070).
+-define(GL_NORMAL_ARRAY_LIST_IBM, 103071).
+-define(GL_COLOR_ARRAY_LIST_IBM, 103072).
+-define(GL_INDEX_ARRAY_LIST_IBM, 103073).
+-define(GL_TEXTURE_COORD_ARRAY_LIST_IBM, 103074).
+-define(GL_EDGE_FLAG_ARRAY_LIST_IBM, 103075).
+-define(GL_FOG_COORDINATE_ARRAY_LIST_IBM, 103076).
+-define(GL_SECONDARY_COLOR_ARRAY_LIST_IBM, 103077).
+-define(GL_VERTEX_ARRAY_LIST_STRIDE_IBM, 103080).
+-define(GL_NORMAL_ARRAY_LIST_STRIDE_IBM, 103081).
+-define(GL_COLOR_ARRAY_LIST_STRIDE_IBM, 103082).
+-define(GL_INDEX_ARRAY_LIST_STRIDE_IBM, 103083).
+-define(GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM, 103084).
+-define(GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM, 103085).
+-define(GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM, 103086).
+-define(GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM, 103087).
+-define(GL_PACK_SUBSAMPLE_RATE_SGIX, 16#85A0).
+-define(GL_UNPACK_SUBSAMPLE_RATE_SGIX, 16#85A1).
+-define(GL_PIXEL_SUBSAMPLE_4444_SGIX, 16#85A2).
+-define(GL_PIXEL_SUBSAMPLE_2424_SGIX, 16#85A3).
+-define(GL_PIXEL_SUBSAMPLE_4242_SGIX, 16#85A4).
+-define(GL_YCRCB_SGIX, 16#8318).
+-define(GL_YCRCBA_SGIX, 16#8319).
+-define(GL_DEPTH_PASS_INSTRUMENT_SGIX, 16#8310).
+-define(GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX, 16#8311).
+-define(GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX, 16#8312).
+-define(GL_COMPRESSED_RGB_FXT1_3DFX, 16#86B0).
+-define(GL_COMPRESSED_RGBA_FXT1_3DFX, 16#86B1).
+-define(GL_MULTISAMPLE_3DFX, 16#86B2).
+-define(GL_SAMPLE_BUFFERS_3DFX, 16#86B3).
+-define(GL_SAMPLES_3DFX, 16#86B4).
+-define(GL_MULTISAMPLE_BIT_3DFX, 16#20000000).
+-define(GL_MULTISAMPLE_EXT, 16#809D).
+-define(GL_SAMPLE_ALPHA_TO_MASK_EXT, 16#809E).
+-define(GL_SAMPLE_ALPHA_TO_ONE_EXT, 16#809F).
+-define(GL_SAMPLE_MASK_EXT, 16#80A0).
+-define(GL_1PASS_EXT, 16#80A1).
+-define(GL_2PASS_0_EXT, 16#80A2).
+-define(GL_2PASS_1_EXT, 16#80A3).
+-define(GL_4PASS_0_EXT, 16#80A4).
+-define(GL_4PASS_1_EXT, 16#80A5).
+-define(GL_4PASS_2_EXT, 16#80A6).
+-define(GL_4PASS_3_EXT, 16#80A7).
+-define(GL_SAMPLE_BUFFERS_EXT, 16#80A8).
+-define(GL_SAMPLES_EXT, 16#80A9).
+-define(GL_SAMPLE_MASK_VALUE_EXT, 16#80AA).
+-define(GL_SAMPLE_MASK_INVERT_EXT, 16#80AB).
+-define(GL_SAMPLE_PATTERN_EXT, 16#80AC).
+-define(GL_MULTISAMPLE_BIT_EXT, 16#20000000).
+-define(GL_VERTEX_PRECLIP_SGIX, 16#83EE).
+-define(GL_VERTEX_PRECLIP_HINT_SGIX, 16#83EF).
+-define(GL_CONVOLUTION_HINT_SGIX, 16#8316).
+-define(GL_PACK_RESAMPLE_SGIX, 16#842C).
+-define(GL_UNPACK_RESAMPLE_SGIX, 16#842D).
+-define(GL_RESAMPLE_REPLICATE_SGIX, 16#842E).
+-define(GL_RESAMPLE_ZERO_FILL_SGIX, 16#842F).
+-define(GL_RESAMPLE_DECIMATE_SGIX, 16#8430).
+-define(GL_EYE_DISTANCE_TO_POINT_SGIS, 16#81F0).
+-define(GL_OBJECT_DISTANCE_TO_POINT_SGIS, 16#81F1).
+-define(GL_EYE_DISTANCE_TO_LINE_SGIS, 16#81F2).
+-define(GL_OBJECT_DISTANCE_TO_LINE_SGIS, 16#81F3).
+-define(GL_EYE_POINT_SGIS, 16#81F4).
+-define(GL_OBJECT_POINT_SGIS, 16#81F5).
+-define(GL_EYE_LINE_SGIS, 16#81F6).
+-define(GL_OBJECT_LINE_SGIS, 16#81F7).
+-define(GL_TEXTURE_COLOR_WRITEMASK_SGIS, 16#81EF).
+-define(GL_DOT3_RGB_EXT, 16#8740).
+-define(GL_DOT3_RGBA_EXT, 16#8741).
+-define(GL_MIRROR_CLAMP_ATI, 16#8742).
+-define(GL_MIRROR_CLAMP_TO_EDGE_ATI, 16#8743).
+-define(GL_ALL_COMPLETED_NV, 16#84F2).
+-define(GL_FENCE_STATUS_NV, 16#84F3).
+-define(GL_FENCE_CONDITION_NV, 16#84F4).
+-define(GL_MIRRORED_REPEAT_IBM, 16#8370).
+-define(GL_EVAL_2D_NV, 16#86C0).
+-define(GL_EVAL_TRIANGULAR_2D_NV, 16#86C1).
+-define(GL_MAP_TESSELLATION_NV, 16#86C2).
+-define(GL_MAP_ATTRIB_U_ORDER_NV, 16#86C3).
+-define(GL_MAP_ATTRIB_V_ORDER_NV, 16#86C4).
+-define(GL_EVAL_FRACTIONAL_TESSELLATION_NV, 16#86C5).
+-define(GL_EVAL_VERTEX_ATTRIB0_NV, 16#86C6).
+-define(GL_EVAL_VERTEX_ATTRIB1_NV, 16#86C7).
+-define(GL_EVAL_VERTEX_ATTRIB2_NV, 16#86C8).
+-define(GL_EVAL_VERTEX_ATTRIB3_NV, 16#86C9).
+-define(GL_EVAL_VERTEX_ATTRIB4_NV, 16#86CA).
+-define(GL_EVAL_VERTEX_ATTRIB5_NV, 16#86CB).
+-define(GL_EVAL_VERTEX_ATTRIB6_NV, 16#86CC).
+-define(GL_EVAL_VERTEX_ATTRIB7_NV, 16#86CD).
+-define(GL_EVAL_VERTEX_ATTRIB8_NV, 16#86CE).
+-define(GL_EVAL_VERTEX_ATTRIB9_NV, 16#86CF).
+-define(GL_EVAL_VERTEX_ATTRIB10_NV, 16#86D0).
+-define(GL_EVAL_VERTEX_ATTRIB11_NV, 16#86D1).
+-define(GL_EVAL_VERTEX_ATTRIB12_NV, 16#86D2).
+-define(GL_EVAL_VERTEX_ATTRIB13_NV, 16#86D3).
+-define(GL_EVAL_VERTEX_ATTRIB14_NV, 16#86D4).
+-define(GL_EVAL_VERTEX_ATTRIB15_NV, 16#86D5).
+-define(GL_MAX_MAP_TESSELLATION_NV, 16#86D6).
+-define(GL_MAX_RATIONAL_EVAL_ORDER_NV, 16#86D7).
+-define(GL_DEPTH_STENCIL_NV, 16#84F9).
+-define(GL_UNSIGNED_INT_24_8_NV, 16#84FA).
+-define(GL_PER_STAGE_CONSTANTS_NV, 16#8535).
+-define(GL_TEXTURE_RECTANGLE_NV, 16#84F5).
+-define(GL_TEXTURE_BINDING_RECTANGLE_NV, 16#84F6).
+-define(GL_PROXY_TEXTURE_RECTANGLE_NV, 16#84F7).
+-define(GL_MAX_RECTANGLE_TEXTURE_SIZE_NV, 16#84F8).
+-define(GL_OFFSET_TEXTURE_RECTANGLE_NV, 16#864C).
+-define(GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV, 16#864D).
+-define(GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV, 16#864E).
+-define(GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV, 16#86D9).
+-define(GL_UNSIGNED_INT_S8_S8_8_8_NV, 16#86DA).
+-define(GL_UNSIGNED_INT_8_8_S8_S8_REV_NV, 16#86DB).
+-define(GL_DSDT_MAG_INTENSITY_NV, 16#86DC).
+-define(GL_SHADER_CONSISTENT_NV, 16#86DD).
+-define(GL_TEXTURE_SHADER_NV, 16#86DE).
+-define(GL_SHADER_OPERATION_NV, 16#86DF).
+-define(GL_CULL_MODES_NV, 16#86E0).
+-define(GL_OFFSET_TEXTURE_MATRIX_NV, 16#86E1).
+-define(GL_OFFSET_TEXTURE_SCALE_NV, 16#86E2).
+-define(GL_OFFSET_TEXTURE_BIAS_NV, 16#86E3).
+-define(GL_OFFSET_TEXTURE_2D_MATRIX_NV, ?GL_OFFSET_TEXTURE_MATRIX_NV).
+-define(GL_OFFSET_TEXTURE_2D_SCALE_NV, ?GL_OFFSET_TEXTURE_SCALE_NV).
+-define(GL_OFFSET_TEXTURE_2D_BIAS_NV, ?GL_OFFSET_TEXTURE_BIAS_NV).
+-define(GL_PREVIOUS_TEXTURE_INPUT_NV, 16#86E4).
+-define(GL_CONST_EYE_NV, 16#86E5).
+-define(GL_PASS_THROUGH_NV, 16#86E6).
+-define(GL_CULL_FRAGMENT_NV, 16#86E7).
+-define(GL_OFFSET_TEXTURE_2D_NV, 16#86E8).
+-define(GL_DEPENDENT_AR_TEXTURE_2D_NV, 16#86E9).
+-define(GL_DEPENDENT_GB_TEXTURE_2D_NV, 16#86EA).
+-define(GL_DOT_PRODUCT_NV, 16#86EC).
+-define(GL_DOT_PRODUCT_DEPTH_REPLACE_NV, 16#86ED).
+-define(GL_DOT_PRODUCT_TEXTURE_2D_NV, 16#86EE).
+-define(GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV, 16#86F0).
+-define(GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV, 16#86F1).
+-define(GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV, 16#86F2).
+-define(GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV, 16#86F3).
+-define(GL_HILO_NV, 16#86F4).
+-define(GL_DSDT_NV, 16#86F5).
+-define(GL_DSDT_MAG_NV, 16#86F6).
+-define(GL_DSDT_MAG_VIB_NV, 16#86F7).
+-define(GL_HILO16_NV, 16#86F8).
+-define(GL_SIGNED_HILO_NV, 16#86F9).
+-define(GL_SIGNED_HILO16_NV, 16#86FA).
+-define(GL_SIGNED_RGBA_NV, 16#86FB).
+-define(GL_SIGNED_RGBA8_NV, 16#86FC).
+-define(GL_SIGNED_RGB_NV, 16#86FE).
+-define(GL_SIGNED_RGB8_NV, 16#86FF).
+-define(GL_SIGNED_LUMINANCE_NV, 16#8701).
+-define(GL_SIGNED_LUMINANCE8_NV, 16#8702).
+-define(GL_SIGNED_LUMINANCE_ALPHA_NV, 16#8703).
+-define(GL_SIGNED_LUMINANCE8_ALPHA8_NV, 16#8704).
+-define(GL_SIGNED_ALPHA_NV, 16#8705).
+-define(GL_SIGNED_ALPHA8_NV, 16#8706).
+-define(GL_SIGNED_INTENSITY_NV, 16#8707).
+-define(GL_SIGNED_INTENSITY8_NV, 16#8708).
+-define(GL_DSDT8_NV, 16#8709).
+-define(GL_DSDT8_MAG8_NV, 16#870A).
+-define(GL_DSDT8_MAG8_INTENSITY8_NV, 16#870B).
+-define(GL_SIGNED_RGB_UNSIGNED_ALPHA_NV, 16#870C).
+-define(GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV, 16#870D).
+-define(GL_HI_SCALE_NV, 16#870E).
+-define(GL_LO_SCALE_NV, 16#870F).
+-define(GL_DS_SCALE_NV, 16#8710).
+-define(GL_DT_SCALE_NV, 16#8711).
+-define(GL_MAGNITUDE_SCALE_NV, 16#8712).
+-define(GL_VIBRANCE_SCALE_NV, 16#8713).
+-define(GL_HI_BIAS_NV, 16#8714).
+-define(GL_LO_BIAS_NV, 16#8715).
+-define(GL_DS_BIAS_NV, 16#8716).
+-define(GL_DT_BIAS_NV, 16#8717).
+-define(GL_MAGNITUDE_BIAS_NV, 16#8718).
+-define(GL_VIBRANCE_BIAS_NV, 16#8719).
+-define(GL_TEXTURE_BORDER_VALUES_NV, 16#871A).
+-define(GL_TEXTURE_HI_SIZE_NV, 16#871B).
+-define(GL_TEXTURE_LO_SIZE_NV, 16#871C).
+-define(GL_TEXTURE_DS_SIZE_NV, 16#871D).
+-define(GL_TEXTURE_DT_SIZE_NV, 16#871E).
+-define(GL_TEXTURE_MAG_SIZE_NV, 16#871F).
+-define(GL_DOT_PRODUCT_TEXTURE_3D_NV, 16#86EF).
+-define(GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV, 16#8533).
+-define(GL_VERTEX_PROGRAM_NV, 16#8620).
+-define(GL_VERTEX_STATE_PROGRAM_NV, 16#8621).
+-define(GL_ATTRIB_ARRAY_SIZE_NV, 16#8623).
+-define(GL_ATTRIB_ARRAY_STRIDE_NV, 16#8624).
+-define(GL_ATTRIB_ARRAY_TYPE_NV, 16#8625).
+-define(GL_CURRENT_ATTRIB_NV, 16#8626).
+-define(GL_PROGRAM_LENGTH_NV, 16#8627).
+-define(GL_PROGRAM_STRING_NV, 16#8628).
+-define(GL_MODELVIEW_PROJECTION_NV, 16#8629).
+-define(GL_IDENTITY_NV, 16#862A).
+-define(GL_INVERSE_NV, 16#862B).
+-define(GL_TRANSPOSE_NV, 16#862C).
+-define(GL_INVERSE_TRANSPOSE_NV, 16#862D).
+-define(GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV, 16#862E).
+-define(GL_MAX_TRACK_MATRICES_NV, 16#862F).
+-define(GL_MATRIX0_NV, 16#8630).
+-define(GL_MATRIX1_NV, 16#8631).
+-define(GL_MATRIX2_NV, 16#8632).
+-define(GL_MATRIX3_NV, 16#8633).
+-define(GL_MATRIX4_NV, 16#8634).
+-define(GL_MATRIX5_NV, 16#8635).
+-define(GL_MATRIX6_NV, 16#8636).
+-define(GL_MATRIX7_NV, 16#8637).
+-define(GL_CURRENT_MATRIX_STACK_DEPTH_NV, 16#8640).
+-define(GL_CURRENT_MATRIX_NV, 16#8641).
+-define(GL_VERTEX_PROGRAM_POINT_SIZE_NV, 16#8642).
+-define(GL_VERTEX_PROGRAM_TWO_SIDE_NV, 16#8643).
+-define(GL_PROGRAM_PARAMETER_NV, 16#8644).
+-define(GL_ATTRIB_ARRAY_POINTER_NV, 16#8645).
+-define(GL_PROGRAM_TARGET_NV, 16#8646).
+-define(GL_PROGRAM_RESIDENT_NV, 16#8647).
+-define(GL_TRACK_MATRIX_NV, 16#8648).
+-define(GL_TRACK_MATRIX_TRANSFORM_NV, 16#8649).
+-define(GL_VERTEX_PROGRAM_BINDING_NV, 16#864A).
+-define(GL_PROGRAM_ERROR_POSITION_NV, 16#864B).
+-define(GL_VERTEX_ATTRIB_ARRAY0_NV, 16#8650).
+-define(GL_VERTEX_ATTRIB_ARRAY1_NV, 16#8651).
+-define(GL_VERTEX_ATTRIB_ARRAY2_NV, 16#8652).
+-define(GL_VERTEX_ATTRIB_ARRAY3_NV, 16#8653).
+-define(GL_VERTEX_ATTRIB_ARRAY4_NV, 16#8654).
+-define(GL_VERTEX_ATTRIB_ARRAY5_NV, 16#8655).
+-define(GL_VERTEX_ATTRIB_ARRAY6_NV, 16#8656).
+-define(GL_VERTEX_ATTRIB_ARRAY7_NV, 16#8657).
+-define(GL_VERTEX_ATTRIB_ARRAY8_NV, 16#8658).
+-define(GL_VERTEX_ATTRIB_ARRAY9_NV, 16#8659).
+-define(GL_VERTEX_ATTRIB_ARRAY10_NV, 16#865A).
+-define(GL_VERTEX_ATTRIB_ARRAY11_NV, 16#865B).
+-define(GL_VERTEX_ATTRIB_ARRAY12_NV, 16#865C).
+-define(GL_VERTEX_ATTRIB_ARRAY13_NV, 16#865D).
+-define(GL_VERTEX_ATTRIB_ARRAY14_NV, 16#865E).
+-define(GL_VERTEX_ATTRIB_ARRAY15_NV, 16#865F).
+-define(GL_MAP1_VERTEX_ATTRIB0_4_NV, 16#8660).
+-define(GL_MAP1_VERTEX_ATTRIB1_4_NV, 16#8661).
+-define(GL_MAP1_VERTEX_ATTRIB2_4_NV, 16#8662).
+-define(GL_MAP1_VERTEX_ATTRIB3_4_NV, 16#8663).
+-define(GL_MAP1_VERTEX_ATTRIB4_4_NV, 16#8664).
+-define(GL_MAP1_VERTEX_ATTRIB5_4_NV, 16#8665).
+-define(GL_MAP1_VERTEX_ATTRIB6_4_NV, 16#8666).
+-define(GL_MAP1_VERTEX_ATTRIB7_4_NV, 16#8667).
+-define(GL_MAP1_VERTEX_ATTRIB8_4_NV, 16#8668).
+-define(GL_MAP1_VERTEX_ATTRIB9_4_NV, 16#8669).
+-define(GL_MAP1_VERTEX_ATTRIB10_4_NV, 16#866A).
+-define(GL_MAP1_VERTEX_ATTRIB11_4_NV, 16#866B).
+-define(GL_MAP1_VERTEX_ATTRIB12_4_NV, 16#866C).
+-define(GL_MAP1_VERTEX_ATTRIB13_4_NV, 16#866D).
+-define(GL_MAP1_VERTEX_ATTRIB14_4_NV, 16#866E).
+-define(GL_MAP1_VERTEX_ATTRIB15_4_NV, 16#866F).
+-define(GL_MAP2_VERTEX_ATTRIB0_4_NV, 16#8670).
+-define(GL_MAP2_VERTEX_ATTRIB1_4_NV, 16#8671).
+-define(GL_MAP2_VERTEX_ATTRIB2_4_NV, 16#8672).
+-define(GL_MAP2_VERTEX_ATTRIB3_4_NV, 16#8673).
+-define(GL_MAP2_VERTEX_ATTRIB4_4_NV, 16#8674).
+-define(GL_MAP2_VERTEX_ATTRIB5_4_NV, 16#8675).
+-define(GL_MAP2_VERTEX_ATTRIB6_4_NV, 16#8676).
+-define(GL_MAP2_VERTEX_ATTRIB7_4_NV, 16#8677).
+-define(GL_MAP2_VERTEX_ATTRIB8_4_NV, 16#8678).
+-define(GL_MAP2_VERTEX_ATTRIB9_4_NV, 16#8679).
+-define(GL_MAP2_VERTEX_ATTRIB10_4_NV, 16#867A).
+-define(GL_MAP2_VERTEX_ATTRIB11_4_NV, 16#867B).
+-define(GL_MAP2_VERTEX_ATTRIB12_4_NV, 16#867C).
+-define(GL_MAP2_VERTEX_ATTRIB13_4_NV, 16#867D).
+-define(GL_MAP2_VERTEX_ATTRIB14_4_NV, 16#867E).
+-define(GL_MAP2_VERTEX_ATTRIB15_4_NV, 16#867F).
+-define(GL_TEXTURE_MAX_CLAMP_S_SGIX, 16#8369).
+-define(GL_TEXTURE_MAX_CLAMP_T_SGIX, 16#836A).
+-define(GL_TEXTURE_MAX_CLAMP_R_SGIX, 16#836B).
+-define(GL_SCALEBIAS_HINT_SGIX, 16#8322).
+-define(GL_INTERLACE_OML, 16#8980).
+-define(GL_INTERLACE_READ_OML, 16#8981).
+-define(GL_FORMAT_SUBSAMPLE_24_24_OML, 16#8982).
+-define(GL_FORMAT_SUBSAMPLE_244_244_OML, 16#8983).
+-define(GL_PACK_RESAMPLE_OML, 16#8984).
+-define(GL_UNPACK_RESAMPLE_OML, 16#8985).
+-define(GL_RESAMPLE_REPLICATE_OML, 16#8986).
+-define(GL_RESAMPLE_ZERO_FILL_OML, 16#8987).
+-define(GL_RESAMPLE_AVERAGE_OML, 16#8988).
+-define(GL_RESAMPLE_DECIMATE_OML, 16#8989).
+-define(GL_DEPTH_STENCIL_TO_RGBA_NV, 16#886E).
+-define(GL_DEPTH_STENCIL_TO_BGRA_NV, 16#886F).
+-define(GL_BUMP_ROT_MATRIX_ATI, 16#8775).
+-define(GL_BUMP_ROT_MATRIX_SIZE_ATI, 16#8776).
+-define(GL_BUMP_NUM_TEX_UNITS_ATI, 16#8777).
+-define(GL_BUMP_TEX_UNITS_ATI, 16#8778).
+-define(GL_DUDV_ATI, 16#8779).
+-define(GL_DU8DV8_ATI, 16#877A).
+-define(GL_BUMP_ENVMAP_ATI, 16#877B).
+-define(GL_BUMP_TARGET_ATI, 16#877C).
+-define(GL_FRAGMENT_SHADER_ATI, 16#8920).
+-define(GL_REG_0_ATI, 16#8921).
+-define(GL_REG_1_ATI, 16#8922).
+-define(GL_REG_2_ATI, 16#8923).
+-define(GL_REG_3_ATI, 16#8924).
+-define(GL_REG_4_ATI, 16#8925).
+-define(GL_REG_5_ATI, 16#8926).
+-define(GL_REG_6_ATI, 16#8927).
+-define(GL_REG_7_ATI, 16#8928).
+-define(GL_REG_8_ATI, 16#8929).
+-define(GL_REG_9_ATI, 16#892A).
+-define(GL_REG_10_ATI, 16#892B).
+-define(GL_REG_11_ATI, 16#892C).
+-define(GL_REG_12_ATI, 16#892D).
+-define(GL_REG_13_ATI, 16#892E).
+-define(GL_REG_14_ATI, 16#892F).
+-define(GL_REG_15_ATI, 16#8930).
+-define(GL_REG_16_ATI, 16#8931).
+-define(GL_REG_17_ATI, 16#8932).
+-define(GL_REG_18_ATI, 16#8933).
+-define(GL_REG_19_ATI, 16#8934).
+-define(GL_REG_20_ATI, 16#8935).
+-define(GL_REG_21_ATI, 16#8936).
+-define(GL_REG_22_ATI, 16#8937).
+-define(GL_REG_23_ATI, 16#8938).
+-define(GL_REG_24_ATI, 16#8939).
+-define(GL_REG_25_ATI, 16#893A).
+-define(GL_REG_26_ATI, 16#893B).
+-define(GL_REG_27_ATI, 16#893C).
+-define(GL_REG_28_ATI, 16#893D).
+-define(GL_REG_29_ATI, 16#893E).
+-define(GL_REG_30_ATI, 16#893F).
+-define(GL_REG_31_ATI, 16#8940).
+-define(GL_CON_0_ATI, 16#8941).
+-define(GL_CON_1_ATI, 16#8942).
+-define(GL_CON_2_ATI, 16#8943).
+-define(GL_CON_3_ATI, 16#8944).
+-define(GL_CON_4_ATI, 16#8945).
+-define(GL_CON_5_ATI, 16#8946).
+-define(GL_CON_6_ATI, 16#8947).
+-define(GL_CON_7_ATI, 16#8948).
+-define(GL_CON_8_ATI, 16#8949).
+-define(GL_CON_9_ATI, 16#894A).
+-define(GL_CON_10_ATI, 16#894B).
+-define(GL_CON_11_ATI, 16#894C).
+-define(GL_CON_12_ATI, 16#894D).
+-define(GL_CON_13_ATI, 16#894E).
+-define(GL_CON_14_ATI, 16#894F).
+-define(GL_CON_15_ATI, 16#8950).
+-define(GL_CON_16_ATI, 16#8951).
+-define(GL_CON_17_ATI, 16#8952).
+-define(GL_CON_18_ATI, 16#8953).
+-define(GL_CON_19_ATI, 16#8954).
+-define(GL_CON_20_ATI, 16#8955).
+-define(GL_CON_21_ATI, 16#8956).
+-define(GL_CON_22_ATI, 16#8957).
+-define(GL_CON_23_ATI, 16#8958).
+-define(GL_CON_24_ATI, 16#8959).
+-define(GL_CON_25_ATI, 16#895A).
+-define(GL_CON_26_ATI, 16#895B).
+-define(GL_CON_27_ATI, 16#895C).
+-define(GL_CON_28_ATI, 16#895D).
+-define(GL_CON_29_ATI, 16#895E).
+-define(GL_CON_30_ATI, 16#895F).
+-define(GL_CON_31_ATI, 16#8960).
+-define(GL_MOV_ATI, 16#8961).
+-define(GL_ADD_ATI, 16#8963).
+-define(GL_MUL_ATI, 16#8964).
+-define(GL_SUB_ATI, 16#8965).
+-define(GL_DOT3_ATI, 16#8966).
+-define(GL_DOT4_ATI, 16#8967).
+-define(GL_MAD_ATI, 16#8968).
+-define(GL_LERP_ATI, 16#8969).
+-define(GL_CND_ATI, 16#896A).
+-define(GL_CND0_ATI, 16#896B).
+-define(GL_DOT2_ADD_ATI, 16#896C).
+-define(GL_SECONDARY_INTERPOLATOR_ATI, 16#896D).
+-define(GL_NUM_FRAGMENT_REGISTERS_ATI, 16#896E).
+-define(GL_NUM_FRAGMENT_CONSTANTS_ATI, 16#896F).
+-define(GL_NUM_PASSES_ATI, 16#8970).
+-define(GL_NUM_INSTRUCTIONS_PER_PASS_ATI, 16#8971).
+-define(GL_NUM_INSTRUCTIONS_TOTAL_ATI, 16#8972).
+-define(GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI, 16#8973).
+-define(GL_NUM_LOOPBACK_COMPONENTS_ATI, 16#8974).
+-define(GL_COLOR_ALPHA_PAIRING_ATI, 16#8975).
+-define(GL_SWIZZLE_STR_ATI, 16#8976).
+-define(GL_SWIZZLE_STQ_ATI, 16#8977).
+-define(GL_SWIZZLE_STR_DR_ATI, 16#8978).
+-define(GL_SWIZZLE_STQ_DQ_ATI, 16#8979).
+-define(GL_SWIZZLE_STRQ_ATI, 16#897A).
+-define(GL_SWIZZLE_STRQ_DQ_ATI, 16#897B).
+-define(GL_RED_BIT_ATI, 16#1).
+-define(GL_GREEN_BIT_ATI, 16#2).
+-define(GL_BLUE_BIT_ATI, 16#4).
+-define(GL_2X_BIT_ATI, 16#1).
+-define(GL_4X_BIT_ATI, 16#2).
+-define(GL_8X_BIT_ATI, 16#4).
+-define(GL_HALF_BIT_ATI, 16#8).
+-define(GL_QUARTER_BIT_ATI, 16#10).
+-define(GL_EIGHTH_BIT_ATI, 16#20).
+-define(GL_SATURATE_BIT_ATI, 16#40).
+-define(GL_COMP_BIT_ATI, 16#2).
+-define(GL_NEGATE_BIT_ATI, 16#4).
+-define(GL_BIAS_BIT_ATI, 16#8).
+-define(GL_PN_TRIANGLES_ATI, 16#87F0).
+-define(GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI, 16#87F1).
+-define(GL_PN_TRIANGLES_POINT_MODE_ATI, 16#87F2).
+-define(GL_PN_TRIANGLES_NORMAL_MODE_ATI, 16#87F3).
+-define(GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI, 16#87F4).
+-define(GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI, 16#87F5).
+-define(GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI, 16#87F6).
+-define(GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI, 16#87F7).
+-define(GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI, 16#87F8).
+-define(GL_STATIC_ATI, 16#8760).
+-define(GL_DYNAMIC_ATI, 16#8761).
+-define(GL_PRESERVE_ATI, 16#8762).
+-define(GL_DISCARD_ATI, 16#8763).
+-define(GL_OBJECT_BUFFER_SIZE_ATI, 16#8764).
+-define(GL_OBJECT_BUFFER_USAGE_ATI, 16#8765).
+-define(GL_ARRAY_OBJECT_BUFFER_ATI, 16#8766).
+-define(GL_ARRAY_OBJECT_OFFSET_ATI, 16#8767).
+-define(GL_VERTEX_SHADER_EXT, 16#8780).
+-define(GL_VERTEX_SHADER_BINDING_EXT, 16#8781).
+-define(GL_OP_INDEX_EXT, 16#8782).
+-define(GL_OP_NEGATE_EXT, 16#8783).
+-define(GL_OP_DOT3_EXT, 16#8784).
+-define(GL_OP_DOT4_EXT, 16#8785).
+-define(GL_OP_MUL_EXT, 16#8786).
+-define(GL_OP_ADD_EXT, 16#8787).
+-define(GL_OP_MADD_EXT, 16#8788).
+-define(GL_OP_FRAC_EXT, 16#8789).
+-define(GL_OP_MAX_EXT, 16#878A).
+-define(GL_OP_MIN_EXT, 16#878B).
+-define(GL_OP_SET_GE_EXT, 16#878C).
+-define(GL_OP_SET_LT_EXT, 16#878D).
+-define(GL_OP_CLAMP_EXT, 16#878E).
+-define(GL_OP_FLOOR_EXT, 16#878F).
+-define(GL_OP_ROUND_EXT, 16#8790).
+-define(GL_OP_EXP_BASE_2_EXT, 16#8791).
+-define(GL_OP_LOG_BASE_2_EXT, 16#8792).
+-define(GL_OP_POWER_EXT, 16#8793).
+-define(GL_OP_RECIP_EXT, 16#8794).
+-define(GL_OP_RECIP_SQRT_EXT, 16#8795).
+-define(GL_OP_SUB_EXT, 16#8796).
+-define(GL_OP_CROSS_PRODUCT_EXT, 16#8797).
+-define(GL_OP_MULTIPLY_MATRIX_EXT, 16#8798).
+-define(GL_OP_MOV_EXT, 16#8799).
+-define(GL_OUTPUT_VERTEX_EXT, 16#879A).
+-define(GL_OUTPUT_COLOR0_EXT, 16#879B).
+-define(GL_OUTPUT_COLOR1_EXT, 16#879C).
+-define(GL_OUTPUT_TEXTURE_COORD0_EXT, 16#879D).
+-define(GL_OUTPUT_TEXTURE_COORD1_EXT, 16#879E).
+-define(GL_OUTPUT_TEXTURE_COORD2_EXT, 16#879F).
+-define(GL_OUTPUT_TEXTURE_COORD3_EXT, 16#87A0).
+-define(GL_OUTPUT_TEXTURE_COORD4_EXT, 16#87A1).
+-define(GL_OUTPUT_TEXTURE_COORD5_EXT, 16#87A2).
+-define(GL_OUTPUT_TEXTURE_COORD6_EXT, 16#87A3).
+-define(GL_OUTPUT_TEXTURE_COORD7_EXT, 16#87A4).
+-define(GL_OUTPUT_TEXTURE_COORD8_EXT, 16#87A5).
+-define(GL_OUTPUT_TEXTURE_COORD9_EXT, 16#87A6).
+-define(GL_OUTPUT_TEXTURE_COORD10_EXT, 16#87A7).
+-define(GL_OUTPUT_TEXTURE_COORD11_EXT, 16#87A8).
+-define(GL_OUTPUT_TEXTURE_COORD12_EXT, 16#87A9).
+-define(GL_OUTPUT_TEXTURE_COORD13_EXT, 16#87AA).
+-define(GL_OUTPUT_TEXTURE_COORD14_EXT, 16#87AB).
+-define(GL_OUTPUT_TEXTURE_COORD15_EXT, 16#87AC).
+-define(GL_OUTPUT_TEXTURE_COORD16_EXT, 16#87AD).
+-define(GL_OUTPUT_TEXTURE_COORD17_EXT, 16#87AE).
+-define(GL_OUTPUT_TEXTURE_COORD18_EXT, 16#87AF).
+-define(GL_OUTPUT_TEXTURE_COORD19_EXT, 16#87B0).
+-define(GL_OUTPUT_TEXTURE_COORD20_EXT, 16#87B1).
+-define(GL_OUTPUT_TEXTURE_COORD21_EXT, 16#87B2).
+-define(GL_OUTPUT_TEXTURE_COORD22_EXT, 16#87B3).
+-define(GL_OUTPUT_TEXTURE_COORD23_EXT, 16#87B4).
+-define(GL_OUTPUT_TEXTURE_COORD24_EXT, 16#87B5).
+-define(GL_OUTPUT_TEXTURE_COORD25_EXT, 16#87B6).
+-define(GL_OUTPUT_TEXTURE_COORD26_EXT, 16#87B7).
+-define(GL_OUTPUT_TEXTURE_COORD27_EXT, 16#87B8).
+-define(GL_OUTPUT_TEXTURE_COORD28_EXT, 16#87B9).
+-define(GL_OUTPUT_TEXTURE_COORD29_EXT, 16#87BA).
+-define(GL_OUTPUT_TEXTURE_COORD30_EXT, 16#87BB).
+-define(GL_OUTPUT_TEXTURE_COORD31_EXT, 16#87BC).
+-define(GL_OUTPUT_FOG_EXT, 16#87BD).
+-define(GL_SCALAR_EXT, 16#87BE).
+-define(GL_VECTOR_EXT, 16#87BF).
+-define(GL_MATRIX_EXT, 16#87C0).
+-define(GL_VARIANT_EXT, 16#87C1).
+-define(GL_INVARIANT_EXT, 16#87C2).
+-define(GL_LOCAL_CONSTANT_EXT, 16#87C3).
+-define(GL_LOCAL_EXT, 16#87C4).
+-define(GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT, 16#87C5).
+-define(GL_MAX_VERTEX_SHADER_VARIANTS_EXT, 16#87C6).
+-define(GL_MAX_VERTEX_SHADER_INVARIANTS_EXT, 16#87C7).
+-define(GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT, 16#87C8).
+-define(GL_MAX_VERTEX_SHADER_LOCALS_EXT, 16#87C9).
+-define(GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT, 16#87CA).
+-define(GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT, 16#87CB).
+-define(GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT, 16#87CC).
+-define(GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT, 16#87CD).
+-define(GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT, 16#87CE).
+-define(GL_VERTEX_SHADER_INSTRUCTIONS_EXT, 16#87CF).
+-define(GL_VERTEX_SHADER_VARIANTS_EXT, 16#87D0).
+-define(GL_VERTEX_SHADER_INVARIANTS_EXT, 16#87D1).
+-define(GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT, 16#87D2).
+-define(GL_VERTEX_SHADER_LOCALS_EXT, 16#87D3).
+-define(GL_VERTEX_SHADER_OPTIMIZED_EXT, 16#87D4).
+-define(GL_X_EXT, 16#87D5).
+-define(GL_Y_EXT, 16#87D6).
+-define(GL_Z_EXT, 16#87D7).
+-define(GL_W_EXT, 16#87D8).
+-define(GL_NEGATIVE_X_EXT, 16#87D9).
+-define(GL_NEGATIVE_Y_EXT, 16#87DA).
+-define(GL_NEGATIVE_Z_EXT, 16#87DB).
+-define(GL_NEGATIVE_W_EXT, 16#87DC).
+-define(GL_ZERO_EXT, 16#87DD).
+-define(GL_ONE_EXT, 16#87DE).
+-define(GL_NEGATIVE_ONE_EXT, 16#87DF).
+-define(GL_NORMALIZED_RANGE_EXT, 16#87E0).
+-define(GL_FULL_RANGE_EXT, 16#87E1).
+-define(GL_CURRENT_VERTEX_EXT, 16#87E2).
+-define(GL_MVP_MATRIX_EXT, 16#87E3).
+-define(GL_VARIANT_VALUE_EXT, 16#87E4).
+-define(GL_VARIANT_DATATYPE_EXT, 16#87E5).
+-define(GL_VARIANT_ARRAY_STRIDE_EXT, 16#87E6).
+-define(GL_VARIANT_ARRAY_TYPE_EXT, 16#87E7).
+-define(GL_VARIANT_ARRAY_EXT, 16#87E8).
+-define(GL_VARIANT_ARRAY_POINTER_EXT, 16#87E9).
+-define(GL_INVARIANT_VALUE_EXT, 16#87EA).
+-define(GL_INVARIANT_DATATYPE_EXT, 16#87EB).
+-define(GL_LOCAL_CONSTANT_VALUE_EXT, 16#87EC).
+-define(GL_LOCAL_CONSTANT_DATATYPE_EXT, 16#87ED).
+-define(GL_MAX_VERTEX_STREAMS_ATI, 16#876B).
+-define(GL_VERTEX_STREAM0_ATI, 16#876C).
+-define(GL_VERTEX_STREAM1_ATI, 16#876D).
+-define(GL_VERTEX_STREAM2_ATI, 16#876E).
+-define(GL_VERTEX_STREAM3_ATI, 16#876F).
+-define(GL_VERTEX_STREAM4_ATI, 16#8770).
+-define(GL_VERTEX_STREAM5_ATI, 16#8771).
+-define(GL_VERTEX_STREAM6_ATI, 16#8772).
+-define(GL_VERTEX_STREAM7_ATI, 16#8773).
+-define(GL_VERTEX_SOURCE_ATI, 16#8774).
+-define(GL_ELEMENT_ARRAY_ATI, 16#8768).
+-define(GL_ELEMENT_ARRAY_TYPE_ATI, 16#8769).
+-define(GL_ELEMENT_ARRAY_POINTER_ATI, 16#876A).
+-define(GL_QUAD_MESH_SUN, 16#8614).
+-define(GL_TRIANGLE_MESH_SUN, 16#8615).
+-define(GL_SLICE_ACCUM_SUN, 16#85CC).
+-define(GL_MULTISAMPLE_FILTER_HINT_NV, 16#8534).
+-define(GL_DEPTH_CLAMP_NV, 16#864F).
+-define(GL_PIXEL_COUNTER_BITS_NV, 16#8864).
+-define(GL_CURRENT_OCCLUSION_QUERY_ID_NV, 16#8865).
+-define(GL_PIXEL_COUNT_NV, 16#8866).
+-define(GL_PIXEL_COUNT_AVAILABLE_NV, 16#8867).
+-define(GL_POINT_SPRITE_NV, 16#8861).
+-define(GL_COORD_REPLACE_NV, 16#8862).
+-define(GL_POINT_SPRITE_R_MODE_NV, 16#8863).
+-define(GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV, 16#8850).
+-define(GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV, 16#8851).
+-define(GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV, 16#8852).
+-define(GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV, 16#8853).
+-define(GL_OFFSET_HILO_TEXTURE_2D_NV, 16#8854).
+-define(GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV, 16#8855).
+-define(GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV, 16#8856).
+-define(GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV, 16#8857).
+-define(GL_DEPENDENT_HILO_TEXTURE_2D_NV, 16#8858).
+-define(GL_DEPENDENT_RGB_TEXTURE_3D_NV, 16#8859).
+-define(GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV, 16#885A).
+-define(GL_DOT_PRODUCT_PASS_THROUGH_NV, 16#885B).
+-define(GL_DOT_PRODUCT_TEXTURE_1D_NV, 16#885C).
+-define(GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV, 16#885D).
+-define(GL_HILO8_NV, 16#885E).
+-define(GL_SIGNED_HILO8_NV, 16#885F).
+-define(GL_FORCE_BLUE_TO_ONE_NV, 16#8860).
+-define(GL_STENCIL_TEST_TWO_SIDE_EXT, 16#8910).
+-define(GL_ACTIVE_STENCIL_FACE_EXT, 16#8911).
+-define(GL_TEXT_FRAGMENT_SHADER_ATI, 16#8200).
+-define(GL_UNPACK_CLIENT_STORAGE_APPLE, 16#85B2).
+-define(GL_ELEMENT_ARRAY_APPLE, 16#8768).
+-define(GL_ELEMENT_ARRAY_TYPE_APPLE, 16#8769).
+-define(GL_ELEMENT_ARRAY_POINTER_APPLE, 16#876A).
+-define(GL_DRAW_PIXELS_APPLE, 16#8A0A).
+-define(GL_FENCE_APPLE, 16#8A0B).
+-define(GL_VERTEX_ARRAY_BINDING_APPLE, 16#85B5).
+-define(GL_VERTEX_ARRAY_RANGE_APPLE, 16#851D).
+-define(GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE, 16#851E).
+-define(GL_VERTEX_ARRAY_STORAGE_HINT_APPLE, 16#851F).
+-define(GL_VERTEX_ARRAY_RANGE_POINTER_APPLE, 16#8521).
+-define(GL_STORAGE_CACHED_APPLE, 16#85BE).
+-define(GL_STORAGE_SHARED_APPLE, 16#85BF).
+-define(GL_YCBCR_422_APPLE, 16#85B9).
+-define(GL_UNSIGNED_SHORT_8_8_APPLE, 16#85BA).
+-define(GL_UNSIGNED_SHORT_8_8_REV_APPLE, 16#85BB).
+-define(GL_RGB_S3TC, 16#83A0).
+-define(GL_RGB4_S3TC, 16#83A1).
+-define(GL_RGBA_S3TC, 16#83A2).
+-define(GL_RGBA4_S3TC, 16#83A3).
+-define(GL_MAX_DRAW_BUFFERS_ATI, 16#8824).
+-define(GL_DRAW_BUFFER0_ATI, 16#8825).
+-define(GL_DRAW_BUFFER1_ATI, 16#8826).
+-define(GL_DRAW_BUFFER2_ATI, 16#8827).
+-define(GL_DRAW_BUFFER3_ATI, 16#8828).
+-define(GL_DRAW_BUFFER4_ATI, 16#8829).
+-define(GL_DRAW_BUFFER5_ATI, 16#882A).
+-define(GL_DRAW_BUFFER6_ATI, 16#882B).
+-define(GL_DRAW_BUFFER7_ATI, 16#882C).
+-define(GL_DRAW_BUFFER8_ATI, 16#882D).
+-define(GL_DRAW_BUFFER9_ATI, 16#882E).
+-define(GL_DRAW_BUFFER10_ATI, 16#882F).
+-define(GL_DRAW_BUFFER11_ATI, 16#8830).
+-define(GL_DRAW_BUFFER12_ATI, 16#8831).
+-define(GL_DRAW_BUFFER13_ATI, 16#8832).
+-define(GL_DRAW_BUFFER14_ATI, 16#8833).
+-define(GL_DRAW_BUFFER15_ATI, 16#8834).
+-define(GL_TYPE_RGBA_FLOAT_ATI, 16#8820).
+-define(GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI, 16#8835).
+-define(GL_MODULATE_ADD_ATI, 16#8744).
+-define(GL_MODULATE_SIGNED_ADD_ATI, 16#8745).
+-define(GL_MODULATE_SUBTRACT_ATI, 16#8746).
+-define(GL_RGBA_FLOAT32_ATI, 16#8814).
+-define(GL_RGB_FLOAT32_ATI, 16#8815).
+-define(GL_ALPHA_FLOAT32_ATI, 16#8816).
+-define(GL_INTENSITY_FLOAT32_ATI, 16#8817).
+-define(GL_LUMINANCE_FLOAT32_ATI, 16#8818).
+-define(GL_LUMINANCE_ALPHA_FLOAT32_ATI, 16#8819).
+-define(GL_RGBA_FLOAT16_ATI, 16#881A).
+-define(GL_RGB_FLOAT16_ATI, 16#881B).
+-define(GL_ALPHA_FLOAT16_ATI, 16#881C).
+-define(GL_INTENSITY_FLOAT16_ATI, 16#881D).
+-define(GL_LUMINANCE_FLOAT16_ATI, 16#881E).
+-define(GL_LUMINANCE_ALPHA_FLOAT16_ATI, 16#881F).
+-define(GL_FLOAT_R_NV, 16#8880).
+-define(GL_FLOAT_RG_NV, 16#8881).
+-define(GL_FLOAT_RGB_NV, 16#8882).
+-define(GL_FLOAT_RGBA_NV, 16#8883).
+-define(GL_FLOAT_R16_NV, 16#8884).
+-define(GL_FLOAT_R32_NV, 16#8885).
+-define(GL_FLOAT_RG16_NV, 16#8886).
+-define(GL_FLOAT_RG32_NV, 16#8887).
+-define(GL_FLOAT_RGB16_NV, 16#8888).
+-define(GL_FLOAT_RGB32_NV, 16#8889).
+-define(GL_FLOAT_RGBA16_NV, 16#888A).
+-define(GL_FLOAT_RGBA32_NV, 16#888B).
+-define(GL_TEXTURE_FLOAT_COMPONENTS_NV, 16#888C).
+-define(GL_FLOAT_CLEAR_COLOR_VALUE_NV, 16#888D).
+-define(GL_FLOAT_RGBA_MODE_NV, 16#888E).
+-define(GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV, 16#8868).
+-define(GL_FRAGMENT_PROGRAM_NV, 16#8870).
+-define(GL_MAX_TEXTURE_COORDS_NV, 16#8871).
+-define(GL_MAX_TEXTURE_IMAGE_UNITS_NV, 16#8872).
+-define(GL_FRAGMENT_PROGRAM_BINDING_NV, 16#8873).
+-define(GL_PROGRAM_ERROR_STRING_NV, 16#8874).
+-define(GL_HALF_FLOAT_NV, 16#140B).
+-define(GL_WRITE_PIXEL_DATA_RANGE_NV, 16#8878).
+-define(GL_READ_PIXEL_DATA_RANGE_NV, 16#8879).
+-define(GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV, 16#887A).
+-define(GL_READ_PIXEL_DATA_RANGE_LENGTH_NV, 16#887B).
+-define(GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV, 16#887C).
+-define(GL_READ_PIXEL_DATA_RANGE_POINTER_NV, 16#887D).
+-define(GL_PRIMITIVE_RESTART_NV, 16#8558).
+-define(GL_PRIMITIVE_RESTART_INDEX_NV, 16#8559).
+-define(GL_TEXTURE_UNSIGNED_REMAP_MODE_NV, 16#888F).
+-define(GL_STENCIL_BACK_FUNC_ATI, 16#8800).
+-define(GL_STENCIL_BACK_FAIL_ATI, 16#8801).
+-define(GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI, 16#8802).
+-define(GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI, 16#8803).
+-define(GL_IMPLEMENTATION_COLOR_READ_TYPE_OES, 16#8B9A).
+-define(GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES, 16#8B9B).
+-define(GL_DEPTH_BOUNDS_TEST_EXT, 16#8890).
+-define(GL_DEPTH_BOUNDS_EXT, 16#8891).
+-define(GL_MIRROR_CLAMP_EXT, 16#8742).
+-define(GL_MIRROR_CLAMP_TO_EDGE_EXT, 16#8743).
+-define(GL_MIRROR_CLAMP_TO_BORDER_EXT, 16#8912).
+-define(GL_BLEND_EQUATION_RGB_EXT, 16#8009).
+-define(GL_BLEND_EQUATION_ALPHA_EXT, 16#883D).
+-define(GL_PACK_INVERT_MESA, 16#8758).
+-define(GL_UNSIGNED_SHORT_8_8_MESA, 16#85BA).
+-define(GL_UNSIGNED_SHORT_8_8_REV_MESA, 16#85BB).
+-define(GL_YCBCR_MESA, 16#8757).
+-define(GL_PIXEL_PACK_BUFFER_EXT, 16#88EB).
+-define(GL_PIXEL_UNPACK_BUFFER_EXT, 16#88EC).
+-define(GL_PIXEL_PACK_BUFFER_BINDING_EXT, 16#88ED).
+-define(GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, 16#88EF).
+-define(GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV, 16#88F4).
+-define(GL_MAX_PROGRAM_CALL_DEPTH_NV, 16#88F5).
+-define(GL_MAX_PROGRAM_IF_DEPTH_NV, 16#88F6).
+-define(GL_MAX_PROGRAM_LOOP_DEPTH_NV, 16#88F7).
+-define(GL_MAX_PROGRAM_LOOP_COUNT_NV, 16#88F8).
+-define(GL_INVALID_FRAMEBUFFER_OPERATION_EXT, 16#506).
+-define(GL_MAX_RENDERBUFFER_SIZE_EXT, 16#84E8).
+-define(GL_FRAMEBUFFER_BINDING_EXT, 16#8CA6).
+-define(GL_RENDERBUFFER_BINDING_EXT, 16#8CA7).
+-define(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT, 16#8CD0).
+-define(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT, 16#8CD1).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT, 16#8CD2).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT, 16#8CD3).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT, 16#8CD4).
+-define(GL_FRAMEBUFFER_COMPLETE_EXT, 16#8CD5).
+-define(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT, 16#8CD6).
+-define(GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT, 16#8CD7).
+-define(GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT, 16#8CD9).
+-define(GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT, 16#8CDA).
+-define(GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT, 16#8CDB).
+-define(GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT, 16#8CDC).
+-define(GL_FRAMEBUFFER_UNSUPPORTED_EXT, 16#8CDD).
+-define(GL_MAX_COLOR_ATTACHMENTS_EXT, 16#8CDF).
+-define(GL_COLOR_ATTACHMENT0_EXT, 16#8CE0).
+-define(GL_COLOR_ATTACHMENT1_EXT, 16#8CE1).
+-define(GL_COLOR_ATTACHMENT2_EXT, 16#8CE2).
+-define(GL_COLOR_ATTACHMENT3_EXT, 16#8CE3).
+-define(GL_COLOR_ATTACHMENT4_EXT, 16#8CE4).
+-define(GL_COLOR_ATTACHMENT5_EXT, 16#8CE5).
+-define(GL_COLOR_ATTACHMENT6_EXT, 16#8CE6).
+-define(GL_COLOR_ATTACHMENT7_EXT, 16#8CE7).
+-define(GL_COLOR_ATTACHMENT8_EXT, 16#8CE8).
+-define(GL_COLOR_ATTACHMENT9_EXT, 16#8CE9).
+-define(GL_COLOR_ATTACHMENT10_EXT, 16#8CEA).
+-define(GL_COLOR_ATTACHMENT11_EXT, 16#8CEB).
+-define(GL_COLOR_ATTACHMENT12_EXT, 16#8CEC).
+-define(GL_COLOR_ATTACHMENT13_EXT, 16#8CED).
+-define(GL_COLOR_ATTACHMENT14_EXT, 16#8CEE).
+-define(GL_COLOR_ATTACHMENT15_EXT, 16#8CEF).
+-define(GL_DEPTH_ATTACHMENT_EXT, 16#8D00).
+-define(GL_STENCIL_ATTACHMENT_EXT, 16#8D20).
+-define(GL_FRAMEBUFFER_EXT, 16#8D40).
+-define(GL_RENDERBUFFER_EXT, 16#8D41).
+-define(GL_RENDERBUFFER_WIDTH_EXT, 16#8D42).
+-define(GL_RENDERBUFFER_HEIGHT_EXT, 16#8D43).
+-define(GL_RENDERBUFFER_INTERNAL_FORMAT_EXT, 16#8D44).
+-define(GL_STENCIL_INDEX1_EXT, 16#8D46).
+-define(GL_STENCIL_INDEX4_EXT, 16#8D47).
+-define(GL_STENCIL_INDEX8_EXT, 16#8D48).
+-define(GL_STENCIL_INDEX16_EXT, 16#8D49).
+-define(GL_RENDERBUFFER_RED_SIZE_EXT, 16#8D50).
+-define(GL_RENDERBUFFER_GREEN_SIZE_EXT, 16#8D51).
+-define(GL_RENDERBUFFER_BLUE_SIZE_EXT, 16#8D52).
+-define(GL_RENDERBUFFER_ALPHA_SIZE_EXT, 16#8D53).
+-define(GL_RENDERBUFFER_DEPTH_SIZE_EXT, 16#8D54).
+-define(GL_RENDERBUFFER_STENCIL_SIZE_EXT, 16#8D55).
+-define(GL_DEPTH_STENCIL_EXT, 16#84F9).
+-define(GL_UNSIGNED_INT_24_8_EXT, 16#84FA).
+-define(GL_DEPTH24_STENCIL8_EXT, 16#88F0).
+-define(GL_TEXTURE_STENCIL_SIZE_EXT, 16#88F1).
+-define(GL_STENCIL_TAG_BITS_EXT, 16#88F2).
+-define(GL_STENCIL_CLEAR_TAG_VALUE_EXT, 16#88F3).
+-define(GL_SRGB_EXT, 16#8C40).
+-define(GL_SRGB8_EXT, 16#8C41).
+-define(GL_SRGB_ALPHA_EXT, 16#8C42).
+-define(GL_SRGB8_ALPHA8_EXT, 16#8C43).
+-define(GL_SLUMINANCE_ALPHA_EXT, 16#8C44).
+-define(GL_SLUMINANCE8_ALPHA8_EXT, 16#8C45).
+-define(GL_SLUMINANCE_EXT, 16#8C46).
+-define(GL_SLUMINANCE8_EXT, 16#8C47).
+-define(GL_COMPRESSED_SRGB_EXT, 16#8C48).
+-define(GL_COMPRESSED_SRGB_ALPHA_EXT, 16#8C49).
+-define(GL_COMPRESSED_SLUMINANCE_EXT, 16#8C4A).
+-define(GL_COMPRESSED_SLUMINANCE_ALPHA_EXT, 16#8C4B).
+-define(GL_COMPRESSED_SRGB_S3TC_DXT1_EXT, 16#8C4C).
+-define(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, 16#8C4D).
+-define(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, 16#8C4E).
+-define(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, 16#8C4F).
+-define(GL_READ_FRAMEBUFFER_EXT, 16#8CA8).
+-define(GL_DRAW_FRAMEBUFFER_EXT, 16#8CA9).
+-define(GL_DRAW_FRAMEBUFFER_BINDING_EXT, ?GL_FRAMEBUFFER_BINDING_EXT).
+-define(GL_READ_FRAMEBUFFER_BINDING_EXT, 16#8CAA).
+-define(GL_RENDERBUFFER_SAMPLES_EXT, 16#8CAB).
+-define(GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT, 16#8D56).
+-define(GL_MAX_SAMPLES_EXT, 16#8D57).
+-define(GL_TEXTURE_1D_STACK_MESAX, 16#8759).
+-define(GL_TEXTURE_2D_STACK_MESAX, 16#875A).
+-define(GL_PROXY_TEXTURE_1D_STACK_MESAX, 16#875B).
+-define(GL_PROXY_TEXTURE_2D_STACK_MESAX, 16#875C).
+-define(GL_TEXTURE_1D_STACK_BINDING_MESAX, 16#875D).
+-define(GL_TEXTURE_2D_STACK_BINDING_MESAX, 16#875E).
+-define(GL_TIME_ELAPSED_EXT, 16#88BF).
+-define(GL_BUFFER_SERIALIZED_MODIFY_APPLE, 16#8A12).
+-define(GL_BUFFER_FLUSHING_UNMAP_APPLE, 16#8A13).
+-define(GL_MIN_PROGRAM_TEXEL_OFFSET_NV, 16#8904).
+-define(GL_MAX_PROGRAM_TEXEL_OFFSET_NV, 16#8905).
+-define(GL_PROGRAM_ATTRIB_COMPONENTS_NV, 16#8906).
+-define(GL_PROGRAM_RESULT_COMPONENTS_NV, 16#8907).
+-define(GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV, 16#8908).
+-define(GL_MAX_PROGRAM_RESULT_COMPONENTS_NV, 16#8909).
+-define(GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV, 16#8DA5).
+-define(GL_MAX_PROGRAM_GENERIC_RESULTS_NV, 16#8DA6).
+-define(GL_LINES_ADJACENCY_EXT, 16#A).
+-define(GL_LINE_STRIP_ADJACENCY_EXT, 16#B).
+-define(GL_TRIANGLES_ADJACENCY_EXT, 16#C).
+-define(GL_TRIANGLE_STRIP_ADJACENCY_EXT, 16#D).
+-define(GL_GEOMETRY_PROGRAM_NV, 16#8C26).
+-define(GL_MAX_PROGRAM_OUTPUT_VERTICES_NV, 16#8C27).
+-define(GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV, 16#8C28).
+-define(GL_GEOMETRY_VERTICES_OUT_EXT, 16#8DDA).
+-define(GL_GEOMETRY_INPUT_TYPE_EXT, 16#8DDB).
+-define(GL_GEOMETRY_OUTPUT_TYPE_EXT, 16#8DDC).
+-define(GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT, 16#8C29).
+-define(GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT, 16#8DA7).
+-define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT, 16#8DA8).
+-define(GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT, 16#8DA9).
+-define(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT, 16#8CD4).
+-define(GL_PROGRAM_POINT_SIZE_EXT, 16#8642).
+-define(GL_GEOMETRY_SHADER_EXT, 16#8DD9).
+-define(GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT, 16#8DDD).
+-define(GL_MAX_VERTEX_VARYING_COMPONENTS_EXT, 16#8DDE).
+-define(GL_MAX_VARYING_COMPONENTS_EXT, 16#8B4B).
+-define(GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT, 16#8DDF).
+-define(GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT, 16#8DE0).
+-define(GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT, 16#8DE1).
+-define(GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV, 16#88FD).
+-define(GL_SAMPLER_1D_ARRAY_EXT, 16#8DC0).
+-define(GL_SAMPLER_2D_ARRAY_EXT, 16#8DC1).
+-define(GL_SAMPLER_BUFFER_EXT, 16#8DC2).
+-define(GL_SAMPLER_1D_ARRAY_SHADOW_EXT, 16#8DC3).
+-define(GL_SAMPLER_2D_ARRAY_SHADOW_EXT, 16#8DC4).
+-define(GL_SAMPLER_CUBE_SHADOW_EXT, 16#8DC5).
+-define(GL_UNSIGNED_INT_VEC2_EXT, 16#8DC6).
+-define(GL_UNSIGNED_INT_VEC3_EXT, 16#8DC7).
+-define(GL_UNSIGNED_INT_VEC4_EXT, 16#8DC8).
+-define(GL_INT_SAMPLER_1D_EXT, 16#8DC9).
+-define(GL_INT_SAMPLER_2D_EXT, 16#8DCA).
+-define(GL_INT_SAMPLER_3D_EXT, 16#8DCB).
+-define(GL_INT_SAMPLER_CUBE_EXT, 16#8DCC).
+-define(GL_INT_SAMPLER_2D_RECT_EXT, 16#8DCD).
+-define(GL_INT_SAMPLER_1D_ARRAY_EXT, 16#8DCE).
+-define(GL_INT_SAMPLER_2D_ARRAY_EXT, 16#8DCF).
+-define(GL_INT_SAMPLER_BUFFER_EXT, 16#8DD0).
+-define(GL_UNSIGNED_INT_SAMPLER_1D_EXT, 16#8DD1).
+-define(GL_UNSIGNED_INT_SAMPLER_2D_EXT, 16#8DD2).
+-define(GL_UNSIGNED_INT_SAMPLER_3D_EXT, 16#8DD3).
+-define(GL_UNSIGNED_INT_SAMPLER_CUBE_EXT, 16#8DD4).
+-define(GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT, 16#8DD5).
+-define(GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT, 16#8DD6).
+-define(GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT, 16#8DD7).
+-define(GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT, 16#8DD8).
+-define(GL_R11F_G11F_B10F_EXT, 16#8C3A).
+-define(GL_UNSIGNED_INT_10F_11F_11F_REV_EXT, 16#8C3B).
+-define(GL_RGBA_SIGNED_COMPONENTS_EXT, 16#8C3C).
+-define(GL_TEXTURE_1D_ARRAY_EXT, 16#8C18).
+-define(GL_PROXY_TEXTURE_1D_ARRAY_EXT, 16#8C19).
+-define(GL_TEXTURE_2D_ARRAY_EXT, 16#8C1A).
+-define(GL_PROXY_TEXTURE_2D_ARRAY_EXT, 16#8C1B).
+-define(GL_TEXTURE_BINDING_1D_ARRAY_EXT, 16#8C1C).
+-define(GL_TEXTURE_BINDING_2D_ARRAY_EXT, 16#8C1D).
+-define(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, 16#88FF).
+-define(GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT, 16#884E).
+-define(GL_TEXTURE_BUFFER_EXT, 16#8C2A).
+-define(GL_MAX_TEXTURE_BUFFER_SIZE_EXT, 16#8C2B).
+-define(GL_TEXTURE_BINDING_BUFFER_EXT, 16#8C2C).
+-define(GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT, 16#8C2D).
+-define(GL_TEXTURE_BUFFER_FORMAT_EXT, 16#8C2E).
+-define(GL_COMPRESSED_LUMINANCE_LATC1_EXT, 16#8C70).
+-define(GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT, 16#8C71).
+-define(GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT, 16#8C72).
+-define(GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT, 16#8C73).
+-define(GL_COMPRESSED_RED_RGTC1_EXT, 16#8DBB).
+-define(GL_COMPRESSED_SIGNED_RED_RGTC1_EXT, 16#8DBC).
+-define(GL_COMPRESSED_RED_GREEN_RGTC2_EXT, 16#8DBD).
+-define(GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT, 16#8DBE).
+-define(GL_RGB9_E5_EXT, 16#8C3D).
+-define(GL_UNSIGNED_INT_5_9_9_9_REV_EXT, 16#8C3E).
+-define(GL_TEXTURE_SHARED_SIZE_EXT, 16#8C3F).
+-define(GL_DEPTH_COMPONENT32F_NV, 16#8DAB).
+-define(GL_DEPTH32F_STENCIL8_NV, 16#8DAC).
+-define(GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV, 16#8DAD).
+-define(GL_DEPTH_BUFFER_FLOAT_MODE_NV, 16#8DAF).
+-define(GL_RENDERBUFFER_COVERAGE_SAMPLES_NV, 16#8CAB).
+-define(GL_RENDERBUFFER_COLOR_SAMPLES_NV, 16#8E10).
+-define(GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV, 16#8E11).
+-define(GL_MULTISAMPLE_COVERAGE_MODES_NV, 16#8E12).
+-define(GL_FRAMEBUFFER_SRGB_EXT, 16#8DB9).
+-define(GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, 16#8DBA).
+-define(GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV, 16#8DA0).
+-define(GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV, 16#8DA1).
+-define(GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV, 16#8DA2).
+-define(GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV, 16#8DA3).
+-define(GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV, 16#8DA4).
+-define(GL_BACK_PRIMARY_COLOR_NV, 16#8C77).
+-define(GL_BACK_SECONDARY_COLOR_NV, 16#8C78).
+-define(GL_TEXTURE_COORD_NV, 16#8C79).
+-define(GL_CLIP_DISTANCE_NV, 16#8C7A).
+-define(GL_VERTEX_ID_NV, 16#8C7B).
+-define(GL_PRIMITIVE_ID_NV, 16#8C7C).
+-define(GL_GENERIC_ATTRIB_NV, 16#8C7D).
+-define(GL_TRANSFORM_FEEDBACK_ATTRIBS_NV, 16#8C7E).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV, 16#8C7F).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV, 16#8C80).
+-define(GL_ACTIVE_VARYINGS_NV, 16#8C81).
+-define(GL_ACTIVE_VARYING_MAX_LENGTH_NV, 16#8C82).
+-define(GL_TRANSFORM_FEEDBACK_VARYINGS_NV, 16#8C83).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_START_NV, 16#8C84).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV, 16#8C85).
+-define(GL_TRANSFORM_FEEDBACK_RECORD_NV, 16#8C86).
+-define(GL_PRIMITIVES_GENERATED_NV, 16#8C87).
+-define(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV, 16#8C88).
+-define(GL_RASTERIZER_DISCARD_NV, 16#8C89).
+-define(GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV, 16#8C8A).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV, 16#8C8B).
+-define(GL_INTERLEAVED_ATTRIBS_NV, 16#8C8C).
+-define(GL_SEPARATE_ATTRIBS_NV, 16#8C8D).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_NV, 16#8C8E).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV, 16#8C8F).
+-define(GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT, 16#8DE2).
+-define(GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT, 16#8DE3).
+-define(GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT, 16#8DE4).
+-define(GL_MAX_BINDABLE_UNIFORM_SIZE_EXT, 16#8DED).
+-define(GL_UNIFORM_BUFFER_EXT, 16#8DEE).
+-define(GL_UNIFORM_BUFFER_BINDING_EXT, 16#8DEF).
+-define(GL_RGBA32UI_EXT, 16#8D70).
+-define(GL_RGB32UI_EXT, 16#8D71).
+-define(GL_ALPHA32UI_EXT, 16#8D72).
+-define(GL_INTENSITY32UI_EXT, 16#8D73).
+-define(GL_LUMINANCE32UI_EXT, 16#8D74).
+-define(GL_LUMINANCE_ALPHA32UI_EXT, 16#8D75).
+-define(GL_RGBA16UI_EXT, 16#8D76).
+-define(GL_RGB16UI_EXT, 16#8D77).
+-define(GL_ALPHA16UI_EXT, 16#8D78).
+-define(GL_INTENSITY16UI_EXT, 16#8D79).
+-define(GL_LUMINANCE16UI_EXT, 16#8D7A).
+-define(GL_LUMINANCE_ALPHA16UI_EXT, 16#8D7B).
+-define(GL_RGBA8UI_EXT, 16#8D7C).
+-define(GL_RGB8UI_EXT, 16#8D7D).
+-define(GL_ALPHA8UI_EXT, 16#8D7E).
+-define(GL_INTENSITY8UI_EXT, 16#8D7F).
+-define(GL_LUMINANCE8UI_EXT, 16#8D80).
+-define(GL_LUMINANCE_ALPHA8UI_EXT, 16#8D81).
+-define(GL_RGBA32I_EXT, 16#8D82).
+-define(GL_RGB32I_EXT, 16#8D83).
+-define(GL_ALPHA32I_EXT, 16#8D84).
+-define(GL_INTENSITY32I_EXT, 16#8D85).
+-define(GL_LUMINANCE32I_EXT, 16#8D86).
+-define(GL_LUMINANCE_ALPHA32I_EXT, 16#8D87).
+-define(GL_RGBA16I_EXT, 16#8D88).
+-define(GL_RGB16I_EXT, 16#8D89).
+-define(GL_ALPHA16I_EXT, 16#8D8A).
+-define(GL_INTENSITY16I_EXT, 16#8D8B).
+-define(GL_LUMINANCE16I_EXT, 16#8D8C).
+-define(GL_LUMINANCE_ALPHA16I_EXT, 16#8D8D).
+-define(GL_RGBA8I_EXT, 16#8D8E).
+-define(GL_RGB8I_EXT, 16#8D8F).
+-define(GL_ALPHA8I_EXT, 16#8D90).
+-define(GL_INTENSITY8I_EXT, 16#8D91).
+-define(GL_LUMINANCE8I_EXT, 16#8D92).
+-define(GL_LUMINANCE_ALPHA8I_EXT, 16#8D93).
+-define(GL_RED_INTEGER_EXT, 16#8D94).
+-define(GL_GREEN_INTEGER_EXT, 16#8D95).
+-define(GL_BLUE_INTEGER_EXT, 16#8D96).
+-define(GL_ALPHA_INTEGER_EXT, 16#8D97).
+-define(GL_RGB_INTEGER_EXT, 16#8D98).
+-define(GL_RGBA_INTEGER_EXT, 16#8D99).
+-define(GL_BGR_INTEGER_EXT, 16#8D9A).
+-define(GL_BGRA_INTEGER_EXT, 16#8D9B).
+-define(GL_LUMINANCE_INTEGER_EXT, 16#8D9C).
+-define(GL_LUMINANCE_ALPHA_INTEGER_EXT, 16#8D9D).
+-define(GL_RGBA_INTEGER_MODE_EXT, 16#8D9E).
+-define(GL_QUERY_WAIT_NV, 16#8E13).
+-define(GL_QUERY_NO_WAIT_NV, 16#8E14).
+-define(GL_QUERY_BY_REGION_WAIT_NV, 16#8E15).
+-define(GL_QUERY_BY_REGION_NO_WAIT_NV, 16#8E16).
+-define(GL_FRAME_NV, 16#8E26).
+-define(GL_FIELDS_NV, 16#8E27).
+-define(GL_CURRENT_TIME_NV, 16#8E28).
+-define(GL_NUM_FILL_STREAMS_NV, 16#8E29).
+-define(GL_PRESENT_TIME_NV, 16#8E2A).
+-define(GL_PRESENT_DURATION_NV, 16#8E2B).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_EXT, 16#8C8E).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT, 16#8C84).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT, 16#8C85).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT, 16#8C8F).
+-define(GL_INTERLEAVED_ATTRIBS_EXT, 16#8C8C).
+-define(GL_SEPARATE_ATTRIBS_EXT, 16#8C8D).
+-define(GL_PRIMITIVES_GENERATED_EXT, 16#8C87).
+-define(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT, 16#8C88).
+-define(GL_RASTERIZER_DISCARD_EXT, 16#8C89).
+-define(GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT, 16#8C8A).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT, 16#8C8B).
+-define(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT, 16#8C80).
+-define(GL_TRANSFORM_FEEDBACK_VARYINGS_EXT, 16#8C83).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT, 16#8C7F).
+-define(GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT, 16#8C76).
+-define(GL_PROGRAM_MATRIX_EXT, 16#8E2D).
+-define(GL_TRANSPOSE_PROGRAM_MATRIX_EXT, 16#8E2E).
+-define(GL_PROGRAM_MATRIX_STACK_DEPTH_EXT, 16#8E2F).
+-define(GL_TEXTURE_SWIZZLE_R_EXT, 16#8E42).
+-define(GL_TEXTURE_SWIZZLE_G_EXT, 16#8E43).
+-define(GL_TEXTURE_SWIZZLE_B_EXT, 16#8E44).
+-define(GL_TEXTURE_SWIZZLE_A_EXT, 16#8E45).
+-define(GL_TEXTURE_SWIZZLE_RGBA_EXT, 16#8E46).
+-define(GL_SAMPLE_POSITION_NV, 16#8E50).
+-define(GL_SAMPLE_MASK_NV, 16#8E51).
+-define(GL_SAMPLE_MASK_VALUE_NV, 16#8E52).
+-define(GL_TEXTURE_BINDING_RENDERBUFFER_NV, 16#8E53).
+-define(GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV, 16#8E54).
+-define(GL_MAX_SAMPLE_MASK_WORDS_NV, 16#8E59).
+-define(GL_TEXTURE_RENDERBUFFER_NV, 16#8E55).
+-define(GL_SAMPLER_RENDERBUFFER_NV, 16#8E56).
+-define(GL_INT_SAMPLER_RENDERBUFFER_NV, 16#8E57).
+-define(GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV, 16#8E58).
+-define(GL_TRANSFORM_FEEDBACK_NV, 16#8E22).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV, 16#8E23).
+-define(GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV, 16#8E24).
+-define(GL_TRANSFORM_FEEDBACK_BINDING_NV, 16#8E25).
+-define(GL_VBO_FREE_MEMORY_ATI, 16#87FB).
+-define(GL_TEXTURE_FREE_MEMORY_ATI, 16#87FC).
+-define(GL_RENDERBUFFER_FREE_MEMORY_ATI, 16#87FD).
+-define(GL_COUNTER_TYPE_AMD, 16#8BC0).
+-define(GL_COUNTER_RANGE_AMD, 16#8BC1).
+-define(GL_UNSIGNED_INT64_AMD, 16#8BC2).
+-define(GL_PERCENTAGE_AMD, 16#8BC3).
+-define(GL_PERFMON_RESULT_AVAILABLE_AMD, 16#8BC4).
+-define(GL_PERFMON_RESULT_SIZE_AMD, 16#8BC5).
+-define(GL_PERFMON_RESULT_AMD, 16#8BC6).
+-define(GL_SAMPLER_BUFFER_AMD, 16#9001).
+-define(GL_INT_SAMPLER_BUFFER_AMD, 16#9002).
+-define(GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD, 16#9003).
+-define(GL_TESSELLATION_MODE_AMD, 16#9004).
+-define(GL_TESSELLATION_FACTOR_AMD, 16#9005).
+-define(GL_DISCRETE_AMD, 16#9006).
+-define(GL_CONTINUOUS_AMD, 16#9007).
+-define(GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT, 16#8E4C).
+-define(GL_FIRST_VERTEX_CONVENTION_EXT, 16#8E4D).
+-define(GL_LAST_VERTEX_CONVENTION_EXT, 16#8E4E).
+-define(GL_PROVOKING_VERTEX_EXT, 16#8E4F).
+-define(GL_VERSION_1_2, 1).
+-define(GL_VERSION_1_2_DEPRECATED, 1).
+-define(GL_VERSION_1_3, 1).
+-define(GL_VERSION_1_3_DEPRECATED, 1).
+-define(GL_VERSION_1_4, 1).
+-define(GL_VERSION_1_4_DEPRECATED, 1).
+-define(GL_VERSION_1_5, 1).
+-define(GL_VERSION_2_0, 1).
+-define(GL_VERSION_2_1, 1).
+-define(GL_VERSION_3_0, 1).
+-define(GL_VERSION_3_0_DEPRECATED, 1).
+-define(GL_VERSION_3_1, 1).
+-define(GL_ARB_multitexture, 1).
+-define(GL_ARB_transpose_matrix, 1).
+-define(GL_ARB_multisample, 1).
+-define(GL_ARB_texture_env_add, 1).
+-define(GL_ARB_texture_cube_map, 1).
+-define(GL_ARB_texture_compression, 1).
+-define(GL_ARB_texture_border_clamp, 1).
+-define(GL_ARB_point_parameters, 1).
+-define(GL_ARB_vertex_blend, 1).
+-define(GL_ARB_matrix_palette, 1).
+-define(GL_ARB_texture_env_combine, 1).
+-define(GL_ARB_texture_env_crossbar, 1).
+-define(GL_ARB_texture_env_dot3, 1).
+-define(GL_ARB_texture_mirrored_repeat, 1).
+-define(GL_ARB_depth_texture, 1).
+-define(GL_ARB_shadow, 1).
+-define(GL_ARB_shadow_ambient, 1).
+-define(GL_ARB_window_pos, 1).
+-define(GL_ARB_vertex_program, 1).
+-define(GL_ARB_fragment_program, 1).
+-define(GL_ARB_vertex_buffer_object, 1).
+-define(GL_ARB_occlusion_query, 1).
+-define(GL_ARB_shader_objects, 1).
+-define(GL_ARB_vertex_shader, 1).
+-define(GL_ARB_fragment_shader, 1).
+-define(GL_ARB_shading_language_100, 1).
+-define(GL_ARB_texture_non_power_of_two, 1).
+-define(GL_ARB_point_sprite, 1).
+-define(GL_ARB_fragment_program_shadow, 1).
+-define(GL_ARB_draw_buffers, 1).
+-define(GL_ARB_texture_rectangle, 1).
+-define(GL_ARB_color_buffer_float, 1).
+-define(GL_ARB_half_float_pixel, 1).
+-define(GL_ARB_texture_float, 1).
+-define(GL_ARB_pixel_buffer_object, 1).
+-define(GL_ARB_depth_buffer_float, 1).
+-define(GL_ARB_draw_instanced, 1).
+-define(GL_ARB_framebuffer_object, 1).
+-define(GL_ARB_framebuffer_sRGB, 1).
+-define(GL_ARB_geometry_shader4, 1).
+-define(GL_ARB_half_float_vertex, 1).
+-define(GL_ARB_instanced_arrays, 1).
+-define(GL_ARB_map_buffer_range, 1).
+-define(GL_ARB_texture_buffer_object, 1).
+-define(GL_ARB_texture_compression_rgtc, 1).
+-define(GL_ARB_texture_rg, 1).
+-define(GL_ARB_vertex_array_object, 1).
+-define(GL_ARB_uniform_buffer_object, 1).
+-define(GL_ARB_compatibility, 1).
+-define(GL_ARB_copy_buffer, 1).
+-define(GL_ARB_shader_texture_lod, 1).
+-define(GL_EXT_abgr, 1).
+-define(GL_EXT_blend_color, 1).
+-define(GL_EXT_polygon_offset, 1).
+-define(GL_EXT_texture, 1).
+-define(GL_EXT_texture3D, 1).
+-define(GL_SGIS_texture_filter4, 1).
+-define(GL_EXT_subtexture, 1).
+-define(GL_EXT_copy_texture, 1).
+-define(GL_EXT_histogram, 1).
+-define(GL_EXT_convolution, 1).
+-define(GL_SGI_color_matrix, 1).
+-define(GL_SGI_color_table, 1).
+-define(GL_SGIX_pixel_texture, 1).
+-define(GL_SGIS_pixel_texture, 1).
+-define(GL_SGIS_texture4D, 1).
+-define(GL_SGI_texture_color_table, 1).
+-define(GL_EXT_cmyka, 1).
+-define(GL_EXT_texture_object, 1).
+-define(GL_SGIS_detail_texture, 1).
+-define(GL_SGIS_sharpen_texture, 1).
+-define(GL_EXT_packed_pixels, 1).
+-define(GL_SGIS_texture_lod, 1).
+-define(GL_SGIS_multisample, 1).
+-define(GL_EXT_rescale_normal, 1).
+-define(GL_EXT_vertex_array, 1).
+-define(GL_EXT_misc_attribute, 1).
+-define(GL_SGIS_generate_mipmap, 1).
+-define(GL_SGIX_clipmap, 1).
+-define(GL_SGIX_shadow, 1).
+-define(GL_SGIS_texture_edge_clamp, 1).
+-define(GL_SGIS_texture_border_clamp, 1).
+-define(GL_EXT_blend_minmax, 1).
+-define(GL_EXT_blend_subtract, 1).
+-define(GL_EXT_blend_logic_op, 1).
+-define(GL_SGIX_interlace, 1).
+-define(GL_SGIX_pixel_tiles, 1).
+-define(GL_SGIX_texture_select, 1).
+-define(GL_SGIX_sprite, 1).
+-define(GL_SGIX_texture_multi_buffer, 1).
+-define(GL_EXT_point_parameters, 1).
+-define(GL_SGIS_point_parameters, 1).
+-define(GL_SGIX_instruments, 1).
+-define(GL_SGIX_texture_scale_bias, 1).
+-define(GL_SGIX_framezoom, 1).
+-define(GL_SGIX_tag_sample_buffer, 1).
+-define(GL_SGIX_polynomial_ffd, 1).
+-define(GL_SGIX_reference_plane, 1).
+-define(GL_SGIX_flush_raster, 1).
+-define(GL_SGIX_depth_texture, 1).
+-define(GL_SGIS_fog_function, 1).
+-define(GL_SGIX_fog_offset, 1).
+-define(GL_HP_image_transform, 1).
+-define(GL_HP_convolution_border_modes, 1).
+-define(GL_SGIX_texture_add_env, 1).
+-define(GL_EXT_color_subtable, 1).
+-define(GL_PGI_vertex_hints, 1).
+-define(GL_PGI_misc_hints, 1).
+-define(GL_EXT_paletted_texture, 1).
+-define(GL_EXT_clip_volume_hint, 1).
+-define(GL_SGIX_list_priority, 1).
+-define(GL_SGIX_ir_instrument1, 1).
+-define(GL_SGIX_calligraphic_fragment, 1).
+-define(GL_SGIX_texture_lod_bias, 1).
+-define(GL_SGIX_shadow_ambient, 1).
+-define(GL_EXT_index_texture, 1).
+-define(GL_EXT_index_material, 1).
+-define(GL_EXT_index_func, 1).
+-define(GL_EXT_index_array_formats, 1).
+-define(GL_EXT_compiled_vertex_array, 1).
+-define(GL_EXT_cull_vertex, 1).
+-define(GL_SGIX_ycrcb, 1).
+-define(GL_SGIX_fragment_lighting, 1).
+-define(GL_IBM_rasterpos_clip, 1).
+-define(GL_HP_texture_lighting, 1).
+-define(GL_EXT_draw_range_elements, 1).
+-define(GL_WIN_phong_shading, 1).
+-define(GL_WIN_specular_fog, 1).
+-define(GL_EXT_light_texture, 1).
+-define(GL_SGIX_blend_alpha_minmax, 1).
+-define(GL_EXT_bgra, 1).
+-define(GL_SGIX_async, 1).
+-define(GL_SGIX_async_pixel, 1).
+-define(GL_SGIX_async_histogram, 1).
+-define(GL_INTEL_parallel_arrays, 1).
+-define(GL_HP_occlusion_test, 1).
+-define(GL_EXT_pixel_transform, 1).
+-define(GL_EXT_pixel_transform_color_table, 1).
+-define(GL_EXT_shared_texture_palette, 1).
+-define(GL_EXT_separate_specular_color, 1).
+-define(GL_EXT_secondary_color, 1).
+-define(GL_EXT_texture_perturb_normal, 1).
+-define(GL_EXT_multi_draw_arrays, 1).
+-define(GL_EXT_fog_coord, 1).
+-define(GL_REND_screen_coordinates, 1).
+-define(GL_EXT_coordinate_frame, 1).
+-define(GL_EXT_texture_env_combine, 1).
+-define(GL_APPLE_specular_vector, 1).
+-define(GL_APPLE_transform_hint, 1).
+-define(GL_SGIX_fog_scale, 1).
+-define(GL_SUNX_constant_data, 1).
+-define(GL_SUN_global_alpha, 1).
+-define(GL_SUN_triangle_list, 1).
+-define(GL_SUN_vertex, 1).
+-define(GL_EXT_blend_func_separate, 1).
+-define(GL_INGR_blend_func_separate, 1).
+-define(GL_INGR_color_clamp, 1).
+-define(GL_INGR_interlace_read, 1).
+-define(GL_EXT_stencil_wrap, 1).
+-define(GL_EXT_422_pixels, 1).
+-define(GL_NV_texgen_reflection, 1).
+-define(GL_SUN_convolution_border_modes, 1).
+-define(GL_EXT_texture_env_add, 1).
+-define(GL_EXT_texture_lod_bias, 1).
+-define(GL_EXT_texture_filter_anisotropic, 1).
+-define(GL_EXT_vertex_weighting, 1).
+-define(GL_NV_light_max_exponent, 1).
+-define(GL_NV_vertex_array_range, 1).
+-define(GL_NV_register_combiners, 1).
+-define(GL_NV_fog_distance, 1).
+-define(GL_NV_texgen_emboss, 1).
+-define(GL_NV_blend_square, 1).
+-define(GL_NV_texture_env_combine4, 1).
+-define(GL_MESA_resize_buffers, 1).
+-define(GL_MESA_window_pos, 1).
+-define(GL_IBM_cull_vertex, 1).
+-define(GL_IBM_multimode_draw_arrays, 1).
+-define(GL_IBM_vertex_array_lists, 1).
+-define(GL_SGIX_subsample, 1).
+-define(GL_SGIX_ycrcba, 1).
+-define(GL_SGIX_ycrcb_subsample, 1).
+-define(GL_SGIX_depth_pass_instrument, 1).
+-define(GL_3DFX_texture_compression_FXT1, 1).
+-define(GL_3DFX_multisample, 1).
+-define(GL_3DFX_tbuffer, 1).
+-define(GL_EXT_multisample, 1).
+-define(GL_SGIX_vertex_preclip, 1).
+-define(GL_SGIX_convolution_accuracy, 1).
+-define(GL_SGIX_resample, 1).
+-define(GL_SGIS_point_line_texgen, 1).
+-define(GL_SGIS_texture_color_mask, 1).
+-define(GL_SGIX_igloo_interface, 1).
+-define(GL_EXT_texture_env_dot3, 1).
+-define(GL_ATI_texture_mirror_once, 1).
+-define(GL_NV_fence, 1).
+-define(GL_NV_evaluators, 1).
+-define(GL_NV_packed_depth_stencil, 1).
+-define(GL_NV_register_combiners2, 1).
+-define(GL_NV_texture_compression_vtc, 1).
+-define(GL_NV_texture_rectangle, 1).
+-define(GL_NV_texture_shader, 1).
+-define(GL_NV_texture_shader2, 1).
+-define(GL_NV_vertex_array_range2, 1).
+-define(GL_NV_vertex_program, 1).
+-define(GL_SGIX_texture_coordinate_clamp, 1).
+-define(GL_SGIX_scalebias_hint, 1).
+-define(GL_OML_interlace, 1).
+-define(GL_OML_subsample, 1).
+-define(GL_OML_resample, 1).
+-define(GL_NV_copy_depth_to_color, 1).
+-define(GL_ATI_envmap_bumpmap, 1).
+-define(GL_ATI_fragment_shader, 1).
+-define(GL_ATI_pn_triangles, 1).
+-define(GL_ATI_vertex_array_object, 1).
+-define(GL_EXT_vertex_shader, 1).
+-define(GL_ATI_vertex_streams, 1).
+-define(GL_ATI_element_array, 1).
+-define(GL_SUN_mesh_array, 1).
+-define(GL_SUN_slice_accum, 1).
+-define(GL_NV_multisample_filter_hint, 1).
+-define(GL_NV_depth_clamp, 1).
+-define(GL_NV_occlusion_query, 1).
+-define(GL_NV_point_sprite, 1).
+-define(GL_NV_texture_shader3, 1).
+-define(GL_NV_vertex_program1_1, 1).
+-define(GL_EXT_shadow_funcs, 1).
+-define(GL_EXT_stencil_two_side, 1).
+-define(GL_ATI_text_fragment_shader, 1).
+-define(GL_APPLE_client_storage, 1).
+-define(GL_APPLE_element_array, 1).
+-define(GL_APPLE_fence, 1).
+-define(GL_APPLE_vertex_array_object, 1).
+-define(GL_APPLE_vertex_array_range, 1).
+-define(GL_APPLE_ycbcr_422, 1).
+-define(GL_S3_s3tc, 1).
+-define(GL_ATI_draw_buffers, 1).
+-define(GL_ATI_pixel_format_float, 1).
+-define(GL_ATI_texture_env_combine3, 1).
+-define(GL_ATI_texture_float, 1).
+-define(GL_NV_float_buffer, 1).
+-define(GL_NV_fragment_program, 1).
+-define(GL_NV_half_float, 1).
+-define(GL_NV_pixel_data_range, 1).
+-define(GL_NV_primitive_restart, 1).
+-define(GL_NV_texture_expand_normal, 1).
+-define(GL_NV_vertex_program2, 1).
+-define(GL_ATI_map_object_buffer, 1).
+-define(GL_ATI_separate_stencil, 1).
+-define(GL_ATI_vertex_attrib_array_object, 1).
+-define(GL_OES_read_format, 1).
+-define(GL_EXT_depth_bounds_test, 1).
+-define(GL_EXT_texture_mirror_clamp, 1).
+-define(GL_EXT_blend_equation_separate, 1).
+-define(GL_MESA_pack_invert, 1).
+-define(GL_MESA_ycbcr_texture, 1).
+-define(GL_EXT_pixel_buffer_object, 1).
+-define(GL_NV_fragment_program_option, 1).
+-define(GL_NV_fragment_program2, 1).
+-define(GL_NV_vertex_program2_option, 1).
+-define(GL_NV_vertex_program3, 1).
+-define(GL_EXT_framebuffer_object, 1).
+-define(GL_GREMEDY_string_marker, 1).
+-define(GL_EXT_packed_depth_stencil, 1).
+-define(GL_EXT_stencil_clear_tag, 1).
+-define(GL_EXT_texture_sRGB, 1).
+-define(GL_EXT_framebuffer_blit, 1).
+-define(GL_EXT_framebuffer_multisample, 1).
+-define(GL_MESAX_texture_stack, 1).
+-define(GL_EXT_timer_query, 1).
+-define(GL_EXT_gpu_program_parameters, 1).
+-define(GL_APPLE_flush_buffer_range, 1).
+-define(GL_NV_gpu_program4, 1).
+-define(GL_NV_geometry_program4, 1).
+-define(GL_EXT_geometry_shader4, 1).
+-define(GL_NV_vertex_program4, 1).
+-define(GL_EXT_gpu_shader4, 1).
+-define(GL_EXT_draw_instanced, 1).
+-define(GL_EXT_packed_float, 1).
+-define(GL_EXT_texture_array, 1).
+-define(GL_EXT_texture_buffer_object, 1).
+-define(GL_EXT_texture_compression_latc, 1).
+-define(GL_EXT_texture_compression_rgtc, 1).
+-define(GL_EXT_texture_shared_exponent, 1).
+-define(GL_NV_depth_buffer_float, 1).
+-define(GL_NV_fragment_program4, 1).
+-define(GL_NV_framebuffer_multisample_coverage, 1).
+-define(GL_EXT_framebuffer_sRGB, 1).
+-define(GL_NV_geometry_shader4, 1).
+-define(GL_NV_parameter_buffer_object, 1).
+-define(GL_EXT_draw_buffers2, 1).
+-define(GL_NV_transform_feedback, 1).
+-define(GL_EXT_bindable_uniform, 1).
+-define(GL_EXT_texture_integer, 1).
+-define(GL_GREMEDY_frame_terminator, 1).
+-define(GL_NV_conditional_render, 1).
+-define(GL_NV_present_video, 1).
+-define(GL_EXT_transform_feedback, 1).
+-define(GL_EXT_direct_state_access, 1).
+-define(GL_EXT_vertex_array_bgra, 1).
+-define(GL_EXT_texture_swizzle, 1).
+-define(GL_NV_explicit_multisample, 1).
+-define(GL_NV_transform_feedback2, 1).
+-define(GL_ATI_meminfo, 1).
+-define(GL_AMD_performance_monitor, 1).
+-define(GL_AMD_texture_texture4, 1).
+-define(GL_AMD_vertex_shader_tesselator, 1).
+-define(GL_EXT_provoking_vertex, 1).
diff --git a/lib/wx/include/glu.hrl b/lib/wx/include/glu.hrl
new file mode 100644
index 0000000000..27985aa8f7
--- /dev/null
+++ b/lib/wx/include/glu.hrl
@@ -0,0 +1,177 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% GLU DEFINITIONS
+
+%% This file is generated DO NOT EDIT
+
+-define(GLU_EXT_object_space_tess, 1).
+-define(GLU_EXT_nurbs_tessellator, 1).
+-define(GLU_FALSE, 0).
+-define(GLU_TRUE, 1).
+-define(GLU_VERSION_1_1, 1).
+-define(GLU_VERSION_1_2, 1).
+-define(GLU_VERSION_1_3, 1).
+-define(GLU_VERSION, 100800).
+-define(GLU_EXTENSIONS, 100801).
+-define(GLU_INVALID_ENUM, 100900).
+-define(GLU_INVALID_VALUE, 100901).
+-define(GLU_OUT_OF_MEMORY, 100902).
+-define(GLU_INCOMPATIBLE_GL_VERSION, 100903).
+-define(GLU_INVALID_OPERATION, 100904).
+-define(GLU_OUTLINE_POLYGON, 100240).
+-define(GLU_OUTLINE_PATCH, 100241).
+-define(GLU_NURBS_ERROR, 100103).
+-define(GLU_ERROR, 100103).
+-define(GLU_NURBS_BEGIN, 100164).
+-define(GLU_NURBS_BEGIN_EXT, 100164).
+-define(GLU_NURBS_VERTEX, 100165).
+-define(GLU_NURBS_VERTEX_EXT, 100165).
+-define(GLU_NURBS_NORMAL, 100166).
+-define(GLU_NURBS_NORMAL_EXT, 100166).
+-define(GLU_NURBS_COLOR, 100167).
+-define(GLU_NURBS_COLOR_EXT, 100167).
+-define(GLU_NURBS_TEXTURE_COORD, 100168).
+-define(GLU_NURBS_TEX_COORD_EXT, 100168).
+-define(GLU_NURBS_END, 100169).
+-define(GLU_NURBS_END_EXT, 100169).
+-define(GLU_NURBS_BEGIN_DATA, 100170).
+-define(GLU_NURBS_BEGIN_DATA_EXT, 100170).
+-define(GLU_NURBS_VERTEX_DATA, 100171).
+-define(GLU_NURBS_VERTEX_DATA_EXT, 100171).
+-define(GLU_NURBS_NORMAL_DATA, 100172).
+-define(GLU_NURBS_NORMAL_DATA_EXT, 100172).
+-define(GLU_NURBS_COLOR_DATA, 100173).
+-define(GLU_NURBS_COLOR_DATA_EXT, 100173).
+-define(GLU_NURBS_TEXTURE_COORD_DATA, 100174).
+-define(GLU_NURBS_TEX_COORD_DATA_EXT, 100174).
+-define(GLU_NURBS_END_DATA, 100175).
+-define(GLU_NURBS_END_DATA_EXT, 100175).
+-define(GLU_NURBS_ERROR1, 100251).
+-define(GLU_NURBS_ERROR2, 100252).
+-define(GLU_NURBS_ERROR3, 100253).
+-define(GLU_NURBS_ERROR4, 100254).
+-define(GLU_NURBS_ERROR5, 100255).
+-define(GLU_NURBS_ERROR6, 100256).
+-define(GLU_NURBS_ERROR7, 100257).
+-define(GLU_NURBS_ERROR8, 100258).
+-define(GLU_NURBS_ERROR9, 100259).
+-define(GLU_NURBS_ERROR10, 100260).
+-define(GLU_NURBS_ERROR11, 100261).
+-define(GLU_NURBS_ERROR12, 100262).
+-define(GLU_NURBS_ERROR13, 100263).
+-define(GLU_NURBS_ERROR14, 100264).
+-define(GLU_NURBS_ERROR15, 100265).
+-define(GLU_NURBS_ERROR16, 100266).
+-define(GLU_NURBS_ERROR17, 100267).
+-define(GLU_NURBS_ERROR18, 100268).
+-define(GLU_NURBS_ERROR19, 100269).
+-define(GLU_NURBS_ERROR20, 100270).
+-define(GLU_NURBS_ERROR21, 100271).
+-define(GLU_NURBS_ERROR22, 100272).
+-define(GLU_NURBS_ERROR23, 100273).
+-define(GLU_NURBS_ERROR24, 100274).
+-define(GLU_NURBS_ERROR25, 100275).
+-define(GLU_NURBS_ERROR26, 100276).
+-define(GLU_NURBS_ERROR27, 100277).
+-define(GLU_NURBS_ERROR28, 100278).
+-define(GLU_NURBS_ERROR29, 100279).
+-define(GLU_NURBS_ERROR30, 100280).
+-define(GLU_NURBS_ERROR31, 100281).
+-define(GLU_NURBS_ERROR32, 100282).
+-define(GLU_NURBS_ERROR33, 100283).
+-define(GLU_NURBS_ERROR34, 100284).
+-define(GLU_NURBS_ERROR35, 100285).
+-define(GLU_NURBS_ERROR36, 100286).
+-define(GLU_NURBS_ERROR37, 100287).
+-define(GLU_AUTO_LOAD_MATRIX, 100200).
+-define(GLU_CULLING, 100201).
+-define(GLU_SAMPLING_TOLERANCE, 100203).
+-define(GLU_DISPLAY_MODE, 100204).
+-define(GLU_PARAMETRIC_TOLERANCE, 100202).
+-define(GLU_SAMPLING_METHOD, 100205).
+-define(GLU_U_STEP, 100206).
+-define(GLU_V_STEP, 100207).
+-define(GLU_NURBS_MODE, 100160).
+-define(GLU_NURBS_MODE_EXT, 100160).
+-define(GLU_NURBS_TESSELLATOR, 100161).
+-define(GLU_NURBS_TESSELLATOR_EXT, 100161).
+-define(GLU_NURBS_RENDERER, 100162).
+-define(GLU_NURBS_RENDERER_EXT, 100162).
+-define(GLU_OBJECT_PARAMETRIC_ERROR, 100208).
+-define(GLU_OBJECT_PARAMETRIC_ERROR_EXT, 100208).
+-define(GLU_OBJECT_PATH_LENGTH, 100209).
+-define(GLU_OBJECT_PATH_LENGTH_EXT, 100209).
+-define(GLU_PATH_LENGTH, 100215).
+-define(GLU_PARAMETRIC_ERROR, 100216).
+-define(GLU_DOMAIN_DISTANCE, 100217).
+-define(GLU_MAP1_TRIM_2, 100210).
+-define(GLU_MAP1_TRIM_3, 100211).
+-define(GLU_POINT, 100010).
+-define(GLU_LINE, 100011).
+-define(GLU_FILL, 100012).
+-define(GLU_SILHOUETTE, 100013).
+-define(GLU_SMOOTH, 100000).
+-define(GLU_FLAT, 100001).
+-define(GLU_NONE, 100002).
+-define(GLU_OUTSIDE, 100020).
+-define(GLU_INSIDE, 100021).
+-define(GLU_TESS_BEGIN, 100100).
+-define(GLU_BEGIN, 100100).
+-define(GLU_TESS_VERTEX, 100101).
+-define(GLU_VERTEX, 100101).
+-define(GLU_TESS_END, 100102).
+-define(GLU_END, 100102).
+-define(GLU_TESS_ERROR, 100103).
+-define(GLU_TESS_EDGE_FLAG, 100104).
+-define(GLU_EDGE_FLAG, 100104).
+-define(GLU_TESS_COMBINE, 100105).
+-define(GLU_TESS_BEGIN_DATA, 100106).
+-define(GLU_TESS_VERTEX_DATA, 100107).
+-define(GLU_TESS_END_DATA, 100108).
+-define(GLU_TESS_ERROR_DATA, 100109).
+-define(GLU_TESS_EDGE_FLAG_DATA, 100110).
+-define(GLU_TESS_COMBINE_DATA, 100111).
+-define(GLU_CW, 100120).
+-define(GLU_CCW, 100121).
+-define(GLU_INTERIOR, 100122).
+-define(GLU_EXTERIOR, 100123).
+-define(GLU_UNKNOWN, 100124).
+-define(GLU_TESS_WINDING_RULE, 100140).
+-define(GLU_TESS_BOUNDARY_ONLY, 100141).
+-define(GLU_TESS_TOLERANCE, 100142).
+-define(GLU_TESS_ERROR1, 100151).
+-define(GLU_TESS_ERROR2, 100152).
+-define(GLU_TESS_ERROR3, 100153).
+-define(GLU_TESS_ERROR4, 100154).
+-define(GLU_TESS_ERROR5, 100155).
+-define(GLU_TESS_ERROR6, 100156).
+-define(GLU_TESS_ERROR7, 100157).
+-define(GLU_TESS_ERROR8, 100158).
+-define(GLU_TESS_MISSING_BEGIN_POLYGON, 100151).
+-define(GLU_TESS_MISSING_BEGIN_CONTOUR, 100152).
+-define(GLU_TESS_MISSING_END_POLYGON, 100153).
+-define(GLU_TESS_MISSING_END_CONTOUR, 100154).
+-define(GLU_TESS_COORD_TOO_LARGE, 100155).
+-define(GLU_TESS_NEED_COMBINE_CALLBACK, 100156).
+-define(GLU_TESS_WINDING_ODD, 100130).
+-define(GLU_TESS_WINDING_NONZERO, 100131).
+-define(GLU_TESS_WINDING_POSITIVE, 100132).
+-define(GLU_TESS_WINDING_NEGATIVE, 100133).
+-define(GLU_TESS_WINDING_ABS_GEQ_TWO, 100134).
+-define(GLU_TESS_MAX_COORD, ?1.0e150).
diff --git a/lib/wx/include/wx.hrl b/lib/wx/include/wx.hrl
new file mode 100644
index 0000000000..b22f7e34b8
--- /dev/null
+++ b/lib/wx/include/wx.hrl
@@ -0,0 +1,3724 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% All event messages are encapsulated in a wx record
+%% they contain the widget id and a specialized event record.
+%% Each event record may be sent for one or more event types.
+%% The mapping to wxWidgets is one record per class.
+
+%% @type wx() = #wx{id=integer(), obj=wx:wxObject(), userData=term(), event=Rec}. Rec is a event record.
+-record(wx, {id, %% Integer Identity of object.
+ obj, %% Object reference that was used in the connect call.
+ userData, %% User data specified in the connect call.
+ event}).%% The event record
+
+%% Here comes the definitions of all event records.
+%% they contain the event type and possible some extra information.
+
+%% @type wxNavigationKey() = #wxNavigationKey{type=wxEventType(),flags=integer(),focus=wxWindow:wxWindow()}.
+%% <dl><dt>EventType:</dt> <dd><em>navigation_key</em></dd></dl>
+%% Callback event: {@link wxNavigationKeyEvent}
+-record(wxNavigationKey,{type, flags,focus}).
+
+%% @type wxSash() = #wxSash{type=wxEventType(),edge=WxSashEdgePosition,dragRect={X::integer(),Y::integer(),W::integer(),H::integer()},dragStatus=WxSashDragStatus}.
+%% <dl><dt>EventType:</dt> <dd><em>sash_dragged</em></dd></dl>
+%% Callback event: {@link wxSashEvent}
+-record(wxSash,{type, edge,dragRect,dragStatus}).
+
+%% @type wxList() = #wxList{type=wxEventType(),code=integer(),oldItemIndex=integer(),itemIndex=integer(),col=integer(),pointDrag={X::integer(),Y::integer()}}.
+%% <dl><dt>EventType:</dt> <dd><em>command_list_begin_drag</em>, <em>command_list_begin_rdrag</em>, <em>command_list_begin_label_edit</em>, <em>command_list_end_label_edit</em>, <em>command_list_delete_item</em>, <em>command_list_delete_all_items</em>, <em>command_list_key_down</em>, <em>command_list_insert_item</em>, <em>command_list_col_click</em>, <em>command_list_col_right_click</em>, <em>command_list_col_begin_drag</em>, <em>command_list_col_dragging</em>, <em>command_list_col_end_drag</em>, <em>command_list_item_selected</em>, <em>command_list_item_deselected</em>, <em>command_list_item_right_click</em>, <em>command_list_item_middle_click</em>, <em>command_list_item_activated</em>, <em>command_list_item_focused</em>, <em>command_list_cache_hint</em></dd></dl>
+%% Callback event: {@link wxListEvent}
+-record(wxList,{type, code,oldItemIndex,itemIndex,col,pointDrag}).
+
+%% @type wxNotebook() = #wxNotebook{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_notebook_page_changed</em>, <em>command_notebook_page_changing</em></dd></dl>
+%% Callback event: {@link wxNotebookEvent}
+-record(wxNotebook, {type}).
+
+%% @type wxDisplayChanged() = #wxDisplayChanged{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>display_changed</em></dd></dl>
+%% Callback event: {@link wxDisplayChangedEvent}
+-record(wxDisplayChanged, {type}).
+
+%% @type wxErase() = #wxErase{type=wxEventType(),dc=wxDC:wxDC()}.
+%% <dl><dt>EventType:</dt> <dd><em>erase_background</em></dd></dl>
+%% Callback event: {@link wxEraseEvent}
+-record(wxErase,{type, dc}).
+
+%% @type wxKey() = #wxKey{type=wxEventType(),x=integer(),y=integer(),keyCode=integer(),controlDown=bool(),shiftDown=bool(),altDown=bool(),metaDown=bool(),scanCode=bool(),uniChar=integer(),rawCode=integer(),rawFlags=integer()}.
+%% <dl><dt>EventType:</dt> <dd><em>char</em>, <em>char_hook</em>, <em>key_down</em>, <em>key_up</em></dd></dl>
+%% Callback event: {@link wxKeyEvent}
+-record(wxKey,{type, x,y,keyCode,controlDown,shiftDown,altDown,metaDown,scanCode,uniChar,rawCode,rawFlags}).
+
+%% @type wxWindowDestroy() = #wxWindowDestroy{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>destroy</em></dd></dl>
+%% Callback event: {@link wxWindowDestroyEvent}
+-record(wxWindowDestroy, {type}).
+
+%% @type wxCalendar() = #wxCalendar{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>calendar_sel_changed</em>, <em>calendar_day_changed</em>, <em>calendar_month_changed</em>, <em>calendar_year_changed</em>, <em>calendar_doubleclicked</em>, <em>calendar_weekday_clicked</em></dd></dl>
+%% Callback event: {@link wxCalendarEvent}
+-record(wxCalendar, {type}).
+
+%% @type wxSplitter() = #wxSplitter{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_splitter_sash_pos_changed</em>, <em>command_splitter_sash_pos_changing</em>, <em>command_splitter_doubleclicked</em>, <em>command_splitter_unsplit</em></dd></dl>
+%% Callback event: {@link wxSplitterEvent}
+-record(wxSplitter, {type}).
+
+%% @type wxScroll() = #wxScroll{type=wxEventType(),commandInt=integer(),extraLong=integer()}.
+%% <dl><dt>EventType:</dt> <dd><em>scroll_top</em>, <em>scroll_bottom</em>, <em>scroll_lineup</em>, <em>scroll_linedown</em>, <em>scroll_pageup</em>, <em>scroll_pagedown</em>, <em>scroll_thumbtrack</em>, <em>scroll_thumbrelease</em>, <em>scroll_changed</em></dd></dl>
+%% Callback event: {@link wxScrollEvent}
+-record(wxScroll,{type, commandInt,extraLong}).
+
+%% @type wxMenu() = #wxMenu{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>menu_open</em>, <em>menu_close</em>, <em>menu_highlight</em></dd></dl>
+%% Callback event: {@link wxMenuEvent}
+-record(wxMenu, {type}).
+
+%% @type wxContextMenu() = #wxContextMenu{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>context_menu</em></dd></dl>
+%% Callback event: {@link wxContextMenuEvent}
+-record(wxContextMenu, {type}).
+
+%% @type wxShow() = #wxShow{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>show</em></dd></dl>
+%% Callback event: {@link wxShowEvent}
+-record(wxShow, {type}).
+
+%% @type wxSpin() = #wxSpin{type=wxEventType(),commandInt=integer()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_spinctrl_updated</em>, <em>spin_up</em>, <em>spin_down</em>, <em>spin</em></dd></dl>
+%% Callback event: {@link wxSpinEvent}
+-record(wxSpin,{type, commandInt}).
+
+%% @type wxSetCursor() = #wxSetCursor{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>set_cursor</em></dd></dl>
+%% Callback event: {@link wxSetCursorEvent}
+-record(wxSetCursor, {type}).
+
+%% @type wxFontPicker() = #wxFontPicker{type=wxEventType(),font=wxFont:wxFont()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_fontpicker_changed</em></dd></dl>
+%% Callback event: {@link wxFontPickerEvent}
+-record(wxFontPicker,{type, font}).
+
+%% @type wxScrollWin() = #wxScrollWin{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>scrollwin_top</em>, <em>scrollwin_bottom</em>, <em>scrollwin_lineup</em>, <em>scrollwin_linedown</em>, <em>scrollwin_pageup</em>, <em>scrollwin_pagedown</em>, <em>scrollwin_thumbtrack</em>, <em>scrollwin_thumbrelease</em></dd></dl>
+%% Callback event: {@link wxScrollWinEvent}
+-record(wxScrollWin, {type}).
+
+%% @type wxPaint() = #wxPaint{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>paint</em>, <em>paint_icon</em></dd></dl>
+%% Callback event: {@link wxPaintEvent}
+-record(wxPaint, {type}).
+
+%% @type wxChildFocus() = #wxChildFocus{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>child_focus</em></dd></dl>
+%% Callback event: {@link wxChildFocusEvent}
+-record(wxChildFocus, {type}).
+
+%% @type wxMaximize() = #wxMaximize{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>maximize</em></dd></dl>
+%% Callback event: {@link wxMaximizeEvent}
+-record(wxMaximize, {type}).
+
+%% @type wxFileDirPicker() = #wxFileDirPicker{type=wxEventType(),path=string()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_filepicker_changed</em>, <em>command_dirpicker_changed</em></dd></dl>
+%% Callback event: {@link wxFileDirPickerEvent}
+-record(wxFileDirPicker,{type, path}).
+
+%% @type wxFocus() = #wxFocus{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>set_focus</em>, <em>kill_focus</em></dd></dl>
+%% Callback event: {@link wxFocusEvent}
+-record(wxFocus, {type}).
+
+%% @type wxDate() = #wxDate{type=wxEventType(),date=wx:datetime()}.
+%% <dl><dt>EventType:</dt> <dd><em>date_changed</em></dd></dl>
+%% Callback event: {@link wxDateEvent}
+-record(wxDate,{type, date}).
+
+%% @type wxHtmlLink() = #wxHtmlLink{type=wxEventType(),linkInfo=wx:wxHtmlLinkInfo()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_html_link_clicked</em></dd></dl>
+%% Callback event: {@link wxHtmlLinkEvent}
+-record(wxHtmlLink,{type, linkInfo}).
+
+%% @type wxHelp() = #wxHelp{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>help</em>, <em>detailed_help</em></dd></dl>
+%% Callback event: {@link wxHelpEvent}
+-record(wxHelp, {type}).
+
+%% @type wxStyledText() = #wxStyledText{type=wxEventType(),position=integer(),key=integer(),modifiers=integer(),modificationType=integer(),text=string(),length=integer(),linesAdded=integer(),line=integer(),foldLevelNow=integer(),foldLevelPrev=integer(),margin=integer(),message=integer(),wParam=integer(),lParam=integer(),listType=integer(),x=integer(),y=integer(),dragText=string(),dragAllowMove=bool(),dragResult=WxDragResult}.
+%% <dl><dt>EventType:</dt> <dd><em>stc_change</em>, <em>stc_styleneeded</em>, <em>stc_charadded</em>, <em>stc_savepointreached</em>, <em>stc_savepointleft</em>, <em>stc_romodifyattempt</em>, <em>stc_key</em>, <em>stc_doubleclick</em>, <em>stc_updateui</em>, <em>stc_modified</em>, <em>stc_macrorecord</em>, <em>stc_marginclick</em>, <em>stc_needshown</em>, <em>stc_painted</em>, <em>stc_userlistselection</em>, <em>stc_uridropped</em>, <em>stc_dwellstart</em>, <em>stc_dwellend</em>, <em>stc_start_drag</em>, <em>stc_drag_over</em>, <em>stc_do_drop</em>, <em>stc_zoom</em>, <em>stc_hotspot_click</em>, <em>stc_hotspot_dclick</em>, <em>stc_calltip_click</em>, <em>stc_autocomp_selection</em></dd></dl>
+%% Callback event: {@link wxStyledTextEvent}
+-record(wxStyledText,{type, position,key,modifiers,modificationType,text,length,linesAdded,line,foldLevelNow,foldLevelPrev,margin,message,wParam,lParam,listType,x,y,dragText,dragAllowMove,dragResult}).
+
+%% @type wxSysColourChanged() = #wxSysColourChanged{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>sys_colour_changed</em></dd></dl>
+%% Callback event: {@link wxSysColourChangedEvent}
+-record(wxSysColourChanged, {type}).
+
+%% @type wxGrid() = #wxGrid{type=wxEventType(),row=integer(),col=integer(),x=integer(),y=integer(),selecting=bool(),control=bool(),meta=bool(),shift=bool(),alt=bool()}.
+%% <dl><dt>EventType:</dt> <dd><em>grid_cell_left_click</em>, <em>grid_cell_right_click</em>, <em>grid_cell_left_dclick</em>, <em>grid_cell_right_dclick</em>, <em>grid_label_left_click</em>, <em>grid_label_right_click</em>, <em>grid_label_left_dclick</em>, <em>grid_label_right_dclick</em>, <em>grid_row_size</em>, <em>grid_col_size</em>, <em>grid_range_select</em>, <em>grid_cell_change</em>, <em>grid_select_cell</em>, <em>grid_editor_shown</em>, <em>grid_editor_hidden</em>, <em>grid_editor_created</em>, <em>grid_cell_begin_drag</em></dd></dl>
+%% Callback event: {@link wxGridEvent}
+-record(wxGrid,{type, row,col,x,y,selecting,control,meta,shift,alt}).
+
+%% @type wxPaletteChanged() = #wxPaletteChanged{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>palette_changed</em></dd></dl>
+%% Callback event: {@link wxPaletteChangedEvent}
+-record(wxPaletteChanged, {type}).
+
+%% @type wxUpdateUI() = #wxUpdateUI{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>update_ui</em></dd></dl>
+%% Callback event: {@link wxUpdateUIEvent}
+-record(wxUpdateUI, {type}).
+
+%% @type wxSize() = #wxSize{type=wxEventType(),size={W::integer(),H::integer()},rect={X::integer(),Y::integer(),W::integer(),H::integer()}}.
+%% <dl><dt>EventType:</dt> <dd><em>size</em></dd></dl>
+%% Callback event: {@link wxSizeEvent}
+-record(wxSize,{type, size,rect}).
+
+%% @type wxIconize() = #wxIconize{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>iconize</em></dd></dl>
+%% Callback event: {@link wxIconizeEvent}
+-record(wxIconize, {type}).
+
+%% @type wxAuiNotebook() = #wxAuiNotebook{type=wxEventType(),old_selection=integer(),selection=integer(),drag_source=wxAuiNotebook:wxAuiNotebook()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_auinotebook_page_close</em>, <em>command_auinotebook_page_changed</em>, <em>command_auinotebook_page_changing</em>, <em>command_auinotebook_button</em>, <em>command_auinotebook_begin_drag</em>, <em>command_auinotebook_end_drag</em>, <em>command_auinotebook_drag_motion</em>, <em>command_auinotebook_allow_dnd</em>, <em>command_auinotebook_tab_middle_down</em>, <em>command_auinotebook_tab_middle_up</em>, <em>command_auinotebook_tab_right_down</em>, <em>command_auinotebook_tab_right_up</em>, <em>command_auinotebook_page_closed</em>, <em>command_auinotebook_drag_done</em>, <em>command_auinotebook_bg_dclick</em></dd></dl>
+%% Callback event: {@link wxAuiNotebookEvent}
+-record(wxAuiNotebook,{type, old_selection,selection,drag_source}).
+
+%% @type wxClose() = #wxClose{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>close_window</em>, <em>end_session</em>, <em>query_end_session</em></dd></dl>
+%% Callback event: {@link wxCloseEvent}
+-record(wxClose, {type}).
+
+%% @type wxMouseCaptureChanged() = #wxMouseCaptureChanged{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>mouse_capture_changed</em></dd></dl>
+%% Callback event: {@link wxMouseCaptureChangedEvent}
+-record(wxMouseCaptureChanged, {type}).
+
+%% @type wxMouse() = #wxMouse{type=wxEventType(),x=integer(),y=integer(),leftDown=bool(),middleDown=bool(),rightDown=bool(),controlDown=bool(),shiftDown=bool(),altDown=bool(),metaDown=bool(),wheelRotation=integer(),wheelDelta=integer(),linesPerAction=integer()}.
+%% <dl><dt>EventType:</dt> <dd><em>left_down</em>, <em>left_up</em>, <em>middle_down</em>, <em>middle_up</em>, <em>right_down</em>, <em>right_up</em>, <em>motion</em>, <em>enter_window</em>, <em>leave_window</em>, <em>left_dclick</em>, <em>middle_dclick</em>, <em>right_dclick</em>, <em>mousewheel</em>, <em>nc_left_down</em>, <em>nc_left_up</em>, <em>nc_middle_down</em>, <em>nc_middle_up</em>, <em>nc_right_down</em>, <em>nc_right_up</em>, <em>nc_motion</em>, <em>nc_enter_window</em>, <em>nc_leave_window</em>, <em>nc_left_dclick</em>, <em>nc_middle_dclick</em>, <em>nc_right_dclick</em></dd></dl>
+%% Callback event: {@link wxMouseEvent}
+-record(wxMouse,{type, x,y,leftDown,middleDown,rightDown,controlDown,shiftDown,altDown,metaDown,wheelRotation,wheelDelta,linesPerAction}).
+
+%% @type wxWindowCreate() = #wxWindowCreate{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>create</em></dd></dl>
+%% Callback event: {@link wxWindowCreateEvent}
+-record(wxWindowCreate, {type}).
+
+%% @type wxAuiManager() = #wxAuiManager{type=wxEventType(),manager=wxAuiManager:wxAuiManager(),pane=wxAuiPaneInfo:wxAuiPaneInfo(),button=integer(),veto_flag=bool(),canveto_flag=bool(),dc=wxDC:wxDC()}.
+%% <dl><dt>EventType:</dt> <dd><em>aui_pane_button</em>, <em>aui_pane_close</em>, <em>aui_pane_maximize</em>, <em>aui_pane_restore</em>, <em>aui_render</em>, <em>aui_find_manager</em></dd></dl>
+%% Callback event: {@link wxAuiManagerEvent}
+-record(wxAuiManager,{type, manager,pane,button,veto_flag,canveto_flag,dc}).
+
+%% @type wxCommand() = #wxCommand{type=wxEventType(),cmdString=string(),commandInt=integer(),extraLong=integer()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_button_clicked</em>, <em>command_checkbox_clicked</em>, <em>command_choice_selected</em>, <em>command_listbox_selected</em>, <em>command_listbox_doubleclicked</em>, <em>command_text_updated</em>, <em>command_text_enter</em>, <em>command_menu_selected</em>, <em>command_slider_updated</em>, <em>command_radiobox_selected</em>, <em>command_radiobutton_selected</em>, <em>command_scrollbar_updated</em>, <em>command_vlbox_selected</em>, <em>command_combobox_selected</em>, <em>command_tool_rclicked</em>, <em>command_tool_enter</em>, <em>command_checklistbox_toggled</em>, <em>command_togglebutton_clicked</em>, <em>command_left_click</em>, <em>command_left_dclick</em>, <em>command_right_click</em>, <em>command_set_focus</em>, <em>command_kill_focus</em>, <em>command_enter</em></dd></dl>
+%% Callback event: {@link wxCommandEvent}
+-record(wxCommand,{type, cmdString,commandInt,extraLong}).
+
+%% @type wxJoystick() = #wxJoystick{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>joy_button_down</em>, <em>joy_button_up</em>, <em>joy_move</em>, <em>joy_zmove</em></dd></dl>
+%% Callback event: {@link wxJoystickEvent}
+-record(wxJoystick, {type}).
+
+%% @type wxQueryNewPalette() = #wxQueryNewPalette{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>query_new_palette</em></dd></dl>
+%% Callback event: {@link wxQueryNewPaletteEvent}
+-record(wxQueryNewPalette, {type}).
+
+%% @type wxMove() = #wxMove{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>move</em></dd></dl>
+%% Callback event: {@link wxMoveEvent}
+-record(wxMove, {type}).
+
+%% @type wxIdle() = #wxIdle{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>idle</em></dd></dl>
+%% Callback event: {@link wxIdleEvent}
+-record(wxIdle, {type}).
+
+%% @type wxNcPaint() = #wxNcPaint{type=wxEventType()}.
+%% <dl><dt>EventType:</dt> <dd><em>nc_paint</em></dd></dl>
+%% Callback event: {@link wxNcPaintEvent}
+-record(wxNcPaint, {type}).
+
+%% @type wxColourPicker() = #wxColourPicker{type=wxEventType(),colour=wx:colour()}.
+%% <dl><dt>EventType:</dt> <dd><em>command_colourpicker_changed</em></dd></dl>
+%% Callback event: {@link wxColourPickerEvent}
+-record(wxColourPicker,{type, colour}).
+
+%% @type wxTree() = #wxTree{type=wxEventType(),item=wxTreeItemId(),itemOld=wxTreeItemId(),pointDrag={X::integer(),Y::integer()}}.
+%% <dl><dt>EventType:</dt> <dd><em>command_tree_begin_drag</em>, <em>command_tree_begin_rdrag</em>, <em>command_tree_begin_label_edit</em>, <em>command_tree_end_label_edit</em>, <em>command_tree_delete_item</em>, <em>command_tree_get_info</em>, <em>command_tree_set_info</em>, <em>command_tree_item_expanded</em>, <em>command_tree_item_expanding</em>, <em>command_tree_item_collapsed</em>, <em>command_tree_item_collapsing</em>, <em>command_tree_sel_changed</em>, <em>command_tree_sel_changing</em>, <em>command_tree_key_down</em>, <em>command_tree_item_activated</em>, <em>command_tree_item_right_click</em>, <em>command_tree_item_middle_click</em>, <em>command_tree_end_drag</em>, <em>command_tree_state_image_click</em>, <em>command_tree_item_gettooltip</em>, <em>command_tree_item_menu</em></dd></dl>
+%% Callback event: {@link wxTreeEvent}
+-record(wxTree,{type, item,itemOld,pointDrag}).
+
+%% @type wxEventType() = aui_find_manager | aui_pane_button | aui_pane_close | aui_pane_maximize | aui_pane_restore | aui_render | calendar_day_changed | calendar_doubleclicked | calendar_month_changed | calendar_sel_changed | calendar_weekday_clicked | calendar_year_changed | char | char_hook | child_focus | close_window | command_auinotebook_allow_dnd | command_auinotebook_begin_drag | command_auinotebook_bg_dclick | command_auinotebook_button | command_auinotebook_drag_done | command_auinotebook_drag_motion | command_auinotebook_end_drag | command_auinotebook_page_changed | command_auinotebook_page_changing | command_auinotebook_page_close | command_auinotebook_page_closed | command_auinotebook_tab_middle_down | command_auinotebook_tab_middle_up | command_auinotebook_tab_right_down | command_auinotebook_tab_right_up | command_button_clicked | command_checkbox_clicked | command_checklistbox_toggled | command_choice_selected | command_colourpicker_changed | command_combobox_selected | command_dirpicker_changed | command_enter | command_filepicker_changed | command_fontpicker_changed | command_html_link_clicked | command_kill_focus | command_left_click | command_left_dclick | command_list_begin_drag | command_list_begin_label_edit | command_list_begin_rdrag | command_list_cache_hint | command_list_col_begin_drag | command_list_col_click | command_list_col_dragging | command_list_col_end_drag | command_list_col_right_click | command_list_delete_all_items | command_list_delete_item | command_list_end_label_edit | command_list_insert_item | command_list_item_activated | command_list_item_deselected | command_list_item_focused | command_list_item_middle_click | command_list_item_right_click | command_list_item_selected | command_list_key_down | command_listbox_doubleclicked | command_listbox_selected | command_menu_selected | command_notebook_page_changed | command_notebook_page_changing | command_radiobox_selected | command_radiobutton_selected | command_right_click | command_scrollbar_updated | command_set_focus | command_slider_updated | command_spinctrl_updated | command_splitter_doubleclicked | command_splitter_sash_pos_changed | command_splitter_sash_pos_changing | command_splitter_unsplit | command_text_enter | command_text_updated | command_togglebutton_clicked | command_tool_enter | command_tool_rclicked | command_tree_begin_drag | command_tree_begin_label_edit | command_tree_begin_rdrag | command_tree_delete_item | command_tree_end_drag | command_tree_end_label_edit | command_tree_get_info | command_tree_item_activated | command_tree_item_collapsed | command_tree_item_collapsing | command_tree_item_expanded | command_tree_item_expanding | command_tree_item_gettooltip | command_tree_item_menu | command_tree_item_middle_click | command_tree_item_right_click | command_tree_key_down | command_tree_sel_changed | command_tree_sel_changing | command_tree_set_info | command_tree_state_image_click | command_vlbox_selected | context_menu | create | date_changed | destroy | detailed_help | display_changed | end_session | enter_window | erase_background | grid_cell_begin_drag | grid_cell_change | grid_cell_left_click | grid_cell_left_dclick | grid_cell_right_click | grid_cell_right_dclick | grid_col_size | grid_editor_created | grid_editor_hidden | grid_editor_shown | grid_label_left_click | grid_label_left_dclick | grid_label_right_click | grid_label_right_dclick | grid_range_select | grid_row_size | grid_select_cell | help | iconize | idle | joy_button_down | joy_button_up | joy_move | joy_zmove | key_down | key_up | kill_focus | leave_window | left_dclick | left_down | left_up | maximize | menu_close | menu_highlight | menu_open | middle_dclick | middle_down | middle_up | motion | mouse_capture_changed | mousewheel | move | navigation_key | nc_enter_window | nc_leave_window | nc_left_dclick | nc_left_down | nc_left_up | nc_middle_dclick | nc_middle_down | nc_middle_up | nc_motion | nc_paint | nc_right_dclick | nc_right_down | nc_right_up | paint | paint_icon | palette_changed | query_end_session | query_new_palette | right_dclick | right_down | right_up | sash_dragged | scroll_bottom | scroll_changed | scroll_linedown | scroll_lineup | scroll_pagedown | scroll_pageup | scroll_thumbrelease | scroll_thumbtrack | scroll_top | scrollwin_bottom | scrollwin_linedown | scrollwin_lineup | scrollwin_pagedown | scrollwin_pageup | scrollwin_thumbrelease | scrollwin_thumbtrack | scrollwin_top | set_cursor | set_focus | show | size | spin | spin_down | spin_up | stc_autocomp_selection | stc_calltip_click | stc_change | stc_charadded | stc_do_drop | stc_doubleclick | stc_drag_over | stc_dwellend | stc_dwellstart | stc_hotspot_click | stc_hotspot_dclick | stc_key | stc_macrorecord | stc_marginclick | stc_modified | stc_needshown | stc_painted | stc_romodifyattempt | stc_savepointleft | stc_savepointreached | stc_start_drag | stc_styleneeded | stc_updateui | stc_uridropped | stc_userlistselection | stc_zoom | sys_colour_changed | update_ui.
+
+%% Hardcoded Records
+-record(wxMouseState, {x, y, %% integer()
+ leftDown, middleDown, rightDown, %% bool()
+ controlDown, shiftDown, altDown, metaDown, cmdDown %% bool()
+ }).
+-record(wxHtmlLinkInfo, {
+ href, target %% string()
+ }).
+
+%% Hardcoded Defines
+-define(wxDefaultSize, {-1,-1}).
+-define(wxDefaultPosition, {-1,-1}).
+
+%% Global Variables
+-define(wxBLACK, wxe_util:get_const(wxBLACK)).
+-define(wxBLACK_BRUSH, wxe_util:get_const(wxBLACK_BRUSH)).
+-define(wxBLACK_DASHED_PEN, wxe_util:get_const(wxBLACK_DASHED_PEN)).
+-define(wxBLACK_PEN, wxe_util:get_const(wxBLACK_PEN)).
+-define(wxBLUE, wxe_util:get_const(wxBLUE)).
+-define(wxBLUE_BRUSH, wxe_util:get_const(wxBLUE_BRUSH)).
+-define(wxCROSS_CURSOR, wxe_util:get_const(wxCROSS_CURSOR)).
+-define(wxCYAN, wxe_util:get_const(wxCYAN)).
+-define(wxCYAN_BRUSH, wxe_util:get_const(wxCYAN_BRUSH)).
+-define(wxCYAN_PEN, wxe_util:get_const(wxCYAN_PEN)).
+-define(wxGREEN, wxe_util:get_const(wxGREEN)).
+-define(wxGREEN_BRUSH, wxe_util:get_const(wxGREEN_BRUSH)).
+-define(wxGREEN_PEN, wxe_util:get_const(wxGREEN_PEN)).
+-define(wxGREY_BRUSH, wxe_util:get_const(wxGREY_BRUSH)).
+-define(wxGREY_PEN, wxe_util:get_const(wxGREY_PEN)).
+-define(wxHOURGLASS_CURSOR, wxe_util:get_const(wxHOURGLASS_CURSOR)).
+-define(wxITALIC_FONT, wxe_util:get_const(wxITALIC_FONT)).
+-define(wxLIGHT_GREY, wxe_util:get_const(wxLIGHT_GREY)).
+-define(wxLIGHT_GREY_BRUSH, wxe_util:get_const(wxLIGHT_GREY_BRUSH)).
+-define(wxLIGHT_GREY_PEN, wxe_util:get_const(wxLIGHT_GREY_PEN)).
+-define(wxMEDIUM_GREY_BRUSH, wxe_util:get_const(wxMEDIUM_GREY_BRUSH)).
+-define(wxMEDIUM_GREY_PEN, wxe_util:get_const(wxMEDIUM_GREY_PEN)).
+-define(wxNORMAL_FONT, wxe_util:get_const(wxNORMAL_FONT)).
+-define(wxNullBitmap, wxe_util:get_const(wxNullBitmap)).
+-define(wxNullBrush, wxe_util:get_const(wxNullBrush)).
+-define(wxNullCursor, wxe_util:get_const(wxNullCursor)).
+-define(wxNullFont, wxe_util:get_const(wxNullFont)).
+-define(wxNullIcon, wxe_util:get_const(wxNullIcon)).
+-define(wxNullPalette, wxe_util:get_const(wxNullPalette)).
+-define(wxNullPen, wxe_util:get_const(wxNullPen)).
+-define(wxRED, wxe_util:get_const(wxRED)).
+-define(wxRED_BRUSH, wxe_util:get_const(wxRED_BRUSH)).
+-define(wxRED_PEN, wxe_util:get_const(wxRED_PEN)).
+-define(wxSMALL_FONT, wxe_util:get_const(wxSMALL_FONT)).
+-define(wxSTANDARD_CURSOR, wxe_util:get_const(wxSTANDARD_CURSOR)).
+-define(wxSWISS_FONT, wxe_util:get_const(wxSWISS_FONT)).
+-define(wxTRANSPARENT_BRUSH, wxe_util:get_const(wxTRANSPARENT_BRUSH)).
+-define(wxTRANSPARENT_PEN, wxe_util:get_const(wxTRANSPARENT_PEN)).
+-define(wxWHITE, wxe_util:get_const(wxWHITE)).
+-define(wxWHITE_BRUSH, wxe_util:get_const(wxWHITE_BRUSH)).
+-define(wxWHITE_PEN, wxe_util:get_const(wxWHITE_PEN)).
+
+%% Enum and defines
+% From define::From bookctrl.h
+-define(wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING, ?wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING).
+-define(wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED, ?wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED).
+-define(wxBK_ALIGN_MASK, (?wxBK_TOP bor ?wxBK_BOTTOM bor ?wxBK_LEFT bor ?wxBK_RIGHT)).
+-define(wxBK_RIGHT, 128).
+-define(wxBK_LEFT, 64).
+-define(wxBK_BOTTOM, 32).
+-define(wxBK_TOP, 16).
+-define(wxBK_DEFAULT, 0).
+% From define::From button.h
+-define(wxBU_EXACTFIT, 1).
+-define(wxBU_AUTODRAW, 4).
+-define(wxBU_NOAUTODRAW, 0).
+-define(wxBU_ALIGN_MASK, (?wxBU_LEFT bor ?wxBU_TOP bor ?wxBU_RIGHT bor ?wxBU_BOTTOM)).
+-define(wxBU_BOTTOM, 512).
+-define(wxBU_RIGHT, 256).
+-define(wxBU_TOP, 128).
+-define(wxBU_LEFT, 64).
+% From define::From checkbox.h
+-define(wxCHK_ALLOW_3RD_STATE_FOR_USER, 8192).
+-define(wxCHK_3STATE, 4096).
+-define(wxCHK_2STATE, 0).
+% From define::From choicdgg.h
+-define(wxCHOICEDLG_STYLE, (?wxDEFAULT_DIALOG_STYLE bor ?wxRESIZE_BORDER bor ?wxOK bor ?wxCANCEL bor ?wxCENTRE)).
+-define(wxCHOICE_WIDTH, 200).
+-define(wxCHOICE_HEIGHT, 150).
+% From define::From choicebk.h
+-define(wxCHB_ALIGN_MASK, ?wxBK_ALIGN_MASK).
+-define(wxCHB_RIGHT, ?wxBK_RIGHT).
+-define(wxCHB_LEFT, ?wxBK_LEFT).
+-define(wxCHB_BOTTOM, ?wxBK_BOTTOM).
+-define(wxCHB_TOP, ?wxBK_TOP).
+-define(wxCHB_DEFAULT, ?wxBK_DEFAULT).
+% From define::From clrpicker.h
+-define(wxCLRP_DEFAULT_STYLE, 0).
+-define(wxCLRP_USE_TEXTCTRL, ?wxPB_USE_TEXTCTRL).
+-define(wxCLRP_SHOW_LABEL, 8).
+% From define::From colour.h
+-define(wxC2S_HTML_SYNTAX, 4).
+-define(wxC2S_CSS_SYNTAX, 2).
+-define(wxC2S_NAME, 1).
+% From define::From confbase.h
+-define(wxCONFIG_CASE_SENSITIVE, 0).
+% From define::From datetime.h
+-define(wxInvalidDateTime, ?wxDefaultDateTime).
+% From define::From dcbuffer.h
+-define(wxBUFFER_CLIENT_AREA, 2).
+-define(wxBUFFER_VIRTUAL_AREA, 1).
+-define(wxALWAYS_NATIVE_DOUBLE_BUFFER, 0).
+% From define::From defs.h
+-define(wxPRINT_QUALITY_DRAFT, -4).
+-define(wxPRINT_QUALITY_LOW, -3).
+-define(wxPRINT_QUALITY_MEDIUM, -2).
+-define(wxPRINT_QUALITY_HIGH, -1).
+-define(wxLANDSCAPE, 2).
+-define(wxPORTRAIT, 1).
+-define(wxSIZE_FORCE, 16).
+-define(wxSIZE_NO_ADJUSTMENTS, 8).
+-define(wxSIZE_ALLOW_MINUS_ONE, 4).
+-define(wxSIZE_USE_EXISTING, 0).
+-define(wxSIZE_AUTO, (?wxSIZE_AUTO_WIDTH bor ?wxSIZE_AUTO_HEIGHT)).
+-define(wxSIZE_AUTO_HEIGHT, 2).
+-define(wxSIZE_AUTO_WIDTH, 1).
+-define(wxSETUP, 131072).
+-define(wxMORE, 65536).
+-define(wxHELP, 32768).
+-define(wxRESET, 16384).
+-define(wxBACKWARD, 8192).
+-define(wxFORWARD, 4096).
+-define(wxICON_MASK, (?16#00000100 bor ?16#00000200 bor ?16#00000400 bor ?16#00000800)).
+-define(wxICON_ASTERISK, ?wxICON_INFORMATION).
+-define(wxICON_STOP, ?wxICON_HAND).
+-define(wxICON_INFORMATION, 2048).
+-define(wxICON_QUESTION, 1024).
+-define(wxICON_ERROR, ?wxICON_HAND).
+-define(wxICON_WARNING, ?wxICON_EXCLAMATION).
+-define(wxICON_HAND, 512).
+-define(wxICON_EXCLAMATION, 256).
+-define(wxNO_DEFAULT, 128).
+-define(wxYES_DEFAULT, 0).
+-define(wxCANCEL, 16).
+-define(wxYES_NO, (?wxYES bor ?wxNO)).
+-define(wxNO, 8).
+-define(wxOK, 4).
+-define(wxYES, 2).
+-define(wxLI_VERTICAL, ?wxVERTICAL).
+-define(wxLI_HORIZONTAL, ?wxHORIZONTAL).
+-define(wxBI_EXPAND, ?wxEXPAND).
+-define(wxST_DOTS_END, 4).
+-define(wxST_DOTS_MIDDLE, 2).
+-define(wxST_NO_AUTORESIZE, 1).
+-define(wxST_SIZEGRIP, 16).
+-define(wxTC_OWNERDRAW, 1024).
+-define(wxTC_MULTILINE, 512).
+-define(wxTC_BOTTOM, 128).
+-define(wxTC_RIGHT, 64).
+-define(wxTC_LEFT, 32).
+-define(wxTC_TOP, 0).
+-define(wxTC_FIXEDWIDTH, 32).
+-define(wxTC_RIGHTJUSTIFY, 16).
+-define(wxSP_WRAP, 8192).
+-define(wxSP_ARROW_KEYS, 4096).
+-define(wxSP_VERTICAL, ?wxVERTICAL).
+-define(wxSP_HORIZONTAL, ?wxHORIZONTAL).
+-define(wxSB_VERTICAL, ?wxVERTICAL).
+-define(wxSB_HORIZONTAL, ?wxHORIZONTAL).
+-define(wxRB_USE_CHECKBOX, 16).
+-define(wxRB_SINGLE, 8).
+-define(wxRB_GROUP, 4).
+-define(wxRA_USE_CHECKBOX, 16).
+-define(wxRA_VERTICAL, ?wxVERTICAL).
+-define(wxRA_HORIZONTAL, ?wxHORIZONTAL).
+-define(wxRA_SPECIFY_ROWS, ?wxVERTICAL).
+-define(wxRA_SPECIFY_COLS, ?wxHORIZONTAL).
+-define(wxRA_TOPTOBOTTOM, 2).
+-define(wxRA_LEFTTORIGHT, 1).
+-define(wxCB_DROPDOWN, 32).
+-define(wxCB_READONLY, 16).
+-define(wxCB_SORT, 8).
+-define(wxCB_SIMPLE, 4).
+-define(wxLB_INT_HEIGHT, 2048).
+-define(wxLB_HSCROLL, ?wxHSCROLL).
+-define(wxLB_ALWAYS_SB, 1024).
+-define(wxLB_NEEDED_SB, 512).
+-define(wxLB_OWNERDRAW, 256).
+-define(wxLB_EXTENDED, 128).
+-define(wxLB_MULTIPLE, 64).
+-define(wxLB_SINGLE, 32).
+-define(wxLB_SORT, 16).
+-define(wxFIXED_LENGTH, 1024).
+-define(wxCOLOURED, 2048).
+-define(wxMENU_TEAROFF, 1).
+-define(wxMB_DOCKABLE, 1).
+-define(wxFRAME_NO_WINDOW_MENU, 256).
+-define(wxFRAME_DRAWER, 32).
+-define(wxDIALOG_EX_CONTEXTHELP, ?wxWS_EX_CONTEXTHELP).
+-define(wxFRAME_EX_CONTEXTHELP, ?wxWS_EX_CONTEXTHELP).
+-define(wxWS_EX_CONTEXTHELP, 128).
+-define(wxDIALOG_EX_METAL, 64).
+-define(wxFRAME_EX_METAL, 64).
+-define(wxWS_EX_PROCESS_UI_UPDATES, 32).
+-define(wxWS_EX_PROCESS_IDLE, 16).
+-define(wxWS_EX_THEMED_BACKGROUND, 8).
+-define(wxWS_EX_TRANSIENT, 4).
+-define(wxWS_EX_BLOCK_EVENTS, 2).
+-define(wxWS_EX_VALIDATE_RECURSIVELY, 1).
+-define(wxWINDOW_STYLE_MASK, (?wxVSCROLL bor ?wxHSCROLL bor ?wxBORDER_MASK bor ?wxALWAYS_SHOW_SB bor ?wxCLIP_CHILDREN bor ?wxCLIP_SIBLINGS bor ?wxTRANSPARENT_WINDOW bor ?wxTAB_TRAVERSAL bor ?wxWANTS_CHARS bor ?wxRETAINED bor ?wxPOPUP_WINDOW bor ?wxFULL_REPAINT_ON_RESIZE)).
+-define(wxNO_FULL_REPAINT_ON_RESIZE, 0).
+-define(wxFULL_REPAINT_ON_RESIZE, 65536).
+-define(wxPOPUP_WINDOW, 131072).
+-define(wxBACKINGSTORE, ?wxRETAINED).
+-define(wxRETAINED, wxe_util:get_const(wxRETAINED)).
+-define(wxWANTS_CHARS, 262144).
+-define(wxTAB_TRAVERSAL, 524288).
+-define(wxTRANSPARENT_WINDOW, 1048576).
+-define(wxCLIP_SIBLINGS, 536870912).
+-define(wxCLIP_CHILDREN, 4194304).
+-define(wxALWAYS_SHOW_SB, 8388608).
+-define(wxNO_BORDER, ?wxBORDER_NONE).
+-define(wxSTATIC_BORDER, ?wxBORDER_STATIC).
+-define(wxSIMPLE_BORDER, ?wxBORDER_SIMPLE).
+-define(wxBORDER, ?wxBORDER_SIMPLE).
+-define(wxRAISED_BORDER, ?wxBORDER_RAISED).
+-define(wxSUNKEN_BORDER, ?wxBORDER_SUNKEN).
+-define(wxDOUBLE_BORDER, ?wxBORDER_DOUBLE).
+-define(wxCAPTION, 536870912).
+-define(wxHSCROLL, 1073741824).
+-define(wxVSCROLL, 2147483648).
+-define(wxDEFAULT_CONTROL_BORDER, wxe_util:get_const(wxDEFAULT_CONTROL_BORDER)).
+-define(wxCENTER_ON_SCREEN, ?wxCENTRE_ON_SCREEN).
+-define(wxCENTRE_ON_SCREEN, 2).
+-define(wxCENTER_FRAME, 0).
+-define(wxBYTE_ORDER, wxe_util:get_const(wxBYTE_ORDER)).
+-define(wxPDP_ENDIAN, 3412).
+-define(wxLITTLE_ENDIAN, 1234).
+-define(wxBIG_ENDIAN, 4321).
+-define(wxHAS_INT64, wxe_util:get_const(wxHAS_INT64)).
+-define(wxNOT_FOUND, -1).
+% From define::From dialog.h
+-define(wxDEFAULT_DIALOG_STYLE, (?wxCAPTION bor ?wxSYSTEM_MENU bor ?wxCLOSE_BOX)).
+-define(wxDIALOG_NO_PARENT, 1).
+% From define::From dirctrlg.h
+-define(wxID_FILTERLISTCTRL, 7001).
+-define(wxID_TREECTRL, 7000).
+% From define::From dirdlg.h
+-define(wxDD_DEFAULT_STYLE, (?wxDEFAULT_DIALOG_STYLE bor ?wxRESIZE_BORDER)).
+-define(wxDD_NEW_DIR_BUTTON, 0).
+-define(wxDD_DIR_MUST_EXIST, 512).
+-define(wxDD_CHANGE_DIR, 256).
+% From define::From dirdlgg.h
+% From define::From filedlg.h
+-define(wxFD_DEFAULT_STYLE, ?wxFD_OPEN).
+% From define::From filepicker.h
+-define(wxDIRP_DEFAULT_STYLE, ?wxDIRP_DIR_MUST_EXIST).
+-define(wxDIRP_USE_TEXTCTRL, ?wxPB_USE_TEXTCTRL).
+-define(wxFLP_DEFAULT_STYLE, (?wxFLP_OPEN bor ?wxFLP_FILE_MUST_EXIST)).
+-define(wxFLP_USE_TEXTCTRL, ?wxPB_USE_TEXTCTRL).
+-define(wxDIRP_CHANGE_DIR, 16).
+-define(wxDIRP_DIR_MUST_EXIST, 8).
+-define(wxFLP_CHANGE_DIR, 16384).
+-define(wxFLP_FILE_MUST_EXIST, 8192).
+-define(wxFLP_OVERWRITE_PROMPT, 4096).
+-define(wxFLP_SAVE, 2048).
+-define(wxFLP_OPEN, 1024).
+% From define::From fontpicker.h
+-define(wxFNTP_MAXPOINT_SIZE, 100).
+-define(wxFNTP_DEFAULT_STYLE, (?wxFNTP_FONTDESC_AS_LABEL bor ?wxFNTP_USEFONT_FOR_LABEL)).
+-define(wxFNTP_USE_TEXTCTRL, ?wxPB_USE_TEXTCTRL).
+-define(wxFNTP_USEFONT_FOR_LABEL, 16).
+-define(wxFNTP_FONTDESC_AS_LABEL, 8).
+% From define::From frame.h
+-define(wxFRAME_SHAPED, 16).
+-define(wxFRAME_FLOAT_ON_PARENT, 8).
+-define(wxFRAME_TOOL_WINDOW, 4).
+-define(wxFRAME_NO_TASKBAR, 2).
+% From define::From gauge.h
+-define(wxGAUGE_EMULATE_INDETERMINATE_MODE, 1).
+-define(wxGA_SMOOTH, 32).
+-define(wxGA_VERTICAL, ?wxVERTICAL).
+-define(wxGA_HORIZONTAL, ?wxHORIZONTAL).
+% From define::From gdicmn.h
+-define(wxGetDisplayDepth, ?wxDisplayDepth).
+% From define::From generic_2laywin.h
+-define(wxLAYOUT_QUERY, 256).
+-define(wxLAYOUT_MRU_LENGTH, 16).
+-define(wxLAYOUT_LENGTH_X, 0).
+-define(wxLAYOUT_LENGTH_Y, 8).
+% From define::From generic_2sashwin.h
+-define(wxSW_3D, (?wxSW_3DSASH bor ?wxSW_3DBORDER)).
+-define(wxSW_3DBORDER, 128).
+-define(wxSW_3DSASH, 64).
+-define(wxSW_BORDER, 32).
+-define(wxSW_NOBORDER, 0).
+-define(wxSASH_DRAG_LEFT_DOWN, 2).
+-define(wxSASH_DRAG_DRAGGING, 1).
+-define(wxSASH_DRAG_NONE, 0).
+% From define::From generic_2splash.h
+-define(wxSPLASH_NO_TIMEOUT, 0).
+-define(wxSPLASH_TIMEOUT, 4).
+-define(wxSPLASH_NO_CENTRE, 0).
+-define(wxSPLASH_CENTRE_ON_SCREEN, 2).
+-define(wxSPLASH_CENTRE_ON_PARENT, 1).
+% From define::From hash.h
+-define(wxHASH_SIZE_DEFAULT, 1000).
+% From define::From htmlwin.h
+-define(wxHW_DEFAULT_STYLE, ?wxHW_SCROLLBAR_AUTO).
+-define(wxHW_NO_SELECTION, 8).
+-define(wxHW_SCROLLBAR_AUTO, 4).
+-define(wxHW_SCROLLBAR_NEVER, 2).
+% From define::From imaglist.h
+-define(wxIMAGELIST_DRAW_FOCUSED, 8).
+-define(wxIMAGELIST_DRAW_SELECTED, 4).
+-define(wxIMAGELIST_DRAW_TRANSPARENT, 2).
+-define(wxIMAGELIST_DRAW_NORMAL, 1).
+% From define::From layout.h
+-define(wxLAYOUT_DEFAULT_MARGIN, 0).
+% From define::From listbase.h
+-define(wxLIST_HITTEST_ONITEM, (?wxLIST_HITTEST_ONITEMICON bor ?wxLIST_HITTEST_ONITEMLABEL bor ?wxLIST_HITTEST_ONITEMSTATEICON)).
+-define(wxLIST_HITTEST_TORIGHT, 2048).
+-define(wxLIST_HITTEST_TOLEFT, 1024).
+-define(wxLIST_HITTEST_ONITEMSTATEICON, 512).
+-define(wxLIST_HITTEST_ONITEMRIGHT, 256).
+-define(wxLIST_HITTEST_ONITEMLABEL, 128).
+-define(wxLIST_HITTEST_ONITEMICON, 32).
+-define(wxLIST_HITTEST_NOWHERE, 4).
+-define(wxLIST_HITTEST_BELOW, 2).
+-define(wxLIST_HITTEST_ABOVE, 1).
+-define(wxLIST_STATE_SOURCE, 256).
+-define(wxLIST_STATE_PICKED, 128).
+-define(wxLIST_STATE_INUSE, 64).
+-define(wxLIST_STATE_FILTERED, 32).
+-define(wxLIST_STATE_DISABLED, 16).
+-define(wxLIST_STATE_CUT, 8).
+-define(wxLIST_STATE_SELECTED, 4).
+-define(wxLIST_STATE_FOCUSED, 2).
+-define(wxLIST_STATE_DROPHILITED, 1).
+-define(wxLIST_STATE_DONTCARE, 0).
+-define(wxLIST_MASK_FORMAT, 64).
+-define(wxLIST_MASK_WIDTH, 32).
+-define(wxLIST_SET_ITEM, 16).
+-define(wxLIST_MASK_DATA, 8).
+-define(wxLIST_MASK_IMAGE, 4).
+-define(wxLIST_MASK_TEXT, 2).
+-define(wxLIST_MASK_STATE, 1).
+-define(wxLC_USER_TEXT, ?wxLC_VIRTUAL).
+-define(wxLC_MASK_SORT, (?wxLC_SORT_ASCENDING bor ?wxLC_SORT_DESCENDING)).
+-define(wxLC_MASK_ALIGN, (?wxLC_ALIGN_TOP bor ?wxLC_ALIGN_LEFT)).
+-define(wxLC_MASK_TYPE, (?wxLC_ICON bor ?wxLC_SMALL_ICON bor ?wxLC_LIST bor ?wxLC_REPORT)).
+-define(wxLC_SORT_DESCENDING, 32768).
+-define(wxLC_SORT_ASCENDING, 16384).
+-define(wxLC_SINGLE_SEL, 8192).
+-define(wxLC_NO_SORT_HEADER, 4096).
+-define(wxLC_NO_HEADER, 2048).
+-define(wxLC_EDIT_LABELS, 1024).
+-define(wxLC_VIRTUAL, 512).
+-define(wxLC_AUTOARRANGE, 256).
+-define(wxLC_ALIGN_LEFT, 128).
+-define(wxLC_ALIGN_TOP, 64).
+-define(wxLC_REPORT, 32).
+-define(wxLC_LIST, 16).
+-define(wxLC_SMALL_ICON, 8).
+-define(wxLC_ICON, 4).
+-define(wxLC_HRULES, 2).
+-define(wxLC_VRULES, 1).
+% From define::From listbook.h
+-define(wxLB_ALIGN_MASK, ?wxBK_ALIGN_MASK).
+-define(wxLB_RIGHT, ?wxBK_RIGHT).
+-define(wxLB_LEFT, ?wxBK_LEFT).
+-define(wxLB_BOTTOM, ?wxBK_BOTTOM).
+-define(wxLB_TOP, ?wxBK_TOP).
+-define(wxLB_DEFAULT, ?wxBK_DEFAULT).
+% From define::From log.h
+-define(wxTRACE_OleCalls, ?wxEmptyString).
+-define(wxTraceRefCount, 8).
+-define(wxTraceResAlloc, 4).
+-define(wxTraceMessages, 2).
+-define(wxTraceMemAlloc, 1).
+% From define::From notebook.h
+-define(wxNB_FLAT, 2048).
+-define(wxNB_NOPAGETHEME, 1024).
+-define(wxNB_MULTILINE, 512).
+-define(wxNB_FIXEDWIDTH, 256).
+-define(wxNB_RIGHT, ?wxBK_RIGHT).
+-define(wxNB_LEFT, ?wxBK_LEFT).
+-define(wxNB_BOTTOM, ?wxBK_BOTTOM).
+-define(wxNB_TOP, ?wxBK_TOP).
+-define(wxNB_DEFAULT, ?wxBK_DEFAULT).
+% From define::From pickerbase.h
+-define(wxPB_USE_TEXTCTRL, 2).
+% From define::From prntbase.h
+-define(wxID_PREVIEW_GOTO, 8).
+-define(wxID_PREVIEW_LAST, 7).
+-define(wxID_PREVIEW_FIRST, 6).
+-define(wxID_PREVIEW_ZOOM, 5).
+-define(wxID_PREVIEW_PRINT, 4).
+-define(wxID_PREVIEW_PREVIOUS, 3).
+-define(wxID_PREVIEW_NEXT, 2).
+-define(wxID_PREVIEW_CLOSE, 1).
+-define(wxPREVIEW_DEFAULT, (?wxPREVIEW_PREVIOUS bor ?wxPREVIEW_NEXT bor ?wxPREVIEW_ZOOM bor ?wxPREVIEW_FIRST bor ?wxPREVIEW_GOTO bor ?wxPREVIEW_LAST)).
+-define(wxPREVIEW_GOTO, 64).
+-define(wxPREVIEW_LAST, 32).
+-define(wxPREVIEW_FIRST, 16).
+-define(wxPREVIEW_ZOOM, 8).
+-define(wxPREVIEW_NEXT, 4).
+-define(wxPREVIEW_PREVIOUS, 2).
+-define(wxPREVIEW_PRINT, 1).
+% From define::From progdlg.h
+-define(wxPD_CAN_SKIP, 128).
+-define(wxPD_REMAINING_TIME, 64).
+-define(wxPD_SMOOTH, 32).
+-define(wxPD_ESTIMATED_TIME, 16).
+-define(wxPD_ELAPSED_TIME, 8).
+-define(wxPD_AUTO_HIDE, 4).
+-define(wxPD_APP_MODAL, 2).
+-define(wxPD_CAN_ABORT, 1).
+% From define::From scrolwin.h
+-define(wxScrolledWindowStyle, (?wxHSCROLL bor ?wxVSCROLL)).
+% From define::From slider.h
+-define(wxSL_INVERSE, 4096).
+-define(wxSL_SELRANGE, 2048).
+-define(wxSL_BOTH, 1024).
+-define(wxSL_BOTTOM, 512).
+-define(wxSL_RIGHT, 256).
+-define(wxSL_TOP, 128).
+-define(wxSL_LEFT, 64).
+-define(wxSL_LABELS, 32).
+-define(wxSL_AUTOTICKS, ?wxSL_TICKS).
+-define(wxSL_TICKS, 16).
+-define(wxSL_VERTICAL, ?wxVERTICAL).
+-define(wxSL_HORIZONTAL, ?wxHORIZONTAL).
+% From define::From splitter.h
+-define(wxSP_3D, (?wxSP_3DBORDER bor ?wxSP_3DSASH)).
+-define(wxSP_BORDER, ?wxSP_3DBORDER).
+-define(wxSP_NO_XP_THEME, 1024).
+-define(wxSP_3DBORDER, 512).
+-define(wxSP_3DSASH, 256).
+-define(wxSP_LIVE_UPDATE, 128).
+-define(wxSP_PERMIT_UNSPLIT, 64).
+-define(wxSP_NOSASH, 16).
+-define(wxSP_NOBORDER, 0).
+% From define::From statusbr.h
+-define(wxSB_RAISED, 2).
+-define(wxSB_FLAT, 1).
+-define(wxSB_NORMAL, 0).
+% From define::From stc.h
+-define(wxSTC_CMD_WORDRIGHTENDEXTEND, 2442).
+-define(wxSTC_CMD_WORDRIGHTEND, 2441).
+-define(wxSTC_CMD_WORDLEFTENDEXTEND, 2440).
+-define(wxSTC_CMD_WORDLEFTEND, 2439).
+-define(wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND, 2438).
+-define(wxSTC_CMD_STUTTEREDPAGEDOWN, 2437).
+-define(wxSTC_CMD_STUTTEREDPAGEUPEXTEND, 2436).
+-define(wxSTC_CMD_STUTTEREDPAGEUP, 2435).
+-define(wxSTC_CMD_PAGEDOWNRECTEXTEND, 2434).
+-define(wxSTC_CMD_PAGEUPRECTEXTEND, 2433).
+-define(wxSTC_CMD_LINEENDRECTEXTEND, 2432).
+-define(wxSTC_CMD_VCHOMERECTEXTEND, 2431).
+-define(wxSTC_CMD_HOMERECTEXTEND, 2430).
+-define(wxSTC_CMD_CHARRIGHTRECTEXTEND, 2429).
+-define(wxSTC_CMD_CHARLEFTRECTEXTEND, 2428).
+-define(wxSTC_CMD_LINEUPRECTEXTEND, 2427).
+-define(wxSTC_CMD_LINEDOWNRECTEXTEND, 2426).
+-define(wxSTC_CMD_PARAUPEXTEND, 2416).
+-define(wxSTC_CMD_PARAUP, 2415).
+-define(wxSTC_CMD_PARADOWNEXTEND, 2414).
+-define(wxSTC_CMD_PARADOWN, 2413).
+-define(wxSTC_CMD_DELLINERIGHT, 2396).
+-define(wxSTC_CMD_DELLINELEFT, 2395).
+-define(wxSTC_CMD_WORDPARTRIGHTEXTEND, 2393).
+-define(wxSTC_CMD_WORDPARTRIGHT, 2392).
+-define(wxSTC_CMD_WORDPARTLEFTEXTEND, 2391).
+-define(wxSTC_CMD_WORDPARTLEFT, 2390).
+-define(wxSTC_CMD_LINECOPY, 2455).
+-define(wxSTC_CMD_VCHOMEWRAPEXTEND, 2454).
+-define(wxSTC_CMD_VCHOMEWRAP, 2453).
+-define(wxSTC_CMD_LINEENDWRAPEXTEND, 2452).
+-define(wxSTC_CMD_LINEENDWRAP, 2451).
+-define(wxSTC_CMD_HOMEWRAPEXTEND, 2450).
+-define(wxSTC_CMD_HOMEWRAP, 2349).
+-define(wxSTC_CMD_LINEENDDISPLAYEXTEND, 2348).
+-define(wxSTC_CMD_LINEENDDISPLAY, 2347).
+-define(wxSTC_CMD_HOMEDISPLAYEXTEND, 2346).
+-define(wxSTC_CMD_HOMEDISPLAY, 2345).
+-define(wxSTC_CMD_DELETEBACKNOTLINE, 2344).
+-define(wxSTC_CMD_LINESCROLLUP, 2343).
+-define(wxSTC_CMD_LINESCROLLDOWN, 2342).
+-define(wxSTC_CMD_UPPERCASE, 2341).
+-define(wxSTC_CMD_LOWERCASE, 2340).
+-define(wxSTC_CMD_LINEDUPLICATE, 2404).
+-define(wxSTC_CMD_LINETRANSPOSE, 2339).
+-define(wxSTC_CMD_LINEDELETE, 2338).
+-define(wxSTC_CMD_LINECUT, 2337).
+-define(wxSTC_CMD_DELWORDRIGHT, 2336).
+-define(wxSTC_CMD_DELWORDLEFT, 2335).
+-define(wxSTC_CMD_ZOOMOUT, 2334).
+-define(wxSTC_CMD_ZOOMIN, 2333).
+-define(wxSTC_CMD_VCHOMEEXTEND, 2332).
+-define(wxSTC_CMD_VCHOME, 2331).
+-define(wxSTC_CMD_FORMFEED, 2330).
+-define(wxSTC_CMD_NEWLINE, 2329).
+-define(wxSTC_CMD_BACKTAB, 2328).
+-define(wxSTC_CMD_TAB, 2327).
+-define(wxSTC_CMD_DELETEBACK, 2326).
+-define(wxSTC_CMD_CANCEL, 2325).
+-define(wxSTC_CMD_EDITTOGGLEOVERTYPE, 2324).
+-define(wxSTC_CMD_PAGEDOWNEXTEND, 2323).
+-define(wxSTC_CMD_PAGEDOWN, 2322).
+-define(wxSTC_CMD_PAGEUPEXTEND, 2321).
+-define(wxSTC_CMD_PAGEUP, 2320).
+-define(wxSTC_CMD_DOCUMENTENDEXTEND, 2319).
+-define(wxSTC_CMD_DOCUMENTEND, 2318).
+-define(wxSTC_CMD_DOCUMENTSTARTEXTEND, 2317).
+-define(wxSTC_CMD_DOCUMENTSTART, 2316).
+-define(wxSTC_CMD_LINEENDEXTEND, 2315).
+-define(wxSTC_CMD_LINEEND, 2314).
+-define(wxSTC_CMD_HOMEEXTEND, 2313).
+-define(wxSTC_CMD_HOME, 2312).
+-define(wxSTC_CMD_WORDRIGHTEXTEND, 2311).
+-define(wxSTC_CMD_WORDRIGHT, 2310).
+-define(wxSTC_CMD_WORDLEFTEXTEND, 2309).
+-define(wxSTC_CMD_WORDLEFT, 2308).
+-define(wxSTC_CMD_CHARRIGHTEXTEND, 2307).
+-define(wxSTC_CMD_CHARRIGHT, 2306).
+-define(wxSTC_CMD_CHARLEFTEXTEND, 2305).
+-define(wxSTC_CMD_CHARLEFT, 2304).
+-define(wxSTC_CMD_LINEUPEXTEND, 2303).
+-define(wxSTC_CMD_LINEUP, 2302).
+-define(wxSTC_CMD_LINEDOWNEXTEND, 2301).
+-define(wxSTC_CMD_LINEDOWN, 2300).
+-define(wxSTC_CMD_CLEAR, 2180).
+-define(wxSTC_CMD_PASTE, 2179).
+-define(wxSTC_CMD_COPY, 2178).
+-define(wxSTC_CMD_CUT, 2177).
+-define(wxSTC_CMD_UNDO, 2176).
+-define(wxSTC_CMD_SELECTALL, 2013).
+-define(wxSTC_CMD_REDO, 2011).
+-define(wxSTC_SPICE_COMMENTLINE, 8).
+-define(wxSTC_SPICE_VALUE, 7).
+-define(wxSTC_SPICE_DELIMITER, 6).
+-define(wxSTC_SPICE_NUMBER, 5).
+-define(wxSTC_SPICE_KEYWORD3, 4).
+-define(wxSTC_SPICE_KEYWORD2, 3).
+-define(wxSTC_SPICE_KEYWORD, 2).
+-define(wxSTC_SPICE_IDENTIFIER, 1).
+-define(wxSTC_SPICE_DEFAULT, 0).
+-define(wxSTC_OPAL_DEFAULT, 32).
+-define(wxSTC_OPAL_BOOL_CONST, 8).
+-define(wxSTC_OPAL_PAR, 7).
+-define(wxSTC_OPAL_STRING, 6).
+-define(wxSTC_OPAL_SORT, 5).
+-define(wxSTC_OPAL_KEYWORD, 4).
+-define(wxSTC_OPAL_INTEGER, 3).
+-define(wxSTC_OPAL_COMMENT_LINE, 2).
+-define(wxSTC_OPAL_COMMENT_BLOCK, 1).
+-define(wxSTC_OPAL_SPACE, 0).
+-define(wxSTC_INNO_IDENTIFIER, 12).
+-define(wxSTC_INNO_STRING_SINGLE, 11).
+-define(wxSTC_INNO_STRING_DOUBLE, 10).
+-define(wxSTC_INNO_KEYWORD_USER, 9).
+-define(wxSTC_INNO_KEYWORD_PASCAL, 8).
+-define(wxSTC_INNO_COMMENT_PASCAL, 7).
+-define(wxSTC_INNO_PREPROC_INLINE, 6).
+-define(wxSTC_INNO_PREPROC, 5).
+-define(wxSTC_INNO_SECTION, 4).
+-define(wxSTC_INNO_PARAMETER, 3).
+-define(wxSTC_INNO_KEYWORD, 2).
+-define(wxSTC_INNO_COMMENT, 1).
+-define(wxSTC_INNO_DEFAULT, 0).
+-define(wxSTC_CSOUND_STRINGEOL, 15).
+-define(wxSTC_CSOUND_GLOBAL_VAR, 14).
+-define(wxSTC_CSOUND_IRATE_VAR, 13).
+-define(wxSTC_CSOUND_KRATE_VAR, 12).
+-define(wxSTC_CSOUND_ARATE_VAR, 11).
+-define(wxSTC_CSOUND_PARAM, 10).
+-define(wxSTC_CSOUND_COMMENTBLOCK, 9).
+-define(wxSTC_CSOUND_USERKEYWORD, 8).
+-define(wxSTC_CSOUND_HEADERSTMT, 7).
+-define(wxSTC_CSOUND_OPCODE, 6).
+-define(wxSTC_CSOUND_IDENTIFIER, 5).
+-define(wxSTC_CSOUND_INSTR, 4).
+-define(wxSTC_CSOUND_OPERATOR, 3).
+-define(wxSTC_CSOUND_NUMBER, 2).
+-define(wxSTC_CSOUND_COMMENT, 1).
+-define(wxSTC_CSOUND_DEFAULT, 0).
+-define(wxSTC_FS_BINNUMBER, 23).
+-define(wxSTC_FS_HEXNUMBER, 22).
+-define(wxSTC_FS_ERROR, 21).
+-define(wxSTC_FS_LABEL, 20).
+-define(wxSTC_FS_ASM, 19).
+-define(wxSTC_FS_CONSTANT, 18).
+-define(wxSTC_FS_STRINGEOL, 17).
+-define(wxSTC_FS_DATE, 16).
+-define(wxSTC_FS_IDENTIFIER, 15).
+-define(wxSTC_FS_OPERATOR, 14).
+-define(wxSTC_FS_PREPROCESSOR, 13).
+-define(wxSTC_FS_STRING, 12).
+-define(wxSTC_FS_NUMBER, 11).
+-define(wxSTC_FS_KEYWORD4, 10).
+-define(wxSTC_FS_KEYWORD3, 9).
+-define(wxSTC_FS_KEYWORD2, 8).
+-define(wxSTC_FS_KEYWORD, 7).
+-define(wxSTC_FS_COMMENTDOCKEYWORDERROR, 6).
+-define(wxSTC_FS_COMMENTDOCKEYWORD, 5).
+-define(wxSTC_FS_COMMENTLINEDOC, 4).
+-define(wxSTC_FS_COMMENTDOC, 3).
+-define(wxSTC_FS_COMMENTLINE, 2).
+-define(wxSTC_FS_COMMENT, 1).
+-define(wxSTC_FS_DEFAULT, 0).
+-define(wxSTC_ST_SPEC_SEL, 16).
+-define(wxSTC_ST_CHARACTER, 15).
+-define(wxSTC_ST_ASSIGN, 14).
+-define(wxSTC_ST_KWSEND, 13).
+-define(wxSTC_ST_SPECIAL, 12).
+-define(wxSTC_ST_RETURN, 11).
+-define(wxSTC_ST_GLOBAL, 10).
+-define(wxSTC_ST_NIL, 9).
+-define(wxSTC_ST_SUPER, 8).
+-define(wxSTC_ST_SELF, 7).
+-define(wxSTC_ST_BOOL, 6).
+-define(wxSTC_ST_BINARY, 5).
+-define(wxSTC_ST_SYMBOL, 4).
+-define(wxSTC_ST_COMMENT, 3).
+-define(wxSTC_ST_NUMBER, 2).
+-define(wxSTC_ST_STRING, 1).
+-define(wxSTC_ST_DEFAULT, 0).
+-define(wxSTC_SQL_QUOTEDIDENTIFIER, 23).
+-define(wxSTC_SQL_USER4, 22).
+-define(wxSTC_SQL_USER3, 21).
+-define(wxSTC_SQL_USER2, 20).
+-define(wxSTC_SQL_USER1, 19).
+-define(wxSTC_SQL_COMMENTDOCKEYWORDERROR, 18).
+-define(wxSTC_SQL_COMMENTDOCKEYWORD, 17).
+-define(wxSTC_SQL_WORD2, 16).
+-define(wxSTC_SQL_COMMENTLINEDOC, 15).
+-define(wxSTC_SQL_SQLPLUS_COMMENT, 13).
+-define(wxSTC_SQL_IDENTIFIER, 11).
+-define(wxSTC_SQL_OPERATOR, 10).
+-define(wxSTC_SQL_SQLPLUS_PROMPT, 9).
+-define(wxSTC_SQL_SQLPLUS, 8).
+-define(wxSTC_SQL_CHARACTER, 7).
+-define(wxSTC_SQL_STRING, 6).
+-define(wxSTC_SQL_WORD, 5).
+-define(wxSTC_SQL_NUMBER, 4).
+-define(wxSTC_SQL_COMMENTDOC, 3).
+-define(wxSTC_SQL_COMMENTLINE, 2).
+-define(wxSTC_SQL_COMMENT, 1).
+-define(wxSTC_SQL_DEFAULT, 0).
+-define(wxSTC_REBOL_WORD8, 28).
+-define(wxSTC_REBOL_WORD7, 27).
+-define(wxSTC_REBOL_WORD6, 26).
+-define(wxSTC_REBOL_WORD5, 25).
+-define(wxSTC_REBOL_WORD4, 24).
+-define(wxSTC_REBOL_WORD3, 23).
+-define(wxSTC_REBOL_WORD2, 22).
+-define(wxSTC_REBOL_WORD, 21).
+-define(wxSTC_REBOL_IDENTIFIER, 20).
+-define(wxSTC_REBOL_TIME, 19).
+-define(wxSTC_REBOL_DATE, 18).
+-define(wxSTC_REBOL_URL, 17).
+-define(wxSTC_REBOL_EMAIL, 16).
+-define(wxSTC_REBOL_FILE, 15).
+-define(wxSTC_REBOL_TAG, 14).
+-define(wxSTC_REBOL_ISSUE, 13).
+-define(wxSTC_REBOL_MONEY, 12).
+-define(wxSTC_REBOL_BINARY, 11).
+-define(wxSTC_REBOL_TUPLE, 10).
+-define(wxSTC_REBOL_PAIR, 9).
+-define(wxSTC_REBOL_NUMBER, 8).
+-define(wxSTC_REBOL_BRACEDSTRING, 7).
+-define(wxSTC_REBOL_QUOTEDSTRING, 6).
+-define(wxSTC_REBOL_CHARACTER, 5).
+-define(wxSTC_REBOL_OPERATOR, 4).
+-define(wxSTC_REBOL_PREFACE, 3).
+-define(wxSTC_REBOL_COMMENTBLOCK, 2).
+-define(wxSTC_REBOL_COMMENTLINE, 1).
+-define(wxSTC_REBOL_DEFAULT, 0).
+-define(wxSTC_T3_USER3, 19).
+-define(wxSTC_T3_USER2, 18).
+-define(wxSTC_T3_USER1, 17).
+-define(wxSTC_T3_HTML_STRING, 16).
+-define(wxSTC_T3_HTML_DEFAULT, 15).
+-define(wxSTC_T3_HTML_TAG, 14).
+-define(wxSTC_T3_MSG_PARAM, 13).
+-define(wxSTC_T3_LIB_DIRECTIVE, 12).
+-define(wxSTC_T3_X_STRING, 11).
+-define(wxSTC_T3_D_STRING, 10).
+-define(wxSTC_T3_S_STRING, 9).
+-define(wxSTC_T3_IDENTIFIER, 8).
+-define(wxSTC_T3_NUMBER, 7).
+-define(wxSTC_T3_KEYWORD, 6).
+-define(wxSTC_T3_OPERATOR, 5).
+-define(wxSTC_T3_LINE_COMMENT, 4).
+-define(wxSTC_T3_BLOCK_COMMENT, 3).
+-define(wxSTC_T3_PREPROCESSOR, 2).
+-define(wxSTC_T3_X_DEFAULT, 1).
+-define(wxSTC_T3_DEFAULT, 0).
+-define(wxSTC_HA_COMMENTBLOCK3, 16).
+-define(wxSTC_HA_COMMENTBLOCK2, 15).
+-define(wxSTC_HA_COMMENTBLOCK, 14).
+-define(wxSTC_HA_COMMENTLINE, 13).
+-define(wxSTC_HA_INSTANCE, 12).
+-define(wxSTC_HA_OPERATOR, 11).
+-define(wxSTC_HA_IMPORT, 10).
+-define(wxSTC_HA_DATA, 9).
+-define(wxSTC_HA_CAPITAL, 8).
+-define(wxSTC_HA_MODULE, 7).
+-define(wxSTC_HA_CLASS, 6).
+-define(wxSTC_HA_CHARACTER, 5).
+-define(wxSTC_HA_STRING, 4).
+-define(wxSTC_HA_NUMBER, 3).
+-define(wxSTC_HA_KEYWORD, 2).
+-define(wxSTC_HA_IDENTIFIER, 1).
+-define(wxSTC_HA_DEFAULT, 0).
+-define(wxSTC_CAML_COMMENT3, 15).
+-define(wxSTC_CAML_COMMENT2, 14).
+-define(wxSTC_CAML_COMMENT1, 13).
+-define(wxSTC_CAML_COMMENT, 12).
+-define(wxSTC_CAML_STRING, 11).
+-define(wxSTC_CAML_CHAR, 9).
+-define(wxSTC_CAML_NUMBER, 8).
+-define(wxSTC_CAML_OPERATOR, 7).
+-define(wxSTC_CAML_LINENUM, 6).
+-define(wxSTC_CAML_KEYWORD3, 5).
+-define(wxSTC_CAML_KEYWORD2, 4).
+-define(wxSTC_CAML_KEYWORD, 3).
+-define(wxSTC_CAML_TAGNAME, 2).
+-define(wxSTC_CAML_IDENTIFIER, 1).
+-define(wxSTC_CAML_DEFAULT, 0).
+-define(wxSTC_VHDL_USERWORD, 14).
+-define(wxSTC_VHDL_STDTYPE, 13).
+-define(wxSTC_VHDL_STDPACKAGE, 12).
+-define(wxSTC_VHDL_STDFUNCTION, 11).
+-define(wxSTC_VHDL_ATTRIBUTE, 10).
+-define(wxSTC_VHDL_STDOPERATOR, 9).
+-define(wxSTC_VHDL_KEYWORD, 8).
+-define(wxSTC_VHDL_STRINGEOL, 7).
+-define(wxSTC_VHDL_IDENTIFIER, 6).
+-define(wxSTC_VHDL_OPERATOR, 5).
+-define(wxSTC_VHDL_STRING, 4).
+-define(wxSTC_VHDL_NUMBER, 3).
+-define(wxSTC_VHDL_COMMENTLINEBANG, 2).
+-define(wxSTC_VHDL_COMMENT, 1).
+-define(wxSTC_VHDL_DEFAULT, 0).
+-define(wxSTC_ASN1_OPERATOR, 10).
+-define(wxSTC_ASN1_TYPE, 9).
+-define(wxSTC_ASN1_DESCRIPTOR, 8).
+-define(wxSTC_ASN1_ATTRIBUTE, 7).
+-define(wxSTC_ASN1_KEYWORD, 6).
+-define(wxSTC_ASN1_SCALAR, 5).
+-define(wxSTC_ASN1_OID, 4).
+-define(wxSTC_ASN1_STRING, 3).
+-define(wxSTC_ASN1_IDENTIFIER, 2).
+-define(wxSTC_ASN1_COMMENT, 1).
+-define(wxSTC_ASN1_DEFAULT, 0).
+-define(wxSTC_SH_HERE_Q, 13).
+-define(wxSTC_SH_HERE_DELIM, 12).
+-define(wxSTC_SH_BACKTICKS, 11).
+-define(wxSTC_SH_PARAM, 10).
+-define(wxSTC_SH_SCALAR, 9).
+-define(wxSTC_SH_IDENTIFIER, 8).
+-define(wxSTC_SH_OPERATOR, 7).
+-define(wxSTC_SH_CHARACTER, 6).
+-define(wxSTC_SH_STRING, 5).
+-define(wxSTC_SH_WORD, 4).
+-define(wxSTC_SH_NUMBER, 3).
+-define(wxSTC_SH_COMMENTLINE, 2).
+-define(wxSTC_SH_ERROR, 1).
+-define(wxSTC_SH_DEFAULT, 0).
+-define(wxSTC_APDL_FUNCTION, 12).
+-define(wxSTC_APDL_ARGUMENT, 11).
+-define(wxSTC_APDL_STARCOMMAND, 10).
+-define(wxSTC_APDL_SLASHCOMMAND, 9).
+-define(wxSTC_APDL_COMMAND, 8).
+-define(wxSTC_APDL_PROCESSOR, 7).
+-define(wxSTC_APDL_WORD, 6).
+-define(wxSTC_APDL_OPERATOR, 5).
+-define(wxSTC_APDL_STRING, 4).
+-define(wxSTC_APDL_NUMBER, 3).
+-define(wxSTC_APDL_COMMENTBLOCK, 2).
+-define(wxSTC_APDL_COMMENT, 1).
+-define(wxSTC_APDL_DEFAULT, 0).
+-define(wxSTC_AU3_UDF, 15).
+-define(wxSTC_AU3_COMOBJ, 14).
+-define(wxSTC_AU3_EXPAND, 13).
+-define(wxSTC_AU3_SPECIAL, 12).
+-define(wxSTC_AU3_PREPROCESSOR, 11).
+-define(wxSTC_AU3_SENT, 10).
+-define(wxSTC_AU3_VARIABLE, 9).
+-define(wxSTC_AU3_OPERATOR, 8).
+-define(wxSTC_AU3_STRING, 7).
+-define(wxSTC_AU3_MACRO, 6).
+-define(wxSTC_AU3_KEYWORD, 5).
+-define(wxSTC_AU3_FUNCTION, 4).
+-define(wxSTC_AU3_NUMBER, 3).
+-define(wxSTC_AU3_COMMENTBLOCK, 2).
+-define(wxSTC_AU3_COMMENT, 1).
+-define(wxSTC_AU3_DEFAULT, 0).
+-define(wxSTC_SN_USER, 19).
+-define(wxSTC_SN_SIGNAL, 14).
+-define(wxSTC_SN_REGEXTAG, 13).
+-define(wxSTC_SN_STRINGEOL, 12).
+-define(wxSTC_SN_IDENTIFIER, 11).
+-define(wxSTC_SN_OPERATOR, 10).
+-define(wxSTC_SN_PREPROCESSOR, 9).
+-define(wxSTC_SN_WORD3, 8).
+-define(wxSTC_SN_WORD2, 7).
+-define(wxSTC_SN_STRING, 6).
+-define(wxSTC_SN_WORD, 5).
+-define(wxSTC_SN_NUMBER, 4).
+-define(wxSTC_SN_COMMENTLINEBANG, 3).
+-define(wxSTC_SN_COMMENTLINE, 2).
+-define(wxSTC_SN_CODE, 1).
+-define(wxSTC_SN_DEFAULT, 0).
+-define(wxSTC_GC_OPERATOR, 9).
+-define(wxSTC_GC_STRING, 8).
+-define(wxSTC_GC_COMMAND, 7).
+-define(wxSTC_GC_CONTROL, 6).
+-define(wxSTC_GC_ATTRIBUTE, 5).
+-define(wxSTC_GC_EVENT, 4).
+-define(wxSTC_GC_GLOBAL, 3).
+-define(wxSTC_GC_COMMENTBLOCK, 2).
+-define(wxSTC_GC_COMMENTLINE, 1).
+-define(wxSTC_GC_DEFAULT, 0).
+-define(wxSTC_KIX_IDENTIFIER, 31).
+-define(wxSTC_KIX_OPERATOR, 9).
+-define(wxSTC_KIX_FUNCTIONS, 8).
+-define(wxSTC_KIX_KEYWORD, 7).
+-define(wxSTC_KIX_MACRO, 6).
+-define(wxSTC_KIX_VAR, 5).
+-define(wxSTC_KIX_NUMBER, 4).
+-define(wxSTC_KIX_STRING2, 3).
+-define(wxSTC_KIX_STRING1, 2).
+-define(wxSTC_KIX_COMMENT, 1).
+-define(wxSTC_KIX_DEFAULT, 0).
+-define(wxSTC_V_USER, 19).
+-define(wxSTC_V_STRINGEOL, 12).
+-define(wxSTC_V_IDENTIFIER, 11).
+-define(wxSTC_V_OPERATOR, 10).
+-define(wxSTC_V_PREPROCESSOR, 9).
+-define(wxSTC_V_WORD3, 8).
+-define(wxSTC_V_WORD2, 7).
+-define(wxSTC_V_STRING, 6).
+-define(wxSTC_V_WORD, 5).
+-define(wxSTC_V_NUMBER, 4).
+-define(wxSTC_V_COMMENTLINEBANG, 3).
+-define(wxSTC_V_COMMENTLINE, 2).
+-define(wxSTC_V_COMMENT, 1).
+-define(wxSTC_V_DEFAULT, 0).
+-define(wxSTC_MSSQL_COLUMN_NAME_2, 16).
+-define(wxSTC_MSSQL_DEFAULT_PREF_DATATYPE, 15).
+-define(wxSTC_MSSQL_STORED_PROCEDURE, 14).
+-define(wxSTC_MSSQL_FUNCTION, 13).
+-define(wxSTC_MSSQL_GLOBAL_VARIABLE, 12).
+-define(wxSTC_MSSQL_SYSTABLE, 11).
+-define(wxSTC_MSSQL_DATATYPE, 10).
+-define(wxSTC_MSSQL_STATEMENT, 9).
+-define(wxSTC_MSSQL_COLUMN_NAME, 8).
+-define(wxSTC_MSSQL_VARIABLE, 7).
+-define(wxSTC_MSSQL_IDENTIFIER, 6).
+-define(wxSTC_MSSQL_OPERATOR, 5).
+-define(wxSTC_MSSQL_STRING, 4).
+-define(wxSTC_MSSQL_NUMBER, 3).
+-define(wxSTC_MSSQL_LINE_COMMENT, 2).
+-define(wxSTC_MSSQL_COMMENT, 1).
+-define(wxSTC_MSSQL_DEFAULT, 0).
+-define(wxSTC_ERLANG_UNKNOWN, 31).
+-define(wxSTC_ERLANG_NODE_NAME, 13).
+-define(wxSTC_ERLANG_SEPARATOR, 12).
+-define(wxSTC_ERLANG_RECORD, 11).
+-define(wxSTC_ERLANG_MACRO, 10).
+-define(wxSTC_ERLANG_CHARACTER, 9).
+-define(wxSTC_ERLANG_FUNCTION_NAME, 8).
+-define(wxSTC_ERLANG_ATOM, 7).
+-define(wxSTC_ERLANG_OPERATOR, 6).
+-define(wxSTC_ERLANG_STRING, 5).
+-define(wxSTC_ERLANG_KEYWORD, 4).
+-define(wxSTC_ERLANG_NUMBER, 3).
+-define(wxSTC_ERLANG_VARIABLE, 2).
+-define(wxSTC_ERLANG_COMMENT, 1).
+-define(wxSTC_ERLANG_DEFAULT, 0).
+-define(wxSTC_METAPOST_EXTRA, 6).
+-define(wxSTC_METAPOST_TEXT, 5).
+-define(wxSTC_METAPOST_COMMAND, 4).
+-define(wxSTC_METAPOST_SYMBOL, 3).
+-define(wxSTC_METAPOST_GROUP, 2).
+-define(wxSTC_METAPOST_SPECIAL, 1).
+-define(wxSTC_METAPOST_DEFAULT, 0).
+-define(wxSTC_TEX_TEXT, 5).
+-define(wxSTC_TEX_COMMAND, 4).
+-define(wxSTC_TEX_SYMBOL, 3).
+-define(wxSTC_TEX_GROUP, 2).
+-define(wxSTC_TEX_SPECIAL, 1).
+-define(wxSTC_TEX_DEFAULT, 0).
+-define(wxSTC_YAML_ERROR, 8).
+-define(wxSTC_YAML_TEXT, 7).
+-define(wxSTC_YAML_DOCUMENT, 6).
+-define(wxSTC_YAML_REFERENCE, 5).
+-define(wxSTC_YAML_NUMBER, 4).
+-define(wxSTC_YAML_KEYWORD, 3).
+-define(wxSTC_YAML_IDENTIFIER, 2).
+-define(wxSTC_YAML_COMMENT, 1).
+-define(wxSTC_YAML_DEFAULT, 0).
+-define(wxSTC_LOT_ABORT, 6).
+-define(wxSTC_LOT_FAIL, 5).
+-define(wxSTC_LOT_PASS, 4).
+-define(wxSTC_LOT_SET, 3).
+-define(wxSTC_LOT_BREAK, 2).
+-define(wxSTC_LOT_HEADER, 1).
+-define(wxSTC_LOT_DEFAULT, 0).
+-define(wxSTC_CLW_DEPRECATED, 16).
+-define(wxSTC_CLW_ERROR, 15).
+-define(wxSTC_CLW_STANDARD_EQUATE, 14).
+-define(wxSTC_CLW_ATTRIBUTE, 13).
+-define(wxSTC_CLW_STRUCTURE_DATA_TYPE, 12).
+-define(wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION, 11).
+-define(wxSTC_CLW_RUNTIME_EXPRESSIONS, 10).
+-define(wxSTC_CLW_COMPILER_DIRECTIVE, 9).
+-define(wxSTC_CLW_KEYWORD, 8).
+-define(wxSTC_CLW_PICTURE_STRING, 7).
+-define(wxSTC_CLW_REAL_CONSTANT, 6).
+-define(wxSTC_CLW_INTEGER_CONSTANT, 5).
+-define(wxSTC_CLW_USER_IDENTIFIER, 4).
+-define(wxSTC_CLW_STRING, 3).
+-define(wxSTC_CLW_COMMENT, 2).
+-define(wxSTC_CLW_LABEL, 1).
+-define(wxSTC_CLW_DEFAULT, 0).
+-define(wxSTC_MMIXAL_INCLUDE, 17).
+-define(wxSTC_MMIXAL_SYMBOL, 16).
+-define(wxSTC_MMIXAL_OPERATOR, 15).
+-define(wxSTC_MMIXAL_HEX, 14).
+-define(wxSTC_MMIXAL_REGISTER, 13).
+-define(wxSTC_MMIXAL_STRING, 12).
+-define(wxSTC_MMIXAL_CHAR, 11).
+-define(wxSTC_MMIXAL_REF, 10).
+-define(wxSTC_MMIXAL_NUMBER, 9).
+-define(wxSTC_MMIXAL_OPERANDS, 8).
+-define(wxSTC_MMIXAL_OPCODE_POST, 7).
+-define(wxSTC_MMIXAL_OPCODE_UNKNOWN, 6).
+-define(wxSTC_MMIXAL_OPCODE_VALID, 5).
+-define(wxSTC_MMIXAL_OPCODE_PRE, 4).
+-define(wxSTC_MMIXAL_OPCODE, 3).
+-define(wxSTC_MMIXAL_LABEL, 2).
+-define(wxSTC_MMIXAL_COMMENT, 1).
+-define(wxSTC_MMIXAL_LEADWS, 0).
+-define(wxSTC_NSIS_COMMENTBOX, 18).
+-define(wxSTC_NSIS_FUNCTIONDEF, 17).
+-define(wxSTC_NSIS_PAGEEX, 16).
+-define(wxSTC_NSIS_SECTIONGROUP, 15).
+-define(wxSTC_NSIS_NUMBER, 14).
+-define(wxSTC_NSIS_STRINGVAR, 13).
+-define(wxSTC_NSIS_MACRODEF, 12).
+-define(wxSTC_NSIS_IFDEFINEDEF, 11).
+-define(wxSTC_NSIS_SUBSECTIONDEF, 10).
+-define(wxSTC_NSIS_SECTIONDEF, 9).
+-define(wxSTC_NSIS_USERDEFINED, 8).
+-define(wxSTC_NSIS_LABEL, 7).
+-define(wxSTC_NSIS_VARIABLE, 6).
+-define(wxSTC_NSIS_FUNCTION, 5).
+-define(wxSTC_NSIS_STRINGRQ, 4).
+-define(wxSTC_NSIS_STRINGLQ, 3).
+-define(wxSTC_NSIS_STRINGDQ, 2).
+-define(wxSTC_NSIS_COMMENT, 1).
+-define(wxSTC_NSIS_DEFAULT, 0).
+-define(wxSTC_PS_BADSTRINGCHAR, 15).
+-define(wxSTC_PS_BASE85STRING, 14).
+-define(wxSTC_PS_HEXSTRING, 13).
+-define(wxSTC_PS_TEXT, 12).
+-define(wxSTC_PS_PAREN_PROC, 11).
+-define(wxSTC_PS_PAREN_DICT, 10).
+-define(wxSTC_PS_PAREN_ARRAY, 9).
+-define(wxSTC_PS_IMMEVAL, 8).
+-define(wxSTC_PS_LITERAL, 7).
+-define(wxSTC_PS_KEYWORD, 6).
+-define(wxSTC_PS_NAME, 5).
+-define(wxSTC_PS_NUMBER, 4).
+-define(wxSTC_PS_DSC_VALUE, 3).
+-define(wxSTC_PS_DSC_COMMENT, 2).
+-define(wxSTC_PS_COMMENT, 1).
+-define(wxSTC_PS_DEFAULT, 0).
+-define(wxSTC_ESCRIPT_WORD3, 11).
+-define(wxSTC_ESCRIPT_WORD2, 10).
+-define(wxSTC_ESCRIPT_BRACE, 9).
+-define(wxSTC_ESCRIPT_IDENTIFIER, 8).
+-define(wxSTC_ESCRIPT_OPERATOR, 7).
+-define(wxSTC_ESCRIPT_STRING, 6).
+-define(wxSTC_ESCRIPT_WORD, 5).
+-define(wxSTC_ESCRIPT_NUMBER, 4).
+-define(wxSTC_ESCRIPT_COMMENTDOC, 3).
+-define(wxSTC_ESCRIPT_COMMENTLINE, 2).
+-define(wxSTC_ESCRIPT_COMMENT, 1).
+-define(wxSTC_ESCRIPT_DEFAULT, 0).
+-define(wxSTC_LOUT_STRINGEOL, 10).
+-define(wxSTC_LOUT_IDENTIFIER, 9).
+-define(wxSTC_LOUT_OPERATOR, 8).
+-define(wxSTC_LOUT_STRING, 7).
+-define(wxSTC_LOUT_WORD4, 6).
+-define(wxSTC_LOUT_WORD3, 5).
+-define(wxSTC_LOUT_WORD2, 4).
+-define(wxSTC_LOUT_WORD, 3).
+-define(wxSTC_LOUT_NUMBER, 2).
+-define(wxSTC_LOUT_COMMENT, 1).
+-define(wxSTC_LOUT_DEFAULT, 0).
+-define(wxSTC_POV_WORD8, 16).
+-define(wxSTC_POV_WORD7, 15).
+-define(wxSTC_POV_WORD6, 14).
+-define(wxSTC_POV_WORD5, 13).
+-define(wxSTC_POV_WORD4, 12).
+-define(wxSTC_POV_WORD3, 11).
+-define(wxSTC_POV_WORD2, 10).
+-define(wxSTC_POV_BADDIRECTIVE, 9).
+-define(wxSTC_POV_DIRECTIVE, 8).
+-define(wxSTC_POV_STRINGEOL, 7).
+-define(wxSTC_POV_STRING, 6).
+-define(wxSTC_POV_IDENTIFIER, 5).
+-define(wxSTC_POV_OPERATOR, 4).
+-define(wxSTC_POV_NUMBER, 3).
+-define(wxSTC_POV_COMMENTLINE, 2).
+-define(wxSTC_POV_COMMENT, 1).
+-define(wxSTC_POV_DEFAULT, 0).
+-define(wxSTC_CSS_ATTRIBUTE, 16).
+-define(wxSTC_CSS_IDENTIFIER2, 15).
+-define(wxSTC_CSS_SINGLESTRING, 14).
+-define(wxSTC_CSS_DOUBLESTRING, 13).
+-define(wxSTC_CSS_DIRECTIVE, 12).
+-define(wxSTC_CSS_IMPORTANT, 11).
+-define(wxSTC_CSS_ID, 10).
+-define(wxSTC_CSS_COMMENT, 9).
+-define(wxSTC_CSS_VALUE, 8).
+-define(wxSTC_CSS_UNKNOWN_IDENTIFIER, 7).
+-define(wxSTC_CSS_IDENTIFIER, 6).
+-define(wxSTC_CSS_OPERATOR, 5).
+-define(wxSTC_CSS_UNKNOWN_PSEUDOCLASS, 4).
+-define(wxSTC_CSS_PSEUDOCLASS, 3).
+-define(wxSTC_CSS_CLASS, 2).
+-define(wxSTC_CSS_TAG, 1).
+-define(wxSTC_CSS_DEFAULT, 0).
+-define(wxSTC_F_CONTINUATION, 14).
+-define(wxSTC_F_LABEL, 13).
+-define(wxSTC_F_OPERATOR2, 12).
+-define(wxSTC_F_PREPROCESSOR, 11).
+-define(wxSTC_F_WORD3, 10).
+-define(wxSTC_F_WORD2, 9).
+-define(wxSTC_F_WORD, 8).
+-define(wxSTC_F_IDENTIFIER, 7).
+-define(wxSTC_F_OPERATOR, 6).
+-define(wxSTC_F_STRINGEOL, 5).
+-define(wxSTC_F_STRING2, 4).
+-define(wxSTC_F_STRING1, 3).
+-define(wxSTC_F_NUMBER, 2).
+-define(wxSTC_F_COMMENT, 1).
+-define(wxSTC_F_DEFAULT, 0).
+-define(wxSTC_ASM_EXTINSTRUCTION, 14).
+-define(wxSTC_ASM_STRINGEOL, 13).
+-define(wxSTC_ASM_CHARACTER, 12).
+-define(wxSTC_ASM_COMMENTBLOCK, 11).
+-define(wxSTC_ASM_DIRECTIVEOPERAND, 10).
+-define(wxSTC_ASM_DIRECTIVE, 9).
+-define(wxSTC_ASM_REGISTER, 8).
+-define(wxSTC_ASM_MATHINSTRUCTION, 7).
+-define(wxSTC_ASM_CPUINSTRUCTION, 6).
+-define(wxSTC_ASM_IDENTIFIER, 5).
+-define(wxSTC_ASM_OPERATOR, 4).
+-define(wxSTC_ASM_STRING, 3).
+-define(wxSTC_ASM_NUMBER, 2).
+-define(wxSTC_ASM_COMMENT, 1).
+-define(wxSTC_ASM_DEFAULT, 0).
+-define(wxSTC_SCRIPTOL_PREPROCESSOR, 15).
+-define(wxSTC_SCRIPTOL_CLASSNAME, 14).
+-define(wxSTC_SCRIPTOL_TRIPLE, 13).
+-define(wxSTC_SCRIPTOL_IDENTIFIER, 12).
+-define(wxSTC_SCRIPTOL_OPERATOR, 11).
+-define(wxSTC_SCRIPTOL_KEYWORD, 10).
+-define(wxSTC_SCRIPTOL_STRINGEOL, 9).
+-define(wxSTC_SCRIPTOL_CHARACTER, 8).
+-define(wxSTC_SCRIPTOL_STRING, 7).
+-define(wxSTC_SCRIPTOL_NUMBER, 6).
+-define(wxSTC_SCRIPTOL_COMMENTBLOCK, 5).
+-define(wxSTC_SCRIPTOL_CSTYLE, 4).
+-define(wxSTC_SCRIPTOL_PERSISTENT, 3).
+-define(wxSTC_SCRIPTOL_COMMENTLINE, 2).
+-define(wxSTC_SCRIPTOL_WHITE, 1).
+-define(wxSTC_SCRIPTOL_DEFAULT, 0).
+-define(wxSTC_MATLAB_DOUBLEQUOTESTRING, 8).
+-define(wxSTC_MATLAB_IDENTIFIER, 7).
+-define(wxSTC_MATLAB_OPERATOR, 6).
+-define(wxSTC_MATLAB_STRING, 5).
+-define(wxSTC_MATLAB_KEYWORD, 4).
+-define(wxSTC_MATLAB_NUMBER, 3).
+-define(wxSTC_MATLAB_COMMAND, 2).
+-define(wxSTC_MATLAB_COMMENT, 1).
+-define(wxSTC_MATLAB_DEFAULT, 0).
+-define(wxSTC_FORTH_LOCALE, 11).
+-define(wxSTC_FORTH_STRING, 10).
+-define(wxSTC_FORTH_NUMBER, 9).
+-define(wxSTC_FORTH_PREWORD2, 8).
+-define(wxSTC_FORTH_PREWORD1, 7).
+-define(wxSTC_FORTH_DEFWORD, 6).
+-define(wxSTC_FORTH_KEYWORD, 5).
+-define(wxSTC_FORTH_CONTROL, 4).
+-define(wxSTC_FORTH_IDENTIFIER, 3).
+-define(wxSTC_FORTH_COMMENT_ML, 2).
+-define(wxSTC_FORTH_COMMENT, 1).
+-define(wxSTC_FORTH_DEFAULT, 0).
+-define(wxSTC_NNCRONTAB_IDENTIFIER, 10).
+-define(wxSTC_NNCRONTAB_ENVIRONMENT, 9).
+-define(wxSTC_NNCRONTAB_STRING, 8).
+-define(wxSTC_NNCRONTAB_NUMBER, 7).
+-define(wxSTC_NNCRONTAB_ASTERISK, 6).
+-define(wxSTC_NNCRONTAB_MODIFIER, 5).
+-define(wxSTC_NNCRONTAB_KEYWORD, 4).
+-define(wxSTC_NNCRONTAB_SECTION, 3).
+-define(wxSTC_NNCRONTAB_TASK, 2).
+-define(wxSTC_NNCRONTAB_COMMENT, 1).
+-define(wxSTC_NNCRONTAB_DEFAULT, 0).
+-define(wxSTC_EIFFEL_STRINGEOL, 8).
+-define(wxSTC_EIFFEL_IDENTIFIER, 7).
+-define(wxSTC_EIFFEL_OPERATOR, 6).
+-define(wxSTC_EIFFEL_CHARACTER, 5).
+-define(wxSTC_EIFFEL_STRING, 4).
+-define(wxSTC_EIFFEL_WORD, 3).
+-define(wxSTC_EIFFEL_NUMBER, 2).
+-define(wxSTC_EIFFEL_COMMENTLINE, 1).
+-define(wxSTC_EIFFEL_DEFAULT, 0).
+-define(wxSTC_LISP_MULTI_COMMENT, 12).
+-define(wxSTC_LISP_SPECIAL, 11).
+-define(wxSTC_LISP_OPERATOR, 10).
+-define(wxSTC_LISP_IDENTIFIER, 9).
+-define(wxSTC_LISP_STRINGEOL, 8).
+-define(wxSTC_LISP_STRING, 6).
+-define(wxSTC_LISP_SYMBOL, 5).
+-define(wxSTC_LISP_KEYWORD_KW, 4).
+-define(wxSTC_LISP_KEYWORD, 3).
+-define(wxSTC_LISP_NUMBER, 2).
+-define(wxSTC_LISP_COMMENT, 1).
+-define(wxSTC_LISP_DEFAULT, 0).
+-define(wxSTC_BAAN_WORD2, 10).
+-define(wxSTC_BAAN_STRINGEOL, 9).
+-define(wxSTC_BAAN_IDENTIFIER, 8).
+-define(wxSTC_BAAN_OPERATOR, 7).
+-define(wxSTC_BAAN_PREPROCESSOR, 6).
+-define(wxSTC_BAAN_STRING, 5).
+-define(wxSTC_BAAN_WORD, 4).
+-define(wxSTC_BAAN_NUMBER, 3).
+-define(wxSTC_BAAN_COMMENTDOC, 2).
+-define(wxSTC_BAAN_COMMENT, 1).
+-define(wxSTC_BAAN_DEFAULT, 0).
+-define(wxSTC_ADA_ILLEGAL, 11).
+-define(wxSTC_ADA_COMMENTLINE, 10).
+-define(wxSTC_ADA_LABEL, 9).
+-define(wxSTC_ADA_STRINGEOL, 8).
+-define(wxSTC_ADA_STRING, 7).
+-define(wxSTC_ADA_CHARACTEREOL, 6).
+-define(wxSTC_ADA_CHARACTER, 5).
+-define(wxSTC_ADA_DELIMITER, 4).
+-define(wxSTC_ADA_NUMBER, 3).
+-define(wxSTC_ADA_IDENTIFIER, 2).
+-define(wxSTC_ADA_WORD, 1).
+-define(wxSTC_ADA_DEFAULT, 0).
+-define(wxSTC_AVE_WORD6, 16).
+-define(wxSTC_AVE_WORD5, 15).
+-define(wxSTC_AVE_WORD4, 14).
+-define(wxSTC_AVE_WORD3, 13).
+-define(wxSTC_AVE_WORD2, 12).
+-define(wxSTC_AVE_WORD1, 11).
+-define(wxSTC_AVE_OPERATOR, 10).
+-define(wxSTC_AVE_IDENTIFIER, 9).
+-define(wxSTC_AVE_STRINGEOL, 8).
+-define(wxSTC_AVE_ENUM, 7).
+-define(wxSTC_AVE_STRING, 6).
+-define(wxSTC_AVE_WORD, 3).
+-define(wxSTC_AVE_NUMBER, 2).
+-define(wxSTC_AVE_COMMENT, 1).
+-define(wxSTC_AVE_DEFAULT, 0).
+-define(wxSTC_CONF_DIRECTIVE, 9).
+-define(wxSTC_CONF_IP, 8).
+-define(wxSTC_CONF_OPERATOR, 7).
+-define(wxSTC_CONF_STRING, 6).
+-define(wxSTC_CONF_PARAMETER, 5).
+-define(wxSTC_CONF_EXTENSION, 4).
+-define(wxSTC_CONF_IDENTIFIER, 3).
+-define(wxSTC_CONF_NUMBER, 2).
+-define(wxSTC_CONF_COMMENT, 1).
+-define(wxSTC_CONF_DEFAULT, 0).
+-define(wxSTC_DIFF_ADDED, 6).
+-define(wxSTC_DIFF_DELETED, 5).
+-define(wxSTC_DIFF_POSITION, 4).
+-define(wxSTC_DIFF_HEADER, 3).
+-define(wxSTC_DIFF_COMMAND, 2).
+-define(wxSTC_DIFF_COMMENT, 1).
+-define(wxSTC_DIFF_DEFAULT, 0).
+-define(wxSTC_MAKE_IDEOL, 9).
+-define(wxSTC_MAKE_TARGET, 5).
+-define(wxSTC_MAKE_OPERATOR, 4).
+-define(wxSTC_MAKE_IDENTIFIER, 3).
+-define(wxSTC_MAKE_PREPROCESSOR, 2).
+-define(wxSTC_MAKE_COMMENT, 1).
+-define(wxSTC_MAKE_DEFAULT, 0).
+-define(wxSTC_BAT_OPERATOR, 7).
+-define(wxSTC_BAT_IDENTIFIER, 6).
+-define(wxSTC_BAT_COMMAND, 5).
+-define(wxSTC_BAT_HIDE, 4).
+-define(wxSTC_BAT_LABEL, 3).
+-define(wxSTC_BAT_WORD, 2).
+-define(wxSTC_BAT_COMMENT, 1).
+-define(wxSTC_BAT_DEFAULT, 0).
+-define(wxSTC_ERR_JAVA_STACK, 20).
+-define(wxSTC_ERR_TIDY, 19).
+-define(wxSTC_ERR_ABSF, 18).
+-define(wxSTC_ERR_IFORT, 17).
+-define(wxSTC_ERR_IFC, 16).
+-define(wxSTC_ERR_ELF, 15).
+-define(wxSTC_ERR_PHP, 14).
+-define(wxSTC_ERR_DIFF_MESSAGE, 13).
+-define(wxSTC_ERR_DIFF_DELETION, 12).
+-define(wxSTC_ERR_DIFF_ADDITION, 11).
+-define(wxSTC_ERR_DIFF_CHANGED, 10).
+-define(wxSTC_ERR_CTAG, 9).
+-define(wxSTC_ERR_LUA, 8).
+-define(wxSTC_ERR_NET, 7).
+-define(wxSTC_ERR_PERL, 6).
+-define(wxSTC_ERR_BORLAND, 5).
+-define(wxSTC_ERR_CMD, 4).
+-define(wxSTC_ERR_MS, 3).
+-define(wxSTC_ERR_GCC, 2).
+-define(wxSTC_ERR_PYTHON, 1).
+-define(wxSTC_ERR_DEFAULT, 0).
+-define(wxSTC_LUA_WORD8, 19).
+-define(wxSTC_LUA_WORD7, 18).
+-define(wxSTC_LUA_WORD6, 17).
+-define(wxSTC_LUA_WORD5, 16).
+-define(wxSTC_LUA_WORD4, 15).
+-define(wxSTC_LUA_WORD3, 14).
+-define(wxSTC_LUA_WORD2, 13).
+-define(wxSTC_LUA_STRINGEOL, 12).
+-define(wxSTC_LUA_IDENTIFIER, 11).
+-define(wxSTC_LUA_OPERATOR, 10).
+-define(wxSTC_LUA_PREPROCESSOR, 9).
+-define(wxSTC_LUA_LITERALSTRING, 8).
+-define(wxSTC_LUA_CHARACTER, 7).
+-define(wxSTC_LUA_STRING, 6).
+-define(wxSTC_LUA_WORD, 5).
+-define(wxSTC_LUA_NUMBER, 4).
+-define(wxSTC_LUA_COMMENTDOC, 3).
+-define(wxSTC_LUA_COMMENTLINE, 2).
+-define(wxSTC_LUA_COMMENT, 1).
+-define(wxSTC_LUA_DEFAULT, 0).
+-define(wxSTC_L_COMMENT, 4).
+-define(wxSTC_L_MATH, 3).
+-define(wxSTC_L_TAG, 2).
+-define(wxSTC_L_COMMAND, 1).
+-define(wxSTC_L_DEFAULT, 0).
+-define(wxSTC_PROPS_KEY, 5).
+-define(wxSTC_PROPS_DEFVAL, 4).
+-define(wxSTC_PROPS_ASSIGNMENT, 3).
+-define(wxSTC_PROPS_SECTION, 2).
+-define(wxSTC_PROPS_COMMENT, 1).
+-define(wxSTC_PROPS_DEFAULT, 0).
+-define(wxSTC_B_BINNUMBER, 18).
+-define(wxSTC_B_HEXNUMBER, 17).
+-define(wxSTC_B_ERROR, 16).
+-define(wxSTC_B_LABEL, 15).
+-define(wxSTC_B_ASM, 14).
+-define(wxSTC_B_CONSTANT, 13).
+-define(wxSTC_B_KEYWORD4, 12).
+-define(wxSTC_B_KEYWORD3, 11).
+-define(wxSTC_B_KEYWORD2, 10).
+-define(wxSTC_B_STRINGEOL, 9).
+-define(wxSTC_B_DATE, 8).
+-define(wxSTC_B_IDENTIFIER, 7).
+-define(wxSTC_B_OPERATOR, 6).
+-define(wxSTC_B_PREPROCESSOR, 5).
+-define(wxSTC_B_STRING, 4).
+-define(wxSTC_B_KEYWORD, 3).
+-define(wxSTC_B_NUMBER, 2).
+-define(wxSTC_B_COMMENT, 1).
+-define(wxSTC_B_DEFAULT, 0).
+-define(wxSTC_RB_UPPER_BOUND, 41).
+-define(wxSTC_RB_STDERR, 40).
+-define(wxSTC_RB_STDOUT, 31).
+-define(wxSTC_RB_STDIN, 30).
+-define(wxSTC_RB_WORD_DEMOTED, 29).
+-define(wxSTC_RB_STRING_QW, 28).
+-define(wxSTC_RB_STRING_QR, 27).
+-define(wxSTC_RB_STRING_QX, 26).
+-define(wxSTC_RB_STRING_QQ, 25).
+-define(wxSTC_RB_STRING_Q, 24).
+-define(wxSTC_RB_HERE_QX, 23).
+-define(wxSTC_RB_HERE_QQ, 22).
+-define(wxSTC_RB_HERE_Q, 21).
+-define(wxSTC_RB_HERE_DELIM, 20).
+-define(wxSTC_RB_DATASECTION, 19).
+-define(wxSTC_RB_BACKTICKS, 18).
+-define(wxSTC_RB_CLASS_VAR, 17).
+-define(wxSTC_RB_INSTANCE_VAR, 16).
+-define(wxSTC_RB_MODULE_NAME, 15).
+-define(wxSTC_RB_SYMBOL, 14).
+-define(wxSTC_RB_GLOBAL, 13).
+-define(wxSTC_RB_REGEX, 12).
+-define(wxSTC_RB_IDENTIFIER, 11).
+-define(wxSTC_RB_OPERATOR, 10).
+-define(wxSTC_RB_DEFNAME, 9).
+-define(wxSTC_RB_CLASSNAME, 8).
+-define(wxSTC_RB_CHARACTER, 7).
+-define(wxSTC_RB_STRING, 6).
+-define(wxSTC_RB_WORD, 5).
+-define(wxSTC_RB_NUMBER, 4).
+-define(wxSTC_RB_POD, 3).
+-define(wxSTC_RB_COMMENTLINE, 2).
+-define(wxSTC_RB_ERROR, 1).
+-define(wxSTC_RB_DEFAULT, 0).
+-define(wxSTC_PL_POD_VERB, 31).
+-define(wxSTC_PL_STRING_QW, 30).
+-define(wxSTC_PL_STRING_QR, 29).
+-define(wxSTC_PL_STRING_QX, 28).
+-define(wxSTC_PL_STRING_QQ, 27).
+-define(wxSTC_PL_STRING_Q, 26).
+-define(wxSTC_PL_HERE_QX, 25).
+-define(wxSTC_PL_HERE_QQ, 24).
+-define(wxSTC_PL_HERE_Q, 23).
+-define(wxSTC_PL_HERE_DELIM, 22).
+-define(wxSTC_PL_DATASECTION, 21).
+-define(wxSTC_PL_BACKTICKS, 20).
+-define(wxSTC_PL_LONGQUOTE, 19).
+-define(wxSTC_PL_REGSUBST, 18).
+-define(wxSTC_PL_REGEX, 17).
+-define(wxSTC_PL_VARIABLE_INDEXER, 16).
+-define(wxSTC_PL_SYMBOLTABLE, 15).
+-define(wxSTC_PL_HASH, 14).
+-define(wxSTC_PL_ARRAY, 13).
+-define(wxSTC_PL_SCALAR, 12).
+-define(wxSTC_PL_IDENTIFIER, 11).
+-define(wxSTC_PL_OPERATOR, 10).
+-define(wxSTC_PL_PREPROCESSOR, 9).
+-define(wxSTC_PL_PUNCTUATION, 8).
+-define(wxSTC_PL_CHARACTER, 7).
+-define(wxSTC_PL_STRING, 6).
+-define(wxSTC_PL_WORD, 5).
+-define(wxSTC_PL_NUMBER, 4).
+-define(wxSTC_PL_POD, 3).
+-define(wxSTC_PL_COMMENTLINE, 2).
+-define(wxSTC_PL_ERROR, 1).
+-define(wxSTC_PL_DEFAULT, 0).
+-define(wxSTC_HPHP_OPERATOR, 127).
+-define(wxSTC_HPHP_HSTRING_VARIABLE, 126).
+-define(wxSTC_HPHP_COMMENTLINE, 125).
+-define(wxSTC_HPHP_COMMENT, 124).
+-define(wxSTC_HPHP_VARIABLE, 123).
+-define(wxSTC_HPHP_NUMBER, 122).
+-define(wxSTC_HPHP_WORD, 121).
+-define(wxSTC_HPHP_SIMPLESTRING, 120).
+-define(wxSTC_HPHP_HSTRING, 119).
+-define(wxSTC_HPHP_DEFAULT, 118).
+-define(wxSTC_HPA_IDENTIFIER, 117).
+-define(wxSTC_HPA_OPERATOR, 116).
+-define(wxSTC_HPA_DEFNAME, 115).
+-define(wxSTC_HPA_CLASSNAME, 114).
+-define(wxSTC_HPA_TRIPLEDOUBLE, 113).
+-define(wxSTC_HPA_TRIPLE, 112).
+-define(wxSTC_HPA_WORD, 111).
+-define(wxSTC_HPA_CHARACTER, 110).
+-define(wxSTC_HPA_STRING, 109).
+-define(wxSTC_HPA_NUMBER, 108).
+-define(wxSTC_HPA_COMMENTLINE, 107).
+-define(wxSTC_HPA_DEFAULT, 106).
+-define(wxSTC_HPA_START, 105).
+-define(wxSTC_HPHP_COMPLEX_VARIABLE, 104).
+-define(wxSTC_HP_IDENTIFIER, 102).
+-define(wxSTC_HP_OPERATOR, 101).
+-define(wxSTC_HP_DEFNAME, 100).
+-define(wxSTC_HP_CLASSNAME, 99).
+-define(wxSTC_HP_TRIPLEDOUBLE, 98).
+-define(wxSTC_HP_TRIPLE, 97).
+-define(wxSTC_HP_WORD, 96).
+-define(wxSTC_HP_CHARACTER, 95).
+-define(wxSTC_HP_STRING, 94).
+-define(wxSTC_HP_NUMBER, 93).
+-define(wxSTC_HP_COMMENTLINE, 92).
+-define(wxSTC_HP_DEFAULT, 91).
+-define(wxSTC_HP_START, 90).
+-define(wxSTC_HBA_STRINGEOL, 87).
+-define(wxSTC_HBA_IDENTIFIER, 86).
+-define(wxSTC_HBA_STRING, 85).
+-define(wxSTC_HBA_WORD, 84).
+-define(wxSTC_HBA_NUMBER, 83).
+-define(wxSTC_HBA_COMMENTLINE, 82).
+-define(wxSTC_HBA_DEFAULT, 81).
+-define(wxSTC_HBA_START, 80).
+-define(wxSTC_HB_STRINGEOL, 77).
+-define(wxSTC_HB_IDENTIFIER, 76).
+-define(wxSTC_HB_STRING, 75).
+-define(wxSTC_HB_WORD, 74).
+-define(wxSTC_HB_NUMBER, 73).
+-define(wxSTC_HB_COMMENTLINE, 72).
+-define(wxSTC_HB_DEFAULT, 71).
+-define(wxSTC_HB_START, 70).
+-define(wxSTC_HJA_REGEX, 67).
+-define(wxSTC_HJA_STRINGEOL, 66).
+-define(wxSTC_HJA_SYMBOLS, 65).
+-define(wxSTC_HJA_SINGLESTRING, 64).
+-define(wxSTC_HJA_DOUBLESTRING, 63).
+-define(wxSTC_HJA_KEYWORD, 62).
+-define(wxSTC_HJA_WORD, 61).
+-define(wxSTC_HJA_NUMBER, 60).
+-define(wxSTC_HJA_COMMENTDOC, 59).
+-define(wxSTC_HJA_COMMENTLINE, 58).
+-define(wxSTC_HJA_COMMENT, 57).
+-define(wxSTC_HJA_DEFAULT, 56).
+-define(wxSTC_HJA_START, 55).
+-define(wxSTC_HJ_REGEX, 52).
+-define(wxSTC_HJ_STRINGEOL, 51).
+-define(wxSTC_HJ_SYMBOLS, 50).
+-define(wxSTC_HJ_SINGLESTRING, 49).
+-define(wxSTC_HJ_DOUBLESTRING, 48).
+-define(wxSTC_HJ_KEYWORD, 47).
+-define(wxSTC_HJ_WORD, 46).
+-define(wxSTC_HJ_NUMBER, 45).
+-define(wxSTC_HJ_COMMENTDOC, 44).
+-define(wxSTC_HJ_COMMENTLINE, 43).
+-define(wxSTC_HJ_COMMENT, 42).
+-define(wxSTC_HJ_DEFAULT, 41).
+-define(wxSTC_HJ_START, 40).
+-define(wxSTC_H_SGML_BLOCK_DEFAULT, 31).
+-define(wxSTC_H_SGML_1ST_PARAM_COMMENT, 30).
+-define(wxSTC_H_SGML_COMMENT, 29).
+-define(wxSTC_H_SGML_ENTITY, 28).
+-define(wxSTC_H_SGML_SPECIAL, 27).
+-define(wxSTC_H_SGML_ERROR, 26).
+-define(wxSTC_H_SGML_SIMPLESTRING, 25).
+-define(wxSTC_H_SGML_DOUBLESTRING, 24).
+-define(wxSTC_H_SGML_1ST_PARAM, 23).
+-define(wxSTC_H_SGML_COMMAND, 22).
+-define(wxSTC_H_SGML_DEFAULT, 21).
+-define(wxSTC_H_XCCOMMENT, 20).
+-define(wxSTC_H_VALUE, 19).
+-define(wxSTC_H_QUESTION, 18).
+-define(wxSTC_H_CDATA, 17).
+-define(wxSTC_H_ASPAT, 16).
+-define(wxSTC_H_ASP, 15).
+-define(wxSTC_H_SCRIPT, 14).
+-define(wxSTC_H_XMLEND, 13).
+-define(wxSTC_H_XMLSTART, 12).
+-define(wxSTC_H_TAGEND, 11).
+-define(wxSTC_H_ENTITY, 10).
+-define(wxSTC_H_COMMENT, 9).
+-define(wxSTC_H_OTHER, 8).
+-define(wxSTC_H_SINGLESTRING, 7).
+-define(wxSTC_H_DOUBLESTRING, 6).
+-define(wxSTC_H_NUMBER, 5).
+-define(wxSTC_H_ATTRIBUTEUNKNOWN, 4).
+-define(wxSTC_H_ATTRIBUTE, 3).
+-define(wxSTC_H_TAGUNKNOWN, 2).
+-define(wxSTC_H_TAG, 1).
+-define(wxSTC_H_DEFAULT, 0).
+-define(wxSTC_TCL_BLOCK_COMMENT, 21).
+-define(wxSTC_TCL_COMMENT_BOX, 20).
+-define(wxSTC_TCL_WORD8, 19).
+-define(wxSTC_TCL_WORD7, 18).
+-define(wxSTC_TCL_WORD6, 17).
+-define(wxSTC_TCL_WORD5, 16).
+-define(wxSTC_TCL_WORD4, 15).
+-define(wxSTC_TCL_WORD3, 14).
+-define(wxSTC_TCL_WORD2, 13).
+-define(wxSTC_TCL_WORD, 12).
+-define(wxSTC_TCL_EXPAND, 11).
+-define(wxSTC_TCL_MODIFIER, 10).
+-define(wxSTC_TCL_SUB_BRACE, 9).
+-define(wxSTC_TCL_SUBSTITUTION, 8).
+-define(wxSTC_TCL_IDENTIFIER, 7).
+-define(wxSTC_TCL_OPERATOR, 6).
+-define(wxSTC_TCL_IN_QUOTE, 5).
+-define(wxSTC_TCL_WORD_IN_QUOTE, 4).
+-define(wxSTC_TCL_NUMBER, 3).
+-define(wxSTC_TCL_COMMENTLINE, 2).
+-define(wxSTC_TCL_COMMENT, 1).
+-define(wxSTC_TCL_DEFAULT, 0).
+-define(wxSTC_C_GLOBALCLASS, 19).
+-define(wxSTC_C_COMMENTDOCKEYWORDERROR, 18).
+-define(wxSTC_C_COMMENTDOCKEYWORD, 17).
+-define(wxSTC_C_WORD2, 16).
+-define(wxSTC_C_COMMENTLINEDOC, 15).
+-define(wxSTC_C_REGEX, 14).
+-define(wxSTC_C_VERBATIM, 13).
+-define(wxSTC_C_STRINGEOL, 12).
+-define(wxSTC_C_IDENTIFIER, 11).
+-define(wxSTC_C_OPERATOR, 10).
+-define(wxSTC_C_PREPROCESSOR, 9).
+-define(wxSTC_C_UUID, 8).
+-define(wxSTC_C_CHARACTER, 7).
+-define(wxSTC_C_STRING, 6).
+-define(wxSTC_C_WORD, 5).
+-define(wxSTC_C_NUMBER, 4).
+-define(wxSTC_C_COMMENTDOC, 3).
+-define(wxSTC_C_COMMENTLINE, 2).
+-define(wxSTC_C_COMMENT, 1).
+-define(wxSTC_C_DEFAULT, 0).
+-define(wxSTC_P_DECORATOR, 15).
+-define(wxSTC_P_WORD2, 14).
+-define(wxSTC_P_STRINGEOL, 13).
+-define(wxSTC_P_COMMENTBLOCK, 12).
+-define(wxSTC_P_IDENTIFIER, 11).
+-define(wxSTC_P_OPERATOR, 10).
+-define(wxSTC_P_DEFNAME, 9).
+-define(wxSTC_P_CLASSNAME, 8).
+-define(wxSTC_P_TRIPLEDOUBLE, 7).
+-define(wxSTC_P_TRIPLE, 6).
+-define(wxSTC_P_WORD, 5).
+-define(wxSTC_P_CHARACTER, 4).
+-define(wxSTC_P_STRING, 3).
+-define(wxSTC_P_NUMBER, 2).
+-define(wxSTC_P_COMMENTLINE, 1).
+-define(wxSTC_P_DEFAULT, 0).
+-define(wxSTC_LEX_AUTOMATIC, 1000).
+-define(wxSTC_LEX_SPICE, 78).
+-define(wxSTC_LEX_OPAL, 77).
+-define(wxSTC_LEX_INNOSETUP, 76).
+-define(wxSTC_LEX_FREEBASIC, 75).
+-define(wxSTC_LEX_CSOUND, 74).
+-define(wxSTC_LEX_FLAGSHIP, 73).
+-define(wxSTC_LEX_SMALLTALK, 72).
+-define(wxSTC_LEX_REBOL, 71).
+-define(wxSTC_LEX_TADS3, 70).
+-define(wxSTC_LEX_PHPSCRIPT, 69).
+-define(wxSTC_LEX_HASKELL, 68).
+-define(wxSTC_LEX_PUREBASIC, 67).
+-define(wxSTC_LEX_BLITZBASIC, 66).
+-define(wxSTC_LEX_CAML, 65).
+-define(wxSTC_LEX_VHDL, 64).
+-define(wxSTC_LEX_ASN1, 63).
+-define(wxSTC_LEX_BASH, 62).
+-define(wxSTC_LEX_APDL, 61).
+-define(wxSTC_LEX_AU3, 60).
+-define(wxSTC_LEX_SPECMAN, 59).
+-define(wxSTC_LEX_GUI4CLI, 58).
+-define(wxSTC_LEX_KIX, 57).
+-define(wxSTC_LEX_VERILOG, 56).
+-define(wxSTC_LEX_MSSQL, 55).
+-define(wxSTC_LEX_OCTAVE, 54).
+-define(wxSTC_LEX_ERLANG, 53).
+-define(wxSTC_LEX_FORTH, 52).
+-define(wxSTC_LEX_POWERBASIC, 51).
+-define(wxSTC_LEX_METAPOST, 50).
+-define(wxSTC_LEX_TEX, 49).
+-define(wxSTC_LEX_YAML, 48).
+-define(wxSTC_LEX_LOT, 47).
+-define(wxSTC_LEX_CLWNOCASE, 46).
+-define(wxSTC_LEX_CLW, 45).
+-define(wxSTC_LEX_MMIXAL, 44).
+-define(wxSTC_LEX_NSIS, 43).
+-define(wxSTC_LEX_PS, 42).
+-define(wxSTC_LEX_ESCRIPT, 41).
+-define(wxSTC_LEX_LOUT, 40).
+-define(wxSTC_LEX_POV, 39).
+-define(wxSTC_LEX_CSS, 38).
+-define(wxSTC_LEX_F77, 37).
+-define(wxSTC_LEX_FORTRAN, 36).
+-define(wxSTC_LEX_CPPNOCASE, 35).
+-define(wxSTC_LEX_ASM, 34).
+-define(wxSTC_LEX_SCRIPTOL, 33).
+-define(wxSTC_LEX_MATLAB, 32).
+-define(wxSTC_LEX_BAAN, 31).
+-define(wxSTC_LEX_VBSCRIPT, 28).
+-define(wxSTC_LEX_BULLANT, 27).
+-define(wxSTC_LEX_NNCRONTAB, 26).
+-define(wxSTC_LEX_TCL, 25).
+-define(wxSTC_LEX_EIFFELKW, 24).
+-define(wxSTC_LEX_EIFFEL, 23).
+-define(wxSTC_LEX_RUBY, 22).
+-define(wxSTC_LEX_LISP, 21).
+-define(wxSTC_LEX_ADA, 20).
+-define(wxSTC_LEX_AVE, 19).
+-define(wxSTC_LEX_PASCAL, 18).
+-define(wxSTC_LEX_CONF, 17).
+-define(wxSTC_LEX_DIFF, 16).
+-define(wxSTC_LEX_LUA, 15).
+-define(wxSTC_LEX_LATEX, 14).
+-define(wxSTC_LEX_XCODE, 13).
+-define(wxSTC_LEX_BATCH, 12).
+-define(wxSTC_LEX_MAKEFILE, 11).
+-define(wxSTC_LEX_ERRORLIST, 10).
+-define(wxSTC_LEX_PROPERTIES, 9).
+-define(wxSTC_LEX_VB, 8).
+-define(wxSTC_LEX_SQL, 7).
+-define(wxSTC_LEX_PERL, 6).
+-define(wxSTC_LEX_XML, 5).
+-define(wxSTC_LEX_HTML, 4).
+-define(wxSTC_LEX_CPP, 3).
+-define(wxSTC_LEX_PYTHON, 2).
+-define(wxSTC_LEX_NULL, 1).
+-define(wxSTC_LEX_CONTAINER, 0).
+-define(wxSTC_SCMOD_ALT, 4).
+-define(wxSTC_SCMOD_CTRL, 2).
+-define(wxSTC_SCMOD_SHIFT, 1).
+-define(wxSTC_SCMOD_NORM, 0).
+-define(wxSTC_KEY_DIVIDE, 312).
+-define(wxSTC_KEY_SUBTRACT, 311).
+-define(wxSTC_KEY_ADD, 310).
+-define(wxSTC_KEY_RETURN, 13).
+-define(wxSTC_KEY_TAB, 9).
+-define(wxSTC_KEY_BACK, 8).
+-define(wxSTC_KEY_ESCAPE, 7).
+-define(wxSTC_KEY_INSERT, 309).
+-define(wxSTC_KEY_DELETE, 308).
+-define(wxSTC_KEY_NEXT, 307).
+-define(wxSTC_KEY_PRIOR, 306).
+-define(wxSTC_KEY_END, 305).
+-define(wxSTC_KEY_HOME, 304).
+-define(wxSTC_KEY_RIGHT, 303).
+-define(wxSTC_KEY_LEFT, 302).
+-define(wxSTC_KEY_UP, 301).
+-define(wxSTC_KEY_DOWN, 300).
+-define(wxSTC_MODEVENTMASKALL, 8191).
+-define(wxSTC_MULTILINEUNDOREDO, 4096).
+-define(wxSTC_MOD_BEFOREDELETE, 2048).
+-define(wxSTC_MOD_BEFOREINSERT, 1024).
+-define(wxSTC_MOD_CHANGEMARKER, 512).
+-define(wxSTC_LASTSTEPINUNDOREDO, 256).
+-define(wxSTC_MULTISTEPUNDOREDO, 128).
+-define(wxSTC_PERFORMED_REDO, 64).
+-define(wxSTC_PERFORMED_UNDO, 32).
+-define(wxSTC_PERFORMED_USER, 16).
+-define(wxSTC_MOD_CHANGEFOLD, 8).
+-define(wxSTC_MOD_CHANGESTYLE, 4).
+-define(wxSTC_MOD_DELETETEXT, 2).
+-define(wxSTC_MOD_INSERTTEXT, 1).
+-define(wxSTC_KEYWORDSET_MAX, 8).
+-define(wxSTC_ALPHA_NOALPHA, 256).
+-define(wxSTC_ALPHA_OPAQUE, 255).
+-define(wxSTC_ALPHA_TRANSPARENT, 0).
+-define(wxSTC_SEL_LINES, 2).
+-define(wxSTC_SEL_RECTANGLE, 1).
+-define(wxSTC_SEL_STREAM, 0).
+-define(wxSTC_CARET_EVEN, 8).
+-define(wxSTC_CARET_JUMPS, 16).
+-define(wxSTC_CARET_STRICT, 4).
+-define(wxSTC_CARET_SLOP, 1).
+-define(wxSTC_VISIBLE_STRICT, 4).
+-define(wxSTC_VISIBLE_SLOP, 1).
+-define(wxSTC_CURSORWAIT, 4).
+-define(wxSTC_CURSORNORMAL, -1).
+-define(wxSTC_EDGE_BACKGROUND, 2).
+-define(wxSTC_EDGE_LINE, 1).
+-define(wxSTC_EDGE_NONE, 0).
+-define(wxSTC_CACHE_DOCUMENT, 3).
+-define(wxSTC_CACHE_PAGE, 2).
+-define(wxSTC_CACHE_CARET, 1).
+-define(wxSTC_CACHE_NONE, 0).
+-define(wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT, 2).
+-define(wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT, 1).
+-define(wxSTC_WRAPVISUALFLAGLOC_DEFAULT, 0).
+-define(wxSTC_WRAPVISUALFLAG_START, 2).
+-define(wxSTC_WRAPVISUALFLAG_END, 1).
+-define(wxSTC_WRAPVISUALFLAG_NONE, 0).
+-define(wxSTC_WRAP_CHAR, 2).
+-define(wxSTC_WRAP_WORD, 1).
+-define(wxSTC_WRAP_NONE, 0).
+-define(wxSTC_TIME_FOREVER, 10000000).
+-define(wxSTC_FOLDFLAG_BOX, 1).
+-define(wxSTC_FOLDFLAG_LEVELNUMBERS, 64).
+-define(wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED, 16).
+-define(wxSTC_FOLDFLAG_LINEAFTER_EXPANDED, 8).
+-define(wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED, 4).
+-define(wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED, 2).
+-define(wxSTC_FOLDLEVELNUMBERMASK, 4095).
+-define(wxSTC_FOLDLEVELUNINDENT, 131072).
+-define(wxSTC_FOLDLEVELCONTRACTED, 65536).
+-define(wxSTC_FOLDLEVELBOXFOOTERFLAG, 32768).
+-define(wxSTC_FOLDLEVELBOXHEADERFLAG, 16384).
+-define(wxSTC_FOLDLEVELHEADERFLAG, 8192).
+-define(wxSTC_FOLDLEVELWHITEFLAG, 4096).
+-define(wxSTC_FOLDLEVELBASE, 1024).
+-define(wxSTC_FIND_POSIX, 4194304).
+-define(wxSTC_FIND_REGEXP, 2097152).
+-define(wxSTC_FIND_WORDSTART, 1048576).
+-define(wxSTC_FIND_MATCHCASE, 4).
+-define(wxSTC_FIND_WHOLEWORD, 2).
+-define(wxSTC_PRINT_COLOURONWHITEDEFAULTBG, 4).
+-define(wxSTC_PRINT_COLOURONWHITE, 3).
+-define(wxSTC_PRINT_BLACKONWHITE, 2).
+-define(wxSTC_PRINT_INVERTLIGHT, 1).
+-define(wxSTC_PRINT_NORMAL, 0).
+-define(wxSTC_INDICS_MASK, 224).
+-define(wxSTC_INDIC2_MASK, 128).
+-define(wxSTC_INDIC1_MASK, 64).
+-define(wxSTC_INDIC0_MASK, 32).
+-define(wxSTC_INDIC_ROUNDBOX, 7).
+-define(wxSTC_INDIC_BOX, 6).
+-define(wxSTC_INDIC_HIDDEN, 5).
+-define(wxSTC_INDIC_STRIKE, 4).
+-define(wxSTC_INDIC_DIAGONAL, 3).
+-define(wxSTC_INDIC_TT, 2).
+-define(wxSTC_INDIC_SQUIGGLE, 1).
+-define(wxSTC_INDIC_PLAIN, 0).
+-define(wxSTC_INDIC_MAX, 7).
+-define(wxSTC_CASE_LOWER, 2).
+-define(wxSTC_CASE_UPPER, 1).
+-define(wxSTC_CASE_MIXED, 0).
+-define(wxSTC_CHARSET_8859_15, 1000).
+-define(wxSTC_CHARSET_THAI, 222).
+-define(wxSTC_CHARSET_VIETNAMESE, 163).
+-define(wxSTC_CHARSET_ARABIC, 178).
+-define(wxSTC_CHARSET_HEBREW, 177).
+-define(wxSTC_CHARSET_JOHAB, 130).
+-define(wxSTC_CHARSET_TURKISH, 162).
+-define(wxSTC_CHARSET_SYMBOL, 2).
+-define(wxSTC_CHARSET_SHIFTJIS, 128).
+-define(wxSTC_CHARSET_CYRILLIC, 1251).
+-define(wxSTC_CHARSET_RUSSIAN, 204).
+-define(wxSTC_CHARSET_OEM, 255).
+-define(wxSTC_CHARSET_MAC, 77).
+-define(wxSTC_CHARSET_HANGUL, 129).
+-define(wxSTC_CHARSET_GREEK, 161).
+-define(wxSTC_CHARSET_GB2312, 134).
+-define(wxSTC_CHARSET_EASTEUROPE, 238).
+-define(wxSTC_CHARSET_CHINESEBIG5, 136).
+-define(wxSTC_CHARSET_BALTIC, 186).
+-define(wxSTC_CHARSET_DEFAULT, 1).
+-define(wxSTC_CHARSET_ANSI, 0).
+-define(wxSTC_STYLE_MAX, 127).
+-define(wxSTC_STYLE_LASTPREDEFINED, 39).
+-define(wxSTC_STYLE_CALLTIP, 38).
+-define(wxSTC_STYLE_INDENTGUIDE, 37).
+-define(wxSTC_STYLE_CONTROLCHAR, 36).
+-define(wxSTC_STYLE_BRACEBAD, 35).
+-define(wxSTC_STYLE_BRACELIGHT, 34).
+-define(wxSTC_STYLE_LINENUMBER, 33).
+-define(wxSTC_STYLE_DEFAULT, 32).
+-define(wxSTC_MARGIN_FORE, 3).
+-define(wxSTC_MARGIN_BACK, 2).
+-define(wxSTC_MARGIN_NUMBER, 1).
+-define(wxSTC_MARGIN_SYMBOL, 0).
+-define(wxSTC_MASK_FOLDERS, 4261412864).
+-define(wxSTC_MARKNUM_FOLDEROPEN, 31).
+-define(wxSTC_MARKNUM_FOLDER, 30).
+-define(wxSTC_MARKNUM_FOLDERSUB, 29).
+-define(wxSTC_MARKNUM_FOLDERTAIL, 28).
+-define(wxSTC_MARKNUM_FOLDERMIDTAIL, 27).
+-define(wxSTC_MARKNUM_FOLDEROPENMID, 26).
+-define(wxSTC_MARKNUM_FOLDEREND, 25).
+-define(wxSTC_MARK_CHARACTER, 10000).
+-define(wxSTC_MARK_FULLRECT, 26).
+-define(wxSTC_MARK_PIXMAP, 25).
+-define(wxSTC_MARK_ARROWS, 24).
+-define(wxSTC_MARK_DOTDOTDOT, 23).
+-define(wxSTC_MARK_BACKGROUND, 22).
+-define(wxSTC_MARK_CIRCLEMINUSCONNECTED, 21).
+-define(wxSTC_MARK_CIRCLEMINUS, 20).
+-define(wxSTC_MARK_CIRCLEPLUSCONNECTED, 19).
+-define(wxSTC_MARK_CIRCLEPLUS, 18).
+-define(wxSTC_MARK_TCORNERCURVE, 17).
+-define(wxSTC_MARK_LCORNERCURVE, 16).
+-define(wxSTC_MARK_BOXMINUSCONNECTED, 15).
+-define(wxSTC_MARK_BOXMINUS, 14).
+-define(wxSTC_MARK_BOXPLUSCONNECTED, 13).
+-define(wxSTC_MARK_BOXPLUS, 12).
+-define(wxSTC_MARK_TCORNER, 11).
+-define(wxSTC_MARK_LCORNER, 10).
+-define(wxSTC_MARK_VLINE, 9).
+-define(wxSTC_MARK_PLUS, 8).
+-define(wxSTC_MARK_MINUS, 7).
+-define(wxSTC_MARK_ARROWDOWN, 6).
+-define(wxSTC_MARK_EMPTY, 5).
+-define(wxSTC_MARK_SHORTARROW, 4).
+-define(wxSTC_MARK_SMALLRECT, 3).
+-define(wxSTC_MARK_ARROW, 2).
+-define(wxSTC_MARK_ROUNDRECT, 1).
+-define(wxSTC_MARK_CIRCLE, 0).
+-define(wxSTC_MARKER_MAX, 31).
+-define(wxSTC_CP_DBCS, 1).
+-define(wxSTC_CP_UTF8, 65001).
+-define(wxSTC_EOL_LF, 2).
+-define(wxSTC_EOL_CR, 1).
+-define(wxSTC_EOL_CRLF, 0).
+-define(wxSTC_WS_VISIBLEAFTERINDENT, 2).
+-define(wxSTC_WS_VISIBLEALWAYS, 1).
+-define(wxSTC_WS_INVISIBLE, 0).
+-define(wxSTC_LEXER_START, 4000).
+-define(wxSTC_OPTIONAL_START, 3000).
+-define(wxSTC_START, 2000).
+-define(wxSTC_INVALID_POSITION, -1).
+-define(wxSTC_USE_POPUP, 1).
+% From define::From textctrl.h
+-define(wxTEXT_ATTR_TABS, 1024).
+-define(wxTEXT_ATTR_RIGHT_INDENT, 512).
+-define(wxTEXT_ATTR_LEFT_INDENT, 256).
+-define(wxTEXT_ATTR_ALIGNMENT, 128).
+-define(wxTEXT_ATTR_FONT, (?wxTEXT_ATTR_FONT_FACE bor ?wxTEXT_ATTR_FONT_SIZE bor ?wxTEXT_ATTR_FONT_WEIGHT bor ?wxTEXT_ATTR_FONT_ITALIC bor ?wxTEXT_ATTR_FONT_UNDERLINE)).
+-define(wxTEXT_ATTR_FONT_UNDERLINE, 64).
+-define(wxTEXT_ATTR_FONT_ITALIC, 32).
+-define(wxTEXT_ATTR_FONT_WEIGHT, 16).
+-define(wxTEXT_ATTR_FONT_SIZE, 8).
+-define(wxTEXT_ATTR_FONT_FACE, 4).
+-define(wxTEXT_ATTR_BACKGROUND_COLOUR, 2).
+-define(wxTEXT_ATTR_TEXT_COLOUR, 1).
+-define(wxTEXT_TYPE_ANY, 0).
+-define(wxTE_CAPITALIZE, 0).
+-define(wxTE_RICH2, 32768).
+-define(wxTE_BESTWRAP, 0).
+-define(wxTE_WORDWRAP, 1).
+-define(wxTE_CHARWRAP, 16384).
+-define(wxTE_DONTWRAP, ?wxHSCROLL).
+-define(wxTE_NOHIDESEL, 8192).
+-define(wxTE_AUTO_URL, 4096).
+-define(wxTE_PASSWORD, 2048).
+-define(wxTE_PROCESS_ENTER, 1024).
+-define(wxTE_RICH, 128).
+-define(wxTE_CENTRE, ?wxTE_CENTER).
+-define(wxTE_RIGHT, ?wxALIGN_RIGHT).
+-define(wxTE_CENTER, ?wxALIGN_CENTER_HORIZONTAL).
+-define(wxTE_LEFT, 0).
+-define(wxTE_PROCESS_TAB, 64).
+-define(wxTE_MULTILINE, 32).
+-define(wxTE_READONLY, 16).
+-define(wxTE_AUTO_SCROLL, 8).
+-define(wxTE_NO_VSCROLL, 2).
+-define(wxHAS_TEXT_WINDOW_STREAM, 0).
+% From define::From textdlgg.h
+-define(wxTextEntryDialogStyle, (?wxOK bor ?wxCANCEL bor ?wxCENTRE bor ?wxWS_EX_VALIDATE_RECURSIVELY)).
+% From define::From toolbook.h
+-define(wxBK_BUTTONBAR, 256).
+% From define::From toplevel.h
+-define(wxTOPLEVEL_EX_DIALOG, 8).
+-define(wxDEFAULT_FRAME_STYLE, (?wxSYSTEM_MENU bor ?wxRESIZE_BORDER bor ?wxMINIMIZE_BOX bor ?wxMAXIMIZE_BOX bor ?wxCLOSE_BOX bor ?wxCAPTION bor ?wxCLIP_CHILDREN)).
+-define(wxRESIZE_BORDER, 64).
+-define(wxTINY_CAPTION_VERT, 128).
+-define(wxTINY_CAPTION_HORIZ, 256).
+-define(wxMAXIMIZE_BOX, 512).
+-define(wxMINIMIZE_BOX, 1024).
+-define(wxSYSTEM_MENU, 2048).
+-define(wxCLOSE_BOX, 4096).
+-define(wxMAXIMIZE, 8192).
+-define(wxMINIMIZE, ?wxICONIZE).
+-define(wxICONIZE, 16384).
+-define(wxSTAY_ON_TOP, 32768).
+% From define::From treebase.h
+-define(wxTR_DEFAULT_STYLE, (?wxTR_HAS_BUTTONS bor ?wxTR_LINES_AT_ROOT)).
+-define(wxTR_FULL_ROW_HIGHLIGHT, 8192).
+-define(wxTR_HIDE_ROOT, 2048).
+-define(wxTR_ROW_LINES, 1024).
+-define(wxTR_EDIT_LABELS, 512).
+-define(wxTR_HAS_VARIABLE_ROW_HEIGHT, 128).
+-define(wxTR_EXTENDED, 64).
+-define(wxTR_MULTIPLE, 32).
+-define(wxTR_SINGLE, 0).
+-define(wxTR_TWIST_BUTTONS, 16).
+-define(wxTR_LINES_AT_ROOT, 8).
+-define(wxTR_NO_LINES, 4).
+-define(wxTR_HAS_BUTTONS, 1).
+-define(wxTR_NO_BUTTONS, 0).
+% From define::From valtext.h
+-define(wxFILTER_EXCLUDE_CHAR_LIST, 128).
+-define(wxFILTER_INCLUDE_CHAR_LIST, 64).
+-define(wxFILTER_EXCLUDE_LIST, 32).
+-define(wxFILTER_INCLUDE_LIST, 16).
+-define(wxFILTER_NUMERIC, 8).
+-define(wxFILTER_ALPHANUMERIC, 4).
+-define(wxFILTER_ALPHA, 2).
+-define(wxFILTER_ASCII, 1).
+-define(wxFILTER_NONE, 0).
+% From define::From version.h
+-define(wxBETA_NUMBER, wxe_util:get_const(wxBETA_NUMBER)).
+-define(wxSUBRELEASE_NUMBER, wxe_util:get_const(wxSUBRELEASE_NUMBER)).
+-define(wxRELEASE_NUMBER, wxe_util:get_const(wxRELEASE_NUMBER)).
+-define(wxMINOR_VERSION, wxe_util:get_const(wxMINOR_VERSION)).
+-define(wxMAJOR_VERSION, wxe_util:get_const(wxMAJOR_VERSION)).
+% From class wxAuiManager
+-define(wxAuiManager_actionNone, 0).
+-define(wxAuiManager_actionResize, 1).
+-define(wxAuiManager_actionClickButton, 2).
+-define(wxAuiManager_actionClickCaption, 3).
+-define(wxAuiManager_actionDragToolbarPane, 4).
+-define(wxAuiManager_actionDragFloatingPane, 5).
+% From wxAuiPaneInfo::wxAuiPaneState
+-define(wxAuiPaneInfo_optionFloating, 1).
+-define(wxAuiPaneInfo_optionHidden, 2).
+-define(wxAuiPaneInfo_optionLeftDockable, 4).
+-define(wxAuiPaneInfo_optionRightDockable, 8).
+-define(wxAuiPaneInfo_optionTopDockable, 16).
+-define(wxAuiPaneInfo_optionBottomDockable, 32).
+-define(wxAuiPaneInfo_optionFloatable, 64).
+-define(wxAuiPaneInfo_optionMovable, 128).
+-define(wxAuiPaneInfo_optionResizable, 256).
+-define(wxAuiPaneInfo_optionPaneBorder, 512).
+-define(wxAuiPaneInfo_optionCaption, 1024).
+-define(wxAuiPaneInfo_optionGripper, 2048).
+-define(wxAuiPaneInfo_optionDestroyOnClose, 4096).
+-define(wxAuiPaneInfo_optionToolbar, 8192).
+-define(wxAuiPaneInfo_optionActive, 16384).
+-define(wxAuiPaneInfo_optionGripperTop, 32768).
+-define(wxAuiPaneInfo_optionMaximized, 65536).
+-define(wxAuiPaneInfo_optionDockFixed, 131072).
+-define(wxAuiPaneInfo_buttonClose, 2097152).
+-define(wxAuiPaneInfo_buttonMaximize, 4194304).
+-define(wxAuiPaneInfo_buttonMinimize, 8388608).
+-define(wxAuiPaneInfo_buttonPin, 16777216).
+-define(wxAuiPaneInfo_buttonCustom1, 67108864).
+-define(wxAuiPaneInfo_buttonCustom2, 134217728).
+-define(wxAuiPaneInfo_buttonCustom3, 268435456).
+-define(wxAuiPaneInfo_savedHiddenState, 1073741824).
+-define(wxAuiPaneInfo_actionPane, 2147483648).
+% From wxBitmap::Representation
+-define(wxBitmap_Pixmap, 0).
+-define(wxBitmap_Pixbuf, 1).
+% From class wxChoicebook
+-define(wxChoicebook_SetSelection_SendEvent, 1).
+% From wxDateTime::Calendar
+-define(wxDateTime_Gregorian, 0).
+-define(wxDateTime_Julian, 1).
+% From wxDateTime::Country
+-define(wxDateTime_Country_Unknown, 0).
+-define(wxDateTime_Country_Default, 1).
+-define(wxDateTime_Country_WesternEurope_Start, 2).
+-define(wxDateTime_Country_EEC, ?Country_WesternEurope_Start).
+-define(wxDateTime_France, (?Country_WesternEurope_Start+1)).
+-define(wxDateTime_Germany, (?Country_WesternEurope_Start+2)).
+-define(wxDateTime_UK, (?Country_WesternEurope_Start+3)).
+-define(wxDateTime_Country_WesternEurope_End, ?UK).
+-define(wxDateTime_Russia, (?UK+1)).
+-define(wxDateTime_USA, (?UK+2)).
+% From wxDateTime::GregorianAdoption
+-define(wxDateTime_Gr_Unknown, 0).
+-define(wxDateTime_Gr_Standard, 1).
+-define(wxDateTime_Gr_Alaska, 2).
+-define(wxDateTime_Gr_Albania, 3).
+-define(wxDateTime_Gr_Austria, ?Gr_Unknown).
+-define(wxDateTime_Gr_Austria_Brixen, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_Austria_Salzburg, ?Gr_Austria_Brixen).
+-define(wxDateTime_Gr_Austria_Tyrol, ?Gr_Austria_Brixen).
+-define(wxDateTime_Gr_Austria_Carinthia, (?Gr_Austria_Brixen+1)).
+-define(wxDateTime_Gr_Austria_Styria, ?Gr_Austria_Carinthia).
+-define(wxDateTime_Gr_Belgium, (?Gr_Austria_Carinthia+1)).
+-define(wxDateTime_Gr_Bulgaria, ?Gr_Unknown).
+-define(wxDateTime_Gr_Bulgaria_1, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_Bulgaria_2, (?Gr_Unknown+2)).
+-define(wxDateTime_Gr_Bulgaria_3, (?Gr_Unknown+3)).
+-define(wxDateTime_Gr_Canada, ?Gr_Unknown).
+-define(wxDateTime_Gr_China, ?Gr_Unknown).
+-define(wxDateTime_Gr_China_1, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_China_2, (?Gr_Unknown+2)).
+-define(wxDateTime_Gr_Czechoslovakia, (?Gr_Unknown+3)).
+-define(wxDateTime_Gr_Denmark, (?Gr_Unknown+4)).
+-define(wxDateTime_Gr_Egypt, (?Gr_Unknown+5)).
+-define(wxDateTime_Gr_Estonia, (?Gr_Unknown+6)).
+-define(wxDateTime_Gr_Finland, (?Gr_Unknown+7)).
+-define(wxDateTime_Gr_France, (?Gr_Unknown+8)).
+-define(wxDateTime_Gr_France_Alsace, (?Gr_Unknown+9)).
+-define(wxDateTime_Gr_France_Lorraine, (?Gr_Unknown+10)).
+-define(wxDateTime_Gr_France_Strasbourg, (?Gr_Unknown+11)).
+-define(wxDateTime_Gr_Germany, ?Gr_Unknown).
+-define(wxDateTime_Gr_Germany_Catholic, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_Germany_Prussia, (?Gr_Unknown+2)).
+-define(wxDateTime_Gr_Germany_Protestant, (?Gr_Unknown+3)).
+-define(wxDateTime_Gr_GreatBritain, (?Gr_Unknown+4)).
+-define(wxDateTime_Gr_Greece, (?Gr_Unknown+5)).
+-define(wxDateTime_Gr_Hungary, (?Gr_Unknown+6)).
+-define(wxDateTime_Gr_Ireland, ?Gr_GreatBritain).
+-define(wxDateTime_Gr_Italy, ?Gr_Standard).
+-define(wxDateTime_Gr_Japan, ?Gr_Unknown).
+-define(wxDateTime_Gr_Japan_1, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_Japan_2, (?Gr_Unknown+2)).
+-define(wxDateTime_Gr_Japan_3, (?Gr_Unknown+3)).
+-define(wxDateTime_Gr_Latvia, (?Gr_Unknown+4)).
+-define(wxDateTime_Gr_Lithuania, (?Gr_Unknown+5)).
+-define(wxDateTime_Gr_Luxemburg, (?Gr_Unknown+6)).
+-define(wxDateTime_Gr_Netherlands, ?Gr_Belgium).
+-define(wxDateTime_Gr_Netherlands_Groningen, (?Gr_Belgium+1)).
+-define(wxDateTime_Gr_Netherlands_Gelderland, (?Gr_Belgium+2)).
+-define(wxDateTime_Gr_Netherlands_Utrecht, (?Gr_Belgium+3)).
+-define(wxDateTime_Gr_Netherlands_Friesland, (?Gr_Belgium+4)).
+-define(wxDateTime_Gr_Norway, ?Gr_Denmark).
+-define(wxDateTime_Gr_Poland, ?Gr_Standard).
+-define(wxDateTime_Gr_Portugal, ?Gr_Standard).
+-define(wxDateTime_Gr_Romania, (?Gr_Standard+1)).
+-define(wxDateTime_Gr_Russia, (?Gr_Standard+2)).
+-define(wxDateTime_Gr_Scotland, ?Gr_GreatBritain).
+-define(wxDateTime_Gr_Spain, ?Gr_Standard).
+-define(wxDateTime_Gr_Sweden, ?Gr_Finland).
+-define(wxDateTime_Gr_Switzerland, ?Gr_Unknown).
+-define(wxDateTime_Gr_Switzerland_Catholic, (?Gr_Unknown+1)).
+-define(wxDateTime_Gr_Switzerland_Protestant, (?Gr_Unknown+2)).
+-define(wxDateTime_Gr_Turkey, (?Gr_Unknown+3)).
+-define(wxDateTime_Gr_USA, ?Gr_GreatBritain).
+-define(wxDateTime_Gr_Wales, ?Gr_GreatBritain).
+-define(wxDateTime_Gr_Yugoslavia, (?Gr_GreatBritain+1)).
+% From wxDateTime::Month
+-define(wxDateTime_Jan, 0).
+-define(wxDateTime_Feb, 1).
+-define(wxDateTime_Mar, 2).
+-define(wxDateTime_Apr, 3).
+-define(wxDateTime_May, 4).
+-define(wxDateTime_Jun, 5).
+-define(wxDateTime_Jul, 6).
+-define(wxDateTime_Aug, 7).
+-define(wxDateTime_Sep, 8).
+-define(wxDateTime_Oct, 9).
+-define(wxDateTime_Nov, 10).
+-define(wxDateTime_Dec, 11).
+-define(wxDateTime_Inv_Month, 12).
+% From wxDateTime::NameFlags
+-define(wxDateTime_Name_Full, 1).
+-define(wxDateTime_Name_Abbr, 2).
+% From wxDateTime::TZ
+-define(wxDateTime_Local, 0).
+-define(wxDateTime_GMT_12, 1).
+-define(wxDateTime_GMT_11, 2).
+-define(wxDateTime_GMT_10, 3).
+-define(wxDateTime_GMT_9, 4).
+-define(wxDateTime_GMT_8, 5).
+-define(wxDateTime_GMT_7, 6).
+-define(wxDateTime_GMT_6, 7).
+-define(wxDateTime_GMT_5, 8).
+-define(wxDateTime_GMT_4, 9).
+-define(wxDateTime_GMT_3, 10).
+-define(wxDateTime_GMT_2, 11).
+-define(wxDateTime_GMT_1, 12).
+-define(wxDateTime_GMT0, 13).
+-define(wxDateTime_GMT1, 14).
+-define(wxDateTime_GMT2, 15).
+-define(wxDateTime_GMT3, 16).
+-define(wxDateTime_GMT4, 17).
+-define(wxDateTime_GMT5, 18).
+-define(wxDateTime_GMT6, 19).
+-define(wxDateTime_GMT7, 20).
+-define(wxDateTime_GMT8, 21).
+-define(wxDateTime_GMT9, 22).
+-define(wxDateTime_GMT10, 23).
+-define(wxDateTime_GMT11, 24).
+-define(wxDateTime_GMT12, 25).
+-define(wxDateTime_GMT13, 26).
+-define(wxDateTime_WET, ?GMT0).
+-define(wxDateTime_WEST, ?GMT1).
+-define(wxDateTime_CET, ?GMT1).
+-define(wxDateTime_CEST, ?GMT2).
+-define(wxDateTime_EET, ?GMT2).
+-define(wxDateTime_EEST, ?GMT3).
+-define(wxDateTime_MSK, ?GMT3).
+-define(wxDateTime_MSD, ?GMT4).
+-define(wxDateTime_AST, ?GMT_4).
+-define(wxDateTime_ADT, ?GMT_3).
+-define(wxDateTime_EST, ?GMT_5).
+-define(wxDateTime_EDT, ?GMT_4).
+-define(wxDateTime_CST, ?GMT_6).
+-define(wxDateTime_CDT, ?GMT_5).
+-define(wxDateTime_MST, ?GMT_7).
+-define(wxDateTime_MDT, ?GMT_6).
+-define(wxDateTime_PST, ?GMT_8).
+-define(wxDateTime_PDT, ?GMT_7).
+-define(wxDateTime_HST, ?GMT_10).
+-define(wxDateTime_AKST, ?GMT_9).
+-define(wxDateTime_AKDT, ?GMT_8).
+-define(wxDateTime_A_WST, ?GMT8).
+-define(wxDateTime_A_CST, ?GMT13+1).
+-define(wxDateTime_A_EST, ?GMT10).
+-define(wxDateTime_A_ESST, ?GMT11).
+-define(wxDateTime_NZST, ?GMT12).
+-define(wxDateTime_NZDT, ?GMT13).
+-define(wxDateTime_UTC, ?GMT0).
+% From wxDateTime::WeekDay
+-define(wxDateTime_Sun, 0).
+-define(wxDateTime_Mon, 1).
+-define(wxDateTime_Tue, 2).
+-define(wxDateTime_Wed, 3).
+-define(wxDateTime_Thu, 4).
+-define(wxDateTime_Fri, 5).
+-define(wxDateTime_Sat, 6).
+-define(wxDateTime_Inv_WeekDay, 7).
+% From wxDateTime::WeekFlags
+-define(wxDateTime_Default_First, 0).
+-define(wxDateTime_Monday_First, 1).
+-define(wxDateTime_Sunday_First, 2).
+% From wxDateTime::Year
+-define(wxDateTime_Inv_Year, ?SHRT_MIN).
+% From class wxDialog
+-define(wxDialog_ButtonSizerFlags, (?wxOK bor ?wxCANCEL bor ?wxYES bor ?wxNO bor ?wxHELP bor ?wxNO_DEFAULT)).
+% From class wxGrid
+-define(wxGrid_wxGRID_CELLCTRL, 2000).
+-define(wxGrid_wxGRID_TOPCTRL, 2001).
+% From class wxGrid
+-define(wxGrid_wxGRID_TEXTCTRL, 2100).
+-define(wxGrid_wxGRID_CHECKBOX, 2101).
+-define(wxGrid_wxGRID_CHOICE, 2102).
+-define(wxGrid_wxGRID_COMBOBOX, 2103).
+% From wxGrid::CursorMode
+-define(wxGrid_WXGRID_CURSOR_SELECT_CELL, 0).
+-define(wxGrid_WXGRID_CURSOR_RESIZE_ROW, 1).
+-define(wxGrid_WXGRID_CURSOR_RESIZE_COL, 2).
+-define(wxGrid_WXGRID_CURSOR_SELECT_ROW, 3).
+-define(wxGrid_WXGRID_CURSOR_SELECT_COL, 4).
+-define(wxGrid_WXGRID_CURSOR_MOVE_COL, 5).
+% From wxGrid::wxGridSelectionModes
+-define(wxGrid_wxGridSelectCells, 0).
+-define(wxGrid_wxGridSelectRows, 1).
+-define(wxGrid_wxGridSelectColumns, 2).
+% From wxGridCellAttr::wxAttrKind
+-define(wxGridCellAttr_Any, 0).
+-define(wxGridCellAttr_Default, 1).
+-define(wxGridCellAttr_Cell, 2).
+-define(wxGridCellAttr_Row, 3).
+-define(wxGridCellAttr_Col, 4).
+-define(wxGridCellAttr_Merged, 5).
+% From wxGridCellAttr::wxAttrOverflowMode
+-define(wxGridCellAttr_UnsetOverflow, -1).
+-define(wxGridCellAttr_Overflow, 0).
+-define(wxGridCellAttr_SingleCell, 1).
+% From wxGridCellAttr::wxAttrReadMode
+-define(wxGridCellAttr_Unset, -1).
+-define(wxGridCellAttr_ReadWrite, 0).
+-define(wxGridCellAttr_ReadOnly, 1).
+% From wxHelpEvent::Origin
+-define(wxHelpEvent_Origin_Unknown, 0).
+-define(wxHelpEvent_Origin_Keyboard, 1).
+-define(wxHelpEvent_Origin_HelpButton, 2).
+% From wxHtmlEasyPrinting::FontMode
+-define(wxHtmlEasyPrinting_FontMode_Explicit, 0).
+-define(wxHtmlEasyPrinting_FontMode_Standard, 1).
+% From wxHtmlWindow::ClipboardType
+-define(wxHtmlWindow_Primary, 0).
+-define(wxHtmlWindow_Secondary, 1).
+% From class wxListbook
+-define(wxListbook_SetSelection_SendEvent, 1).
+% From class wxNavigationKeyEvent
+-define(wxNavigationKeyEvent_IsBackward, 0).
+-define(wxNavigationKeyEvent_IsForward, 1).
+-define(wxNavigationKeyEvent_WinChange, 2).
+-define(wxNavigationKeyEvent_FromTab, 4).
+% From class wxNotebook
+-define(wxNotebook_SetSelection_SendEvent, 1).
+% From class wxProgressDialog
+-define(wxProgressDialog_Uncancelable, -1).
+-define(wxProgressDialog_Canceled, 0).
+-define(wxProgressDialog_Continue, 1).
+-define(wxProgressDialog_Finished, 2).
+% From class wxSizerItem
+-define(wxSizerItem_Item_None, 0).
+-define(wxSizerItem_Item_Window, 1).
+-define(wxSizerItem_Item_Sizer, 2).
+-define(wxSizerItem_Item_Spacer, 3).
+-define(wxSizerItem_Item_Max, 4).
+% From class wxTextCtrl
+-define(wxTextCtrl_SetValue_SendEvent, 1).
+-define(wxTextCtrl_SetValue_SelectionOnly, 2).
+% From class wxToolbook
+-define(wxToolbook_SetSelection_SendEvent, 1).
+% From class wxTreebook
+-define(wxTreebook_SetSelection_SendEvent, 1).
+% From wxWindow::MoveKind
+-define(wxWindow_MoveBefore, 0).
+-define(wxWindow_MoveAfter, 1).
+% From wxWindowGTK::ScrollDir
+-define(wxWindowGTK_ScrollDir_Horz, 0).
+-define(wxWindowGTK_ScrollDir_Vert, 1).
+-define(wxWindowGTK_ScrollDir_Max, 2).
+% From wxWindowGTK::ScrollUnit
+-define(wxWindowGTK_ScrollUnit_Line, 0).
+-define(wxWindowGTK_ScrollUnit_Page, 1).
+-define(wxWindowGTK_ScrollUnit_Max, 2).
+-define(wxACCEL_NORMAL, 0).
+-define(wxACCEL_ALT, 1).
+-define(wxACCEL_CTRL, 2).
+-define(wxACCEL_SHIFT, 4).
+-define(wxACCEL_CMD, ?wxACCEL_CTRL).
+-define(wxPRINT_WINDOWS, 1).
+-define(wxPRINT_POSTSCRIPT, 2).
+-define(wxBK_HITTEST_NOWHERE, 1).
+-define(wxBK_HITTEST_ONICON, 2).
+-define(wxBK_HITTEST_ONLABEL, 4).
+-define(wxBK_HITTEST_ONITEM, (?wxBK_HITTEST_ONICON bor ?wxBK_HITTEST_ONLABEL)).
+-define(wxBK_HITTEST_ONPAGE, 8).
+-define(wxCAL_SUNDAY_FIRST, 0).
+-define(wxCAL_MONDAY_FIRST, 1).
+-define(wxCAL_SHOW_HOLIDAYS, 2).
+-define(wxCAL_NO_YEAR_CHANGE, 4).
+-define(wxCAL_NO_MONTH_CHANGE, 12).
+-define(wxCAL_SEQUENTIAL_MONTH_SELECTION, 16).
+-define(wxCAL_SHOW_SURROUNDING_WEEKS, 32).
+-define(wxDP_DEFAULT, 0).
+-define(wxDP_SPIN, 1).
+-define(wxDP_DROPDOWN, 2).
+-define(wxDP_SHOWCENTURY, 4).
+-define(wxDP_ALLOWNONE, 8).
+-define(wxDefaultCoord, -1).
+-define(wxDIRCTRL_DIR_ONLY, 16).
+-define(wxDIRCTRL_SELECT_FIRST, 32).
+-define(wxDIRCTRL_SHOW_FILTERS, 64).
+-define(wxDIRCTRL_3D_INTERNAL, 128).
+-define(wxDIRCTRL_EDIT_LABELS, 256).
+-define(wxDrag_CopyOnly, 0).
+-define(wxDrag_AllowMove, 1).
+-define(wxDrag_DefaultMove, 3).
+-define(wxMOUSE_BTN_ANY, -1).
+-define(wxMOUSE_BTN_NONE, 0).
+-define(wxMOUSE_BTN_LEFT, 1).
+-define(wxMOUSE_BTN_MIDDLE, 2).
+-define(wxMOUSE_BTN_RIGHT, 3).
+-define(wxFD_OPEN, 1).
+-define(wxFD_SAVE, 2).
+-define(wxFD_OVERWRITE_PROMPT, 4).
+-define(wxFD_FILE_MUST_EXIST, 16).
+-define(wxFD_MULTIPLE, 32).
+-define(wxFD_CHANGE_DIR, 128).
+-define(wxFD_PREVIEW, 256).
+-define(wxFONTFLAG_DEFAULT, 0).
+-define(wxFONTFLAG_ITALIC, 1).
+-define(wxFONTFLAG_SLANT, 2).
+-define(wxFONTFLAG_LIGHT, 4).
+-define(wxFONTFLAG_BOLD, 8).
+-define(wxFONTFLAG_ANTIALIASED, 16).
+-define(wxFONTFLAG_NOT_ANTIALIASED, 32).
+-define(wxFONTFLAG_UNDERLINED, 64).
+-define(wxFONTFLAG_STRIKETHROUGH, 128).
+-define(wxFONTFLAG_MASK, (?wxFONTFLAG_ITALIC bor ?wxFONTFLAG_SLANT bor ?wxFONTFLAG_LIGHT bor ?wxFONTFLAG_BOLD bor ?wxFONTFLAG_ANTIALIASED bor ?wxFONTFLAG_NOT_ANTIALIASED bor ?wxFONTFLAG_UNDERLINED bor ?wxFONTFLAG_STRIKETHROUGH)).
+-define(wxSPLIT_DRAG_NONE, 0).
+-define(wxSPLIT_DRAG_DRAGGING, 1).
+-define(wxSPLIT_DRAG_LEFT_DOWN, 2).
+-define(WX_GL_RGBA, 1).
+-define(WX_GL_BUFFER_SIZE, 2).
+-define(WX_GL_LEVEL, 3).
+-define(WX_GL_DOUBLEBUFFER, 4).
+-define(WX_GL_STEREO, 5).
+-define(WX_GL_AUX_BUFFERS, 6).
+-define(WX_GL_MIN_RED, 7).
+-define(WX_GL_MIN_GREEN, 8).
+-define(WX_GL_MIN_BLUE, 9).
+-define(WX_GL_MIN_ALPHA, 10).
+-define(WX_GL_DEPTH_SIZE, 11).
+-define(WX_GL_STENCIL_SIZE, 12).
+-define(WX_GL_MIN_ACCUM_RED, 13).
+-define(WX_GL_MIN_ACCUM_GREEN, 14).
+-define(WX_GL_MIN_ACCUM_BLUE, 15).
+-define(WX_GL_MIN_ACCUM_ALPHA, 16).
+-define(wxPAGE_ODD, 0).
+-define(wxPAGE_EVEN, 1).
+-define(wxPAGE_ALL, 2).
+-define(wxBMP_24BPP, 24).
+-define(wxBMP_8BPP, 8).
+-define(wxBMP_8BPP_GREY, 9).
+-define(wxBMP_8BPP_GRAY, ?wxBMP_8BPP_GREY).
+-define(wxBMP_8BPP_RED, 10).
+-define(wxBMP_8BPP_PALETTE, 11).
+-define(wxBMP_4BPP, 4).
+-define(wxBMP_1BPP, 1).
+-define(wxBMP_1BPP_BW, 2).
+-define(wxIMAGE_RESOLUTION_INCHES, 1).
+-define(wxIMAGE_RESOLUTION_CM, 2).
+-define(wxIMAGE_LIST_NORMAL, 0).
+-define(wxIMAGE_LIST_SMALL, 1).
+-define(wxIMAGE_LIST_STATE, 2).
+-define(wxLIST_NEXT_ABOVE, 0).
+-define(wxLIST_NEXT_ALL, 1).
+-define(wxLIST_NEXT_BELOW, 2).
+-define(wxLIST_NEXT_LEFT, 3).
+-define(wxLIST_NEXT_RIGHT, 4).
+-define(wxNB_HITTEST_NOWHERE, ?wxBK_HITTEST_NOWHERE).
+-define(wxNB_HITTEST_ONICON, ?wxBK_HITTEST_ONICON).
+-define(wxNB_HITTEST_ONLABEL, ?wxBK_HITTEST_ONLABEL).
+-define(wxNB_HITTEST_ONITEM, ?wxBK_HITTEST_ONITEM).
+-define(wxNB_HITTEST_ONPAGE, ?wxBK_HITTEST_ONPAGE).
+-define(wxTB_HORIZONTAL, ?wxHORIZONTAL).
+-define(wxTB_TOP, ?wxTB_HORIZONTAL).
+-define(wxTB_VERTICAL, ?wxVERTICAL).
+-define(wxTB_LEFT, ?wxTB_VERTICAL).
+-define(wxTB_3DBUTTONS, 16).
+-define(wxTB_FLAT, 32).
+-define(wxTB_DOCKABLE, 64).
+-define(wxTB_NOICONS, 128).
+-define(wxTB_TEXT, 256).
+-define(wxTB_NODIVIDER, 512).
+-define(wxTB_NOALIGN, 1024).
+-define(wxTB_HORZ_LAYOUT, 2048).
+-define(wxTB_HORZ_TEXT, (?wxTB_HORZ_LAYOUT bor ?wxTB_TEXT)).
+-define(wxTB_NO_TOOLTIPS, 4096).
+-define(wxTB_BOTTOM, 8192).
+-define(wxTB_RIGHT, 16384).
+-define(wxFULLSCREEN_NOMENUBAR, 1).
+-define(wxFULLSCREEN_NOTOOLBAR, 2).
+-define(wxFULLSCREEN_NOSTATUSBAR, 4).
+-define(wxFULLSCREEN_NOBORDER, 8).
+-define(wxFULLSCREEN_NOCAPTION, 16).
+-define(wxFULLSCREEN_ALL, (?wxFULLSCREEN_NOMENUBAR bor ?wxFULLSCREEN_NOTOOLBAR bor ?wxFULLSCREEN_NOSTATUSBAR bor ?wxFULLSCREEN_NOBORDER bor ?wxFULLSCREEN_NOCAPTION)).
+-define(wxEXEC_ASYNC, 0).
+-define(wxEXEC_SYNC, 1).
+-define(wxEXEC_NOHIDE, 2).
+-define(wxEXEC_MAKE_GROUP_LEADER, 4).
+-define(wxEXEC_NODISABLE, 8).
+-define(wxID_NONE, -3).
+-define(wxID_SEPARATOR, -2).
+-define(wxID_ANY, -1).
+-define(wxID_LOWEST, 4999).
+-define(wxID_OPEN, 5000).
+-define(wxID_CLOSE, 5001).
+-define(wxID_NEW, 5002).
+-define(wxID_SAVE, 5003).
+-define(wxID_SAVEAS, 5004).
+-define(wxID_REVERT, 5005).
+-define(wxID_EXIT, 5006).
+-define(wxID_UNDO, 5007).
+-define(wxID_REDO, 5008).
+-define(wxID_HELP, 5009).
+-define(wxID_PRINT, 5010).
+-define(wxID_PRINT_SETUP, 5011).
+-define(wxID_PAGE_SETUP, 5012).
+-define(wxID_PREVIEW, 5013).
+-define(wxID_ABOUT, 5014).
+-define(wxID_HELP_CONTENTS, 5015).
+-define(wxID_HELP_INDEX, 5016).
+-define(wxID_HELP_SEARCH, 5017).
+-define(wxID_HELP_COMMANDS, 5018).
+-define(wxID_HELP_PROCEDURES, 5019).
+-define(wxID_HELP_CONTEXT, 5020).
+-define(wxID_CLOSE_ALL, 5021).
+-define(wxID_PREFERENCES, 5022).
+-define(wxID_EDIT, 5030).
+-define(wxID_CUT, 5031).
+-define(wxID_COPY, 5032).
+-define(wxID_PASTE, 5033).
+-define(wxID_CLEAR, 5034).
+-define(wxID_FIND, 5035).
+-define(wxID_DUPLICATE, 5036).
+-define(wxID_SELECTALL, 5037).
+-define(wxID_DELETE, 5038).
+-define(wxID_REPLACE, 5039).
+-define(wxID_REPLACE_ALL, 5040).
+-define(wxID_PROPERTIES, 5041).
+-define(wxID_VIEW_DETAILS, 5042).
+-define(wxID_VIEW_LARGEICONS, 5043).
+-define(wxID_VIEW_SMALLICONS, 5044).
+-define(wxID_VIEW_LIST, 5045).
+-define(wxID_VIEW_SORTDATE, 5046).
+-define(wxID_VIEW_SORTNAME, 5047).
+-define(wxID_VIEW_SORTSIZE, 5048).
+-define(wxID_VIEW_SORTTYPE, 5049).
+-define(wxID_FILE, 5050).
+-define(wxID_FILE1, 5051).
+-define(wxID_FILE2, 5052).
+-define(wxID_FILE3, 5053).
+-define(wxID_FILE4, 5054).
+-define(wxID_FILE5, 5055).
+-define(wxID_FILE6, 5056).
+-define(wxID_FILE7, 5057).
+-define(wxID_FILE8, 5058).
+-define(wxID_FILE9, 5059).
+-define(wxID_OK, 5100).
+-define(wxID_CANCEL, 5101).
+-define(wxID_APPLY, 5102).
+-define(wxID_YES, 5103).
+-define(wxID_NO, 5104).
+-define(wxID_STATIC, 5105).
+-define(wxID_FORWARD, 5106).
+-define(wxID_BACKWARD, 5107).
+-define(wxID_DEFAULT, 5108).
+-define(wxID_MORE, 5109).
+-define(wxID_SETUP, 5110).
+-define(wxID_RESET, 5111).
+-define(wxID_CONTEXT_HELP, 5112).
+-define(wxID_YESTOALL, 5113).
+-define(wxID_NOTOALL, 5114).
+-define(wxID_ABORT, 5115).
+-define(wxID_RETRY, 5116).
+-define(wxID_IGNORE, 5117).
+-define(wxID_ADD, 5118).
+-define(wxID_REMOVE, 5119).
+-define(wxID_UP, 5120).
+-define(wxID_DOWN, 5121).
+-define(wxID_HOME, 5122).
+-define(wxID_REFRESH, 5123).
+-define(wxID_STOP, 5124).
+-define(wxID_INDEX, 5125).
+-define(wxID_BOLD, 5126).
+-define(wxID_ITALIC, 5127).
+-define(wxID_JUSTIFY_CENTER, 5128).
+-define(wxID_JUSTIFY_FILL, 5129).
+-define(wxID_JUSTIFY_RIGHT, 5130).
+-define(wxID_JUSTIFY_LEFT, 5131).
+-define(wxID_UNDERLINE, 5132).
+-define(wxID_INDENT, 5133).
+-define(wxID_UNINDENT, 5134).
+-define(wxID_ZOOM_100, 5135).
+-define(wxID_ZOOM_FIT, 5136).
+-define(wxID_ZOOM_IN, 5137).
+-define(wxID_ZOOM_OUT, 5138).
+-define(wxID_UNDELETE, 5139).
+-define(wxID_REVERT_TO_SAVED, 5140).
+-define(wxID_SYSTEM_MENU, 5200).
+-define(wxID_CLOSE_FRAME, 5201).
+-define(wxID_MOVE_FRAME, 5202).
+-define(wxID_RESIZE_FRAME, 5203).
+-define(wxID_MAXIMIZE_FRAME, 5204).
+-define(wxID_ICONIZE_FRAME, 5205).
+-define(wxID_RESTORE_FRAME, 5206).
+-define(wxID_FILEDLGG, 5900).
+-define(wxID_HIGHEST, 5999).
+-define(wxJOYSTICK1, 0).
+-define(wxJOYSTICK2, 1).
+-define(wxIMAGE_QUALITY_NORMAL, 0).
+-define(wxIMAGE_QUALITY_HIGH, 1).
+-define(wxLIST_ALIGN_DEFAULT, 0).
+-define(wxLIST_ALIGN_LEFT, 1).
+-define(wxLIST_ALIGN_TOP, 2).
+-define(wxLIST_ALIGN_SNAP_TO_GRID, 3).
+-define(wxUSER_ATTENTION_INFO, 1).
+-define(wxUSER_ATTENTION_ERROR, 2).
+-define(wxBROWSER_NEW_WINDOW, 1).
+-define(wxDEFAULT, 70).
+-define(wxDECORATIVE, 71).
+-define(wxROMAN, 72).
+-define(wxSCRIPT, 73).
+-define(wxSWISS, 74).
+-define(wxMODERN, 75).
+-define(wxTELETYPE, 76).
+-define(wxVARIABLE, 80).
+-define(wxFIXED, 81).
+-define(wxNORMAL, 90).
+-define(wxLIGHT, 91).
+-define(wxBOLD, 92).
+-define(wxITALIC, 93).
+-define(wxSLANT, 94).
+-define(wxSOLID, 100).
+-define(wxDOT, 101).
+-define(wxLONG_DASH, 102).
+-define(wxSHORT_DASH, 103).
+-define(wxDOT_DASH, 104).
+-define(wxUSER_DASH, 105).
+-define(wxTRANSPARENT, 106).
+-define(wxSTIPPLE_MASK_OPAQUE, 107).
+-define(wxSTIPPLE_MASK, 108).
+-define(wxSTIPPLE, 110).
+-define(wxBDIAGONAL_HATCH, 111).
+-define(wxCROSSDIAG_HATCH, 112).
+-define(wxFDIAGONAL_HATCH, 113).
+-define(wxCROSS_HATCH, 114).
+-define(wxHORIZONTAL_HATCH, 115).
+-define(wxVERTICAL_HATCH, 116).
+-define(wxFIRST_HATCH, ?wxBDIAGONAL_HATCH).
+-define(wxLAST_HATCH, ?wxVERTICAL_HATCH).
+-define(wxJOIN_BEVEL, 120).
+-define(wxJOIN_MITER, 121).
+-define(wxJOIN_ROUND, 122).
+-define(wxCAP_ROUND, 130).
+-define(wxCAP_PROJECTING, 131).
+-define(wxCAP_BUTT, 132).
+-define(wxJOY_BUTTON_ANY, -1).
+-define(wxJOY_BUTTON1, 1).
+-define(wxJOY_BUTTON2, 2).
+-define(wxJOY_BUTTON3, 4).
+-define(wxJOY_BUTTON4, 8).
+-define(wxLIST_AUTOSIZE, -1).
+-define(wxLIST_AUTOSIZE_USEHEADER, -2).
+-define(wxStrip_Mnemonics, 1).
+-define(wxStrip_Accel, 2).
+-define(wxStrip_All, (?wxStrip_Mnemonics bor ?wxStrip_Accel)).
+-define(wxFLOOD_SURFACE, 1).
+-define(wxFLOOD_BORDER, 2).
+-define(wxLIST_RECT_BOUNDS, 0).
+-define(wxLIST_RECT_ICON, 1).
+-define(wxLIST_RECT_LABEL, 2).
+-define(wxODDEVEN_RULE, 1).
+-define(wxWINDING_RULE, 2).
+-define(wxLIST_FIND_UP, 0).
+-define(wxLIST_FIND_DOWN, 1).
+-define(wxLIST_FIND_LEFT, 2).
+-define(wxLIST_FIND_RIGHT, 3).
+-define(wxTOOL_TOP, 1).
+-define(wxTOOL_BOTTOM, 2).
+-define(wxTOOL_LEFT, 3).
+-define(wxTOOL_RIGHT, 4).
+-define(wxMM_TEXT, 1).
+-define(wxMM_LOMETRIC, 2).
+-define(wxMM_HIMETRIC, 3).
+-define(wxMM_LOENGLISH, 4).
+-define(wxMM_HIENGLISH, 5).
+-define(wxMM_TWIPS, 6).
+-define(wxMM_ISOTROPIC, 7).
+-define(wxMM_ANISOTROPIC, 8).
+-define(wxMM_POINTS, 9).
+-define(wxMM_METRIC, 10).
+% Type Propagation_state
+-define(wxEVENT_PROPAGATE_NONE, 0).
+-define(wxEVENT_PROPAGATE_MAX, ?INT_MAX).
+% Type form_ops_t
+-define(wxCLEAR, 0).
+-define(wxROP_BLACK, ?wxCLEAR).
+-define(wxBLIT_BLACKNESS, ?wxCLEAR).
+-define(wxXOR, (?wxCLEAR+1)).
+-define(wxROP_XORPEN, ?wxXOR).
+-define(wxBLIT_SRCINVERT, ?wxXOR).
+-define(wxINVERT, (?wxXOR+1)).
+-define(wxROP_NOT, ?wxINVERT).
+-define(wxBLIT_DSTINVERT, ?wxINVERT).
+-define(wxOR_REVERSE, (?wxINVERT+1)).
+-define(wxROP_MERGEPENNOT, ?wxOR_REVERSE).
+-define(wxBLIT_00DD0228, ?wxOR_REVERSE).
+-define(wxAND_REVERSE, (?wxOR_REVERSE+1)).
+-define(wxROP_MASKPENNOT, ?wxAND_REVERSE).
+-define(wxBLIT_SRCERASE, ?wxAND_REVERSE).
+-define(wxCOPY, (?wxAND_REVERSE+1)).
+-define(wxROP_COPYPEN, ?wxCOPY).
+-define(wxBLIT_SRCCOPY, ?wxCOPY).
+-define(wxAND, (?wxCOPY+1)).
+-define(wxROP_MASKPEN, ?wxAND).
+-define(wxBLIT_SRCAND, ?wxAND).
+-define(wxAND_INVERT, (?wxAND+1)).
+-define(wxROP_MASKNOTPEN, ?wxAND_INVERT).
+-define(wxBLIT_00220326, ?wxAND_INVERT).
+-define(wxNO_OP, (?wxAND_INVERT+1)).
+-define(wxROP_NOP, ?wxNO_OP).
+-define(wxBLIT_00AA0029, ?wxNO_OP).
+-define(wxNOR, (?wxNO_OP+1)).
+-define(wxROP_NOTMERGEPEN, ?wxNOR).
+-define(wxBLIT_NOTSRCERASE, ?wxNOR).
+-define(wxEQUIV, (?wxNOR+1)).
+-define(wxROP_NOTXORPEN, ?wxEQUIV).
+-define(wxBLIT_00990066, ?wxEQUIV).
+-define(wxSRC_INVERT, (?wxEQUIV+1)).
+-define(wxROP_NOTCOPYPEN, ?wxSRC_INVERT).
+-define(wxBLIT_NOTSCRCOPY, ?wxSRC_INVERT).
+-define(wxOR_INVERT, (?wxSRC_INVERT+1)).
+-define(wxROP_MERGENOTPEN, ?wxOR_INVERT).
+-define(wxBLIT_MERGEPAINT, ?wxOR_INVERT).
+-define(wxNAND, (?wxOR_INVERT+1)).
+-define(wxROP_NOTMASKPEN, ?wxNAND).
+-define(wxBLIT_007700E6, ?wxNAND).
+-define(wxOR, (?wxNAND+1)).
+-define(wxROP_MERGEPEN, ?wxOR).
+-define(wxBLIT_SRCPAINT, ?wxOR).
+-define(wxSET, (?wxOR+1)).
+-define(wxROP_WHITE, ?wxSET).
+-define(wxBLIT_WHITENESS, ?wxSET).
+% Type wxAlignment
+-define(wxALIGN_NOT, 0).
+-define(wxALIGN_CENTER_HORIZONTAL, 256).
+-define(wxALIGN_CENTRE_HORIZONTAL, ?wxALIGN_CENTER_HORIZONTAL).
+-define(wxALIGN_LEFT, ?wxALIGN_NOT).
+-define(wxALIGN_TOP, ?wxALIGN_NOT).
+-define(wxALIGN_RIGHT, 512).
+-define(wxALIGN_BOTTOM, 1024).
+-define(wxALIGN_CENTER_VERTICAL, 2048).
+-define(wxALIGN_CENTRE_VERTICAL, ?wxALIGN_CENTER_VERTICAL).
+-define(wxALIGN_CENTER, (?wxALIGN_CENTER_HORIZONTAL bor ?wxALIGN_CENTER_VERTICAL)).
+-define(wxALIGN_CENTRE, ?wxALIGN_CENTER).
+-define(wxALIGN_MASK, 3840).
+% Type wxAuiButtonId
+-define(wxAUI_BUTTON_CLOSE, 101).
+-define(wxAUI_BUTTON_MAXIMIZE_RESTORE, 102).
+-define(wxAUI_BUTTON_MINIMIZE, 103).
+-define(wxAUI_BUTTON_PIN, 104).
+-define(wxAUI_BUTTON_OPTIONS, 105).
+-define(wxAUI_BUTTON_WINDOWLIST, 106).
+-define(wxAUI_BUTTON_LEFT, 107).
+-define(wxAUI_BUTTON_RIGHT, 108).
+-define(wxAUI_BUTTON_UP, 109).
+-define(wxAUI_BUTTON_DOWN, 110).
+-define(wxAUI_BUTTON_CUSTOM1, 201).
+-define(wxAUI_BUTTON_CUSTOM2, 202).
+-define(wxAUI_BUTTON_CUSTOM3, 203).
+% Type wxAuiManagerDock
+-define(wxAUI_DOCK_NONE, 0).
+-define(wxAUI_DOCK_TOP, 1).
+-define(wxAUI_DOCK_RIGHT, 2).
+-define(wxAUI_DOCK_BOTTOM, 3).
+-define(wxAUI_DOCK_LEFT, 4).
+-define(wxAUI_DOCK_CENTER, 5).
+-define(wxAUI_DOCK_CENTRE, ?wxAUI_DOCK_CENTER).
+% Type wxAuiManagerOption
+-define(wxAUI_MGR_ALLOW_FLOATING, 1).
+-define(wxAUI_MGR_ALLOW_ACTIVE_PANE, 2).
+-define(wxAUI_MGR_TRANSPARENT_DRAG, 4).
+-define(wxAUI_MGR_TRANSPARENT_HINT, 8).
+-define(wxAUI_MGR_VENETIAN_BLINDS_HINT, 16).
+-define(wxAUI_MGR_RECTANGLE_HINT, 32).
+-define(wxAUI_MGR_HINT_FADE, 64).
+-define(wxAUI_MGR_NO_VENETIAN_BLINDS_FADE, 128).
+-define(wxAUI_MGR_LIVE_RESIZE, 256).
+-define(wxAUI_MGR_DEFAULT, (?wxAUI_MGR_ALLOW_FLOATING bor ?wxAUI_MGR_TRANSPARENT_HINT bor ?wxAUI_MGR_HINT_FADE bor ?wxAUI_MGR_NO_VENETIAN_BLINDS_FADE)).
+% Type wxAuiNotebookOption
+-define(wxAUI_NB_TOP, 1).
+-define(wxAUI_NB_LEFT, 2).
+-define(wxAUI_NB_RIGHT, 4).
+-define(wxAUI_NB_BOTTOM, 8).
+-define(wxAUI_NB_TAB_SPLIT, 16).
+-define(wxAUI_NB_TAB_MOVE, 32).
+-define(wxAUI_NB_TAB_EXTERNAL_MOVE, 64).
+-define(wxAUI_NB_TAB_FIXED_WIDTH, 128).
+-define(wxAUI_NB_SCROLL_BUTTONS, 256).
+-define(wxAUI_NB_WINDOWLIST_BUTTON, 512).
+-define(wxAUI_NB_CLOSE_BUTTON, 1024).
+-define(wxAUI_NB_CLOSE_ON_ACTIVE_TAB, 2048).
+-define(wxAUI_NB_CLOSE_ON_ALL_TABS, 4096).
+-define(wxAUI_NB_MIDDLE_CLICK_CLOSE, 8192).
+-define(wxAUI_NB_DEFAULT_STYLE, (?wxAUI_NB_TOP bor ?wxAUI_NB_TAB_SPLIT bor ?wxAUI_NB_TAB_MOVE bor ?wxAUI_NB_SCROLL_BUTTONS bor ?wxAUI_NB_CLOSE_ON_ACTIVE_TAB bor ?wxAUI_NB_MIDDLE_CLICK_CLOSE)).
+% Type wxAuiPaneButtonState
+-define(wxAUI_BUTTON_STATE_NORMAL, 0).
+-define(wxAUI_BUTTON_STATE_HOVER, 2).
+-define(wxAUI_BUTTON_STATE_PRESSED, 4).
+-define(wxAUI_BUTTON_STATE_DISABLED, 8).
+-define(wxAUI_BUTTON_STATE_HIDDEN, 16).
+-define(wxAUI_BUTTON_STATE_CHECKED, 32).
+% Type wxAuiPaneDockArtGradients
+-define(wxAUI_GRADIENT_NONE, 0).
+-define(wxAUI_GRADIENT_VERTICAL, 1).
+-define(wxAUI_GRADIENT_HORIZONTAL, 2).
+% Type wxAuiPaneDockArtSetting
+-define(wxAUI_DOCKART_SASH_SIZE, 0).
+-define(wxAUI_DOCKART_CAPTION_SIZE, 1).
+-define(wxAUI_DOCKART_GRIPPER_SIZE, 2).
+-define(wxAUI_DOCKART_PANE_BORDER_SIZE, 3).
+-define(wxAUI_DOCKART_PANE_BUTTON_SIZE, 4).
+-define(wxAUI_DOCKART_BACKGROUND_COLOUR, 5).
+-define(wxAUI_DOCKART_SASH_COLOUR, 6).
+-define(wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR, 7).
+-define(wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR, 8).
+-define(wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR, 9).
+-define(wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR, 10).
+-define(wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR, 11).
+-define(wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR, 12).
+-define(wxAUI_DOCKART_BORDER_COLOUR, 13).
+-define(wxAUI_DOCKART_GRIPPER_COLOUR, 14).
+-define(wxAUI_DOCKART_CAPTION_FONT, 15).
+-define(wxAUI_DOCKART_GRADIENT_TYPE, 16).
+% Type wxAuiPaneInsertLevel
+-define(wxAUI_INSERT_PANE, 0).
+-define(wxAUI_INSERT_ROW, 1).
+-define(wxAUI_INSERT_DOCK, 2).
+% Type wxBackgroundStyle
+-define(wxBG_STYLE_SYSTEM, 0).
+-define(wxBG_STYLE_COLOUR, 1).
+-define(wxBG_STYLE_CUSTOM, 2).
+% Type wxBitmapType
+-define(wxBITMAP_TYPE_INVALID, 0).
+-define(wxBITMAP_TYPE_BMP, 1).
+-define(wxBITMAP_TYPE_BMP_RESOURCE, 2).
+-define(wxBITMAP_TYPE_RESOURCE, ?wxBITMAP_TYPE_BMP_RESOURCE).
+-define(wxBITMAP_TYPE_ICO, (?wxBITMAP_TYPE_BMP_RESOURCE+1)).
+-define(wxBITMAP_TYPE_ICO_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+2)).
+-define(wxBITMAP_TYPE_CUR, (?wxBITMAP_TYPE_BMP_RESOURCE+3)).
+-define(wxBITMAP_TYPE_CUR_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+4)).
+-define(wxBITMAP_TYPE_XBM, (?wxBITMAP_TYPE_BMP_RESOURCE+5)).
+-define(wxBITMAP_TYPE_XBM_DATA, (?wxBITMAP_TYPE_BMP_RESOURCE+6)).
+-define(wxBITMAP_TYPE_XPM, (?wxBITMAP_TYPE_BMP_RESOURCE+7)).
+-define(wxBITMAP_TYPE_XPM_DATA, (?wxBITMAP_TYPE_BMP_RESOURCE+8)).
+-define(wxBITMAP_TYPE_TIF, (?wxBITMAP_TYPE_BMP_RESOURCE+9)).
+-define(wxBITMAP_TYPE_TIF_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+10)).
+-define(wxBITMAP_TYPE_GIF, (?wxBITMAP_TYPE_BMP_RESOURCE+11)).
+-define(wxBITMAP_TYPE_GIF_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+12)).
+-define(wxBITMAP_TYPE_PNG, (?wxBITMAP_TYPE_BMP_RESOURCE+13)).
+-define(wxBITMAP_TYPE_PNG_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+14)).
+-define(wxBITMAP_TYPE_JPEG, (?wxBITMAP_TYPE_BMP_RESOURCE+15)).
+-define(wxBITMAP_TYPE_JPEG_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+16)).
+-define(wxBITMAP_TYPE_PNM, (?wxBITMAP_TYPE_BMP_RESOURCE+17)).
+-define(wxBITMAP_TYPE_PNM_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+18)).
+-define(wxBITMAP_TYPE_PCX, (?wxBITMAP_TYPE_BMP_RESOURCE+19)).
+-define(wxBITMAP_TYPE_PCX_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+20)).
+-define(wxBITMAP_TYPE_PICT, (?wxBITMAP_TYPE_BMP_RESOURCE+21)).
+-define(wxBITMAP_TYPE_PICT_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+22)).
+-define(wxBITMAP_TYPE_ICON, (?wxBITMAP_TYPE_BMP_RESOURCE+23)).
+-define(wxBITMAP_TYPE_ICON_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+24)).
+-define(wxBITMAP_TYPE_ANI, (?wxBITMAP_TYPE_BMP_RESOURCE+25)).
+-define(wxBITMAP_TYPE_IFF, (?wxBITMAP_TYPE_BMP_RESOURCE+26)).
+-define(wxBITMAP_TYPE_TGA, (?wxBITMAP_TYPE_BMP_RESOURCE+27)).
+-define(wxBITMAP_TYPE_MACCURSOR, (?wxBITMAP_TYPE_BMP_RESOURCE+28)).
+-define(wxBITMAP_TYPE_MACCURSOR_RESOURCE, (?wxBITMAP_TYPE_BMP_RESOURCE+29)).
+-define(wxBITMAP_TYPE_ANY, 50).
+% Type wxBorder
+-define(wxBORDER_DEFAULT, 0).
+-define(wxBORDER_NONE, 2097152).
+-define(wxBORDER_STATIC, 16777216).
+-define(wxBORDER_SIMPLE, 33554432).
+-define(wxBORDER_RAISED, 67108864).
+-define(wxBORDER_SUNKEN, 134217728).
+-define(wxBORDER_DOUBLE, 268435456).
+-define(wxBORDER_THEME, 268435456).
+-define(wxBORDER_MASK, 522190848).
+% Type wxCalendarDateBorder
+-define(wxCAL_BORDER_NONE, 0).
+-define(wxCAL_BORDER_SQUARE, 1).
+-define(wxCAL_BORDER_ROUND, 2).
+% Type wxCalendarHitTestResult
+-define(wxCAL_HITTEST_NOWHERE, 0).
+-define(wxCAL_HITTEST_HEADER, 1).
+-define(wxCAL_HITTEST_DAY, 2).
+-define(wxCAL_HITTEST_INCMONTH, 3).
+-define(wxCAL_HITTEST_DECMONTH, 4).
+-define(wxCAL_HITTEST_SURROUNDING_WEEK, 5).
+% Type wxCheckBoxState
+-define(wxCHK_UNCHECKED, 0).
+-define(wxCHK_CHECKED, 1).
+-define(wxCHK_UNDETERMINED, 2).
+% Type wxClientDataType
+-define(wxClientData_None, 0).
+-define(wxClientData_Object, 1).
+-define(wxClientData_Void, 2).
+% Type wxDataFormatId
+-define(wxDF_INVALID, 0).
+-define(wxDF_TEXT, 1).
+-define(wxDF_BITMAP, 2).
+-define(wxDF_METAFILE, 3).
+-define(wxDF_SYLK, 4).
+-define(wxDF_DIF, 5).
+-define(wxDF_TIFF, 6).
+-define(wxDF_OEMTEXT, 7).
+-define(wxDF_DIB, 8).
+-define(wxDF_PALETTE, 9).
+-define(wxDF_PENDATA, 10).
+-define(wxDF_RIFF, 11).
+-define(wxDF_WAVE, 12).
+-define(wxDF_UNICODETEXT, 13).
+-define(wxDF_ENHMETAFILE, 14).
+-define(wxDF_FILENAME, 15).
+-define(wxDF_LOCALE, 16).
+-define(wxDF_PRIVATE, 20).
+-define(wxDF_HTML, 30).
+-define(wxDF_MAX, 31).
+% Type wxDirection
+-define(wxLEFT, 16).
+-define(wxRIGHT, 32).
+-define(wxUP, 64).
+-define(wxDOWN, 128).
+-define(wxTOP, ?wxUP).
+-define(wxBOTTOM, ?wxDOWN).
+-define(wxNORTH, ?wxUP).
+-define(wxSOUTH, ?wxDOWN).
+-define(wxWEST, ?wxLEFT).
+-define(wxEAST, ?wxRIGHT).
+-define(wxALL, (?wxUP bor ?wxDOWN bor ?wxRIGHT bor ?wxLEFT)).
+% Type wxDragResult
+-define(wxDragError, 0).
+-define(wxDragNone, 1).
+-define(wxDragCopy, 2).
+-define(wxDragMove, 3).
+-define(wxDragLink, 4).
+-define(wxDragCancel, 5).
+% Type wxDuplexMode
+-define(wxDUPLEX_SIMPLEX, 0).
+-define(wxDUPLEX_HORIZONTAL, 1).
+-define(wxDUPLEX_VERTICAL, 2).
+% Type wxEdge
+-define(wxLeft, 0).
+-define(wxTop, 1).
+-define(wxRight, 2).
+-define(wxBottom, 3).
+-define(wxWidth, 4).
+-define(wxHeight, 5).
+-define(wxCentre, 6).
+-define(wxCenter, ?wxCentre).
+-define(wxCentreX, (?wxCentre+1)).
+-define(wxCentreY, (?wxCentre+2)).
+% Type wxFindReplaceDialogStyles
+-define(wxFR_REPLACEDIALOG, 1).
+-define(wxFR_NOUPDOWN, 2).
+-define(wxFR_NOMATCHCASE, 4).
+-define(wxFR_NOWHOLEWORD, 8).
+% Type wxFindReplaceFlags
+-define(wxFR_DOWN, 1).
+-define(wxFR_WHOLEWORD, 2).
+-define(wxFR_MATCHCASE, 4).
+% Type wxFlexSizerGrowMode
+-define(wxFLEX_GROWMODE_NONE, 0).
+-define(wxFLEX_GROWMODE_SPECIFIED, 1).
+-define(wxFLEX_GROWMODE_ALL, 2).
+% Type wxFontEncoding
+-define(wxFONTENCODING_SYSTEM, -1).
+-define(wxFONTENCODING_DEFAULT, 0).
+-define(wxFONTENCODING_ISO8859_1, 1).
+-define(wxFONTENCODING_ISO8859_2, 2).
+-define(wxFONTENCODING_ISO8859_3, 3).
+-define(wxFONTENCODING_ISO8859_4, 4).
+-define(wxFONTENCODING_ISO8859_5, 5).
+-define(wxFONTENCODING_ISO8859_6, 6).
+-define(wxFONTENCODING_ISO8859_7, 7).
+-define(wxFONTENCODING_ISO8859_8, 8).
+-define(wxFONTENCODING_ISO8859_9, 9).
+-define(wxFONTENCODING_ISO8859_10, 10).
+-define(wxFONTENCODING_ISO8859_11, 11).
+-define(wxFONTENCODING_ISO8859_12, 12).
+-define(wxFONTENCODING_ISO8859_13, 13).
+-define(wxFONTENCODING_ISO8859_14, 14).
+-define(wxFONTENCODING_ISO8859_15, 15).
+-define(wxFONTENCODING_ISO8859_MAX, 16).
+-define(wxFONTENCODING_KOI8, 17).
+-define(wxFONTENCODING_KOI8_U, 18).
+-define(wxFONTENCODING_ALTERNATIVE, 19).
+-define(wxFONTENCODING_BULGARIAN, 20).
+-define(wxFONTENCODING_CP437, 21).
+-define(wxFONTENCODING_CP850, 22).
+-define(wxFONTENCODING_CP852, 23).
+-define(wxFONTENCODING_CP855, 24).
+-define(wxFONTENCODING_CP866, 25).
+-define(wxFONTENCODING_CP874, 26).
+-define(wxFONTENCODING_CP932, 27).
+-define(wxFONTENCODING_CP936, 28).
+-define(wxFONTENCODING_CP949, 29).
+-define(wxFONTENCODING_CP950, 30).
+-define(wxFONTENCODING_CP1250, 31).
+-define(wxFONTENCODING_CP1251, 32).
+-define(wxFONTENCODING_CP1252, 33).
+-define(wxFONTENCODING_CP1253, 34).
+-define(wxFONTENCODING_CP1254, 35).
+-define(wxFONTENCODING_CP1255, 36).
+-define(wxFONTENCODING_CP1256, 37).
+-define(wxFONTENCODING_CP1257, 38).
+-define(wxFONTENCODING_CP12_MAX, 39).
+-define(wxFONTENCODING_UTF7, 40).
+-define(wxFONTENCODING_UTF8, 41).
+-define(wxFONTENCODING_EUC_JP, 42).
+-define(wxFONTENCODING_UTF16BE, 43).
+-define(wxFONTENCODING_UTF16LE, 44).
+-define(wxFONTENCODING_UTF32BE, 45).
+-define(wxFONTENCODING_UTF32LE, 46).
+-define(wxFONTENCODING_MACROMAN, 47).
+-define(wxFONTENCODING_MACJAPANESE, 48).
+-define(wxFONTENCODING_MACCHINESETRAD, 49).
+-define(wxFONTENCODING_MACKOREAN, 50).
+-define(wxFONTENCODING_MACARABIC, 51).
+-define(wxFONTENCODING_MACHEBREW, 52).
+-define(wxFONTENCODING_MACGREEK, 53).
+-define(wxFONTENCODING_MACCYRILLIC, 54).
+-define(wxFONTENCODING_MACDEVANAGARI, 55).
+-define(wxFONTENCODING_MACGURMUKHI, 56).
+-define(wxFONTENCODING_MACGUJARATI, 57).
+-define(wxFONTENCODING_MACORIYA, 58).
+-define(wxFONTENCODING_MACBENGALI, 59).
+-define(wxFONTENCODING_MACTAMIL, 60).
+-define(wxFONTENCODING_MACTELUGU, 61).
+-define(wxFONTENCODING_MACKANNADA, 62).
+-define(wxFONTENCODING_MACMALAJALAM, 63).
+-define(wxFONTENCODING_MACSINHALESE, 64).
+-define(wxFONTENCODING_MACBURMESE, 65).
+-define(wxFONTENCODING_MACKHMER, 66).
+-define(wxFONTENCODING_MACTHAI, 67).
+-define(wxFONTENCODING_MACLAOTIAN, 68).
+-define(wxFONTENCODING_MACGEORGIAN, 69).
+-define(wxFONTENCODING_MACARMENIAN, 70).
+-define(wxFONTENCODING_MACCHINESESIMP, 71).
+-define(wxFONTENCODING_MACTIBETAN, 72).
+-define(wxFONTENCODING_MACMONGOLIAN, 73).
+-define(wxFONTENCODING_MACETHIOPIC, 74).
+-define(wxFONTENCODING_MACCENTRALEUR, 75).
+-define(wxFONTENCODING_MACVIATNAMESE, 76).
+-define(wxFONTENCODING_MACARABICEXT, 77).
+-define(wxFONTENCODING_MACSYMBOL, 78).
+-define(wxFONTENCODING_MACDINGBATS, 79).
+-define(wxFONTENCODING_MACTURKISH, 80).
+-define(wxFONTENCODING_MACCROATIAN, 81).
+-define(wxFONTENCODING_MACICELANDIC, 82).
+-define(wxFONTENCODING_MACROMANIAN, 83).
+-define(wxFONTENCODING_MACCELTIC, 84).
+-define(wxFONTENCODING_MACGAELIC, 85).
+-define(wxFONTENCODING_MACKEYBOARD, 86).
+-define(wxFONTENCODING_MAX, 87).
+-define(wxFONTENCODING_MACMIN, ?wxFONTENCODING_MACROMAN).
+-define(wxFONTENCODING_MACMAX, ?wxFONTENCODING_MACKEYBOARD).
+-define(wxFONTENCODING_UTF16, wxe_util:get_const(wxFONTENCODING_UTF16)).
+-define(wxFONTENCODING_UTF32, wxe_util:get_const(wxFONTENCODING_UTF32)).
+-define(wxFONTENCODING_UNICODE, ?wxFONTENCODING_UTF32).
+-define(wxFONTENCODING_GB2312, ?wxFONTENCODING_CP936).
+-define(wxFONTENCODING_BIG5, ?wxFONTENCODING_CP950).
+-define(wxFONTENCODING_SHIFT_JIS, ?wxFONTENCODING_CP932).
+% Type wxFontFamily
+-define(wxFONTFAMILY_DEFAULT, ?wxDEFAULT).
+-define(wxFONTFAMILY_DECORATIVE, ?wxDECORATIVE).
+-define(wxFONTFAMILY_ROMAN, ?wxROMAN).
+-define(wxFONTFAMILY_SCRIPT, ?wxSCRIPT).
+-define(wxFONTFAMILY_SWISS, ?wxSWISS).
+-define(wxFONTFAMILY_MODERN, ?wxMODERN).
+-define(wxFONTFAMILY_TELETYPE, ?wxTELETYPE).
+-define(wxFONTFAMILY_MAX, (?wxTELETYPE+1)).
+-define(wxFONTFAMILY_UNKNOWN, ?wxFONTFAMILY_MAX).
+% Type wxFontStyle
+-define(wxFONTSTYLE_NORMAL, ?wxNORMAL).
+-define(wxFONTSTYLE_ITALIC, ?wxITALIC).
+-define(wxFONTSTYLE_SLANT, ?wxSLANT).
+-define(wxFONTSTYLE_MAX, (?wxSLANT+1)).
+% Type wxFontWeight
+-define(wxFONTWEIGHT_NORMAL, ?wxNORMAL).
+-define(wxFONTWEIGHT_LIGHT, ?wxLIGHT).
+-define(wxFONTWEIGHT_BOLD, ?wxBOLD).
+-define(wxFONTWEIGHT_MAX, (?wxBOLD+1)).
+% Type wxGeometryCentre
+-define(wxCENTRE, 1).
+-define(wxCENTER, ?wxCENTRE).
+% Type wxHitTest
+-define(wxHT_NOWHERE, 0).
+-define(wxHT_SCROLLBAR_FIRST, ?wxHT_NOWHERE).
+-define(wxHT_SCROLLBAR_ARROW_LINE_1, (?wxHT_NOWHERE+1)).
+-define(wxHT_SCROLLBAR_ARROW_LINE_2, (?wxHT_NOWHERE+2)).
+-define(wxHT_SCROLLBAR_ARROW_PAGE_1, (?wxHT_NOWHERE+3)).
+-define(wxHT_SCROLLBAR_ARROW_PAGE_2, (?wxHT_NOWHERE+4)).
+-define(wxHT_SCROLLBAR_THUMB, (?wxHT_NOWHERE+5)).
+-define(wxHT_SCROLLBAR_BAR_1, (?wxHT_NOWHERE+6)).
+-define(wxHT_SCROLLBAR_BAR_2, (?wxHT_NOWHERE+7)).
+-define(wxHT_SCROLLBAR_LAST, (?wxHT_NOWHERE+8)).
+-define(wxHT_WINDOW_OUTSIDE, (?wxHT_NOWHERE+9)).
+-define(wxHT_WINDOW_INSIDE, (?wxHT_NOWHERE+10)).
+-define(wxHT_WINDOW_VERT_SCROLLBAR, (?wxHT_NOWHERE+11)).
+-define(wxHT_WINDOW_HORZ_SCROLLBAR, (?wxHT_NOWHERE+12)).
+-define(wxHT_WINDOW_CORNER, (?wxHT_NOWHERE+13)).
+-define(wxHT_MAX, (?wxHT_NOWHERE+14)).
+% Type wxHtmlOpeningStatus
+-define(wxHTML_OPEN, 0).
+-define(wxHTML_BLOCK, 1).
+-define(wxHTML_REDIRECT, 2).
+% Type wxIdleMode
+-define(wxIDLE_PROCESS_ALL, 0).
+-define(wxIDLE_PROCESS_SPECIFIED, 1).
+% Type wxItemKind
+-define(wxITEM_SEPARATOR, -1).
+-define(wxITEM_NORMAL, 0).
+-define(wxITEM_CHECK, 1).
+-define(wxITEM_RADIO, 2).
+-define(wxITEM_MAX, 3).
+% Type wxKeyCode
+-define(WXK_BACK, 8).
+-define(WXK_TAB, 9).
+-define(WXK_RETURN, 13).
+-define(WXK_ESCAPE, 27).
+-define(WXK_SPACE, 32).
+-define(WXK_DELETE, 127).
+-define(WXK_START, 300).
+-define(WXK_LBUTTON, 301).
+-define(WXK_RBUTTON, 302).
+-define(WXK_CANCEL, 303).
+-define(WXK_MBUTTON, 304).
+-define(WXK_CLEAR, 305).
+-define(WXK_SHIFT, 306).
+-define(WXK_ALT, 307).
+-define(WXK_CONTROL, 308).
+-define(WXK_MENU, 309).
+-define(WXK_PAUSE, 310).
+-define(WXK_CAPITAL, 311).
+-define(WXK_END, 312).
+-define(WXK_HOME, 313).
+-define(WXK_LEFT, 314).
+-define(WXK_UP, 315).
+-define(WXK_RIGHT, 316).
+-define(WXK_DOWN, 317).
+-define(WXK_SELECT, 318).
+-define(WXK_PRINT, 319).
+-define(WXK_EXECUTE, 320).
+-define(WXK_SNAPSHOT, 321).
+-define(WXK_INSERT, 322).
+-define(WXK_HELP, 323).
+-define(WXK_NUMPAD0, 324).
+-define(WXK_NUMPAD1, 325).
+-define(WXK_NUMPAD2, 326).
+-define(WXK_NUMPAD3, 327).
+-define(WXK_NUMPAD4, 328).
+-define(WXK_NUMPAD5, 329).
+-define(WXK_NUMPAD6, 330).
+-define(WXK_NUMPAD7, 331).
+-define(WXK_NUMPAD8, 332).
+-define(WXK_NUMPAD9, 333).
+-define(WXK_MULTIPLY, 334).
+-define(WXK_ADD, 335).
+-define(WXK_SEPARATOR, 336).
+-define(WXK_SUBTRACT, 337).
+-define(WXK_DECIMAL, 338).
+-define(WXK_DIVIDE, 339).
+-define(WXK_F1, 340).
+-define(WXK_F2, 341).
+-define(WXK_F3, 342).
+-define(WXK_F4, 343).
+-define(WXK_F5, 344).
+-define(WXK_F6, 345).
+-define(WXK_F7, 346).
+-define(WXK_F8, 347).
+-define(WXK_F9, 348).
+-define(WXK_F10, 349).
+-define(WXK_F11, 350).
+-define(WXK_F12, 351).
+-define(WXK_F13, 352).
+-define(WXK_F14, 353).
+-define(WXK_F15, 354).
+-define(WXK_F16, 355).
+-define(WXK_F17, 356).
+-define(WXK_F18, 357).
+-define(WXK_F19, 358).
+-define(WXK_F20, 359).
+-define(WXK_F21, 360).
+-define(WXK_F22, 361).
+-define(WXK_F23, 362).
+-define(WXK_F24, 363).
+-define(WXK_NUMLOCK, 364).
+-define(WXK_SCROLL, 365).
+-define(WXK_PAGEUP, 366).
+-define(WXK_PAGEDOWN, 367).
+-define(WXK_NUMPAD_SPACE, 368).
+-define(WXK_NUMPAD_TAB, 369).
+-define(WXK_NUMPAD_ENTER, 370).
+-define(WXK_NUMPAD_F1, 371).
+-define(WXK_NUMPAD_F2, 372).
+-define(WXK_NUMPAD_F3, 373).
+-define(WXK_NUMPAD_F4, 374).
+-define(WXK_NUMPAD_HOME, 375).
+-define(WXK_NUMPAD_LEFT, 376).
+-define(WXK_NUMPAD_UP, 377).
+-define(WXK_NUMPAD_RIGHT, 378).
+-define(WXK_NUMPAD_DOWN, 379).
+-define(WXK_NUMPAD_PAGEUP, 380).
+-define(WXK_NUMPAD_PAGEDOWN, 381).
+-define(WXK_NUMPAD_END, 382).
+-define(WXK_NUMPAD_BEGIN, 383).
+-define(WXK_NUMPAD_INSERT, 384).
+-define(WXK_NUMPAD_DELETE, 385).
+-define(WXK_NUMPAD_EQUAL, 386).
+-define(WXK_NUMPAD_MULTIPLY, 387).
+-define(WXK_NUMPAD_ADD, 388).
+-define(WXK_NUMPAD_SEPARATOR, 389).
+-define(WXK_NUMPAD_SUBTRACT, 390).
+-define(WXK_NUMPAD_DECIMAL, 391).
+-define(WXK_NUMPAD_DIVIDE, 392).
+-define(WXK_WINDOWS_LEFT, 393).
+-define(WXK_WINDOWS_RIGHT, 394).
+-define(WXK_WINDOWS_MENU, 395).
+-define(WXK_COMMAND, 396).
+-define(WXK_SPECIAL1, 193).
+-define(WXK_SPECIAL2, 194).
+-define(WXK_SPECIAL3, 195).
+-define(WXK_SPECIAL4, 196).
+-define(WXK_SPECIAL5, 197).
+-define(WXK_SPECIAL6, 198).
+-define(WXK_SPECIAL7, 199).
+-define(WXK_SPECIAL8, 200).
+-define(WXK_SPECIAL9, 201).
+-define(WXK_SPECIAL10, 202).
+-define(WXK_SPECIAL11, 203).
+-define(WXK_SPECIAL12, 204).
+-define(WXK_SPECIAL13, 205).
+-define(WXK_SPECIAL14, 206).
+-define(WXK_SPECIAL15, 207).
+-define(WXK_SPECIAL16, 208).
+-define(WXK_SPECIAL17, 209).
+-define(WXK_SPECIAL18, 210).
+-define(WXK_SPECIAL19, 211).
+-define(WXK_SPECIAL20, 212).
+% Type wxKeyModifier
+-define(wxMOD_NONE, 0).
+-define(wxMOD_ALT, 1).
+-define(wxMOD_CONTROL, 2).
+-define(wxMOD_ALTGR, (?wxMOD_ALT bor ?wxMOD_CONTROL)).
+-define(wxMOD_SHIFT, 4).
+-define(wxMOD_META, 8).
+-define(wxMOD_WIN, ?wxMOD_META).
+-define(wxMOD_CMD, wxe_util:get_const(wxMOD_CMD)).
+-define(wxMOD_ALL, 65535).
+% Type wxKeyType
+-define(wxKEY_NONE, 0).
+-define(wxKEY_INTEGER, 1).
+-define(wxKEY_STRING, 2).
+% Type wxKillError
+-define(wxKILL_OK, 0).
+-define(wxKILL_BAD_SIGNAL, 1).
+-define(wxKILL_ACCESS_DENIED, 2).
+-define(wxKILL_NO_PROCESS, 3).
+-define(wxKILL_ERROR, 4).
+% Type wxKillFlags
+-define(wxKILL_NOCHILDREN, 0).
+-define(wxKILL_CHILDREN, 1).
+% Type wxLayoutAlignment
+-define(wxLAYOUT_NONE, 0).
+-define(wxLAYOUT_TOP, 1).
+-define(wxLAYOUT_LEFT, 2).
+-define(wxLAYOUT_RIGHT, 3).
+-define(wxLAYOUT_BOTTOM, 4).
+% Type wxLayoutDirection
+-define(wxLayout_Default, 0).
+-define(wxLayout_LeftToRight, 1).
+-define(wxLayout_RightToLeft, 2).
+% Type wxLayoutOrientation
+-define(wxLAYOUT_HORIZONTAL, 0).
+-define(wxLAYOUT_VERTICAL, 1).
+% Type wxListColumnFormat
+-define(wxLIST_FORMAT_LEFT, 0).
+-define(wxLIST_FORMAT_RIGHT, 1).
+-define(wxLIST_FORMAT_CENTRE, 2).
+-define(wxLIST_FORMAT_CENTER, ?wxLIST_FORMAT_CENTRE).
+% Type wxNotificationOptions
+-define(wxNOTIFY_NONE, 0).
+-define(wxNOTIFY_ONCE, 1).
+-define(wxNOTIFY_REPEAT, 2).
+% Type wxOrientation
+-define(wxHORIZONTAL, 4).
+-define(wxVERTICAL, 8).
+-define(wxBOTH, (?wxVERTICAL bor ?wxHORIZONTAL)).
+% Type wxPaperSize
+-define(wxPAPER_NONE, 0).
+-define(wxPAPER_LETTER, 1).
+-define(wxPAPER_LEGAL, 2).
+-define(wxPAPER_A4, 3).
+-define(wxPAPER_CSHEET, 4).
+-define(wxPAPER_DSHEET, 5).
+-define(wxPAPER_ESHEET, 6).
+-define(wxPAPER_LETTERSMALL, 7).
+-define(wxPAPER_TABLOID, 8).
+-define(wxPAPER_LEDGER, 9).
+-define(wxPAPER_STATEMENT, 10).
+-define(wxPAPER_EXECUTIVE, 11).
+-define(wxPAPER_A3, 12).
+-define(wxPAPER_A4SMALL, 13).
+-define(wxPAPER_A5, 14).
+-define(wxPAPER_B4, 15).
+-define(wxPAPER_B5, 16).
+-define(wxPAPER_FOLIO, 17).
+-define(wxPAPER_QUARTO, 18).
+-define(wxPAPER_10X14, 19).
+-define(wxPAPER_11X17, 20).
+-define(wxPAPER_NOTE, 21).
+-define(wxPAPER_ENV_9, 22).
+-define(wxPAPER_ENV_10, 23).
+-define(wxPAPER_ENV_11, 24).
+-define(wxPAPER_ENV_12, 25).
+-define(wxPAPER_ENV_14, 26).
+-define(wxPAPER_ENV_DL, 27).
+-define(wxPAPER_ENV_C5, 28).
+-define(wxPAPER_ENV_C3, 29).
+-define(wxPAPER_ENV_C4, 30).
+-define(wxPAPER_ENV_C6, 31).
+-define(wxPAPER_ENV_C65, 32).
+-define(wxPAPER_ENV_B4, 33).
+-define(wxPAPER_ENV_B5, 34).
+-define(wxPAPER_ENV_B6, 35).
+-define(wxPAPER_ENV_ITALY, 36).
+-define(wxPAPER_ENV_MONARCH, 37).
+-define(wxPAPER_ENV_PERSONAL, 38).
+-define(wxPAPER_FANFOLD_US, 39).
+-define(wxPAPER_FANFOLD_STD_GERMAN, 40).
+-define(wxPAPER_FANFOLD_LGL_GERMAN, 41).
+-define(wxPAPER_ISO_B4, 42).
+-define(wxPAPER_JAPANESE_POSTCARD, 43).
+-define(wxPAPER_9X11, 44).
+-define(wxPAPER_10X11, 45).
+-define(wxPAPER_15X11, 46).
+-define(wxPAPER_ENV_INVITE, 47).
+-define(wxPAPER_LETTER_EXTRA, 48).
+-define(wxPAPER_LEGAL_EXTRA, 49).
+-define(wxPAPER_TABLOID_EXTRA, 50).
+-define(wxPAPER_A4_EXTRA, 51).
+-define(wxPAPER_LETTER_TRANSVERSE, 52).
+-define(wxPAPER_A4_TRANSVERSE, 53).
+-define(wxPAPER_LETTER_EXTRA_TRANSVERSE, 54).
+-define(wxPAPER_A_PLUS, 55).
+-define(wxPAPER_B_PLUS, 56).
+-define(wxPAPER_LETTER_PLUS, 57).
+-define(wxPAPER_A4_PLUS, 58).
+-define(wxPAPER_A5_TRANSVERSE, 59).
+-define(wxPAPER_B5_TRANSVERSE, 60).
+-define(wxPAPER_A3_EXTRA, 61).
+-define(wxPAPER_A5_EXTRA, 62).
+-define(wxPAPER_B5_EXTRA, 63).
+-define(wxPAPER_A2, 64).
+-define(wxPAPER_A3_TRANSVERSE, 65).
+-define(wxPAPER_A3_EXTRA_TRANSVERSE, 66).
+-define(wxPAPER_DBL_JAPANESE_POSTCARD, 67).
+-define(wxPAPER_A6, 68).
+-define(wxPAPER_JENV_KAKU2, 69).
+-define(wxPAPER_JENV_KAKU3, 70).
+-define(wxPAPER_JENV_CHOU3, 71).
+-define(wxPAPER_JENV_CHOU4, 72).
+-define(wxPAPER_LETTER_ROTATED, 73).
+-define(wxPAPER_A3_ROTATED, 74).
+-define(wxPAPER_A4_ROTATED, 75).
+-define(wxPAPER_A5_ROTATED, 76).
+-define(wxPAPER_B4_JIS_ROTATED, 77).
+-define(wxPAPER_B5_JIS_ROTATED, 78).
+-define(wxPAPER_JAPANESE_POSTCARD_ROTATED, 79).
+-define(wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED, 80).
+-define(wxPAPER_A6_ROTATED, 81).
+-define(wxPAPER_JENV_KAKU2_ROTATED, 82).
+-define(wxPAPER_JENV_KAKU3_ROTATED, 83).
+-define(wxPAPER_JENV_CHOU3_ROTATED, 84).
+-define(wxPAPER_JENV_CHOU4_ROTATED, 85).
+-define(wxPAPER_B6_JIS, 86).
+-define(wxPAPER_B6_JIS_ROTATED, 87).
+-define(wxPAPER_12X11, 88).
+-define(wxPAPER_JENV_YOU4, 89).
+-define(wxPAPER_JENV_YOU4_ROTATED, 90).
+-define(wxPAPER_P16K, 91).
+-define(wxPAPER_P32K, 92).
+-define(wxPAPER_P32KBIG, 93).
+-define(wxPAPER_PENV_1, 94).
+-define(wxPAPER_PENV_2, 95).
+-define(wxPAPER_PENV_3, 96).
+-define(wxPAPER_PENV_4, 97).
+-define(wxPAPER_PENV_5, 98).
+-define(wxPAPER_PENV_6, 99).
+-define(wxPAPER_PENV_7, 100).
+-define(wxPAPER_PENV_8, 101).
+-define(wxPAPER_PENV_9, 102).
+-define(wxPAPER_PENV_10, 103).
+-define(wxPAPER_P16K_ROTATED, 104).
+-define(wxPAPER_P32K_ROTATED, 105).
+-define(wxPAPER_P32KBIG_ROTATED, 106).
+-define(wxPAPER_PENV_1_ROTATED, 107).
+-define(wxPAPER_PENV_2_ROTATED, 108).
+-define(wxPAPER_PENV_3_ROTATED, 109).
+-define(wxPAPER_PENV_4_ROTATED, 110).
+-define(wxPAPER_PENV_5_ROTATED, 111).
+-define(wxPAPER_PENV_6_ROTATED, 112).
+-define(wxPAPER_PENV_7_ROTATED, 113).
+-define(wxPAPER_PENV_8_ROTATED, 114).
+-define(wxPAPER_PENV_9_ROTATED, 115).
+-define(wxPAPER_PENV_10_ROTATED, 116).
+% Type wxPrintBin
+-define(wxPRINTBIN_DEFAULT, 0).
+-define(wxPRINTBIN_ONLYONE, 1).
+-define(wxPRINTBIN_LOWER, 2).
+-define(wxPRINTBIN_MIDDLE, 3).
+-define(wxPRINTBIN_MANUAL, 4).
+-define(wxPRINTBIN_ENVELOPE, 5).
+-define(wxPRINTBIN_ENVMANUAL, 6).
+-define(wxPRINTBIN_AUTO, 7).
+-define(wxPRINTBIN_TRACTOR, 8).
+-define(wxPRINTBIN_SMALLFMT, 9).
+-define(wxPRINTBIN_LARGEFMT, 10).
+-define(wxPRINTBIN_LARGECAPACITY, 11).
+-define(wxPRINTBIN_CASSETTE, 12).
+-define(wxPRINTBIN_FORMSOURCE, 13).
+-define(wxPRINTBIN_USER, 14).
+% Type wxPrintMode
+-define(wxPRINT_MODE_NONE, 0).
+-define(wxPRINT_MODE_PREVIEW, 1).
+-define(wxPRINT_MODE_FILE, 2).
+-define(wxPRINT_MODE_PRINTER, 3).
+-define(wxPRINT_MODE_STREAM, 4).
+% Type wxPrinterError
+-define(wxPRINTER_NO_ERROR, 0).
+-define(wxPRINTER_CANCELLED, 1).
+-define(wxPRINTER_ERROR, 2).
+% Type wxRegionContain
+-define(wxOutRegion, 0).
+-define(wxPartRegion, 1).
+-define(wxInRegion, 2).
+% Type wxRegionOp
+-define(wxRGN_AND, 0).
+-define(wxRGN_COPY, 1).
+-define(wxRGN_DIFF, 2).
+-define(wxRGN_OR, 3).
+-define(wxRGN_XOR, 4).
+% Type wxRelationship
+-define(wxUnconstrained, 0).
+-define(wxAsIs, 1).
+-define(wxPercentOf, 2).
+-define(wxAbove, 3).
+-define(wxBelow, 4).
+-define(wxLeftOf, 5).
+-define(wxRightOf, 6).
+-define(wxSameAs, 7).
+-define(wxAbsolute, 8).
+% Type wxSashDragStatus
+-define(wxSASH_STATUS_OK, 0).
+-define(wxSASH_STATUS_OUT_OF_RANGE, 1).
+% Type wxSashEdgePosition
+-define(wxSASH_TOP, 0).
+-define(wxSASH_RIGHT, 1).
+-define(wxSASH_BOTTOM, 2).
+-define(wxSASH_LEFT, 3).
+-define(wxSASH_NONE, 100).
+% Type wxShutdownFlags
+-define(wxSHUTDOWN_POWEROFF, 0).
+-define(wxSHUTDOWN_REBOOT, 1).
+% Type wxSignal
+-define(wxSIGNONE, 0).
+-define(wxSIGHUP, 1).
+-define(wxSIGINT, 2).
+-define(wxSIGQUIT, 3).
+-define(wxSIGILL, 4).
+-define(wxSIGTRAP, 5).
+-define(wxSIGABRT, 6).
+-define(wxSIGIOT, ?wxSIGABRT).
+-define(wxSIGEMT, (?wxSIGABRT+1)).
+-define(wxSIGFPE, (?wxSIGABRT+2)).
+-define(wxSIGKILL, (?wxSIGABRT+3)).
+-define(wxSIGBUS, (?wxSIGABRT+4)).
+-define(wxSIGSEGV, (?wxSIGABRT+5)).
+-define(wxSIGSYS, (?wxSIGABRT+6)).
+-define(wxSIGPIPE, (?wxSIGABRT+7)).
+-define(wxSIGALRM, (?wxSIGABRT+8)).
+-define(wxSIGTERM, (?wxSIGABRT+9)).
+% Type wxSplitMode
+-define(wxSPLIT_HORIZONTAL, 1).
+-define(wxSPLIT_VERTICAL, 2).
+% Type wxStockCursor
+-define(wxCURSOR_NONE, 0).
+-define(wxCURSOR_ARROW, 1).
+-define(wxCURSOR_RIGHT_ARROW, 2).
+-define(wxCURSOR_BULLSEYE, 3).
+-define(wxCURSOR_CHAR, 4).
+-define(wxCURSOR_CROSS, 5).
+-define(wxCURSOR_HAND, 6).
+-define(wxCURSOR_IBEAM, 7).
+-define(wxCURSOR_LEFT_BUTTON, 8).
+-define(wxCURSOR_MAGNIFIER, 9).
+-define(wxCURSOR_MIDDLE_BUTTON, 10).
+-define(wxCURSOR_NO_ENTRY, 11).
+-define(wxCURSOR_PAINT_BRUSH, 12).
+-define(wxCURSOR_PENCIL, 13).
+-define(wxCURSOR_POINT_LEFT, 14).
+-define(wxCURSOR_POINT_RIGHT, 15).
+-define(wxCURSOR_QUESTION_ARROW, 16).
+-define(wxCURSOR_RIGHT_BUTTON, 17).
+-define(wxCURSOR_SIZENESW, 18).
+-define(wxCURSOR_SIZENS, 19).
+-define(wxCURSOR_SIZENWSE, 20).
+-define(wxCURSOR_SIZEWE, 21).
+-define(wxCURSOR_SIZING, 22).
+-define(wxCURSOR_SPRAYCAN, 23).
+-define(wxCURSOR_WAIT, 24).
+-define(wxCURSOR_WATCH, 25).
+-define(wxCURSOR_BLANK, 26).
+-define(wxCURSOR_DEFAULT, 27).
+-define(wxCURSOR_ARROWWAIT, 28).
+-define(wxCURSOR_MAX, 29).
+% Type wxStretch
+-define(wxSTRETCH_NOT, 0).
+-define(wxSHRINK, 4096).
+-define(wxGROW, 8192).
+-define(wxEXPAND, ?wxGROW).
+-define(wxSHAPED, 16384).
+-define(wxFIXED_MINSIZE, 32768).
+-define(wxRESERVE_SPACE_EVEN_IF_HIDDEN, 2).
+-define(wxTILE, 49152).
+-define(wxADJUST_MINSIZE, 0).
+% Type wxSystemColour
+-define(wxSYS_COLOUR_SCROLLBAR, 0).
+-define(wxSYS_COLOUR_BACKGROUND, 1).
+-define(wxSYS_COLOUR_DESKTOP, ?wxSYS_COLOUR_BACKGROUND).
+-define(wxSYS_COLOUR_ACTIVECAPTION, (?wxSYS_COLOUR_BACKGROUND+1)).
+-define(wxSYS_COLOUR_INACTIVECAPTION, (?wxSYS_COLOUR_BACKGROUND+2)).
+-define(wxSYS_COLOUR_MENU, (?wxSYS_COLOUR_BACKGROUND+3)).
+-define(wxSYS_COLOUR_WINDOW, (?wxSYS_COLOUR_BACKGROUND+4)).
+-define(wxSYS_COLOUR_WINDOWFRAME, (?wxSYS_COLOUR_BACKGROUND+5)).
+-define(wxSYS_COLOUR_MENUTEXT, (?wxSYS_COLOUR_BACKGROUND+6)).
+-define(wxSYS_COLOUR_WINDOWTEXT, (?wxSYS_COLOUR_BACKGROUND+7)).
+-define(wxSYS_COLOUR_CAPTIONTEXT, (?wxSYS_COLOUR_BACKGROUND+8)).
+-define(wxSYS_COLOUR_ACTIVEBORDER, (?wxSYS_COLOUR_BACKGROUND+9)).
+-define(wxSYS_COLOUR_INACTIVEBORDER, (?wxSYS_COLOUR_BACKGROUND+10)).
+-define(wxSYS_COLOUR_APPWORKSPACE, (?wxSYS_COLOUR_BACKGROUND+11)).
+-define(wxSYS_COLOUR_HIGHLIGHT, (?wxSYS_COLOUR_BACKGROUND+12)).
+-define(wxSYS_COLOUR_HIGHLIGHTTEXT, (?wxSYS_COLOUR_BACKGROUND+13)).
+-define(wxSYS_COLOUR_BTNFACE, (?wxSYS_COLOUR_BACKGROUND+14)).
+-define(wxSYS_COLOUR_3DFACE, ?wxSYS_COLOUR_BTNFACE).
+-define(wxSYS_COLOUR_BTNSHADOW, (?wxSYS_COLOUR_BTNFACE+1)).
+-define(wxSYS_COLOUR_3DSHADOW, ?wxSYS_COLOUR_BTNSHADOW).
+-define(wxSYS_COLOUR_GRAYTEXT, (?wxSYS_COLOUR_BTNSHADOW+1)).
+-define(wxSYS_COLOUR_BTNTEXT, (?wxSYS_COLOUR_BTNSHADOW+2)).
+-define(wxSYS_COLOUR_INACTIVECAPTIONTEXT, (?wxSYS_COLOUR_BTNSHADOW+3)).
+-define(wxSYS_COLOUR_BTNHIGHLIGHT, (?wxSYS_COLOUR_BTNSHADOW+4)).
+-define(wxSYS_COLOUR_BTNHILIGHT, ?wxSYS_COLOUR_BTNHIGHLIGHT).
+-define(wxSYS_COLOUR_3DHIGHLIGHT, ?wxSYS_COLOUR_BTNHIGHLIGHT).
+-define(wxSYS_COLOUR_3DHILIGHT, ?wxSYS_COLOUR_BTNHIGHLIGHT).
+-define(wxSYS_COLOUR_3DDKSHADOW, (?wxSYS_COLOUR_BTNHIGHLIGHT+1)).
+-define(wxSYS_COLOUR_3DLIGHT, (?wxSYS_COLOUR_BTNHIGHLIGHT+2)).
+-define(wxSYS_COLOUR_INFOTEXT, (?wxSYS_COLOUR_BTNHIGHLIGHT+3)).
+-define(wxSYS_COLOUR_INFOBK, (?wxSYS_COLOUR_BTNHIGHLIGHT+4)).
+-define(wxSYS_COLOUR_LISTBOX, (?wxSYS_COLOUR_BTNHIGHLIGHT+5)).
+-define(wxSYS_COLOUR_HOTLIGHT, (?wxSYS_COLOUR_BTNHIGHLIGHT+6)).
+-define(wxSYS_COLOUR_GRADIENTACTIVECAPTION, (?wxSYS_COLOUR_BTNHIGHLIGHT+7)).
+-define(wxSYS_COLOUR_GRADIENTINACTIVECAPTION, (?wxSYS_COLOUR_BTNHIGHLIGHT+8)).
+-define(wxSYS_COLOUR_MENUHILIGHT, (?wxSYS_COLOUR_BTNHIGHLIGHT+9)).
+-define(wxSYS_COLOUR_MENUBAR, (?wxSYS_COLOUR_BTNHIGHLIGHT+10)).
+-define(wxSYS_COLOUR_LISTBOXTEXT, (?wxSYS_COLOUR_BTNHIGHLIGHT+11)).
+-define(wxSYS_COLOUR_MAX, (?wxSYS_COLOUR_BTNHIGHLIGHT+12)).
+% Type wxSystemFeature
+-define(wxSYS_CAN_DRAW_FRAME_DECORATIONS, 1).
+-define(wxSYS_CAN_ICONIZE_FRAME, 2).
+-define(wxSYS_TABLET_PRESENT, 3).
+% Type wxSystemFont
+-define(wxSYS_OEM_FIXED_FONT, 10).
+-define(wxSYS_ANSI_FIXED_FONT, 11).
+-define(wxSYS_ANSI_VAR_FONT, 12).
+-define(wxSYS_SYSTEM_FONT, 13).
+-define(wxSYS_DEVICE_DEFAULT_FONT, 14).
+-define(wxSYS_DEFAULT_PALETTE, 15).
+-define(wxSYS_SYSTEM_FIXED_FONT, 16).
+-define(wxSYS_DEFAULT_GUI_FONT, 17).
+-define(wxSYS_ICONTITLE_FONT, ?wxSYS_DEFAULT_GUI_FONT).
+% Type wxSystemMetric
+-define(wxSYS_MOUSE_BUTTONS, 1).
+-define(wxSYS_BORDER_X, 2).
+-define(wxSYS_BORDER_Y, 3).
+-define(wxSYS_CURSOR_X, 4).
+-define(wxSYS_CURSOR_Y, 5).
+-define(wxSYS_DCLICK_X, 6).
+-define(wxSYS_DCLICK_Y, 7).
+-define(wxSYS_DRAG_X, 8).
+-define(wxSYS_DRAG_Y, 9).
+-define(wxSYS_EDGE_X, 10).
+-define(wxSYS_EDGE_Y, 11).
+-define(wxSYS_HSCROLL_ARROW_X, 12).
+-define(wxSYS_HSCROLL_ARROW_Y, 13).
+-define(wxSYS_HTHUMB_X, 14).
+-define(wxSYS_ICON_X, 15).
+-define(wxSYS_ICON_Y, 16).
+-define(wxSYS_ICONSPACING_X, 17).
+-define(wxSYS_ICONSPACING_Y, 18).
+-define(wxSYS_WINDOWMIN_X, 19).
+-define(wxSYS_WINDOWMIN_Y, 20).
+-define(wxSYS_SCREEN_X, 21).
+-define(wxSYS_SCREEN_Y, 22).
+-define(wxSYS_FRAMESIZE_X, 23).
+-define(wxSYS_FRAMESIZE_Y, 24).
+-define(wxSYS_SMALLICON_X, 25).
+-define(wxSYS_SMALLICON_Y, 26).
+-define(wxSYS_HSCROLL_Y, 27).
+-define(wxSYS_VSCROLL_X, 28).
+-define(wxSYS_VSCROLL_ARROW_X, 29).
+-define(wxSYS_VSCROLL_ARROW_Y, 30).
+-define(wxSYS_VTHUMB_Y, 31).
+-define(wxSYS_CAPTION_Y, 32).
+-define(wxSYS_MENU_Y, 33).
+-define(wxSYS_NETWORK_PRESENT, 34).
+-define(wxSYS_PENWINDOWS_PRESENT, 35).
+-define(wxSYS_SHOW_SOUNDS, 36).
+-define(wxSYS_SWAP_BUTTONS, 37).
+% Type wxSystemScreenType
+-define(wxSYS_SCREEN_NONE, 0).
+-define(wxSYS_SCREEN_TINY, 1).
+-define(wxSYS_SCREEN_PDA, 2).
+-define(wxSYS_SCREEN_SMALL, 3).
+-define(wxSYS_SCREEN_DESKTOP, 4).
+% Type wxTextAttrAlignment
+-define(wxTEXT_ALIGNMENT_DEFAULT, 0).
+-define(wxTEXT_ALIGNMENT_LEFT, 1).
+-define(wxTEXT_ALIGNMENT_CENTRE, 2).
+-define(wxTEXT_ALIGNMENT_CENTER, ?wxTEXT_ALIGNMENT_CENTRE).
+-define(wxTEXT_ALIGNMENT_RIGHT, (?wxTEXT_ALIGNMENT_CENTRE+1)).
+-define(wxTEXT_ALIGNMENT_JUSTIFIED, (?wxTEXT_ALIGNMENT_CENTRE+2)).
+% Type wxTextCtrlHitTestResult
+-define(wxTE_HT_UNKNOWN, -2).
+-define(wxTE_HT_BEFORE, -1).
+-define(wxTE_HT_ON_TEXT, 0).
+-define(wxTE_HT_BELOW, 1).
+-define(wxTE_HT_BEYOND, 2).
+% Type wxToolBarToolStyle
+-define(wxTOOL_STYLE_BUTTON, 1).
+-define(wxTOOL_STYLE_SEPARATOR, 2).
+-define(wxTOOL_STYLE_CONTROL, 3).
+% Type wxTreeItemIcon
+-define(wxTreeItemIcon_Normal, 0).
+-define(wxTreeItemIcon_Selected, 1).
+-define(wxTreeItemIcon_Expanded, 2).
+-define(wxTreeItemIcon_SelectedExpanded, 3).
+-define(wxTreeItemIcon_Max, 4).
+% Type wxUpdateUI
+-define(wxUPDATE_UI_NONE, 0).
+-define(wxUPDATE_UI_RECURSE, 1).
+-define(wxUPDATE_UI_FROMIDLE, 2).
+% Type wxUpdateUIMode
+-define(wxUPDATE_UI_PROCESS_ALL, 0).
+-define(wxUPDATE_UI_PROCESS_SPECIFIED, 1).
+% Type wxWindowVariant
+-define(wxWINDOW_VARIANT_NORMAL, 0).
+-define(wxWINDOW_VARIANT_SMALL, 1).
+-define(wxWINDOW_VARIANT_MINI, 2).
+-define(wxWINDOW_VARIANT_LARGE, 3).
+-define(wxWINDOW_VARIANT_MAX, 4).
+% Type wxXmlResourceFlags
+-define(wxXRC_USE_LOCALE, 1).
+-define(wxXRC_NO_SUBCLASSING, 2).
+-define(wxXRC_NO_RELOADING, 4).
diff --git a/lib/wx/info b/lib/wx/info
new file mode 100644
index 0000000000..05982e7318
--- /dev/null
+++ b/lib/wx/info
@@ -0,0 +1,2 @@
+group: comm
+short: A Graphics System used to write platform independent user interfaces
diff --git a/lib/wx/install.es b/lib/wx/install.es
new file mode 100755
index 0000000000..2811c7728c
--- /dev/null
+++ b/lib/wx/install.es
@@ -0,0 +1,302 @@
+#!/usr/bin/env escript
+%% -*- erlang -*-
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+%% Install wx to an erlang distribution.
+%%
+
+-module('install_es'). %% Temp workaround for buggy escript
+-mode(compile).
+
+usage() ->
+ io:format("install [Opts] [InstallDir]~n",[]),
+ io:format(" -v verbose~n",[]),
+ io:format(" -q quiet and direct no questions~n",[]),
+ io:format(" --create_release To create a release~n~n",[]),
+ ok.
+
+main([]) ->
+ IDir = filename:join(code:root_dir(),"lib"),
+ install(IDir),
+ ok;
+main(Opts) ->
+ IDir = options(Opts),
+ install(IDir),
+ ok.
+
+install_files() ->
+ [{[], {files, ["README","TODO", "Notes", "license.terms"]}},
+ {[src], {list, "*.?rl"}},
+ {[include], {list, "*.hrl"}},
+ {[src,gen], {list, "*.?rl"}},
+ {[test], {list, "*.?rl"}},
+ {[test], {list, "*.bmp"}},
+ {[test], {files, ["wxt", "Readme"]}},
+ {[samples], {files, ["sample.xpm"]}},
+ {[samples,menu], {files, ["copy.xpm"]}},
+ {[samples,'*'], {list, "*.?rl"}},
+ {[demos,'*'], {list, "*.?rl"}},
+ {[demos,xrc,rc], {list, "*"}},
+ {[doc,html], {files, ["edoc-info", "erlang.png", "stylesheet.css"]}}
+ ].
+
+built_files(SrcDir, Type) ->
+ Dirs = [{[doc], {list, "*.html"}},
+ {[ebin], {list, "*"}},
+ {[test], {list, "*.beam"}},
+ {[demos,'*'], {list, "*.beam"}},
+ {[samples,'*'], {list, "*.beam"}}],
+ case Type of
+ install ->
+ [{[priv,'*'], {list, "*"}}|Dirs];
+ _ -> %% Create Rel
+ Win32 = [{[priv,win32], {list, "*"}}| Dirs],
+ case filelib:wildcard("i386-apple*",
+ filename:join(SrcDir, "priv")) of
+ [Mac] ->
+ [{[priv,list_to_atom(Mac)], {list, "*"}}|Win32];
+ [] ->
+ io:format("WARNING: Missing Mac driver!~n",[]),
+ Win32
+ end
+ end.
+
+release_files() ->
+ [{[], {files, ["configure.in","Makefile","wxwin.m4", "config.mk.in", "vsn.mk"]}},
+ {[], {files, ["configure", "install.es"]}},
+ {[autoconf], {files, ["config.guess","config.sub","install-sh"]}},
+ {[src], {files, ["Makefile"]}},
+ {[c_src], {files, ["Makefile.in"]}},
+ {[c_src], {list, "*.c*"}},
+ {[c_src], {list, "*.h"}},
+ {[c_src,gen], {list, "*.cpp"}},
+ {[c_src,gen], {list, "*.h"}},
+ {[doc], {files, ["overview.edoc"]}},
+ {[doc,src], {files, ["Makefile"]}},
+ {[test], {files, ["Makefile"]}},
+%% {[demos], {files, ["Makefile"]}},
+%% {[demos,'*'], {files, ["Makefile"]}},
+%% {[samples], {files, ["Makefile"]}},
+%% {[samples,'*'], {files, ["Makefile"]}},
+ {[api_gen], {list, "*.?rl"}},
+ {[api_gen], {list, "*.conf"}},
+ {[api_gen], {files, ["Makefile", "README"]}},
+ {[api_gen, wx_extra], {list, "*"}}
+ ].
+
+options(["-v"|Os]) ->
+ put(verbose,true),
+ options(Os);
+options(["-q"|Os]) ->
+ put(quiet,true),
+ options(Os);
+options(["--help"|_]) ->
+ usage(),
+ halt(0);
+options(["-h"|_]) ->
+ usage(),
+ halt(0);
+options(["--create_release"|Os]) ->
+ put(create_release,true),
+ options(Os);
+options(["-" ++_ |_Os]) ->
+ usage(),
+ halt(1);
+options([Dir]) -> Dir;
+options([]) ->
+ filename:join(code:root_dir(),"lib").
+
+install(Dir) ->
+ try
+ case get(create_release) of
+ true -> create_release();
+ _ -> install2(Dir)
+ end
+ catch E:R ->
+ io:format("Error ~p:~p in ~n ~p~n",[E,R, erlang:get_stacktrace()])
+ end.
+
+install2(IDir) ->
+ SrcD = get_src_dir(),
+ Ver = get_version(SrcD),
+ case get(quiet) of
+ true ->
+ copy_files(SrcD, filename:append(IDir,Ver)),
+ ok;
+ _ ->
+ io:format("Installing ~p~n From ~p to ~p ~n",[Ver,SrcD,IDir]),
+ case is_ok('ok [y|n]? ',[y,n]) of
+ y ->
+ copy_files(SrcD, filename:append(IDir,Ver)),
+ io:format("Install complete~n",[]),
+ ok;
+ n ->
+ usage(),
+ halt(1)
+ end
+ end.
+
+copy_files(FromD, ToD) ->
+ Fs = install_files() ++ built_files(FromD, install),
+ Copy = fun(File, From, To, Acc) ->
+ ensure_dir(To),
+ case file:copy(filename:join(From,File),
+ filename:join(To,File)) of
+ {ok, _Bytes} ->
+ [File|Acc];
+ {error,_} ->
+ io:format("ERROR Could not install file: ~p in~n ~p~n",
+ [filename:join(From,File),
+ filename:join(To,File)]),
+ Acc
+ end
+ end,
+ [expand_dirs(Dir,Files,FromD,ToD,Copy,[]) || {Dir,Files} <- Fs].
+
+expand_dirs(['*'|Ds],Fs,From,To,Fun,Acc) ->
+ All = filelib:wildcard("[A-Za-z]*", From),
+ Filter = fun(F) -> filelib:is_dir(filename:join(From,F)) end,
+ Dirs = lists:filter(Filter, All),
+ lists:foldl(fun(Dir,Nacc) ->
+ expand_dirs([Dir|Ds],Fs,From,To,Fun,Nacc)
+ end,
+ Acc, Dirs);
+expand_dirs([Dir|Ds],Fs,From,To,Fun,Acc) ->
+ expand_dirs(Ds,Fs,filename:join(From,Dir),filename:join(To,Dir),Fun,Acc);
+expand_dirs([],Fs,From,To,Fun,Acc) ->
+ expand_files(Fs,From,To,Fun,Acc).
+
+expand_files({files,Fs},From,To,Fun,Acc) ->
+ case get(verbose) of
+ true -> io:format(" Check dir ~p to ~p~n", [From,To]);
+ _ -> ok
+ end,
+ expand_files2(Fs,From,To,Fun,Acc);
+expand_files({list,WildCard},From,To,Fun,Acc) ->
+ All = filelib:wildcard(WildCard, From),
+ Filter = fun(F) -> filelib:is_regular(filename:join(From,F)) end,
+ Fs = lists:filter(Filter, All),
+ case get(verbose) of
+ true -> io:format(" Check dir ~p to ~p~n", [From,To]);
+ _ -> ok
+ end,
+ expand_files2(Fs,From,To,Fun,Acc).
+
+expand_files2(Fs,From,To,Fun,PrevAcc) ->
+ lists:foldl(fun(File, Acc) -> Fun(File, From, To, Acc) end, PrevAcc, Fs).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+create_release() ->
+ All = release_files() ++ install_files(),
+ SrcD = get_src_dir(),
+ Ver = "wx-" ++ get_version(SrcD),
+ io:format("Create release ~p~n From ~p ~n",[Ver,SrcD]),
+ case is_ok('ok [y|n]? ',[y,n]) of
+ y ->
+ List = fun(File, From, To, Acc) ->
+ case filelib:is_regular(filename:join(From,File)) of
+ true ->
+ [{filename:join(To, File),
+ filename:join(From,File)}|Acc];
+ false ->
+ io:format("Warning: File ~s/~s is missing~n",[From,File]),
+ Acc
+ end
+ end,
+ Expand = fun({Dir,Fs},Acc) ->
+ expand_dirs(Dir,Fs,SrcD,Ver,List,Acc)
+ end,
+ Files = lists:foldl(Expand,[], All),
+ ok = erl_tar:create(Ver ++ ".src.tar.gz", Files, [compressed]),
+ BuiltDir = built_files(SrcD, create_release),
+ BuiltFs = lists:foldl(Expand,[], BuiltDir),
+ ok = erl_tar:create(Ver ++ ".built.tar.gz",
+ Files ++ BuiltFs,
+ [compressed]),
+ ok;
+ n ->
+ usage()
+ end.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+is_ok(Str, Answers) ->
+ {ok, [Ans]} = io:fread(Str, "~a"),
+ case lists:member(Ans, Answers) of
+ true -> Ans;
+ false ->
+ io:format("Please answer ~p~n",[Answers]),
+ is_ok(Str,Answers)
+ end.
+
+
+ensure_dir(To) ->
+ case filelib:ensure_dir(filename:join(To, "dummy")) of
+ ok -> ok;
+ Error ->
+ io:format("Error ~p in ~p ~n",[Error, To]),
+ halt(1)
+ end.
+
+get_version(Dir) ->
+ %% Have we installed this from a release
+ %% get the directory name
+ DateVariant =
+ fun() ->
+ {_,Month,Day} = erlang:date(),
+ Date = io_lib:format("~.2.0w~.2.0w",[Month,Day]),
+ {ok, Bin} = file:read_file("vsn.mk"),
+ Opt = [{capture, all_but_first, list}],
+ case re:run(Bin, "WX_VSN\s*=\s*(.*)", Opt) of
+ {match, [Ver]} ->
+ lists:flatten([Ver,"."|Date]);
+ _ ->
+ lists:flatten(["wx-0.98."|Date])
+ end
+ end,
+ case Dir of
+ "." ->
+ %% Installing from src without a release
+ DateVariant();
+ Dir ->
+ Base = filename:basename(Dir),
+ case string:tokens(Base, "-.") of
+ ["wx", Ma, Mi|_]
+ when is_integer(Ma),is_integer(Mi) ->
+ Base;
+ _ ->
+ DateVariant()
+ end
+ end.
+
+%% Get src dir of installation
+get_src_dir() ->
+ Escript = escript:script_name(),
+ Abs = filename:dirname(filename:absname(Escript)),
+ Test = filename:join(Abs, "README"),
+ case file:read_file(Test) of
+ {ok, _} -> ok;
+ {error, enoent} ->
+ io:format("Error couldn't read ~s ~n",[Test]),
+ halt(1)
+ end,
+ Abs.
+
+
diff --git a/lib/wx/license.terms b/lib/wx/license.terms
new file mode 100644
index 0000000000..36aa84e332
--- /dev/null
+++ b/lib/wx/license.terms
@@ -0,0 +1,286 @@
+ERLANG PUBLIC LICENSE
+Version 1.1
+
+1. Definitions.
+
+1.1. ``Contributor'' means each entity that creates or contributes to
+the creation of Modifications.
+
+1.2. ``Contributor Version'' means the combination of the Original
+Code, prior Modifications used by a Contributor, and the Modifications
+made by that particular Contributor.
+
+1.3. ``Covered Code'' means the Original Code or Modifications or the
+combination of the Original Code and Modifications, in each case
+including portions thereof.
+
+1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
+accepted in the software development community for the electronic
+transfer of data.
+
+1.5. ``Executable'' means Covered Code in any form other than Source
+Code.
+
+1.6. ``Initial Developer'' means the individual or entity identified
+as the Initial Developer in the Source Code notice required by Exhibit
+A.
+
+1.7. ``Larger Work'' means a work which combines Covered Code or
+portions thereof with code not governed by the terms of this License.
+
+1.8. ``License'' means this document.
+
+1.9. ``Modifications'' means any addition to or deletion from the
+substance or structure of either the Original Code or any previous
+Modifications. When Covered Code is released as a series of files, a
+Modification is:
+
+A. Any addition to or deletion from the contents of a file containing
+ Original Code or previous Modifications.
+
+B. Any new file that contains any part of the Original Code or
+ previous Modifications.
+
+1.10. ``Original Code'' means Source Code of computer software code
+which is described in the Source Code notice required by Exhibit A as
+Original Code, and which, at the time of its release under this
+License is not already Covered Code governed by this License.
+
+1.11. ``Source Code'' means the preferred form of the Covered Code for
+making modifications to it, including all modules it contains, plus
+any associated interface definition files, scripts used to control
+compilation and installation of an Executable, or a list of source
+code differential comparisons against either the Original Code or
+another well known, available Covered Code of the Contributor's
+choice. The Source Code can be in a compressed or archival form,
+provided the appropriate decompression or de-archiving software is
+widely available for no charge.
+
+1.12. ``You'' means an individual or a legal entity exercising rights
+under, and complying with all of the terms of, this License. For legal
+entities,``You'' includes any entity which controls, is controlled by,
+or is under common control with You. For purposes of this definition,
+``control'' means (a) the power, direct or indirect, to cause the
+direction or management of such entity, whether by contract or
+otherwise, or (b) ownership of fifty percent (50%) or more of the
+outstanding shares or beneficial ownership of such entity.
+
+2. Source Code License.
+
+2.1. The Initial Developer Grant.
+The Initial Developer hereby grants You a world-wide, royalty-free,
+non-exclusive license, subject to third party intellectual property
+claims:
+
+(a) to use, reproduce, modify, display, perform, sublicense and
+ distribute the Original Code (or portions thereof) with or without
+ Modifications, or as part of a Larger Work; and
+
+(b) under patents now or hereafter owned or controlled by Initial
+ Developer, to make, have made, use and sell (``Utilize'') the
+ Original Code (or portions thereof), but solely to the extent that
+ any such patent is reasonably necessary to enable You to Utilize
+ the Original Code (or portions thereof) and not to any greater
+ extent that may be necessary to Utilize further Modifications or
+ combinations.
+
+2.2. Contributor Grant.
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license, subject to third party intellectual property
+claims:
+
+(a) to use, reproduce, modify, display, perform, sublicense and
+ distribute the Modifications created by such Contributor (or
+ portions thereof) either on an unmodified basis, with other
+ Modifications, as Covered Code or as part of a Larger Work; and
+
+(b) under patents now or hereafter owned or controlled by Contributor,
+ to Utilize the Contributor Version (or portions thereof), but
+ solely to the extent that any such patent is reasonably necessary
+ to enable You to Utilize the Contributor Version (or portions
+ thereof), and not to any greater extent that may be necessary to
+ Utilize further Modifications or combinations.
+
+3. Distribution Obligations.
+
+3.1. Application of License.
+The Modifications which You contribute are governed by the terms of
+this License, including without limitation Section 2.2. The Source
+Code version of Covered Code may be distributed only under the terms
+of this License, and You must include a copy of this License with
+every copy of the Source Code You distribute. You may not offer or
+impose any terms on any Source Code version that alters or restricts
+the applicable version of this License or the recipients' rights
+hereunder. However, You may include an additional document offering
+the additional rights described in Section 3.5.
+
+3.2. Availability of Source Code.
+Any Modification which You contribute must be made available in Source
+Code form under the terms of this License either on the same media as
+an Executable version or via an accepted Electronic Distribution
+Mechanism to anyone to whom you made an Executable version available;
+and if made available via Electronic Distribution Mechanism, must
+remain available for at least twelve (12) months after the date it
+initially became available, or at least six (6) months after a
+subsequent version of that particular Modification has been made
+available to such recipients. You are responsible for ensuring that
+the Source Code version remains available even if the Electronic
+Distribution Mechanism is maintained by a third party.
+
+3.3. Description of Modifications.
+You must cause all Covered Code to which you contribute to contain a
+file documenting the changes You made to create that Covered Code and
+the date of any change. You must include a prominent statement that
+the Modification is derived, directly or indirectly, from Original
+Code provided by the Initial Developer and including the name of the
+Initial Developer in (a) the Source Code, and (b) in any notice in an
+Executable version or related documentation in which You describe the
+origin or ownership of the Covered Code.
+
+3.4. Intellectual Property Matters
+
+(a) Third Party Claims.
+ If You have knowledge that a party claims an intellectual property
+ right in particular functionality or code (or its utilization
+ under this License), you must include a text file with the source
+ code distribution titled ``LEGAL'' which describes the claim and
+ the party making the claim in sufficient detail that a recipient
+ will know whom to contact. If you obtain such knowledge after You
+ make Your Modification available as described in Section 3.2, You
+ shall promptly modify the LEGAL file in all copies You make
+ available thereafter and shall take other steps (such as notifying
+ appropriate mailing lists or newsgroups) reasonably calculated to
+ inform those who received the Covered Code that new knowledge has
+ been obtained.
+
+(b) Contributor APIs.
+ If Your Modification is an application programming interface and
+ You own or control patents which are reasonably necessary to
+ implement that API, you must also include this information in the
+ LEGAL file.
+
+3.5. Required Notices.
+You must duplicate the notice in Exhibit A in each file of the Source
+Code, and this License in any documentation for the Source Code, where
+You describe recipients' rights relating to Covered Code. If You
+created one or more Modification(s), You may add your name as a
+Contributor to the notice described in Exhibit A. If it is not
+possible to put such notice in a particular Source Code file due to
+its structure, then you must include such notice in a location (such
+as a relevant directory file) where a user would be likely to look for
+such a notice. You may choose to offer, and to charge a fee for,
+warranty, support, indemnity or liability obligations to one or more
+recipients of Covered Code. However, You may do so only on Your own
+behalf, and not on behalf of the Initial Developer or any
+Contributor. You must make it absolutely clear than any such warranty,
+support, indemnity or liability obligation is offered by You alone,
+and You hereby agree to indemnify the Initial Developer and every
+Contributor for any liability incurred by the Initial Developer or
+such Contributor as a result of warranty, support, indemnity or
+liability terms You offer.
+
+3.6. Distribution of Executable Versions.
+You may distribute Covered Code in Executable form only if the
+requirements of Section 3.1-3.5 have been met for that Covered Code,
+and if You include a notice stating that the Source Code version of
+the Covered Code is available under the terms of this License,
+including a description of how and where You have fulfilled the
+obligations of Section 3.2. The notice must be conspicuously included
+in any notice in an Executable version, related documentation or
+collateral in which You describe recipients' rights relating to the
+Covered Code. You may distribute the Executable version of Covered
+Code under a license of Your choice, which may contain terms different
+from this License, provided that You are in compliance with the terms
+of this License and that the license for the Executable version does
+not attempt to limit or alter the recipient's rights in the Source
+Code version from the rights set forth in this License. If You
+distribute the Executable version under a different license You must
+make it absolutely clear that any terms which differ from this License
+are offered by You alone, not by the Initial Developer or any
+Contributor. You hereby agree to indemnify the Initial Developer and
+every Contributor for any liability incurred by the Initial Developer
+or such Contributor as a result of any such terms You offer.
+
+3.7. Larger Works.
+You may create a Larger Work by combining Covered Code with other code
+not governed by the terms of this License and distribute the Larger
+Work as a single product. In such a case, You must make sure the
+requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Code due to statute
+or regulation then You must: (a) comply with the terms of this License
+to the maximum extent possible; and (b) describe the limitations and
+the code they affect. Such description must be included in the LEGAL
+file described in Section 3.4 and must be included with all
+distributions of the Source Code. Except to the extent prohibited by
+statute or regulation, such description must be sufficiently detailed
+for a recipient of ordinary skill to be able to understand it.
+
+5. Application of this License.
+
+This License applies to code to which the Initial Developer has
+attached the notice in Exhibit A, and to related Covered Code.
+
+6. CONNECTION TO MOZILLA PUBLIC LICENSE
+
+This Erlang License is a derivative work of the Mozilla Public
+License, Version 1.0. It contains terms which differ from the Mozilla
+Public License, Version 1.0.
+
+7. DISCLAIMER OF WARRANTY.
+
+COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
+WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
+NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
+THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE
+IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER
+CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR
+CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART
+OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER
+EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+This License and the rights granted hereunder will terminate
+automatically if You fail to comply with terms herein and fail to cure
+such breach within 30 days of becoming aware of the breach. All
+sublicenses to the Covered Code which are properly granted shall
+survive any termination of this License. Provisions which, by their
+nature, must remain in effect beyond the termination of this License
+shall survive.
+
+9. DISCLAIMER OF LIABILITY
+Any utilization of Covered Code shall not cause the Initial Developer
+or any Contributor to be liable for any damages (neither direct nor
+indirect).
+
+10. MISCELLANEOUS
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision is held to be unenforceable, such
+provision shall be reformed only to the extent necessary to make it
+enforceable. This License shall be construed by and in accordance with
+the substantive laws of Sweden. Any dispute, controversy or claim
+arising out of or relating to this License, or the breach, termination
+or invalidity thereof, shall be subject to the exclusive jurisdiction
+of Swedish courts, with the Stockholm City Court as the first
+instance.
+
+EXHIBIT A.
+
+``The contents of this file are subject to the Erlang Public License,
+Version 1.1, (the "License"); you may not use this file except in
+compliance with the License. You should have received a copy of the
+Erlang Public License along with this software. If not, it can be
+retrieved via the world wide web at http://www.erlang.org/.
+
+Software distributed under the License is distributed on an "AS IS"
+basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+the License for the specific language governing rights and limitations
+under the License.
+
+The Initial Developer of the Original Code is Ericsson Utvecklings AB.
+Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
+AB. All Rights Reserved.''
diff --git a/lib/wx/prebuild.skip b/lib/wx/prebuild.skip
new file mode 100644
index 0000000000..d79053c51e
--- /dev/null
+++ b/lib/wx/prebuild.skip
@@ -0,0 +1,2 @@
+config.mk
+c_src/Makefile
diff --git a/lib/wx/priv/erlang-logo32.png b/lib/wx/priv/erlang-logo32.png
new file mode 100644
index 0000000000..a4afed8140
--- /dev/null
+++ b/lib/wx/priv/erlang-logo32.png
Binary files differ
diff --git a/lib/wx/priv/erlang-logo64.png b/lib/wx/priv/erlang-logo64.png
new file mode 100644
index 0000000000..91dfbbab53
--- /dev/null
+++ b/lib/wx/priv/erlang-logo64.png
Binary files differ
diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile
new file mode 100644
index 0000000000..6c636bb51f
--- /dev/null
+++ b/lib/wx/src/Makefile
@@ -0,0 +1,103 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../vsn.mk
+include ../config.mk
+
+ESRC = .
+EGEN = gen
+EBIN = ../ebin
+ERLC = erlc
+ERLINC = ../include
+ERL_COMPILE_FLAGS += -I$(ERLINC) +warn_unused_vars
+
+ARCHIVE = wx-$(VSN).ez
+
+ErlMods = \
+ wx \
+ wx_object \
+ wxe_master \
+ wxe_server \
+ wxe_util
+
+ERL_FILES = $(ErlMods:%=%.erl)
+
+HRL_FILES = wxe.hrl
+
+GEN_FILES = $(wildcard gen/wx*.erl) \
+ gen/glu.erl \
+ gen/gl.erl
+
+GEN_HRL = \
+ $(EGEN)/gl_debug.hrl \
+ $(EGEN)/wxe_debug.hrl \
+ $(EGEN)/wxe_funcs.hrl
+
+EXT_HRL = $(ERLINC)/wx.hrl \
+ $(ERLINC)/gl.hrl \
+ $(ERLINC)/glu.hrl
+
+TARGET_FILES = $(ErlMods:%=$(EBIN)/%.beam) $(GEN_FILES:gen/%.erl=$(EBIN)/%.beam)
+HEADER_FILES = $(HRL_FILES) $(GEN_HRL) $(EXT_HRL)
+
+# Targets
+debug opt: $(TARGET_FILES)
+
+clean:
+ rm -f $(TARGET_FILES)
+ rm -f *~
+
+complete_clean:
+ rm -f $(TARGET_FILES)
+ rm -f $(GEN_FILES)
+ rm -f $(GenHrl)
+ rm -f *~
+ rm -f Makefile
+
+docs:
+
+archive: opt
+ (cd ../..; zip -0 wx/$(ARCHIVE) wx wx/ebin wx/ebin/*)
+
+
+# Rules
+$(EBIN)/%.beam: $(ESRC)/%.erl $(HEADER_FILES)
+ $(ERLC) -W -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
+
+$(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES)
+ $(ERLC) -W -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
+
+# ----------------------------------------------------
+# Release Target
+# ----------------------------------------------------
+ifeq ($(INSIDE_ERLSRC), true)
+include $(ERL_TOP)/make/otp_release_targets.mk
+release_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)/src
+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) $(RELSYSDIR)/src
+ $(INSTALL_DIR) $(RELSYSDIR)/src/gen
+ $(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) $(RELSYSDIR)/src/gen
+ $(INSTALL_DIR) $(RELSYSDIR)/include
+ $(INSTALL_DATA) $(EXT_HRL) $(RELSYSDIR)/include
+ $(INSTALL_DIR) $(RELSYSDIR)/ebin
+ $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
+# $(INSTALL_DATA) ../$(ARCHIVE) $(RELEASE_PATH)/lib
+
+release_docs_spec:
+endif
diff --git a/lib/wx/src/gen/gl.erl b/lib/wx/src/gen/gl.erl
new file mode 100644
index 0000000000..8220acad98
--- /dev/null
+++ b/lib/wx/src/gen/gl.erl
@@ -0,0 +1,4034 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% OPENGL API
+
+%% This file is generated DO NOT EDIT
+
+%% @doc Standard OpenGL api.
+%% See <a href="http://www.opengl.org/sdk/docs/man/">www.opengl.org</a>
+%%
+%% Booleans are represented by integers 0 and 1.
+
+%% @type wx_mem(). see wx.erl on memory allocation functions
+%% @type enum(). An integer defined in gl.hrl
+%% @type offset(). An integer which is an offset in an array
+%% @type clamp(). A float clamped between 0.0 - 1.0
+-module(gl).
+
+-compile(inline).
+-include("wxe.hrl").
+-define(GLenum,32/native-unsigned).
+-define(GLboolean,8/native-unsigned).
+-define(GLbitfield,32/native-unsigned).
+-define(GLbyte,8/native-signed).
+-define(GLshort,16/native-signed).
+-define(GLint,32/native-signed).
+-define(GLubyte,8/native-unsigned).
+-define(GLushort,16/native-unsigned).
+-define(GLuint,32/native-unsigned).
+-define(GLsizei,32/native-signed).
+-define(GLfloat,32/native-float).
+-define(GLclampf,32/native-float).
+-define(GLdouble,64/native-float).
+-define(GLclampd,64/native-float).
+-define(GLsizeiptr,64/native-unsigned).
+-define(GLintptr,64/native-unsigned).
+-define(GLUquadric,64/native-unsigned).
+-define(GLhandleARB,64/native-unsigned).
+
+-export([accum/2,alphaFunc/2,areTexturesResident/1,arrayElement/1,'begin'/1,
+ bindTexture/2,bitmap/7,blendFunc/2,callList/1,callLists/1,clear/1,clearAccum/4,
+ clearColor/4,clearDepth/1,clearIndex/1,clearStencil/1,clipPlane/2,
+ color3b/3,color3bv/1,color3d/3,color3dv/1,color3f/3,color3fv/1,color3i/3,
+ color3iv/1,color3s/3,color3sv/1,color3ub/3,color3ubv/1,color3ui/3,color3uiv/1,
+ color3us/3,color3usv/1,color4b/4,color4bv/1,color4d/4,color4dv/1,color4f/4,
+ color4fv/1,color4i/4,color4iv/1,color4s/4,color4sv/1,color4ub/4,color4ubv/1,
+ color4ui/4,color4uiv/1,color4us/4,color4usv/1,colorMask/4,colorMaterial/2,
+ colorPointer/4,copyPixels/5,copyTexImage1D/7,copyTexImage2D/8,copyTexSubImage1D/6,
+ copyTexSubImage2D/8,cullFace/1,deleteLists/2,deleteTextures/1,depthFunc/1,
+ depthMask/1,depthRange/2,disable/1,disableClientState/1,drawArrays/3,
+ drawBuffer/1,drawElements/4,drawPixels/5,edgeFlag/1,edgeFlagPointer/2,
+ edgeFlagv/1,enable/1,enableClientState/1,'end'/0,endList/0,evalCoord1d/1,
+ evalCoord1dv/1,evalCoord1f/1,evalCoord1fv/1,evalCoord2d/2,evalCoord2dv/1,
+ evalCoord2f/2,evalCoord2fv/1,evalMesh1/3,evalMesh2/5,evalPoint1/1,
+ evalPoint2/2,feedbackBuffer/3,finish/0,flush/0,fogf/2,fogfv/2,fogi/2,
+ fogiv/2,frontFace/1,frustum/6,genLists/1,genTextures/1,getBooleanv/1,
+ getClipPlane/1,getDoublev/1,getError/0,getFloatv/1,getIntegerv/1,getLightfv/2,
+ getLightiv/2,getMapdv/3,getMapfv/3,getMapiv/3,getMaterialfv/2,getMaterialiv/2,
+ getPixelMapfv/2,getPixelMapuiv/2,getPixelMapusv/2,getPolygonStipple/0,
+ getString/1,getTexEnvfv/2,getTexEnviv/2,getTexGendv/2,getTexGenfv/2,
+ getTexGeniv/2,getTexImage/5,getTexLevelParameterfv/3,getTexLevelParameteriv/3,
+ getTexParameterfv/2,getTexParameteriv/2,hint/2,indexMask/1,indexPointer/3,
+ indexd/1,indexdv/1,indexf/1,indexfv/1,indexi/1,indexiv/1,indexs/1,indexsv/1,
+ indexub/1,indexubv/1,initNames/0,interleavedArrays/3,isEnabled/1,isList/1,
+ isTexture/1,lightModelf/2,lightModelfv/2,lightModeli/2,lightModeliv/2,
+ lightf/3,lightfv/3,lighti/3,lightiv/3,lineStipple/2,lineWidth/1,listBase/1,
+ loadIdentity/0,loadMatrixd/1,loadMatrixf/1,loadName/1,logicOp/1,map1d/6,
+ map1f/6,map2d/10,map2f/10,mapGrid1d/3,mapGrid1f/3,mapGrid2d/6,mapGrid2f/6,
+ materialf/3,materialfv/3,materiali/3,materialiv/3,matrixMode/1,multMatrixd/1,
+ multMatrixf/1,newList/2,normal3b/3,normal3bv/1,normal3d/3,normal3dv/1,
+ normal3f/3,normal3fv/1,normal3i/3,normal3iv/1,normal3s/3,normal3sv/1,
+ normalPointer/3,ortho/6,passThrough/1,pixelMapfv/3,pixelMapuiv/3,pixelMapusv/3,
+ pixelStoref/2,pixelStorei/2,pixelTransferf/2,pixelTransferi/2,pixelZoom/2,
+ pointSize/1,polygonMode/2,polygonOffset/2,polygonStipple/1,popAttrib/0,
+ popClientAttrib/0,popMatrix/0,popName/0,prioritizeTextures/2,pushAttrib/1,
+ pushClientAttrib/1,pushMatrix/0,pushName/1,rasterPos2d/2,rasterPos2dv/1,
+ rasterPos2f/2,rasterPos2fv/1,rasterPos2i/2,rasterPos2iv/1,rasterPos2s/2,
+ rasterPos2sv/1,rasterPos3d/3,rasterPos3dv/1,rasterPos3f/3,rasterPos3fv/1,
+ rasterPos3i/3,rasterPos3iv/1,rasterPos3s/3,rasterPos3sv/1,rasterPos4d/4,
+ rasterPos4dv/1,rasterPos4f/4,rasterPos4fv/1,rasterPos4i/4,rasterPos4iv/1,
+ rasterPos4s/4,rasterPos4sv/1,readBuffer/1,readPixels/7,rectd/4,rectdv/2,
+ rectf/4,rectfv/2,recti/4,rectiv/2,rects/4,rectsv/2,renderMode/1,rotated/4,
+ rotatef/4,scaled/3,scalef/3,scissor/4,selectBuffer/2,shadeModel/1,stencilFunc/3,
+ stencilMask/1,stencilOp/3,texCoord1d/1,texCoord1dv/1,texCoord1f/1,
+ texCoord1fv/1,texCoord1i/1,texCoord1iv/1,texCoord1s/1,texCoord1sv/1,
+ texCoord2d/2,texCoord2dv/1,texCoord2f/2,texCoord2fv/1,texCoord2i/2,
+ texCoord2iv/1,texCoord2s/2,texCoord2sv/1,texCoord3d/3,texCoord3dv/1,
+ texCoord3f/3,texCoord3fv/1,texCoord3i/3,texCoord3iv/1,texCoord3s/3,
+ texCoord3sv/1,texCoord4d/4,texCoord4dv/1,texCoord4f/4,texCoord4fv/1,
+ texCoord4i/4,texCoord4iv/1,texCoord4s/4,texCoord4sv/1,texCoordPointer/4,
+ texEnvf/3,texEnvfv/3,texEnvi/3,texEnviv/3,texGend/3,texGendv/3,texGenf/3,
+ texGenfv/3,texGeni/3,texGeniv/3,texImage1D/8,texImage2D/9,texParameterf/3,
+ texParameterfv/3,texParameteri/3,texParameteriv/3,texSubImage1D/7,
+ texSubImage2D/9,translated/3,translatef/3,vertex2d/2,vertex2dv/1,vertex2f/2,
+ vertex2fv/1,vertex2i/2,vertex2iv/1,vertex2s/2,vertex2sv/1,vertex3d/3,
+ vertex3dv/1,vertex3f/3,vertex3fv/1,vertex3i/3,vertex3iv/1,vertex3s/3,
+ vertex3sv/1,vertex4d/4,vertex4dv/1,vertex4f/4,vertex4fv/1,vertex4i/4,
+ vertex4iv/1,vertex4s/4,vertex4sv/1,vertexPointer/4,viewport/4,blendColor/4,
+ blendEquation/1,drawRangeElements/6,texImage3D/10,texSubImage3D/11,
+ copyTexSubImage3D/9,colorTable/6,colorTableParameterfv/3,colorTableParameteriv/3,
+ copyColorTable/5,getColorTable/4,getColorTableParameterfv/2,getColorTableParameteriv/2,
+ colorSubTable/6,copyColorSubTable/5,convolutionFilter1D/6,convolutionFilter2D/7,
+ convolutionParameterf/3,convolutionParameterfv/3,convolutionParameteri/3,
+ convolutionParameteriv/3,copyConvolutionFilter1D/5,copyConvolutionFilter2D/6,
+ getConvolutionFilter/4,getConvolutionParameterfv/2,getConvolutionParameteriv/2,
+ separableFilter2D/8,getHistogram/5,getHistogramParameterfv/2,getHistogramParameteriv/2,
+ getMinmax/5,getMinmaxParameterfv/2,getMinmaxParameteriv/2,histogram/4,
+ minmax/3,resetHistogram/1,resetMinmax/1,activeTexture/1,sampleCoverage/2,
+ compressedTexImage3D/9,compressedTexImage2D/8,compressedTexImage1D/7,
+ compressedTexSubImage3D/11,compressedTexSubImage2D/9,compressedTexSubImage1D/7,
+ getCompressedTexImage/3,clientActiveTexture/1,multiTexCoord1d/2,
+ multiTexCoord1dv/2,multiTexCoord1f/2,multiTexCoord1fv/2,multiTexCoord1i/2,
+ multiTexCoord1iv/2,multiTexCoord1s/2,multiTexCoord1sv/2,multiTexCoord2d/3,
+ multiTexCoord2dv/2,multiTexCoord2f/3,multiTexCoord2fv/2,multiTexCoord2i/3,
+ multiTexCoord2iv/2,multiTexCoord2s/3,multiTexCoord2sv/2,multiTexCoord3d/4,
+ multiTexCoord3dv/2,multiTexCoord3f/4,multiTexCoord3fv/2,multiTexCoord3i/4,
+ multiTexCoord3iv/2,multiTexCoord3s/4,multiTexCoord3sv/2,multiTexCoord4d/5,
+ multiTexCoord4dv/2,multiTexCoord4f/5,multiTexCoord4fv/2,multiTexCoord4i/5,
+ multiTexCoord4iv/2,multiTexCoord4s/5,multiTexCoord4sv/2,loadTransposeMatrixf/1,
+ loadTransposeMatrixd/1,multTransposeMatrixf/1,multTransposeMatrixd/1,
+ blendFuncSeparate/4,multiDrawArrays/3,pointParameterf/2,pointParameterfv/2,
+ pointParameteri/2,pointParameteriv/2,fogCoordf/1,fogCoordfv/1,fogCoordd/1,
+ fogCoorddv/1,fogCoordPointer/3,secondaryColor3b/3,secondaryColor3bv/1,
+ secondaryColor3d/3,secondaryColor3dv/1,secondaryColor3f/3,secondaryColor3fv/1,
+ secondaryColor3i/3,secondaryColor3iv/1,secondaryColor3s/3,secondaryColor3sv/1,
+ secondaryColor3ub/3,secondaryColor3ubv/1,secondaryColor3ui/3,secondaryColor3uiv/1,
+ secondaryColor3us/3,secondaryColor3usv/1,secondaryColorPointer/4,
+ windowPos2d/2,windowPos2dv/1,windowPos2f/2,windowPos2fv/1,windowPos2i/2,
+ windowPos2iv/1,windowPos2s/2,windowPos2sv/1,windowPos3d/3,windowPos3dv/1,
+ windowPos3f/3,windowPos3fv/1,windowPos3i/3,windowPos3iv/1,windowPos3s/3,
+ windowPos3sv/1,genQueries/1,deleteQueries/1,isQuery/1,beginQuery/2,
+ endQuery/1,getQueryiv/2,getQueryObjectiv/2,getQueryObjectuiv/2,bindBuffer/2,
+ deleteBuffers/1,genBuffers/1,isBuffer/1,bufferData/4,bufferSubData/4,
+ getBufferSubData/4,getBufferParameteriv/2,blendEquationSeparate/2,
+ drawBuffers/1,stencilOpSeparate/4,stencilFuncSeparate/4,stencilMaskSeparate/2,
+ attachShader/2,bindAttribLocation/3,compileShader/1,createProgram/0,
+ createShader/1,deleteProgram/1,deleteShader/1,detachShader/2,disableVertexAttribArray/1,
+ enableVertexAttribArray/1,getActiveAttrib/3,getActiveUniform/3,getAttachedShaders/2,
+ getAttribLocation/2,getProgramiv/2,getProgramInfoLog/2,getShaderiv/2,
+ getShaderInfoLog/2,getShaderSource/2,getUniformLocation/2,getUniformfv/2,
+ getUniformiv/2,getVertexAttribdv/2,getVertexAttribfv/2,getVertexAttribiv/2,
+ isProgram/1,isShader/1,linkProgram/1,shaderSource/2,useProgram/1,uniform1f/2,
+ uniform2f/3,uniform3f/4,uniform4f/5,uniform1i/2,uniform2i/3,uniform3i/4,
+ uniform4i/5,uniform1fv/2,uniform2fv/2,uniform3fv/2,uniform4fv/2,uniform1iv/2,
+ uniform2iv/2,uniform3iv/2,uniform4iv/2,uniformMatrix2fv/3,uniformMatrix3fv/3,
+ uniformMatrix4fv/3,validateProgram/1,vertexAttrib1d/2,vertexAttrib1dv/2,
+ vertexAttrib1f/2,vertexAttrib1fv/2,vertexAttrib1s/2,vertexAttrib1sv/2,
+ vertexAttrib2d/3,vertexAttrib2dv/2,vertexAttrib2f/3,vertexAttrib2fv/2,
+ vertexAttrib2s/3,vertexAttrib2sv/2,vertexAttrib3d/4,vertexAttrib3dv/2,
+ vertexAttrib3f/4,vertexAttrib3fv/2,vertexAttrib3s/4,vertexAttrib3sv/2,
+ vertexAttrib4Nbv/2,vertexAttrib4Niv/2,vertexAttrib4Nsv/2,vertexAttrib4Nub/5,
+ vertexAttrib4Nubv/2,vertexAttrib4Nuiv/2,vertexAttrib4Nusv/2,vertexAttrib4bv/2,
+ vertexAttrib4d/5,vertexAttrib4dv/2,vertexAttrib4f/5,vertexAttrib4fv/2,
+ vertexAttrib4iv/2,vertexAttrib4s/5,vertexAttrib4sv/2,vertexAttrib4ubv/2,
+ vertexAttrib4uiv/2,vertexAttrib4usv/2,vertexAttribPointer/6,uniformMatrix2x3fv/3,
+ uniformMatrix3x2fv/3,uniformMatrix2x4fv/3,uniformMatrix4x2fv/3,uniformMatrix3x4fv/3,
+ uniformMatrix4x3fv/3,colorMaski/5,getBooleani_v/2,getIntegeri_v/2,
+ enablei/2,disablei/2,isEnabledi/2,beginTransformFeedback/1,endTransformFeedback/0,
+ bindBufferRange/5,bindBufferBase/3,transformFeedbackVaryings/3,getTransformFeedbackVarying/3,
+ clampColor/2,beginConditionalRender/2,endConditionalRender/0,vertexAttribIPointer/5,
+ getVertexAttribIiv/2,getVertexAttribIuiv/2,getUniformuiv/2,bindFragDataLocation/3,
+ getFragDataLocation/2,uniform1ui/2,uniform2ui/3,uniform3ui/4,uniform4ui/5,
+ uniform1uiv/2,uniform2uiv/2,uniform3uiv/2,uniform4uiv/2,texParameterIiv/3,
+ texParameterIuiv/3,getTexParameterIiv/2,getTexParameterIuiv/2,clearBufferiv/3,
+ clearBufferuiv/3,clearBufferfv/3,clearBufferfi/4,getStringi/2,vertexAttribI1i/2,
+ vertexAttribI2i/3,vertexAttribI3i/4,vertexAttribI4i/5,vertexAttribI1ui/2,
+ vertexAttribI2ui/3,vertexAttribI3ui/4,vertexAttribI4ui/5,vertexAttribI1iv/2,
+ vertexAttribI2iv/2,vertexAttribI3iv/2,vertexAttribI4iv/2,vertexAttribI1uiv/2,
+ vertexAttribI2uiv/2,vertexAttribI3uiv/2,vertexAttribI4uiv/2,vertexAttribI4bv/2,
+ vertexAttribI4sv/2,vertexAttribI4ubv/2,vertexAttribI4usv/2,drawArraysInstanced/4,
+ drawElementsInstanced/5,texBuffer/3,primitiveRestartIndex/1,loadTransposeMatrixfARB/1,
+ loadTransposeMatrixdARB/1,multTransposeMatrixfARB/1,multTransposeMatrixdARB/1,
+ weightbvARB/1,weightsvARB/1,weightivARB/1,weightfvARB/1,weightdvARB/1,
+ weightubvARB/1,weightusvARB/1,weightuivARB/1,vertexBlendARB/1,currentPaletteMatrixARB/1,
+ matrixIndexubvARB/1,matrixIndexusvARB/1,matrixIndexuivARB/1,programStringARB/3,
+ bindProgramARB/2,deleteProgramsARB/1,genProgramsARB/1,programEnvParameter4dARB/6,
+ programEnvParameter4dvARB/3,programEnvParameter4fARB/6,programEnvParameter4fvARB/3,
+ programLocalParameter4dARB/6,programLocalParameter4dvARB/3,programLocalParameter4fARB/6,
+ programLocalParameter4fvARB/3,getProgramEnvParameterdvARB/2,getProgramEnvParameterfvARB/2,
+ getProgramLocalParameterdvARB/2,getProgramLocalParameterfvARB/2,
+ getProgramStringARB/3,deleteObjectARB/1,getHandleARB/1,detachObjectARB/2,
+ createShaderObjectARB/1,shaderSourceARB/2,compileShaderARB/1,createProgramObjectARB/0,
+ attachObjectARB/2,linkProgramARB/1,useProgramObjectARB/1,validateProgramARB/1,
+ getObjectParameterfvARB/2,getObjectParameterivARB/2,getInfoLogARB/2,
+ getAttachedObjectsARB/2,getUniformLocationARB/2,getActiveUniformARB/3,
+ getUniformfvARB/2,getUniformivARB/2,getShaderSourceARB/2,bindAttribLocationARB/3,
+ getActiveAttribARB/3,getAttribLocationARB/2,isRenderbuffer/1,bindRenderbuffer/2,
+ deleteRenderbuffers/1,genRenderbuffers/1,renderbufferStorage/4,getRenderbufferParameteriv/2,
+ isFramebuffer/1,bindFramebuffer/2,deleteFramebuffers/1,genFramebuffers/1,
+ checkFramebufferStatus/1,framebufferTexture1D/5,framebufferTexture2D/5,
+ framebufferTexture3D/6,framebufferRenderbuffer/4,getFramebufferAttachmentParameteriv/3,
+ generateMipmap/1,blitFramebuffer/10,renderbufferStorageMultisample/5,
+ framebufferTextureLayer/5,programParameteriARB/3,framebufferTextureARB/4,
+ framebufferTextureFaceARB/5,vertexAttribDivisorARB/2,flushMappedBufferRange/3,
+ bindVertexArray/1,deleteVertexArrays/1,genVertexArrays/1,isVertexArray/1,
+ getUniformIndices/2,getActiveUniformsiv/3,getActiveUniformName/3,
+ getUniformBlockIndex/2,getActiveUniformBlockiv/4,getActiveUniformBlockName/3,
+ uniformBlockBinding/3,copyBufferSubData/5,resizeBuffersMESA/0,windowPos4dMESA/4,
+ windowPos4dvMESA/1,windowPos4fMESA/4,windowPos4fvMESA/1,windowPos4iMESA/4,
+ windowPos4ivMESA/1,windowPos4sMESA/4,windowPos4svMESA/1,depthBoundsEXT/2,
+ stencilClearTagEXT/2]).
+
+
+%% API
+
+%% @spec (Op::enum(),Value::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAccum.xml">external</a> documentation.
+accum(Op,Value) ->
+ wxe_util:cast(5037, <<Op:?GLenum,Value:?GLfloat>>).
+
+%% @spec (Func::enum(),Ref::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAlphaFunc.xml">external</a> documentation.
+alphaFunc(Func,Ref) ->
+ wxe_util:cast(5038, <<Func:?GLenum,Ref:?GLclampf>>).
+
+%% @spec (Textures::[integer()]) -> {0|1,Residences::[0|1]}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAreTexturesResident.xml">external</a> documentation.
+areTexturesResident(Textures) ->
+ wxe_util:call(5039, <<(length(Textures)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
+
+%% @spec (I::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glArrayElement.xml">external</a> documentation.
+arrayElement(I) ->
+ wxe_util:cast(5040, <<I:?GLint>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBegin.xml">external</a> documentation.
+'begin'(Mode) ->
+ wxe_util:cast(5041, <<Mode:?GLenum>>).
+
+%% @spec (Target::enum(),Texture::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindTexture.xml">external</a> documentation.
+bindTexture(Target,Texture) ->
+ wxe_util:cast(5042, <<Target:?GLenum,Texture:?GLuint>>).
+
+%% @spec (Width::integer(),Height::integer(),Xorig::float(),Yorig::float(),Xmove::float(),Ymove::float(),Bitmap::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBitmap.xml">external</a> documentation.
+bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) when is_integer(Bitmap) ->
+ wxe_util:cast(5043, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat,Bitmap:?GLuint>>);
+bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) ->
+ wxe_util:send_bin(Bitmap),
+ wxe_util:cast(5044, <<Width:?GLsizei,Height:?GLsizei,Xorig:?GLfloat,Yorig:?GLfloat,Xmove:?GLfloat,Ymove:?GLfloat>>).
+
+%% @spec (Sfactor::enum(),Dfactor::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFunc.xml">external</a> documentation.
+blendFunc(Sfactor,Dfactor) ->
+ wxe_util:cast(5045, <<Sfactor:?GLenum,Dfactor:?GLenum>>).
+
+%% @spec (List::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallList.xml">external</a> documentation.
+callList(List) ->
+ wxe_util:cast(5046, <<List:?GLuint>>).
+
+%% @spec (Lists::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallLists.xml">external</a> documentation.
+callLists(Lists) ->
+ wxe_util:cast(5047, <<(length(Lists)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Lists>>)/binary,0:(((1+length(Lists)) rem 2)*32)>>).
+
+%% @spec (Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClear.xml">external</a> documentation.
+clear(Mask) ->
+ wxe_util:cast(5048, <<Mask:?GLbitfield>>).
+
+%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearAccum.xml">external</a> documentation.
+clearAccum(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5049, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
+
+%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearColor.xml">external</a> documentation.
+clearColor(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5050, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
+
+%% @spec (Depth::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearDepth.xml">external</a> documentation.
+clearDepth(Depth) ->
+ wxe_util:cast(5051, <<Depth:?GLclampd>>).
+
+%% @spec (C::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearIndex.xml">external</a> documentation.
+clearIndex(C) ->
+ wxe_util:cast(5052, <<C:?GLfloat>>).
+
+%% @spec (S::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearStencil.xml">external</a> documentation.
+clearStencil(S) ->
+ wxe_util:cast(5053, <<S:?GLint>>).
+
+%% @spec (Plane::enum(),Equation::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml">external</a> documentation.
+clipPlane(Plane,{E1,E2,E3,E4}) ->
+ wxe_util:cast(5054, <<Plane:?GLenum,0:32,E1:?GLdouble,E2:?GLdouble,E3:?GLdouble,E4:?GLdouble>>).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3b(Red,Green,Blue) ->
+ wxe_util:cast(5055, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3b(Red,Green,Blue)
+color3bv({Red,Green,Blue}) -> color3b(Red,Green,Blue).
+
+%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3d(Red,Green,Blue) ->
+ wxe_util:cast(5056, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3d(Red,Green,Blue)
+color3dv({Red,Green,Blue}) -> color3d(Red,Green,Blue).
+
+%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3f(Red,Green,Blue) ->
+ wxe_util:cast(5057, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3f(Red,Green,Blue)
+color3fv({Red,Green,Blue}) -> color3f(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3i(Red,Green,Blue) ->
+ wxe_util:cast(5058, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3i(Red,Green,Blue)
+color3iv({Red,Green,Blue}) -> color3i(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3s(Red,Green,Blue) ->
+ wxe_util:cast(5059, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3s(Red,Green,Blue)
+color3sv({Red,Green,Blue}) -> color3s(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3ub(Red,Green,Blue) ->
+ wxe_util:cast(5060, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3ub(Red,Green,Blue)
+color3ubv({Red,Green,Blue}) -> color3ub(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3ui(Red,Green,Blue) ->
+ wxe_util:cast(5061, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3ui(Red,Green,Blue)
+color3uiv({Red,Green,Blue}) -> color3ui(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color3us(Red,Green,Blue) ->
+ wxe_util:cast(5062, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv color3us(Red,Green,Blue)
+color3usv({Red,Green,Blue}) -> color3us(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4b(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5063, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte,Alpha:?GLbyte>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4b(Red,Green,Blue,Alpha)
+color4bv({Red,Green,Blue,Alpha}) -> color4b(Red,Green,Blue,Alpha).
+
+%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4d(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5064, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble,Alpha:?GLdouble>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4d(Red,Green,Blue,Alpha)
+color4dv({Red,Green,Blue,Alpha}) -> color4d(Red,Green,Blue,Alpha).
+
+%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4f(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5065, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat,Alpha:?GLfloat>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4f(Red,Green,Blue,Alpha)
+color4fv({Red,Green,Blue,Alpha}) -> color4f(Red,Green,Blue,Alpha).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4i(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5066, <<Red:?GLint,Green:?GLint,Blue:?GLint,Alpha:?GLint>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4i(Red,Green,Blue,Alpha)
+color4iv({Red,Green,Blue,Alpha}) -> color4i(Red,Green,Blue,Alpha).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4s(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5067, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort,Alpha:?GLshort>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4s(Red,Green,Blue,Alpha)
+color4sv({Red,Green,Blue,Alpha}) -> color4s(Red,Green,Blue,Alpha).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4ub(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5068, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte,Alpha:?GLubyte>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4ub(Red,Green,Blue,Alpha)
+color4ubv({Red,Green,Blue,Alpha}) -> color4ub(Red,Green,Blue,Alpha).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4ui(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5069, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint,Alpha:?GLuint>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4ui(Red,Green,Blue,Alpha)
+color4uiv({Red,Green,Blue,Alpha}) -> color4ui(Red,Green,Blue,Alpha).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer(),Alpha::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">external</a> documentation.
+color4us(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5070, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort,Alpha:?GLushort>>).
+
+%% @spec ({Red,Green,Blue,Alpha}) -> ok
+%% @equiv color4us(Red,Green,Blue,Alpha)
+color4usv({Red,Green,Blue,Alpha}) -> color4us(Red,Green,Blue,Alpha).
+
+%% @spec (Red::0|1,Green::0|1,Blue::0|1,Alpha::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMask.xml">external</a> documentation.
+colorMask(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5071, <<Red:?GLboolean,Green:?GLboolean,Blue:?GLboolean,Alpha:?GLboolean>>).
+
+%% @spec (Face::enum(),Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMaterial.xml">external</a> documentation.
+colorMaterial(Face,Mode) ->
+ wxe_util:cast(5072, <<Face:?GLenum,Mode:?GLenum>>).
+
+%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorPointer.xml">external</a> documentation.
+colorPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5073, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+colorPointer(Size,Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5074, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Type::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyPixels.xml">external</a> documentation.
+copyPixels(X,Y,Width,Height,Type) ->
+ wxe_util:cast(5075, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Border::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage1D.xml">external</a> documentation.
+copyTexImage1D(Target,Level,InternalFormat,X,Y,Width,Border) ->
+ wxe_util:cast(5076, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Border:?GLint>>).
+
+%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer(),Border::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage2D.xml">external</a> documentation.
+copyTexImage2D(Target,Level,InternalFormat,X,Y,Width,Height,Border) ->
+ wxe_util:cast(5077, <<Target:?GLenum,Level:?GLint,InternalFormat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),X::integer(),Y::integer(),Width::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage1D.xml">external</a> documentation.
+copyTexSubImage1D(Target,Level,Xoffset,X,Y,Width) ->
+ wxe_util:cast(5078, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml">external</a> documentation.
+copyTexSubImage2D(Target,Level,Xoffset,Yoffset,X,Y,Width,Height) ->
+ wxe_util:cast(5079, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCullFace.xml">external</a> documentation.
+cullFace(Mode) ->
+ wxe_util:cast(5080, <<Mode:?GLenum>>).
+
+%% @spec (List::integer(),Range::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteLists.xml">external</a> documentation.
+deleteLists(List,Range) ->
+ wxe_util:cast(5081, <<List:?GLuint,Range:?GLsizei>>).
+
+%% @spec (Textures::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteTextures.xml">external</a> documentation.
+deleteTextures(Textures) ->
+ wxe_util:cast(5082, <<(length(Textures)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>).
+
+%% @spec (Func::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthFunc.xml">external</a> documentation.
+depthFunc(Func) ->
+ wxe_util:cast(5083, <<Func:?GLenum>>).
+
+%% @spec (Flag::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthMask.xml">external</a> documentation.
+depthMask(Flag) ->
+ wxe_util:cast(5084, <<Flag:?GLboolean>>).
+
+%% @spec (ZNear::clamp(),ZFar::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRange.xml">external</a> documentation.
+depthRange(ZNear,ZFar) ->
+ wxe_util:cast(5085, <<ZNear:?GLclampd,ZFar:?GLclampd>>).
+
+%% @spec (Cap::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisable.xml">external</a> documentation.
+disable(Cap) ->
+ wxe_util:cast(5086, <<Cap:?GLenum>>).
+
+%% @spec (Array::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisableClientState.xml">external</a> documentation.
+disableClientState(Array) ->
+ wxe_util:cast(5087, <<Array:?GLenum>>).
+
+%% @spec (Mode::enum(),First::integer(),Count::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawArrays.xml">external</a> documentation.
+drawArrays(Mode,First,Count) ->
+ wxe_util:cast(5088, <<Mode:?GLenum,First:?GLint,Count:?GLsizei>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawBuffer.xml">external</a> documentation.
+drawBuffer(Mode) ->
+ wxe_util:cast(5089, <<Mode:?GLenum>>).
+
+%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElements.xml">external</a> documentation.
+drawElements(Mode,Count,Type,Indices) when is_integer(Indices) ->
+ wxe_util:cast(5090, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
+drawElements(Mode,Count,Type,Indices) ->
+ wxe_util:send_bin(Indices),
+ wxe_util:cast(5091, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum>>).
+
+%% @spec (Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawPixels.xml">external</a> documentation.
+drawPixels(Width,Height,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5092, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+drawPixels(Width,Height,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5093, <<Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Flag::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEdgeFlag.xml">external</a> documentation.
+edgeFlag(Flag) ->
+ wxe_util:cast(5094, <<Flag:?GLboolean>>).
+
+%% @spec (Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEdgeFlagPointer.xml">external</a> documentation.
+edgeFlagPointer(Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5095, <<Stride:?GLsizei,Pointer:?GLuint>>);
+edgeFlagPointer(Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5096, <<Stride:?GLsizei>>).
+
+%% @spec ({Flag}) -> ok
+%% @equiv edgeFlag(Flag)
+edgeFlagv({Flag}) -> edgeFlag(Flag).
+
+%% @spec (Cap::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml">external</a> documentation.
+enable(Cap) ->
+ wxe_util:cast(5097, <<Cap:?GLenum>>).
+
+%% @spec (Array::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnableClientState.xml">external</a> documentation.
+enableClientState(Array) ->
+ wxe_util:cast(5098, <<Array:?GLenum>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnd.xml">external</a> documentation.
+'end'() ->
+ wxe_util:cast(5099, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndList.xml">external</a> documentation.
+endList() ->
+ wxe_util:cast(5100, <<>>).
+
+%% @spec (U::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
+evalCoord1d(U) ->
+ wxe_util:cast(5101, <<U:?GLdouble>>).
+
+%% @spec ({U}) -> ok
+%% @equiv evalCoord1d(U)
+evalCoord1dv({U}) -> evalCoord1d(U).
+
+%% @spec (U::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
+evalCoord1f(U) ->
+ wxe_util:cast(5102, <<U:?GLfloat>>).
+
+%% @spec ({U}) -> ok
+%% @equiv evalCoord1f(U)
+evalCoord1fv({U}) -> evalCoord1f(U).
+
+%% @spec (U::float(),V::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
+evalCoord2d(U,V) ->
+ wxe_util:cast(5103, <<U:?GLdouble,V:?GLdouble>>).
+
+%% @spec ({U,V}) -> ok
+%% @equiv evalCoord2d(U,V)
+evalCoord2dv({U,V}) -> evalCoord2d(U,V).
+
+%% @spec (U::float(),V::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">external</a> documentation.
+evalCoord2f(U,V) ->
+ wxe_util:cast(5104, <<U:?GLfloat,V:?GLfloat>>).
+
+%% @spec ({U,V}) -> ok
+%% @equiv evalCoord2f(U,V)
+evalCoord2fv({U,V}) -> evalCoord2f(U,V).
+
+%% @spec (Mode::enum(),I1::integer(),I2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalMesh.xml">external</a> documentation.
+evalMesh1(Mode,I1,I2) ->
+ wxe_util:cast(5105, <<Mode:?GLenum,I1:?GLint,I2:?GLint>>).
+
+%% @spec (Mode::enum(),I1::integer(),I2::integer(),J1::integer(),J2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalMesh.xml">external</a> documentation.
+evalMesh2(Mode,I1,I2,J1,J2) ->
+ wxe_util:cast(5106, <<Mode:?GLenum,I1:?GLint,I2:?GLint,J1:?GLint,J2:?GLint>>).
+
+%% @spec (I::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalPoint.xml">external</a> documentation.
+evalPoint1(I) ->
+ wxe_util:cast(5107, <<I:?GLint>>).
+
+%% @spec (I::integer(),J::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalPoint.xml">external</a> documentation.
+evalPoint2(I,J) ->
+ wxe_util:cast(5108, <<I:?GLint,J:?GLint>>).
+
+%% @spec (Size::integer(),Type::enum(),Buffer::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFeedbackBuffer.xml">external</a> documentation.
+feedbackBuffer(Size,Type,Buffer) ->
+ wxe_util:send_bin(Buffer#wx_mem.bin),
+ wxe_util:call(5109, <<Size:?GLsizei,Type:?GLenum>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFinish.xml">external</a> documentation.
+finish() ->
+ wxe_util:cast(5110, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFlush.xml">external</a> documentation.
+flush() ->
+ wxe_util:cast(5111, <<>>).
+
+%% @spec (Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
+fogf(Pname,Param) ->
+ wxe_util:cast(5112, <<Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
+fogfv(Pname,Params) ->
+ wxe_util:cast(5113, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
+fogi(Pname,Param) ->
+ wxe_util:cast(5114, <<Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">external</a> documentation.
+fogiv(Pname,Params) ->
+ wxe_util:cast(5115, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrontFace.xml">external</a> documentation.
+frontFace(Mode) ->
+ wxe_util:cast(5116, <<Mode:?GLenum>>).
+
+%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrustum.xml">external</a> documentation.
+frustum(Left,Right,Bottom,Top,ZNear,ZFar) ->
+ wxe_util:cast(5117, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
+
+%% @spec (Range::integer()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenLists.xml">external</a> documentation.
+genLists(Range) ->
+ wxe_util:call(5118, <<Range:?GLsizei>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenTextures.xml">external</a> documentation.
+genTextures(N) ->
+ wxe_util:call(5119, <<N:?GLsizei>>).
+
+%% @spec (Pname::enum()) -> [0|1]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBooleanv.xml">external</a> documentation.
+getBooleanv(Pname) ->
+ wxe_util:call(5120, <<Pname:?GLenum>>).
+
+%% @spec (Plane::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetClipPlane.xml">external</a> documentation.
+getClipPlane(Plane) ->
+ wxe_util:call(5121, <<Plane:?GLenum>>).
+
+%% @spec (Pname::enum()) -> [float()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetDoublev.xml">external</a> documentation.
+getDoublev(Pname) ->
+ wxe_util:call(5122, <<Pname:?GLenum>>).
+
+%% @spec () -> enum()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetError.xml">external</a> documentation.
+getError() ->
+ wxe_util:call(5123, <<>>).
+
+%% @spec (Pname::enum()) -> [float()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFloatv.xml">external</a> documentation.
+getFloatv(Pname) ->
+ wxe_util:call(5124, <<Pname:?GLenum>>).
+
+%% @spec (Pname::enum()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetIntegerv.xml">external</a> documentation.
+getIntegerv(Pname) ->
+ wxe_util:call(5125, <<Pname:?GLenum>>).
+
+%% @spec (Light::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetLight.xml">external</a> documentation.
+getLightfv(Light,Pname) ->
+ wxe_util:call(5126, <<Light:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Light::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetLight.xml">external</a> documentation.
+getLightiv(Light,Pname) ->
+ wxe_util:call(5127, <<Light:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
+getMapdv(Target,Query,V) ->
+ wxe_util:send_bin(V#wx_mem.bin),
+ wxe_util:call(5128, <<Target:?GLenum,Query:?GLenum>>).
+
+%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
+getMapfv(Target,Query,V) ->
+ wxe_util:send_bin(V#wx_mem.bin),
+ wxe_util:call(5129, <<Target:?GLenum,Query:?GLenum>>).
+
+%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMap.xml">external</a> documentation.
+getMapiv(Target,Query,V) ->
+ wxe_util:send_bin(V#wx_mem.bin),
+ wxe_util:call(5130, <<Target:?GLenum,Query:?GLenum>>).
+
+%% @spec (Face::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMaterial.xml">external</a> documentation.
+getMaterialfv(Face,Pname) ->
+ wxe_util:call(5131, <<Face:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Face::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMaterial.xml">external</a> documentation.
+getMaterialiv(Face,Pname) ->
+ wxe_util:call(5132, <<Face:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
+getPixelMapfv(Map,Values) ->
+ wxe_util:send_bin(Values#wx_mem.bin),
+ wxe_util:call(5133, <<Map:?GLenum>>).
+
+%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
+getPixelMapuiv(Map,Values) ->
+ wxe_util:send_bin(Values#wx_mem.bin),
+ wxe_util:call(5134, <<Map:?GLenum>>).
+
+%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPixelMap.xml">external</a> documentation.
+getPixelMapusv(Map,Values) ->
+ wxe_util:send_bin(Values#wx_mem.bin),
+ wxe_util:call(5135, <<Map:?GLenum>>).
+
+%% @spec () -> binary()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetPolygonStipple.xml">external</a> documentation.
+getPolygonStipple() ->
+ wxe_util:call(5136, <<>>).
+
+%% @spec (Name::enum()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml">external</a> documentation.
+getString(Name) ->
+ wxe_util:call(5137, <<Name:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexEnv.xml">external</a> documentation.
+getTexEnvfv(Target,Pname) ->
+ wxe_util:call(5138, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexEnv.xml">external</a> documentation.
+getTexEnviv(Target,Pname) ->
+ wxe_util:call(5139, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Coord::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
+getTexGendv(Coord,Pname) ->
+ wxe_util:call(5140, <<Coord:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Coord::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
+getTexGenfv(Coord,Pname) ->
+ wxe_util:call(5141, <<Coord:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Coord::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexGen.xml">external</a> documentation.
+getTexGeniv(Coord,Pname) ->
+ wxe_util:call(5142, <<Coord:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexImage.xml">external</a> documentation.
+getTexImage(Target,Level,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels#wx_mem.bin),
+ wxe_util:call(5143, <<Target:?GLenum,Level:?GLint,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexLevelParameter.xml">external</a> documentation.
+getTexLevelParameterfv(Target,Level,Pname) ->
+ wxe_util:call(5144, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexLevelParameter.xml">external</a> documentation.
+getTexLevelParameteriv(Target,Level,Pname) ->
+ wxe_util:call(5145, <<Target:?GLenum,Level:?GLint,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameter.xml">external</a> documentation.
+getTexParameterfv(Target,Pname) ->
+ wxe_util:call(5146, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameter.xml">external</a> documentation.
+getTexParameteriv(Target,Pname) ->
+ wxe_util:call(5147, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glHint.xml">external</a> documentation.
+hint(Target,Mode) ->
+ wxe_util:cast(5148, <<Target:?GLenum,Mode:?GLenum>>).
+
+%% @spec (Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndexMask.xml">external</a> documentation.
+indexMask(Mask) ->
+ wxe_util:cast(5149, <<Mask:?GLuint>>).
+
+%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndexPointer.xml">external</a> documentation.
+indexPointer(Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5150, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+indexPointer(Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5151, <<Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (C::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
+indexd(C) ->
+ wxe_util:cast(5152, <<C:?GLdouble>>).
+
+%% @spec ({C}) -> ok
+%% @equiv indexd(C)
+indexdv({C}) -> indexd(C).
+
+%% @spec (C::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
+indexf(C) ->
+ wxe_util:cast(5153, <<C:?GLfloat>>).
+
+%% @spec ({C}) -> ok
+%% @equiv indexf(C)
+indexfv({C}) -> indexf(C).
+
+%% @spec (C::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
+indexi(C) ->
+ wxe_util:cast(5154, <<C:?GLint>>).
+
+%% @spec ({C}) -> ok
+%% @equiv indexi(C)
+indexiv({C}) -> indexi(C).
+
+%% @spec (C::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
+indexs(C) ->
+ wxe_util:cast(5155, <<C:?GLshort>>).
+
+%% @spec ({C}) -> ok
+%% @equiv indexs(C)
+indexsv({C}) -> indexs(C).
+
+%% @spec (C::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">external</a> documentation.
+indexub(C) ->
+ wxe_util:cast(5156, <<C:?GLubyte>>).
+
+%% @spec ({C}) -> ok
+%% @equiv indexub(C)
+indexubv({C}) -> indexub(C).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glInitNames.xml">external</a> documentation.
+initNames() ->
+ wxe_util:cast(5157, <<>>).
+
+%% @spec (Format::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glInterleavedArrays.xml">external</a> documentation.
+interleavedArrays(Format,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5158, <<Format:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+interleavedArrays(Format,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5159, <<Format:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (Cap::enum()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsEnabled.xml">external</a> documentation.
+isEnabled(Cap) ->
+ wxe_util:call(5160, <<Cap:?GLenum>>).
+
+%% @spec (List::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsList.xml">external</a> documentation.
+isList(List) ->
+ wxe_util:call(5161, <<List:?GLuint>>).
+
+%% @spec (Texture::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsTexture.xml">external</a> documentation.
+isTexture(Texture) ->
+ wxe_util:call(5162, <<Texture:?GLuint>>).
+
+%% @spec (Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
+lightModelf(Pname,Param) ->
+ wxe_util:cast(5163, <<Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
+lightModelfv(Pname,Params) ->
+ wxe_util:cast(5164, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
+lightModeli(Pname,Param) ->
+ wxe_util:cast(5165, <<Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">external</a> documentation.
+lightModeliv(Pname,Params) ->
+ wxe_util:cast(5166, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Light::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
+lightf(Light,Pname,Param) ->
+ wxe_util:cast(5167, <<Light:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Light::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
+lightfv(Light,Pname,Params) ->
+ wxe_util:cast(5168, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Light::enum(),Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
+lighti(Light,Pname,Param) ->
+ wxe_util:cast(5169, <<Light:?GLenum,Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Light::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">external</a> documentation.
+lightiv(Light,Pname,Params) ->
+ wxe_util:cast(5170, <<Light:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Factor::integer(),Pattern::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineStipple.xml">external</a> documentation.
+lineStipple(Factor,Pattern) ->
+ wxe_util:cast(5171, <<Factor:?GLint,Pattern:?GLushort>>).
+
+%% @spec (Width::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineWidth.xml">external</a> documentation.
+lineWidth(Width) ->
+ wxe_util:cast(5172, <<Width:?GLfloat>>).
+
+%% @spec (Base::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glListBase.xml">external</a> documentation.
+listBase(Base) ->
+ wxe_util:cast(5173, <<Base:?GLuint>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadIdentity.xml">external</a> documentation.
+loadIdentity() ->
+ wxe_util:cast(5174, <<>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">external</a> documentation.
+loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5175, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">external</a> documentation.
+loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5176, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (Name::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadName.xml">external</a> documentation.
+loadName(Name) ->
+ wxe_util:cast(5177, <<Name:?GLuint>>).
+
+%% @spec (Opcode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLogicOp.xml">external</a> documentation.
+logicOp(Opcode) ->
+ wxe_util:cast(5178, <<Opcode:?GLenum>>).
+
+%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
+map1d(Target,U1,U2,Stride,Order,Points) ->
+ wxe_util:send_bin(Points),
+ wxe_util:cast(5179, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Stride:?GLint,Order:?GLint>>).
+
+%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
+map1f(Target,U1,U2,Stride,Order,Points) ->
+ wxe_util:send_bin(Points),
+ wxe_util:cast(5180, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Stride:?GLint,Order:?GLint>>).
+
+%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
+map2d(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
+ wxe_util:send_bin(Points),
+ wxe_util:cast(5181, <<Target:?GLenum,0:32,U1:?GLdouble,U2:?GLdouble,Ustride:?GLint,Uorder:?GLint,V1:?GLdouble,V2:?GLdouble,Vstride:?GLint,Vorder:?GLint>>).
+
+%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap.xml">external</a> documentation.
+map2f(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) ->
+ wxe_util:send_bin(Points),
+ wxe_util:cast(5182, <<Target:?GLenum,U1:?GLfloat,U2:?GLfloat,Ustride:?GLint,Uorder:?GLint,V1:?GLfloat,V2:?GLfloat,Vstride:?GLint,Vorder:?GLint>>).
+
+%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
+mapGrid1d(Un,U1,U2) ->
+ wxe_util:cast(5183, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble>>).
+
+%% @spec (Un::integer(),U1::float(),U2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
+mapGrid1f(Un,U1,U2) ->
+ wxe_util:cast(5184, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat>>).
+
+%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
+mapGrid2d(Un,U1,U2,Vn,V1,V2) ->
+ wxe_util:cast(5185, <<Un:?GLint,0:32,U1:?GLdouble,U2:?GLdouble,Vn:?GLint,0:32,V1:?GLdouble,V2:?GLdouble>>).
+
+%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">external</a> documentation.
+mapGrid2f(Un,U1,U2,Vn,V1,V2) ->
+ wxe_util:cast(5186, <<Un:?GLint,U1:?GLfloat,U2:?GLfloat,Vn:?GLint,V1:?GLfloat,V2:?GLfloat>>).
+
+%% @spec (Face::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
+materialf(Face,Pname,Param) ->
+ wxe_util:cast(5187, <<Face:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Face::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
+materialfv(Face,Pname,Params) ->
+ wxe_util:cast(5188, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Face::enum(),Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
+materiali(Face,Pname,Param) ->
+ wxe_util:cast(5189, <<Face:?GLenum,Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Face::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">external</a> documentation.
+materialiv(Face,Pname,Params) ->
+ wxe_util:cast(5190, <<Face:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixMode.xml">external</a> documentation.
+matrixMode(Mode) ->
+ wxe_util:cast(5191, <<Mode:?GLenum>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">external</a> documentation.
+multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5192, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">external</a> documentation.
+multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5193, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (List::integer(),Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNewList.xml">external</a> documentation.
+newList(List,Mode) ->
+ wxe_util:cast(5194, <<List:?GLuint,Mode:?GLenum>>).
+
+%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
+normal3b(Nx,Ny,Nz) ->
+ wxe_util:cast(5195, <<Nx:?GLbyte,Ny:?GLbyte,Nz:?GLbyte>>).
+
+%% @spec ({Nx,Ny,Nz}) -> ok
+%% @equiv normal3b(Nx,Ny,Nz)
+normal3bv({Nx,Ny,Nz}) -> normal3b(Nx,Ny,Nz).
+
+%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
+normal3d(Nx,Ny,Nz) ->
+ wxe_util:cast(5196, <<Nx:?GLdouble,Ny:?GLdouble,Nz:?GLdouble>>).
+
+%% @spec ({Nx,Ny,Nz}) -> ok
+%% @equiv normal3d(Nx,Ny,Nz)
+normal3dv({Nx,Ny,Nz}) -> normal3d(Nx,Ny,Nz).
+
+%% @spec (Nx::float(),Ny::float(),Nz::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
+normal3f(Nx,Ny,Nz) ->
+ wxe_util:cast(5197, <<Nx:?GLfloat,Ny:?GLfloat,Nz:?GLfloat>>).
+
+%% @spec ({Nx,Ny,Nz}) -> ok
+%% @equiv normal3f(Nx,Ny,Nz)
+normal3fv({Nx,Ny,Nz}) -> normal3f(Nx,Ny,Nz).
+
+%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
+normal3i(Nx,Ny,Nz) ->
+ wxe_util:cast(5198, <<Nx:?GLint,Ny:?GLint,Nz:?GLint>>).
+
+%% @spec ({Nx,Ny,Nz}) -> ok
+%% @equiv normal3i(Nx,Ny,Nz)
+normal3iv({Nx,Ny,Nz}) -> normal3i(Nx,Ny,Nz).
+
+%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">external</a> documentation.
+normal3s(Nx,Ny,Nz) ->
+ wxe_util:cast(5199, <<Nx:?GLshort,Ny:?GLshort,Nz:?GLshort>>).
+
+%% @spec ({Nx,Ny,Nz}) -> ok
+%% @equiv normal3s(Nx,Ny,Nz)
+normal3sv({Nx,Ny,Nz}) -> normal3s(Nx,Ny,Nz).
+
+%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormalPointer.xml">external</a> documentation.
+normalPointer(Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5200, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+normalPointer(Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5201, <<Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml">external</a> documentation.
+ortho(Left,Right,Bottom,Top,ZNear,ZFar) ->
+ wxe_util:cast(5202, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
+
+%% @spec (Token::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPassThrough.xml">external</a> documentation.
+passThrough(Token) ->
+ wxe_util:cast(5203, <<Token:?GLfloat>>).
+
+%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
+pixelMapfv(Map,Mapsize,Values) ->
+ wxe_util:send_bin(Values),
+ wxe_util:cast(5204, <<Map:?GLenum,Mapsize:?GLsizei>>).
+
+%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
+pixelMapuiv(Map,Mapsize,Values) ->
+ wxe_util:send_bin(Values),
+ wxe_util:cast(5205, <<Map:?GLenum,Mapsize:?GLsizei>>).
+
+%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">external</a> documentation.
+pixelMapusv(Map,Mapsize,Values) ->
+ wxe_util:send_bin(Values),
+ wxe_util:cast(5206, <<Map:?GLenum,Mapsize:?GLsizei>>).
+
+%% @spec (Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelStore.xml">external</a> documentation.
+pixelStoref(Pname,Param) ->
+ wxe_util:cast(5207, <<Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelStore.xml">external</a> documentation.
+pixelStorei(Pname,Param) ->
+ wxe_util:cast(5208, <<Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelTransfer.xml">external</a> documentation.
+pixelTransferf(Pname,Param) ->
+ wxe_util:cast(5209, <<Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelTransfer.xml">external</a> documentation.
+pixelTransferi(Pname,Param) ->
+ wxe_util:cast(5210, <<Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Xfactor::float(),Yfactor::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelZoom.xml">external</a> documentation.
+pixelZoom(Xfactor,Yfactor) ->
+ wxe_util:cast(5211, <<Xfactor:?GLfloat,Yfactor:?GLfloat>>).
+
+%% @spec (Size::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointSize.xml">external</a> documentation.
+pointSize(Size) ->
+ wxe_util:cast(5212, <<Size:?GLfloat>>).
+
+%% @spec (Face::enum(),Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonMode.xml">external</a> documentation.
+polygonMode(Face,Mode) ->
+ wxe_util:cast(5213, <<Face:?GLenum,Mode:?GLenum>>).
+
+%% @spec (Factor::float(),Units::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonOffset.xml">external</a> documentation.
+polygonOffset(Factor,Units) ->
+ wxe_util:cast(5214, <<Factor:?GLfloat,Units:?GLfloat>>).
+
+%% @spec (Mask::binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonStipple.xml">external</a> documentation.
+polygonStipple(Mask) ->
+ wxe_util:send_bin(Mask),
+ wxe_util:cast(5215, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopAttrib.xml">external</a> documentation.
+popAttrib() ->
+ wxe_util:cast(5216, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopClientAttrib.xml">external</a> documentation.
+popClientAttrib() ->
+ wxe_util:cast(5217, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopMatrix.xml">external</a> documentation.
+popMatrix() ->
+ wxe_util:cast(5218, <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopName.xml">external</a> documentation.
+popName() ->
+ wxe_util:cast(5219, <<>>).
+
+%% @spec (Textures::[integer()],Priorities::[clamp()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPrioritizeTextures.xml">external</a> documentation.
+prioritizeTextures(Textures,Priorities) ->
+ wxe_util:cast(5220, <<(length(Textures)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32),(length(Priorities)):?GLuint,
+ (<< <<C:?GLclampf>> || C <- Priorities>>)/binary,0:(((1+length(Priorities)) rem 2)*32)>>).
+
+%% @spec (Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushAttrib.xml">external</a> documentation.
+pushAttrib(Mask) ->
+ wxe_util:cast(5221, <<Mask:?GLbitfield>>).
+
+%% @spec (Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushClientAttrib.xml">external</a> documentation.
+pushClientAttrib(Mask) ->
+ wxe_util:cast(5222, <<Mask:?GLbitfield>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushMatrix.xml">external</a> documentation.
+pushMatrix() ->
+ wxe_util:cast(5223, <<>>).
+
+%% @spec (Name::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushName.xml">external</a> documentation.
+pushName(Name) ->
+ wxe_util:cast(5224, <<Name:?GLuint>>).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos2d(X,Y) ->
+ wxe_util:cast(5225, <<X:?GLdouble,Y:?GLdouble>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv rasterPos2d(X,Y)
+rasterPos2dv({X,Y}) -> rasterPos2d(X,Y).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos2f(X,Y) ->
+ wxe_util:cast(5226, <<X:?GLfloat,Y:?GLfloat>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv rasterPos2f(X,Y)
+rasterPos2fv({X,Y}) -> rasterPos2f(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos2i(X,Y) ->
+ wxe_util:cast(5227, <<X:?GLint,Y:?GLint>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv rasterPos2i(X,Y)
+rasterPos2iv({X,Y}) -> rasterPos2i(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos2s(X,Y) ->
+ wxe_util:cast(5228, <<X:?GLshort,Y:?GLshort>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv rasterPos2s(X,Y)
+rasterPos2sv({X,Y}) -> rasterPos2s(X,Y).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos3d(X,Y,Z) ->
+ wxe_util:cast(5229, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv rasterPos3d(X,Y,Z)
+rasterPos3dv({X,Y,Z}) -> rasterPos3d(X,Y,Z).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos3f(X,Y,Z) ->
+ wxe_util:cast(5230, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv rasterPos3f(X,Y,Z)
+rasterPos3fv({X,Y,Z}) -> rasterPos3f(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos3i(X,Y,Z) ->
+ wxe_util:cast(5231, <<X:?GLint,Y:?GLint,Z:?GLint>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv rasterPos3i(X,Y,Z)
+rasterPos3iv({X,Y,Z}) -> rasterPos3i(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos3s(X,Y,Z) ->
+ wxe_util:cast(5232, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv rasterPos3s(X,Y,Z)
+rasterPos3sv({X,Y,Z}) -> rasterPos3s(X,Y,Z).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos4d(X,Y,Z,W) ->
+ wxe_util:cast(5233, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv rasterPos4d(X,Y,Z,W)
+rasterPos4dv({X,Y,Z,W}) -> rasterPos4d(X,Y,Z,W).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos4f(X,Y,Z,W) ->
+ wxe_util:cast(5234, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv rasterPos4f(X,Y,Z,W)
+rasterPos4fv({X,Y,Z,W}) -> rasterPos4f(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos4i(X,Y,Z,W) ->
+ wxe_util:cast(5235, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv rasterPos4i(X,Y,Z,W)
+rasterPos4iv({X,Y,Z,W}) -> rasterPos4i(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">external</a> documentation.
+rasterPos4s(X,Y,Z,W) ->
+ wxe_util:cast(5236, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv rasterPos4s(X,Y,Z,W)
+rasterPos4sv({X,Y,Z,W}) -> rasterPos4s(X,Y,Z,W).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadBuffer.xml">external</a> documentation.
+readBuffer(Mode) ->
+ wxe_util:cast(5237, <<Mode:?GLenum>>).
+
+%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadPixels.xml">external</a> documentation.
+readPixels(X,Y,Width,Height,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels#wx_mem.bin),
+ wxe_util:call(5238, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectd(X1,Y1,X2,Y2) ->
+ wxe_util:cast(5239, <<X1:?GLdouble,Y1:?GLdouble,X2:?GLdouble,Y2:?GLdouble>>).
+
+%% @spec (V1::{float()},V2::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectdv({V1,V2},{V1,V2}) ->
+ wxe_util:cast(5240, <<V1:?GLdouble,V2:?GLdouble,V1:?GLdouble,V2:?GLdouble>>).
+
+%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectf(X1,Y1,X2,Y2) ->
+ wxe_util:cast(5241, <<X1:?GLfloat,Y1:?GLfloat,X2:?GLfloat,Y2:?GLfloat>>).
+
+%% @spec (V1::{float()},V2::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectfv({V1,V2},{V1,V2}) ->
+ wxe_util:cast(5242, <<V1:?GLfloat,V2:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
+
+%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+recti(X1,Y1,X2,Y2) ->
+ wxe_util:cast(5243, <<X1:?GLint,Y1:?GLint,X2:?GLint,Y2:?GLint>>).
+
+%% @spec (V1::{integer()},V2::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectiv({V1,V2},{V1,V2}) ->
+ wxe_util:cast(5244, <<V1:?GLint,V2:?GLint,V1:?GLint,V2:?GLint>>).
+
+%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rects(X1,Y1,X2,Y2) ->
+ wxe_util:cast(5245, <<X1:?GLshort,Y1:?GLshort,X2:?GLshort,Y2:?GLshort>>).
+
+%% @spec (V1::{integer()},V2::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">external</a> documentation.
+rectsv({V1,V2},{V1,V2}) ->
+ wxe_util:cast(5246, <<V1:?GLshort,V2:?GLshort,V1:?GLshort,V2:?GLshort>>).
+
+%% @spec (Mode::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderMode.xml">external</a> documentation.
+renderMode(Mode) ->
+ wxe_util:call(5247, <<Mode:?GLenum>>).
+
+%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRotate.xml">external</a> documentation.
+rotated(Angle,X,Y,Z) ->
+ wxe_util:cast(5248, <<Angle:?GLdouble,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRotate.xml">external</a> documentation.
+rotatef(Angle,X,Y,Z) ->
+ wxe_util:cast(5249, <<Angle:?GLfloat,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScale.xml">external</a> documentation.
+scaled(X,Y,Z) ->
+ wxe_util:cast(5250, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScale.xml">external</a> documentation.
+scalef(X,Y,Z) ->
+ wxe_util:cast(5251, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml">external</a> documentation.
+scissor(X,Y,Width,Height) ->
+ wxe_util:cast(5252, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Size::integer(),Buffer::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSelectBuffer.xml">external</a> documentation.
+selectBuffer(Size,Buffer) ->
+ wxe_util:send_bin(Buffer#wx_mem.bin),
+ wxe_util:call(5253, <<Size:?GLsizei>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShadeModel.xml">external</a> documentation.
+shadeModel(Mode) ->
+ wxe_util:cast(5254, <<Mode:?GLenum>>).
+
+%% @spec (Func::enum(),Ref::integer(),Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilFunc.xml">external</a> documentation.
+stencilFunc(Func,Ref,Mask) ->
+ wxe_util:cast(5255, <<Func:?GLenum,Ref:?GLint,Mask:?GLuint>>).
+
+%% @spec (Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilMask.xml">external</a> documentation.
+stencilMask(Mask) ->
+ wxe_util:cast(5256, <<Mask:?GLuint>>).
+
+%% @spec (Fail::enum(),Zfail::enum(),Zpass::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilOp.xml">external</a> documentation.
+stencilOp(Fail,Zfail,Zpass) ->
+ wxe_util:cast(5257, <<Fail:?GLenum,Zfail:?GLenum,Zpass:?GLenum>>).
+
+%% @spec (S::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord1d(S) ->
+ wxe_util:cast(5258, <<S:?GLdouble>>).
+
+%% @spec ({S}) -> ok
+%% @equiv texCoord1d(S)
+texCoord1dv({S}) -> texCoord1d(S).
+
+%% @spec (S::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord1f(S) ->
+ wxe_util:cast(5259, <<S:?GLfloat>>).
+
+%% @spec ({S}) -> ok
+%% @equiv texCoord1f(S)
+texCoord1fv({S}) -> texCoord1f(S).
+
+%% @spec (S::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord1i(S) ->
+ wxe_util:cast(5260, <<S:?GLint>>).
+
+%% @spec ({S}) -> ok
+%% @equiv texCoord1i(S)
+texCoord1iv({S}) -> texCoord1i(S).
+
+%% @spec (S::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord1s(S) ->
+ wxe_util:cast(5261, <<S:?GLshort>>).
+
+%% @spec ({S}) -> ok
+%% @equiv texCoord1s(S)
+texCoord1sv({S}) -> texCoord1s(S).
+
+%% @spec (S::float(),T::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord2d(S,T) ->
+ wxe_util:cast(5262, <<S:?GLdouble,T:?GLdouble>>).
+
+%% @spec ({S,T}) -> ok
+%% @equiv texCoord2d(S,T)
+texCoord2dv({S,T}) -> texCoord2d(S,T).
+
+%% @spec (S::float(),T::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord2f(S,T) ->
+ wxe_util:cast(5263, <<S:?GLfloat,T:?GLfloat>>).
+
+%% @spec ({S,T}) -> ok
+%% @equiv texCoord2f(S,T)
+texCoord2fv({S,T}) -> texCoord2f(S,T).
+
+%% @spec (S::integer(),T::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord2i(S,T) ->
+ wxe_util:cast(5264, <<S:?GLint,T:?GLint>>).
+
+%% @spec ({S,T}) -> ok
+%% @equiv texCoord2i(S,T)
+texCoord2iv({S,T}) -> texCoord2i(S,T).
+
+%% @spec (S::integer(),T::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord2s(S,T) ->
+ wxe_util:cast(5265, <<S:?GLshort,T:?GLshort>>).
+
+%% @spec ({S,T}) -> ok
+%% @equiv texCoord2s(S,T)
+texCoord2sv({S,T}) -> texCoord2s(S,T).
+
+%% @spec (S::float(),T::float(),R::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord3d(S,T,R) ->
+ wxe_util:cast(5266, <<S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
+
+%% @spec ({S,T,R}) -> ok
+%% @equiv texCoord3d(S,T,R)
+texCoord3dv({S,T,R}) -> texCoord3d(S,T,R).
+
+%% @spec (S::float(),T::float(),R::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord3f(S,T,R) ->
+ wxe_util:cast(5267, <<S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
+
+%% @spec ({S,T,R}) -> ok
+%% @equiv texCoord3f(S,T,R)
+texCoord3fv({S,T,R}) -> texCoord3f(S,T,R).
+
+%% @spec (S::integer(),T::integer(),R::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord3i(S,T,R) ->
+ wxe_util:cast(5268, <<S:?GLint,T:?GLint,R:?GLint>>).
+
+%% @spec ({S,T,R}) -> ok
+%% @equiv texCoord3i(S,T,R)
+texCoord3iv({S,T,R}) -> texCoord3i(S,T,R).
+
+%% @spec (S::integer(),T::integer(),R::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord3s(S,T,R) ->
+ wxe_util:cast(5269, <<S:?GLshort,T:?GLshort,R:?GLshort>>).
+
+%% @spec ({S,T,R}) -> ok
+%% @equiv texCoord3s(S,T,R)
+texCoord3sv({S,T,R}) -> texCoord3s(S,T,R).
+
+%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord4d(S,T,R,Q) ->
+ wxe_util:cast(5270, <<S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
+
+%% @spec ({S,T,R,Q}) -> ok
+%% @equiv texCoord4d(S,T,R,Q)
+texCoord4dv({S,T,R,Q}) -> texCoord4d(S,T,R,Q).
+
+%% @spec (S::float(),T::float(),R::float(),Q::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord4f(S,T,R,Q) ->
+ wxe_util:cast(5271, <<S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
+
+%% @spec ({S,T,R,Q}) -> ok
+%% @equiv texCoord4f(S,T,R,Q)
+texCoord4fv({S,T,R,Q}) -> texCoord4f(S,T,R,Q).
+
+%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord4i(S,T,R,Q) ->
+ wxe_util:cast(5272, <<S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
+
+%% @spec ({S,T,R,Q}) -> ok
+%% @equiv texCoord4i(S,T,R,Q)
+texCoord4iv({S,T,R,Q}) -> texCoord4i(S,T,R,Q).
+
+%% @spec (S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">external</a> documentation.
+texCoord4s(S,T,R,Q) ->
+ wxe_util:cast(5273, <<S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
+
+%% @spec ({S,T,R,Q}) -> ok
+%% @equiv texCoord4s(S,T,R,Q)
+texCoord4sv({S,T,R,Q}) -> texCoord4s(S,T,R,Q).
+
+%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoordPointer.xml">external</a> documentation.
+texCoordPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5274, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+texCoordPointer(Size,Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5275, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnvf.xml">external</a> documentation.
+texEnvf(Target,Pname,Param) ->
+ wxe_util:cast(5276, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml">external</a> documentation.
+texEnvfv(Target,Pname,Params) ->
+ wxe_util:cast(5277, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnvi.xml">external</a> documentation.
+texEnvi(Target,Pname,Param) ->
+ wxe_util:cast(5278, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml">external</a> documentation.
+texEnviv(Target,Pname,Params) ->
+ wxe_util:cast(5279, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGend(Coord,Pname,Param) ->
+ wxe_util:cast(5280, <<Coord:?GLenum,Pname:?GLenum,Param:?GLdouble>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGendv(Coord,Pname,Params) ->
+ wxe_util:cast(5281, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,0:32,
+ (<< <<C:?GLdouble>> ||C <- tuple_to_list(Params)>>)/binary>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGenf(Coord,Pname,Param) ->
+ wxe_util:cast(5282, <<Coord:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGenfv(Coord,Pname,Params) ->
+ wxe_util:cast(5283, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGeni(Coord,Pname,Param) ->
+ wxe_util:cast(5284, <<Coord:?GLenum,Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Coord::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">external</a> documentation.
+texGeniv(Coord,Pname,Params) ->
+ wxe_util:cast(5285, <<Coord:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage1D.xml">external</a> documentation.
+texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5286, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5287, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml">external</a> documentation.
+texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5288, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5289, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
+texParameterf(Target,Pname,Param) ->
+ wxe_util:cast(5290, <<Target:?GLenum,Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
+texParameterfv(Target,Pname,Params) ->
+ wxe_util:cast(5291, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
+texParameteri(Target,Pname,Param) ->
+ wxe_util:cast(5292, <<Target:?GLenum,Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">external</a> documentation.
+texParameteriv(Target,Pname,Params) ->
+ wxe_util:cast(5293, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage1D.xml">external</a> documentation.
+texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5294, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5295, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage2D.xml">external</a> documentation.
+texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5296, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5297, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTranslate.xml">external</a> documentation.
+translated(X,Y,Z) ->
+ wxe_util:cast(5298, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTranslate.xml">external</a> documentation.
+translatef(X,Y,Z) ->
+ wxe_util:cast(5299, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex2d(X,Y) ->
+ wxe_util:cast(5300, <<X:?GLdouble,Y:?GLdouble>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv vertex2d(X,Y)
+vertex2dv({X,Y}) -> vertex2d(X,Y).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex2f(X,Y) ->
+ wxe_util:cast(5301, <<X:?GLfloat,Y:?GLfloat>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv vertex2f(X,Y)
+vertex2fv({X,Y}) -> vertex2f(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex2i(X,Y) ->
+ wxe_util:cast(5302, <<X:?GLint,Y:?GLint>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv vertex2i(X,Y)
+vertex2iv({X,Y}) -> vertex2i(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex2s(X,Y) ->
+ wxe_util:cast(5303, <<X:?GLshort,Y:?GLshort>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv vertex2s(X,Y)
+vertex2sv({X,Y}) -> vertex2s(X,Y).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex3d(X,Y,Z) ->
+ wxe_util:cast(5304, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv vertex3d(X,Y,Z)
+vertex3dv({X,Y,Z}) -> vertex3d(X,Y,Z).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex3f(X,Y,Z) ->
+ wxe_util:cast(5305, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv vertex3f(X,Y,Z)
+vertex3fv({X,Y,Z}) -> vertex3f(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex3i(X,Y,Z) ->
+ wxe_util:cast(5306, <<X:?GLint,Y:?GLint,Z:?GLint>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv vertex3i(X,Y,Z)
+vertex3iv({X,Y,Z}) -> vertex3i(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex3s(X,Y,Z) ->
+ wxe_util:cast(5307, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv vertex3s(X,Y,Z)
+vertex3sv({X,Y,Z}) -> vertex3s(X,Y,Z).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex4d(X,Y,Z,W) ->
+ wxe_util:cast(5308, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv vertex4d(X,Y,Z,W)
+vertex4dv({X,Y,Z,W}) -> vertex4d(X,Y,Z,W).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex4f(X,Y,Z,W) ->
+ wxe_util:cast(5309, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv vertex4f(X,Y,Z,W)
+vertex4fv({X,Y,Z,W}) -> vertex4f(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex4i(X,Y,Z,W) ->
+ wxe_util:cast(5310, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv vertex4i(X,Y,Z,W)
+vertex4iv({X,Y,Z,W}) -> vertex4i(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">external</a> documentation.
+vertex4s(X,Y,Z,W) ->
+ wxe_util:cast(5311, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv vertex4s(X,Y,Z,W)
+vertex4sv({X,Y,Z,W}) -> vertex4s(X,Y,Z,W).
+
+%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexPointer.xml">external</a> documentation.
+vertexPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5312, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+vertexPointer(Size,Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5313, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewport.xml">external</a> documentation.
+viewport(X,Y,Width,Height) ->
+ wxe_util:cast(5314, <<X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendColor.xml">external</a> documentation.
+blendColor(Red,Green,Blue,Alpha) ->
+ wxe_util:cast(5315, <<Red:?GLclampf,Green:?GLclampf,Blue:?GLclampf,Alpha:?GLclampf>>).
+
+%% @spec (Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml">external</a> documentation.
+blendEquation(Mode) ->
+ wxe_util:cast(5316, <<Mode:?GLenum>>).
+
+%% @spec (Mode::enum(),Start::integer(),End::integer(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawRangeElements.xml">external</a> documentation.
+drawRangeElements(Mode,Start,End,Count,Type,Indices) when is_integer(Indices) ->
+ wxe_util:cast(5317, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum,Indices:?GLuint>>);
+drawRangeElements(Mode,Start,End,Count,Type,Indices) ->
+ wxe_util:send_bin(Indices),
+ wxe_util:cast(5318, <<Mode:?GLenum,Start:?GLuint,End:?GLuint,Count:?GLsizei,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3D.xml">external</a> documentation.
+texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5319, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5320, <<Target:?GLenum,Level:?GLint,Internalformat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexSubImage3D.xml">external</a> documentation.
+texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) when is_integer(Pixels) ->
+ wxe_util:cast(5321, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum,Pixels:?GLuint>>);
+texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) ->
+ wxe_util:send_bin(Pixels),
+ wxe_util:cast(5322, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexSubImage3D.xml">external</a> documentation.
+copyTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,X,Y,Width,Height) ->
+ wxe_util:cast(5323, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Table::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTable.xml">external</a> documentation.
+colorTable(Target,Internalformat,Width,Format,Type,Table) when is_integer(Table) ->
+ wxe_util:cast(5324, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Table:?GLuint>>);
+colorTable(Target,Internalformat,Width,Format,Type,Table) ->
+ wxe_util:send_bin(Table),
+ wxe_util:cast(5325, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTableParameter.xml">external</a> documentation.
+colorTableParameterfv(Target,Pname,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5326, <<Target:?GLenum,Pname:?GLenum,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorTableParameter.xml">external</a> documentation.
+colorTableParameteriv(Target,Pname,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5327, <<Target:?GLenum,Pname:?GLenum,P1:?GLint,P2:?GLint,P3:?GLint,P4:?GLint>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyColorTable.xml">external</a> documentation.
+copyColorTable(Target,Internalformat,X,Y,Width) ->
+ wxe_util:cast(5328, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
+
+%% @spec (Target::enum(),Format::enum(),Type::enum(),Table::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTable.xml">external</a> documentation.
+getColorTable(Target,Format,Type,Table) ->
+ wxe_util:send_bin(Table#wx_mem.bin),
+ wxe_util:call(5329, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTableParameter.xml">external</a> documentation.
+getColorTableParameterfv(Target,Pname) ->
+ wxe_util:call(5330, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetColorTableParameter.xml">external</a> documentation.
+getColorTableParameteriv(Target,Pname) ->
+ wxe_util:call(5331, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Start::integer(),Count::integer(),Format::enum(),Type::enum(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorSubTable.xml">external</a> documentation.
+colorSubTable(Target,Start,Count,Format,Type,Data) when is_integer(Data) ->
+ wxe_util:cast(5332, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum,Data:?GLuint>>);
+colorSubTable(Target,Start,Count,Format,Type,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5333, <<Target:?GLenum,Start:?GLsizei,Count:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Start::integer(),X::integer(),Y::integer(),Width::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyColorSubTable.xml">external</a> documentation.
+copyColorSubTable(Target,Start,X,Y,Width) ->
+ wxe_util:cast(5334, <<Target:?GLenum,Start:?GLsizei,X:?GLint,Y:?GLint,Width:?GLsizei>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionFilter1D.xml">external</a> documentation.
+convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) when is_integer(Image) ->
+ wxe_util:cast(5335, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
+convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) ->
+ wxe_util:send_bin(Image),
+ wxe_util:cast(5336, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionFilter2D.xml">external</a> documentation.
+convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) when is_integer(Image) ->
+ wxe_util:cast(5337, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Image:?GLuint>>);
+convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) ->
+ wxe_util:send_bin(Image),
+ wxe_util:cast(5338, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionParameter.xml">external</a> documentation.
+convolutionParameterf(Target,Pname,Params) ->
+ wxe_util:cast(5339, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target,Pname,{Params}) -> ok
+%% @equiv convolutionParameterf(Target,Pname,Params)
+convolutionParameterfv(Target,Pname,{Params}) -> convolutionParameterf(Target,Pname,Params).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glConvolutionParameter.xml">external</a> documentation.
+convolutionParameteri(Target,Pname,Params) ->
+ wxe_util:cast(5340, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target,Pname,{Params}) -> ok
+%% @equiv convolutionParameteri(Target,Pname,Params)
+convolutionParameteriv(Target,Pname,{Params}) -> convolutionParameteri(Target,Pname,Params).
+
+%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyConvolutionFilter1D.xml">external</a> documentation.
+copyConvolutionFilter1D(Target,Internalformat,X,Y,Width) ->
+ wxe_util:cast(5341, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyConvolutionFilter2D.xml">external</a> documentation.
+copyConvolutionFilter2D(Target,Internalformat,X,Y,Width,Height) ->
+ wxe_util:cast(5342, <<Target:?GLenum,Internalformat:?GLenum,X:?GLint,Y:?GLint,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Target::enum(),Format::enum(),Type::enum(),Image::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionFilter.xml">external</a> documentation.
+getConvolutionFilter(Target,Format,Type,Image) ->
+ wxe_util:send_bin(Image#wx_mem.bin),
+ wxe_util:call(5343, <<Target:?GLenum,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionParameter.xml">external</a> documentation.
+getConvolutionParameterfv(Target,Pname) ->
+ wxe_util:call(5344, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetConvolutionParameter.xml">external</a> documentation.
+getConvolutionParameteriv(Target,Pname) ->
+ wxe_util:call(5345, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Row::offset()|binary(),Column::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSeparableFilter2D.xml">external</a> documentation.
+separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) when is_integer(Row), is_integer(Column) ->
+ wxe_util:cast(5346, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Row:?GLuint,Column:?GLuint>>);
+separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) ->
+ wxe_util:send_bin(Row),
+ wxe_util:send_bin(Column),
+ wxe_util:cast(5347, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogram.xml">external</a> documentation.
+getHistogram(Target,Reset,Format,Type,Values) ->
+ wxe_util:send_bin(Values#wx_mem.bin),
+ wxe_util:call(5348, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogramParameter.xml">external</a> documentation.
+getHistogramParameterfv(Target,Pname) ->
+ wxe_util:call(5349, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHistogramParameter.xml">external</a> documentation.
+getHistogramParameteriv(Target,Pname) ->
+ wxe_util:call(5350, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmax.xml">external</a> documentation.
+getMinmax(Target,Reset,Format,Type,Values) ->
+ wxe_util:send_bin(Values#wx_mem.bin),
+ wxe_util:call(5351, <<Target:?GLenum,Reset:?GLboolean,0:24,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmaxParameter.xml">external</a> documentation.
+getMinmaxParameterfv(Target,Pname) ->
+ wxe_util:call(5352, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMinmaxParameter.xml">external</a> documentation.
+getMinmaxParameteriv(Target,Pname) ->
+ wxe_util:call(5353, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Width::integer(),Internalformat::enum(),Sink::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glHistogram.xml">external</a> documentation.
+histogram(Target,Width,Internalformat,Sink) ->
+ wxe_util:cast(5354, <<Target:?GLenum,Width:?GLsizei,Internalformat:?GLenum,Sink:?GLboolean>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Sink::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMinmax.xml">external</a> documentation.
+minmax(Target,Internalformat,Sink) ->
+ wxe_util:cast(5355, <<Target:?GLenum,Internalformat:?GLenum,Sink:?GLboolean>>).
+
+%% @spec (Target::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResetHistogram.xml">external</a> documentation.
+resetHistogram(Target) ->
+ wxe_util:cast(5356, <<Target:?GLenum>>).
+
+%% @spec (Target::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResetMinmax.xml">external</a> documentation.
+resetMinmax(Target) ->
+ wxe_util:cast(5357, <<Target:?GLenum>>).
+
+%% @spec (Texture::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml">external</a> documentation.
+activeTexture(Texture) ->
+ wxe_util:cast(5358, <<Texture:?GLenum>>).
+
+%% @spec (Value::clamp(),Invert::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSampleCoverage.xml">external</a> documentation.
+sampleCoverage(Value,Invert) ->
+ wxe_util:cast(5359, <<Value:?GLclampf,Invert:?GLboolean>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage3D.xml">external</a> documentation.
+compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5360, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5361, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage2D.xml">external</a> documentation.
+compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5362, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5363, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage1D.xml">external</a> documentation.
+compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5364, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5365, <<Target:?GLenum,Level:?GLint,Internalformat:?GLenum,Width:?GLsizei,Border:?GLint,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage3D.xml">external</a> documentation.
+compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5366, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5367, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Zoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage2D.xml">external</a> documentation.
+compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5368, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5369, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Yoffset:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexSubImage1D.xml">external</a> documentation.
+compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) when is_integer(Data) ->
+ wxe_util:cast(5370, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei,Data:?GLuint>>);
+compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5371, <<Target:?GLenum,Level:?GLint,Xoffset:?GLint,Width:?GLsizei,Format:?GLenum,ImageSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Level::integer(),Img::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetCompressedTexImage.xml">external</a> documentation.
+getCompressedTexImage(Target,Level,Img) ->
+ wxe_util:send_bin(Img#wx_mem.bin),
+ wxe_util:call(5372, <<Target:?GLenum,Level:?GLint>>).
+
+%% @spec (Texture::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClientActiveTexture.xml">external</a> documentation.
+clientActiveTexture(Texture) ->
+ wxe_util:cast(5373, <<Texture:?GLenum>>).
+
+%% @spec (Target::enum(),S::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord1d(Target,S) ->
+ wxe_util:cast(5374, <<Target:?GLenum,0:32,S:?GLdouble>>).
+
+%% @spec (Target,{S}) -> ok
+%% @equiv multiTexCoord1d(Target,S)
+multiTexCoord1dv(Target,{S}) -> multiTexCoord1d(Target,S).
+
+%% @spec (Target::enum(),S::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord1f(Target,S) ->
+ wxe_util:cast(5375, <<Target:?GLenum,S:?GLfloat>>).
+
+%% @spec (Target,{S}) -> ok
+%% @equiv multiTexCoord1f(Target,S)
+multiTexCoord1fv(Target,{S}) -> multiTexCoord1f(Target,S).
+
+%% @spec (Target::enum(),S::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord1i(Target,S) ->
+ wxe_util:cast(5376, <<Target:?GLenum,S:?GLint>>).
+
+%% @spec (Target,{S}) -> ok
+%% @equiv multiTexCoord1i(Target,S)
+multiTexCoord1iv(Target,{S}) -> multiTexCoord1i(Target,S).
+
+%% @spec (Target::enum(),S::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord1s(Target,S) ->
+ wxe_util:cast(5377, <<Target:?GLenum,S:?GLshort>>).
+
+%% @spec (Target,{S}) -> ok
+%% @equiv multiTexCoord1s(Target,S)
+multiTexCoord1sv(Target,{S}) -> multiTexCoord1s(Target,S).
+
+%% @spec (Target::enum(),S::float(),T::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord2d(Target,S,T) ->
+ wxe_util:cast(5378, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble>>).
+
+%% @spec (Target,{S,T}) -> ok
+%% @equiv multiTexCoord2d(Target,S,T)
+multiTexCoord2dv(Target,{S,T}) -> multiTexCoord2d(Target,S,T).
+
+%% @spec (Target::enum(),S::float(),T::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord2f(Target,S,T) ->
+ wxe_util:cast(5379, <<Target:?GLenum,S:?GLfloat,T:?GLfloat>>).
+
+%% @spec (Target,{S,T}) -> ok
+%% @equiv multiTexCoord2f(Target,S,T)
+multiTexCoord2fv(Target,{S,T}) -> multiTexCoord2f(Target,S,T).
+
+%% @spec (Target::enum(),S::integer(),T::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord2i(Target,S,T) ->
+ wxe_util:cast(5380, <<Target:?GLenum,S:?GLint,T:?GLint>>).
+
+%% @spec (Target,{S,T}) -> ok
+%% @equiv multiTexCoord2i(Target,S,T)
+multiTexCoord2iv(Target,{S,T}) -> multiTexCoord2i(Target,S,T).
+
+%% @spec (Target::enum(),S::integer(),T::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord2s(Target,S,T) ->
+ wxe_util:cast(5381, <<Target:?GLenum,S:?GLshort,T:?GLshort>>).
+
+%% @spec (Target,{S,T}) -> ok
+%% @equiv multiTexCoord2s(Target,S,T)
+multiTexCoord2sv(Target,{S,T}) -> multiTexCoord2s(Target,S,T).
+
+%% @spec (Target::enum(),S::float(),T::float(),R::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord3d(Target,S,T,R) ->
+ wxe_util:cast(5382, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble>>).
+
+%% @spec (Target,{S,T,R}) -> ok
+%% @equiv multiTexCoord3d(Target,S,T,R)
+multiTexCoord3dv(Target,{S,T,R}) -> multiTexCoord3d(Target,S,T,R).
+
+%% @spec (Target::enum(),S::float(),T::float(),R::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord3f(Target,S,T,R) ->
+ wxe_util:cast(5383, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat>>).
+
+%% @spec (Target,{S,T,R}) -> ok
+%% @equiv multiTexCoord3f(Target,S,T,R)
+multiTexCoord3fv(Target,{S,T,R}) -> multiTexCoord3f(Target,S,T,R).
+
+%% @spec (Target::enum(),S::integer(),T::integer(),R::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord3i(Target,S,T,R) ->
+ wxe_util:cast(5384, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint>>).
+
+%% @spec (Target,{S,T,R}) -> ok
+%% @equiv multiTexCoord3i(Target,S,T,R)
+multiTexCoord3iv(Target,{S,T,R}) -> multiTexCoord3i(Target,S,T,R).
+
+%% @spec (Target::enum(),S::integer(),T::integer(),R::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord3s(Target,S,T,R) ->
+ wxe_util:cast(5385, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort>>).
+
+%% @spec (Target,{S,T,R}) -> ok
+%% @equiv multiTexCoord3s(Target,S,T,R)
+multiTexCoord3sv(Target,{S,T,R}) -> multiTexCoord3s(Target,S,T,R).
+
+%% @spec (Target::enum(),S::float(),T::float(),R::float(),Q::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord4d(Target,S,T,R,Q) ->
+ wxe_util:cast(5386, <<Target:?GLenum,0:32,S:?GLdouble,T:?GLdouble,R:?GLdouble,Q:?GLdouble>>).
+
+%% @spec (Target,{S,T,R,Q}) -> ok
+%% @equiv multiTexCoord4d(Target,S,T,R,Q)
+multiTexCoord4dv(Target,{S,T,R,Q}) -> multiTexCoord4d(Target,S,T,R,Q).
+
+%% @spec (Target::enum(),S::float(),T::float(),R::float(),Q::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord4f(Target,S,T,R,Q) ->
+ wxe_util:cast(5387, <<Target:?GLenum,S:?GLfloat,T:?GLfloat,R:?GLfloat,Q:?GLfloat>>).
+
+%% @spec (Target,{S,T,R,Q}) -> ok
+%% @equiv multiTexCoord4f(Target,S,T,R,Q)
+multiTexCoord4fv(Target,{S,T,R,Q}) -> multiTexCoord4f(Target,S,T,R,Q).
+
+%% @spec (Target::enum(),S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord4i(Target,S,T,R,Q) ->
+ wxe_util:cast(5388, <<Target:?GLenum,S:?GLint,T:?GLint,R:?GLint,Q:?GLint>>).
+
+%% @spec (Target,{S,T,R,Q}) -> ok
+%% @equiv multiTexCoord4i(Target,S,T,R,Q)
+multiTexCoord4iv(Target,{S,T,R,Q}) -> multiTexCoord4i(Target,S,T,R,Q).
+
+%% @spec (Target::enum(),S::integer(),T::integer(),R::integer(),Q::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">external</a> documentation.
+multiTexCoord4s(Target,S,T,R,Q) ->
+ wxe_util:cast(5389, <<Target:?GLenum,S:?GLshort,T:?GLshort,R:?GLshort,Q:?GLshort>>).
+
+%% @spec (Target,{S,T,R,Q}) -> ok
+%% @equiv multiTexCoord4s(Target,S,T,R,Q)
+multiTexCoord4sv(Target,{S,T,R,Q}) -> multiTexCoord4s(Target,S,T,R,Q).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrix.xml">external</a> documentation.
+loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5390, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrix.xml">external</a> documentation.
+loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5391, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrix.xml">external</a> documentation.
+multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5392, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrix.xml">external</a> documentation.
+multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5393, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (SfactorRGB::enum(),DfactorRGB::enum(),SfactorAlpha::enum(),DfactorAlpha::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFuncSeparate.xml">external</a> documentation.
+blendFuncSeparate(SfactorRGB,DfactorRGB,SfactorAlpha,DfactorAlpha) ->
+ wxe_util:cast(5394, <<SfactorRGB:?GLenum,DfactorRGB:?GLenum,SfactorAlpha:?GLenum,DfactorAlpha:?GLenum>>).
+
+%% @spec (Mode::enum(),First::[integer()],Count::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiDrawArrays.xml">external</a> documentation.
+multiDrawArrays(Mode,First,Count) ->
+ wxe_util:cast(5395, <<Mode:?GLenum,(length(First)):?GLuint,
+ (<< <<C:?GLint>> || C <- First>>)/binary,0:(((length(First)) rem 2)*32),(length(Count)):?GLuint,
+ (<< <<C:?GLsizei>> || C <- Count>>)/binary,0:(((1+length(Count)) rem 2)*32)>>).
+
+%% @spec (Pname::enum(),Param::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
+pointParameterf(Pname,Param) ->
+ wxe_util:cast(5396, <<Pname:?GLenum,Param:?GLfloat>>).
+
+%% @spec (Pname::enum(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
+pointParameterfv(Pname,Params) ->
+ wxe_util:cast(5397, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Pname::enum(),Param::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
+pointParameteri(Pname,Param) ->
+ wxe_util:cast(5398, <<Pname:?GLenum,Param:?GLint>>).
+
+%% @spec (Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">external</a> documentation.
+pointParameteriv(Pname,Params) ->
+ wxe_util:cast(5399, <<Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>).
+
+%% @spec (Coord::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoord.xml">external</a> documentation.
+fogCoordf(Coord) ->
+ wxe_util:cast(5400, <<Coord:?GLfloat>>).
+
+%% @spec ({Coord}) -> ok
+%% @equiv fogCoordf(Coord)
+fogCoordfv({Coord}) -> fogCoordf(Coord).
+
+%% @spec (Coord::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoord.xml">external</a> documentation.
+fogCoordd(Coord) ->
+ wxe_util:cast(5401, <<Coord:?GLdouble>>).
+
+%% @spec ({Coord}) -> ok
+%% @equiv fogCoordd(Coord)
+fogCoorddv({Coord}) -> fogCoordd(Coord).
+
+%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFogCoordPointer.xml">external</a> documentation.
+fogCoordPointer(Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5402, <<Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+fogCoordPointer(Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5403, <<Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3b(Red,Green,Blue) ->
+ wxe_util:cast(5404, <<Red:?GLbyte,Green:?GLbyte,Blue:?GLbyte>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3b(Red,Green,Blue)
+secondaryColor3bv({Red,Green,Blue}) -> secondaryColor3b(Red,Green,Blue).
+
+%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3d(Red,Green,Blue) ->
+ wxe_util:cast(5405, <<Red:?GLdouble,Green:?GLdouble,Blue:?GLdouble>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3d(Red,Green,Blue)
+secondaryColor3dv({Red,Green,Blue}) -> secondaryColor3d(Red,Green,Blue).
+
+%% @spec (Red::float(),Green::float(),Blue::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3f(Red,Green,Blue) ->
+ wxe_util:cast(5406, <<Red:?GLfloat,Green:?GLfloat,Blue:?GLfloat>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3f(Red,Green,Blue)
+secondaryColor3fv({Red,Green,Blue}) -> secondaryColor3f(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3i(Red,Green,Blue) ->
+ wxe_util:cast(5407, <<Red:?GLint,Green:?GLint,Blue:?GLint>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3i(Red,Green,Blue)
+secondaryColor3iv({Red,Green,Blue}) -> secondaryColor3i(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3s(Red,Green,Blue) ->
+ wxe_util:cast(5408, <<Red:?GLshort,Green:?GLshort,Blue:?GLshort>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3s(Red,Green,Blue)
+secondaryColor3sv({Red,Green,Blue}) -> secondaryColor3s(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3ub(Red,Green,Blue) ->
+ wxe_util:cast(5409, <<Red:?GLubyte,Green:?GLubyte,Blue:?GLubyte>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3ub(Red,Green,Blue)
+secondaryColor3ubv({Red,Green,Blue}) -> secondaryColor3ub(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3ui(Red,Green,Blue) ->
+ wxe_util:cast(5410, <<Red:?GLuint,Green:?GLuint,Blue:?GLuint>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3ui(Red,Green,Blue)
+secondaryColor3uiv({Red,Green,Blue}) -> secondaryColor3ui(Red,Green,Blue).
+
+%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">external</a> documentation.
+secondaryColor3us(Red,Green,Blue) ->
+ wxe_util:cast(5411, <<Red:?GLushort,Green:?GLushort,Blue:?GLushort>>).
+
+%% @spec ({Red,Green,Blue}) -> ok
+%% @equiv secondaryColor3us(Red,Green,Blue)
+secondaryColor3usv({Red,Green,Blue}) -> secondaryColor3us(Red,Green,Blue).
+
+%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColorPointer.xml">external</a> documentation.
+secondaryColorPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5412, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+secondaryColorPointer(Size,Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5413, <<Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos2d(X,Y) ->
+ wxe_util:cast(5414, <<X:?GLdouble,Y:?GLdouble>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv windowPos2d(X,Y)
+windowPos2dv({X,Y}) -> windowPos2d(X,Y).
+
+%% @spec (X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos2f(X,Y) ->
+ wxe_util:cast(5415, <<X:?GLfloat,Y:?GLfloat>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv windowPos2f(X,Y)
+windowPos2fv({X,Y}) -> windowPos2f(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos2i(X,Y) ->
+ wxe_util:cast(5416, <<X:?GLint,Y:?GLint>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv windowPos2i(X,Y)
+windowPos2iv({X,Y}) -> windowPos2i(X,Y).
+
+%% @spec (X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos2s(X,Y) ->
+ wxe_util:cast(5417, <<X:?GLshort,Y:?GLshort>>).
+
+%% @spec ({X,Y}) -> ok
+%% @equiv windowPos2s(X,Y)
+windowPos2sv({X,Y}) -> windowPos2s(X,Y).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos3d(X,Y,Z) ->
+ wxe_util:cast(5418, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv windowPos3d(X,Y,Z)
+windowPos3dv({X,Y,Z}) -> windowPos3d(X,Y,Z).
+
+%% @spec (X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos3f(X,Y,Z) ->
+ wxe_util:cast(5419, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv windowPos3f(X,Y,Z)
+windowPos3fv({X,Y,Z}) -> windowPos3f(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos3i(X,Y,Z) ->
+ wxe_util:cast(5420, <<X:?GLint,Y:?GLint,Z:?GLint>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv windowPos3i(X,Y,Z)
+windowPos3iv({X,Y,Z}) -> windowPos3i(X,Y,Z).
+
+%% @spec (X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos.xml">external</a> documentation.
+windowPos3s(X,Y,Z) ->
+ wxe_util:cast(5421, <<X:?GLshort,Y:?GLshort,Z:?GLshort>>).
+
+%% @spec ({X,Y,Z}) -> ok
+%% @equiv windowPos3s(X,Y,Z)
+windowPos3sv({X,Y,Z}) -> windowPos3s(X,Y,Z).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenQueries.xml">external</a> documentation.
+genQueries(N) ->
+ wxe_util:call(5422, <<N:?GLsizei>>).
+
+%% @spec (Ids::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteQueries.xml">external</a> documentation.
+deleteQueries(Ids) ->
+ wxe_util:cast(5423, <<(length(Ids)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Ids>>)/binary,0:(((1+length(Ids)) rem 2)*32)>>).
+
+%% @spec (Id::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsQuery.xml">external</a> documentation.
+isQuery(Id) ->
+ wxe_util:call(5424, <<Id:?GLuint>>).
+
+%% @spec (Target::enum(),Id::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginQuery.xml">external</a> documentation.
+beginQuery(Target,Id) ->
+ wxe_util:cast(5425, <<Target:?GLenum,Id:?GLuint>>).
+
+%% @spec (Target::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndQuery.xml">external</a> documentation.
+endQuery(Target) ->
+ wxe_util:cast(5426, <<Target:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQuery.xml">external</a> documentation.
+getQueryiv(Target,Pname) ->
+ wxe_util:call(5427, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Id::integer(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObject.xml">external</a> documentation.
+getQueryObjectiv(Id,Pname) ->
+ wxe_util:call(5428, <<Id:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Id::integer(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetQueryObject.xml">external</a> documentation.
+getQueryObjectuiv(Id,Pname) ->
+ wxe_util:call(5429, <<Id:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Buffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBuffer.xml">external</a> documentation.
+bindBuffer(Target,Buffer) ->
+ wxe_util:cast(5430, <<Target:?GLenum,Buffer:?GLuint>>).
+
+%% @spec (Buffers::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteBuffers.xml">external</a> documentation.
+deleteBuffers(Buffers) ->
+ wxe_util:cast(5431, <<(length(Buffers)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Buffers>>)/binary,0:(((1+length(Buffers)) rem 2)*32)>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenBuffers.xml">external</a> documentation.
+genBuffers(N) ->
+ wxe_util:call(5432, <<N:?GLsizei>>).
+
+%% @spec (Buffer::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsBuffer.xml">external</a> documentation.
+isBuffer(Buffer) ->
+ wxe_util:call(5433, <<Buffer:?GLuint>>).
+
+%% @spec (Target::enum(),Size::integer(),Data::offset()|binary(),Usage::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xml">external</a> documentation.
+bufferData(Target,Size,Data,Usage) when is_integer(Data) ->
+ wxe_util:cast(5434, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Data:?GLuint,Usage:?GLenum>>);
+bufferData(Target,Size,Data,Usage) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5435, <<Target:?GLenum,0:32,Size:?GLsizeiptr,Usage:?GLenum>>).
+
+%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBufferSubData.xml">external</a> documentation.
+bufferSubData(Target,Offset,Size,Data) when is_integer(Data) ->
+ wxe_util:cast(5436, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr,Data:?GLuint>>);
+bufferSubData(Target,Offset,Size,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:cast(5437, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
+
+%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferSubData.xml">external</a> documentation.
+getBufferSubData(Target,Offset,Size,Data) ->
+ wxe_util:send_bin(Data#wx_mem.bin),
+ wxe_util:call(5438, <<Target:?GLenum,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBufferParameteriv.xml">external</a> documentation.
+getBufferParameteriv(Target,Pname) ->
+ wxe_util:call(5439, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (ModeRGB::enum(),ModeAlpha::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquationSeparate.xml">external</a> documentation.
+blendEquationSeparate(ModeRGB,ModeAlpha) ->
+ wxe_util:cast(5440, <<ModeRGB:?GLenum,ModeAlpha:?GLenum>>).
+
+%% @spec (Bufs::[enum()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawBuffers.xml">external</a> documentation.
+drawBuffers(Bufs) ->
+ wxe_util:cast(5441, <<(length(Bufs)):?GLuint,
+ (<< <<C:?GLenum>> || C <- Bufs>>)/binary,0:(((1+length(Bufs)) rem 2)*32)>>).
+
+%% @spec (Face::enum(),Sfail::enum(),Dpfail::enum(),Dppass::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilOpSeparate.xml">external</a> documentation.
+stencilOpSeparate(Face,Sfail,Dpfail,Dppass) ->
+ wxe_util:cast(5442, <<Face:?GLenum,Sfail:?GLenum,Dpfail:?GLenum,Dppass:?GLenum>>).
+
+%% @spec (Frontfunc::enum(),Backfunc::enum(),Ref::integer(),Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilFuncSeparate.xml">external</a> documentation.
+stencilFuncSeparate(Frontfunc,Backfunc,Ref,Mask) ->
+ wxe_util:cast(5443, <<Frontfunc:?GLenum,Backfunc:?GLenum,Ref:?GLint,Mask:?GLuint>>).
+
+%% @spec (Face::enum(),Mask::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilMaskSeparate.xml">external</a> documentation.
+stencilMaskSeparate(Face,Mask) ->
+ wxe_util:cast(5444, <<Face:?GLenum,Mask:?GLuint>>).
+
+%% @spec (Program::integer(),Shader::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAttachShader.xml">external</a> documentation.
+attachShader(Program,Shader) ->
+ wxe_util:cast(5445, <<Program:?GLuint,Shader:?GLuint>>).
+
+%% @spec (Program::integer(),Index::integer(),Name::string()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindAttribLocation.xml">external</a> documentation.
+bindAttribLocation(Program,Index,Name) ->
+ wxe_util:cast(5446, <<Program:?GLuint,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
+
+%% @spec (Shader::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShader.xml">external</a> documentation.
+compileShader(Shader) ->
+ wxe_util:cast(5447, <<Shader:?GLuint>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgram.xml">external</a> documentation.
+createProgram() ->
+ wxe_util:call(5448, <<>>).
+
+%% @spec (Type::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShader.xml">external</a> documentation.
+createShader(Type) ->
+ wxe_util:call(5449, <<Type:?GLenum>>).
+
+%% @spec (Program::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgram.xml">external</a> documentation.
+deleteProgram(Program) ->
+ wxe_util:cast(5450, <<Program:?GLuint>>).
+
+%% @spec (Shader::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteShader.xml">external</a> documentation.
+deleteShader(Shader) ->
+ wxe_util:cast(5451, <<Shader:?GLuint>>).
+
+%% @spec (Program::integer(),Shader::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDetachShader.xml">external</a> documentation.
+detachShader(Program,Shader) ->
+ wxe_util:cast(5452, <<Program:?GLuint,Shader:?GLuint>>).
+
+%% @spec (Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml">external</a> documentation.
+disableVertexAttribArray(Index) ->
+ wxe_util:cast(5453, <<Index:?GLuint>>).
+
+%% @spec (Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml">external</a> documentation.
+enableVertexAttribArray(Index) ->
+ wxe_util:cast(5454, <<Index:?GLuint>>).
+
+%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveAttrib.xml">external</a> documentation.
+getActiveAttrib(Program,Index,BufSize) ->
+ wxe_util:call(5455, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniform.xml">external</a> documentation.
+getActiveUniform(Program,Index,BufSize) ->
+ wxe_util:call(5456, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Program::integer(),MaxCount::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttachedShaders.xml">external</a> documentation.
+getAttachedShaders(Program,MaxCount) ->
+ wxe_util:call(5457, <<Program:?GLuint,MaxCount:?GLsizei>>).
+
+%% @spec (Program::integer(),Name::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocation.xml">external</a> documentation.
+getAttribLocation(Program,Name) ->
+ wxe_util:call(5458, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgram.xml">external</a> documentation.
+getProgramiv(Program,Pname) ->
+ wxe_util:call(5459, <<Program:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Program::integer(),BufSize::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramInfoLog.xml">external</a> documentation.
+getProgramInfoLog(Program,BufSize) ->
+ wxe_util:call(5460, <<Program:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Shader::integer(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShader.xml">external</a> documentation.
+getShaderiv(Shader,Pname) ->
+ wxe_util:call(5461, <<Shader:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Shader::integer(),BufSize::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderInfoLog.xml">external</a> documentation.
+getShaderInfoLog(Shader,BufSize) ->
+ wxe_util:call(5462, <<Shader:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Shader::integer(),BufSize::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderSource.xml">external</a> documentation.
+getShaderSource(Shader,BufSize) ->
+ wxe_util:call(5463, <<Shader:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Program::integer(),Name::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocation.xml">external</a> documentation.
+getUniformLocation(Program,Name) ->
+ wxe_util:call(5464, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer(),Location::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
+getUniformfv(Program,Location) ->
+ wxe_util:call(5465, <<Program:?GLuint,Location:?GLint>>).
+
+%% @spec (Program::integer(),Location::integer()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
+getUniformiv(Program,Location) ->
+ wxe_util:call(5466, <<Program:?GLuint,Location:?GLint>>).
+
+%% @spec (Index::integer(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
+getVertexAttribdv(Index,Pname) ->
+ wxe_util:call(5467, <<Index:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Index::integer(),Pname::enum()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
+getVertexAttribfv(Index,Pname) ->
+ wxe_util:call(5468, <<Index:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Index::integer(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttrib.xml">external</a> documentation.
+getVertexAttribiv(Index,Pname) ->
+ wxe_util:call(5469, <<Index:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Program::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsProgram.xml">external</a> documentation.
+isProgram(Program) ->
+ wxe_util:call(5470, <<Program:?GLuint>>).
+
+%% @spec (Shader::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsShader.xml">external</a> documentation.
+isShader(Shader) ->
+ wxe_util:call(5471, <<Shader:?GLuint>>).
+
+%% @spec (Program::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgram.xml">external</a> documentation.
+linkProgram(Program) ->
+ wxe_util:cast(5472, <<Program:?GLuint>>).
+
+%% @spec (Shader::integer(),String::[string()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderSource.xml">external</a> documentation.
+shaderSource(Shader,String) ->
+ StringTemp = list_to_binary([[Str|[0]] || Str <- String ]),
+ wxe_util:cast(5473, <<Shader:?GLuint,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+0) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgram.xml">external</a> documentation.
+useProgram(Program) ->
+ wxe_util:cast(5474, <<Program:?GLuint>>).
+
+%% @spec (Location::integer(),V0::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1f(Location,V0) ->
+ wxe_util:cast(5475, <<Location:?GLint,V0:?GLfloat>>).
+
+%% @spec (Location::integer(),V0::float(),V1::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2f(Location,V0,V1) ->
+ wxe_util:cast(5476, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat>>).
+
+%% @spec (Location::integer(),V0::float(),V1::float(),V2::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3f(Location,V0,V1,V2) ->
+ wxe_util:cast(5477, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat>>).
+
+%% @spec (Location::integer(),V0::float(),V1::float(),V2::float(),V3::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4f(Location,V0,V1,V2,V3) ->
+ wxe_util:cast(5478, <<Location:?GLint,V0:?GLfloat,V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>>).
+
+%% @spec (Location::integer(),V0::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1i(Location,V0) ->
+ wxe_util:cast(5479, <<Location:?GLint,V0:?GLint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2i(Location,V0,V1) ->
+ wxe_util:cast(5480, <<Location:?GLint,V0:?GLint,V1:?GLint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3i(Location,V0,V1,V2) ->
+ wxe_util:cast(5481, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4i(Location,V0,V1,V2,V3) ->
+ wxe_util:cast(5482, <<Location:?GLint,V0:?GLint,V1:?GLint,V2:?GLint,V3:?GLint>>).
+
+%% @spec (Location::integer(),Value::[float()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1fv(Location,Value) ->
+ wxe_util:cast(5483, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<C:?GLfloat>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
+
+%% @spec (Location::integer(),Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2fv(Location,Value) ->
+ wxe_util:cast(5484, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat>> || {V1,V2} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3fv(Location,Value) ->
+ wxe_util:cast(5485, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat>> || {V1,V2,V3} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4fv(Location,Value) ->
+ wxe_util:cast(5486, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1iv(Location,Value) ->
+ wxe_util:cast(5487, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<C:?GLint>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2iv(Location,Value) ->
+ wxe_util:cast(5488, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLint,V2:?GLint>> || {V1,V2} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3iv(Location,Value) ->
+ wxe_util:cast(5489, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLint,V2:?GLint,V3:?GLint>> || {V1,V2,V3} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4iv(Location,Value) ->
+ wxe_util:cast(5490, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
+uniformMatrix2fv(Location,Transpose,Value) ->
+ wxe_util:cast(5491, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
+uniformMatrix3fv(Location,Transpose,Value) ->
+ wxe_util:cast(5492, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix.xml">external</a> documentation.
+uniformMatrix4fv(Location,Transpose,Value) ->
+ wxe_util:cast(5493, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat,V13:?GLfloat,V14:?GLfloat,V15:?GLfloat,V16:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>).
+
+%% @spec (Program::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glValidateProgram.xml">external</a> documentation.
+validateProgram(Program) ->
+ wxe_util:cast(5494, <<Program:?GLuint>>).
+
+%% @spec (Index::integer(),X::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib1d(Index,X) ->
+ wxe_util:cast(5495, <<Index:?GLuint,0:32,X:?GLdouble>>).
+
+%% @spec (Index,{X}) -> ok
+%% @equiv vertexAttrib1d(Index,X)
+vertexAttrib1dv(Index,{X}) -> vertexAttrib1d(Index,X).
+
+%% @spec (Index::integer(),X::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib1f(Index,X) ->
+ wxe_util:cast(5496, <<Index:?GLuint,X:?GLfloat>>).
+
+%% @spec (Index,{X}) -> ok
+%% @equiv vertexAttrib1f(Index,X)
+vertexAttrib1fv(Index,{X}) -> vertexAttrib1f(Index,X).
+
+%% @spec (Index::integer(),X::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib1s(Index,X) ->
+ wxe_util:cast(5497, <<Index:?GLuint,X:?GLshort>>).
+
+%% @spec (Index,{X}) -> ok
+%% @equiv vertexAttrib1s(Index,X)
+vertexAttrib1sv(Index,{X}) -> vertexAttrib1s(Index,X).
+
+%% @spec (Index::integer(),X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib2d(Index,X,Y) ->
+ wxe_util:cast(5498, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble>>).
+
+%% @spec (Index,{X,Y}) -> ok
+%% @equiv vertexAttrib2d(Index,X,Y)
+vertexAttrib2dv(Index,{X,Y}) -> vertexAttrib2d(Index,X,Y).
+
+%% @spec (Index::integer(),X::float(),Y::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib2f(Index,X,Y) ->
+ wxe_util:cast(5499, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat>>).
+
+%% @spec (Index,{X,Y}) -> ok
+%% @equiv vertexAttrib2f(Index,X,Y)
+vertexAttrib2fv(Index,{X,Y}) -> vertexAttrib2f(Index,X,Y).
+
+%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib2s(Index,X,Y) ->
+ wxe_util:cast(5500, <<Index:?GLuint,X:?GLshort,Y:?GLshort>>).
+
+%% @spec (Index,{X,Y}) -> ok
+%% @equiv vertexAttrib2s(Index,X,Y)
+vertexAttrib2sv(Index,{X,Y}) -> vertexAttrib2s(Index,X,Y).
+
+%% @spec (Index::integer(),X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib3d(Index,X,Y,Z) ->
+ wxe_util:cast(5501, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble>>).
+
+%% @spec (Index,{X,Y,Z}) -> ok
+%% @equiv vertexAttrib3d(Index,X,Y,Z)
+vertexAttrib3dv(Index,{X,Y,Z}) -> vertexAttrib3d(Index,X,Y,Z).
+
+%% @spec (Index::integer(),X::float(),Y::float(),Z::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib3f(Index,X,Y,Z) ->
+ wxe_util:cast(5502, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat>>).
+
+%% @spec (Index,{X,Y,Z}) -> ok
+%% @equiv vertexAttrib3f(Index,X,Y,Z)
+vertexAttrib3fv(Index,{X,Y,Z}) -> vertexAttrib3f(Index,X,Y,Z).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib3s(Index,X,Y,Z) ->
+ wxe_util:cast(5503, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort>>).
+
+%% @spec (Index,{X,Y,Z}) -> ok
+%% @equiv vertexAttrib3s(Index,X,Y,Z)
+vertexAttrib3sv(Index,{X,Y,Z}) -> vertexAttrib3s(Index,X,Y,Z).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Nbv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5504, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Niv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5505, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Nsv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5506, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Nub(Index,X,Y,Z,W) ->
+ wxe_util:cast(5507, <<Index:?GLuint,X:?GLubyte,Y:?GLubyte,Z:?GLubyte,W:?GLubyte>>).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttrib4Nub(Index,X,Y,Z,W)
+vertexAttrib4Nubv(Index,{X,Y,Z,W}) -> vertexAttrib4Nub(Index,X,Y,Z,W).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Nuiv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5508, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4Nusv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5509, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4bv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5510, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
+
+%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4d(Index,X,Y,Z,W) ->
+ wxe_util:cast(5511, <<Index:?GLuint,0:32,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttrib4d(Index,X,Y,Z,W)
+vertexAttrib4dv(Index,{X,Y,Z,W}) -> vertexAttrib4d(Index,X,Y,Z,W).
+
+%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4f(Index,X,Y,Z,W) ->
+ wxe_util:cast(5512, <<Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttrib4f(Index,X,Y,Z,W)
+vertexAttrib4fv(Index,{X,Y,Z,W}) -> vertexAttrib4f(Index,X,Y,Z,W).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4iv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5513, <<Index:?GLuint,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4s(Index,X,Y,Z,W) ->
+ wxe_util:cast(5514, <<Index:?GLuint,X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttrib4s(Index,X,Y,Z,W)
+vertexAttrib4sv(Index,{X,Y,Z,W}) -> vertexAttrib4s(Index,X,Y,Z,W).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4ubv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5515, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4uiv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5516, <<Index:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">external</a> documentation.
+vertexAttrib4usv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5517, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
+
+%% @spec (Index::integer(),Size::integer(),Type::enum(),Normalized::0|1,Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribPointer.xml">external</a> documentation.
+vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5518, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei,Pointer:?GLuint>>);
+vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5519, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Normalized:?GLboolean,0:24,Stride:?GLsizei>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
+uniformMatrix2x3fv(Location,Transpose,Value) ->
+ wxe_util:cast(5520, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
+uniformMatrix3x2fv(Location,Transpose,Value) ->
+ wxe_util:cast(5521, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat>> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix2x.xml">external</a> documentation.
+uniformMatrix2x4fv(Location,Transpose,Value) ->
+ wxe_util:cast(5522, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
+uniformMatrix4x2fv(Location,Transpose,Value) ->
+ wxe_util:cast(5523, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix3x.xml">external</a> documentation.
+uniformMatrix3x4fv(Location,Transpose,Value) ->
+ wxe_util:cast(5524, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformMatrix4x.xml">external</a> documentation.
+uniformMatrix4x3fv(Location,Transpose,Value) ->
+ wxe_util:cast(5525, <<Location:?GLint,Transpose:?GLboolean,0:24,(length(Value)):?GLuint,
+ (<< <<V1:?GLfloat,V2:?GLfloat,V3:?GLfloat,V4:?GLfloat,V5:?GLfloat,V6:?GLfloat,V7:?GLfloat,V8:?GLfloat,V9:?GLfloat,V10:?GLfloat,V11:?GLfloat,V12:?GLfloat>> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12} <- Value>>)/binary>>).
+
+%% @spec (Index::integer(),R::0|1,G::0|1,B::0|1,A::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMaski.xml">external</a> documentation.
+colorMaski(Index,R,G,B,A) ->
+ wxe_util:cast(5526, <<Index:?GLuint,R:?GLboolean,G:?GLboolean,B:?GLboolean,A:?GLboolean>>).
+
+%% @spec (Target::enum(),Index::integer()) -> [0|1]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetBooleani_v.xml">external</a> documentation.
+getBooleani_v(Target,Index) ->
+ wxe_util:call(5527, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetIntegeri_v.xml">external</a> documentation.
+getIntegeri_v(Target,Index) ->
+ wxe_util:call(5528, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml">external</a> documentation.
+enablei(Target,Index) ->
+ wxe_util:cast(5529, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisable.xml">external</a> documentation.
+disablei(Target,Index) ->
+ wxe_util:cast(5530, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsEnabledi.xml">external</a> documentation.
+isEnabledi(Target,Index) ->
+ wxe_util:call(5531, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (PrimitiveMode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginTransformFeedback.xml">external</a> documentation.
+beginTransformFeedback(PrimitiveMode) ->
+ wxe_util:cast(5532, <<PrimitiveMode:?GLenum>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndTransformFeedback.xml">external</a> documentation.
+endTransformFeedback() ->
+ wxe_util:cast(5533, <<>>).
+
+%% @spec (Target::enum(),Index::integer(),Buffer::integer(),Offset::integer(),Size::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBufferRange.xml">external</a> documentation.
+bindBufferRange(Target,Index,Buffer,Offset,Size) ->
+ wxe_util:cast(5534, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint,0:32,Offset:?GLintptr,Size:?GLsizeiptr>>).
+
+%% @spec (Target::enum(),Index::integer(),Buffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindBufferBase.xml">external</a> documentation.
+bindBufferBase(Target,Index,Buffer) ->
+ wxe_util:cast(5535, <<Target:?GLenum,Index:?GLuint,Buffer:?GLuint>>).
+
+%% @spec (Program::integer(),Varyings::[string()],BufferMode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTransformFeedbackVaryings.xml">external</a> documentation.
+transformFeedbackVaryings(Program,Varyings,BufferMode) ->
+ VaryingsTemp = list_to_binary([[Str|[0]] || Str <- Varyings ]),
+ wxe_util:cast(5536, <<Program:?GLuint,(length(Varyings)):?GLuint,(size(VaryingsTemp)):?GLuint,(VaryingsTemp)/binary,0:((8-((size(VaryingsTemp)+0) rem 8)) rem 8),BufferMode:?GLenum>>).
+
+%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTransformFeedbackVarying.xml">external</a> documentation.
+getTransformFeedbackVarying(Program,Index,BufSize) ->
+ wxe_util:call(5537, <<Program:?GLuint,Index:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Target::enum(),Clamp::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClampColor.xml">external</a> documentation.
+clampColor(Target,Clamp) ->
+ wxe_util:cast(5538, <<Target:?GLenum,Clamp:?GLenum>>).
+
+%% @spec (Id::integer(),Mode::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBeginConditionalRender.xml">external</a> documentation.
+beginConditionalRender(Id,Mode) ->
+ wxe_util:cast(5539, <<Id:?GLuint,Mode:?GLenum>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glEndConditionalRender.xml">external</a> documentation.
+endConditionalRender() ->
+ wxe_util:cast(5540, <<>>).
+
+%% @spec (Index::integer(),Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribIPointer.xml">external</a> documentation.
+vertexAttribIPointer(Index,Size,Type,Stride,Pointer) when is_integer(Pointer) ->
+ wxe_util:cast(5541, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei,Pointer:?GLuint>>);
+vertexAttribIPointer(Index,Size,Type,Stride,Pointer) ->
+ wxe_util:send_bin(Pointer),
+ wxe_util:cast(5542, <<Index:?GLuint,Size:?GLint,Type:?GLenum,Stride:?GLsizei>>).
+
+%% @spec (Index::integer(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttribI.xml">external</a> documentation.
+getVertexAttribIiv(Index,Pname) ->
+ wxe_util:call(5543, <<Index:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Index::integer(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetVertexAttribI.xml">external</a> documentation.
+getVertexAttribIuiv(Index,Pname) ->
+ wxe_util:call(5544, <<Index:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Program::integer(),Location::integer()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml">external</a> documentation.
+getUniformuiv(Program,Location) ->
+ wxe_util:call(5545, <<Program:?GLuint,Location:?GLint>>).
+
+%% @spec (Program::integer(),Color::integer(),Name::string()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindFragDataLocation.xml">external</a> documentation.
+bindFragDataLocation(Program,Color,Name) ->
+ wxe_util:cast(5546, <<Program:?GLuint,Color:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer(),Name::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFragDataLocation.xml">external</a> documentation.
+getFragDataLocation(Program,Name) ->
+ wxe_util:call(5547, <<Program:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
+
+%% @spec (Location::integer(),V0::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1ui(Location,V0) ->
+ wxe_util:cast(5548, <<Location:?GLint,V0:?GLuint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2ui(Location,V0,V1) ->
+ wxe_util:cast(5549, <<Location:?GLint,V0:?GLuint,V1:?GLuint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3ui(Location,V0,V1,V2) ->
+ wxe_util:cast(5550, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint>>).
+
+%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4ui(Location,V0,V1,V2,V3) ->
+ wxe_util:cast(5551, <<Location:?GLint,V0:?GLuint,V1:?GLuint,V2:?GLuint,V3:?GLuint>>).
+
+%% @spec (Location::integer(),Value::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform1uiv(Location,Value) ->
+ wxe_util:cast(5552, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform2uiv(Location,Value) ->
+ wxe_util:cast(5553, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLuint,V2:?GLuint>> || {V1,V2} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform3uiv(Location,Value) ->
+ wxe_util:cast(5554, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint>> || {V1,V2,V3} <- Value>>)/binary>>).
+
+%% @spec (Location::integer(),Value::[{integer()}]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">external</a> documentation.
+uniform4uiv(Location,Value) ->
+ wxe_util:cast(5555, <<Location:?GLint,(length(Value)):?GLuint,
+ (<< <<V1:?GLuint,V2:?GLuint,V3:?GLuint,V4:?GLuint>> || {V1,V2,V3,V4} <- Value>>)/binary>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameterI.xml">external</a> documentation.
+texParameterIiv(Target,Pname,Params) ->
+ wxe_util:cast(5556, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameterI.xml">external</a> documentation.
+texParameterIuiv(Target,Pname,Params) ->
+ wxe_util:cast(5557, <<Target:?GLenum,Pname:?GLenum,(size(Params)):?GLuint,
+ (<< <<C:?GLuint>> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameterI.xml">external</a> documentation.
+getTexParameterIiv(Target,Pname) ->
+ wxe_util:call(5558, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetTexParameterI.xml">external</a> documentation.
+getTexParameterIuiv(Target,Pname) ->
+ wxe_util:call(5559, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
+clearBufferiv(Buffer,Drawbuffer,Value) ->
+ wxe_util:cast(5560, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
+ (<< <<C:?GLint>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
+
+%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
+clearBufferuiv(Buffer,Drawbuffer,Value) ->
+ wxe_util:cast(5561, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
+ (<< <<C:?GLuint>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
+
+%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBuffer.xml">external</a> documentation.
+clearBufferfv(Buffer,Drawbuffer,Value) ->
+ wxe_util:cast(5562, <<Buffer:?GLenum,Drawbuffer:?GLint,(size(Value)):?GLuint,
+ (<< <<C:?GLfloat>> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>).
+
+%% @spec (Buffer::enum(),Drawbuffer::integer(),Depth::float(),Stencil::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearBufferfi.xml">external</a> documentation.
+clearBufferfi(Buffer,Drawbuffer,Depth,Stencil) ->
+ wxe_util:cast(5563, <<Buffer:?GLenum,Drawbuffer:?GLint,Depth:?GLfloat,Stencil:?GLint>>).
+
+%% @spec (Name::enum(),Index::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml">external</a> documentation.
+getStringi(Name,Index) ->
+ wxe_util:call(5564, <<Name:?GLenum,Index:?GLuint>>).
+
+%% @spec (Index::integer(),X::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI1i(Index,X) ->
+ wxe_util:cast(5565, <<Index:?GLuint,X:?GLint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI2i(Index,X,Y) ->
+ wxe_util:cast(5566, <<Index:?GLuint,X:?GLint,Y:?GLint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI3i(Index,X,Y,Z) ->
+ wxe_util:cast(5567, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4i(Index,X,Y,Z,W) ->
+ wxe_util:cast(5568, <<Index:?GLuint,X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
+
+%% @spec (Index::integer(),X::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI1ui(Index,X) ->
+ wxe_util:cast(5569, <<Index:?GLuint,X:?GLuint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI2ui(Index,X,Y) ->
+ wxe_util:cast(5570, <<Index:?GLuint,X:?GLuint,Y:?GLuint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI3ui(Index,X,Y,Z) ->
+ wxe_util:cast(5571, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint>>).
+
+%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4ui(Index,X,Y,Z,W) ->
+ wxe_util:cast(5572, <<Index:?GLuint,X:?GLuint,Y:?GLuint,Z:?GLuint,W:?GLuint>>).
+
+%% @spec (Index,{X}) -> ok
+%% @equiv vertexAttribI1i(Index,X)
+vertexAttribI1iv(Index,{X}) -> vertexAttribI1i(Index,X).
+
+%% @spec (Index,{X,Y}) -> ok
+%% @equiv vertexAttribI2i(Index,X,Y)
+vertexAttribI2iv(Index,{X,Y}) -> vertexAttribI2i(Index,X,Y).
+
+%% @spec (Index,{X,Y,Z}) -> ok
+%% @equiv vertexAttribI3i(Index,X,Y,Z)
+vertexAttribI3iv(Index,{X,Y,Z}) -> vertexAttribI3i(Index,X,Y,Z).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttribI4i(Index,X,Y,Z,W)
+vertexAttribI4iv(Index,{X,Y,Z,W}) -> vertexAttribI4i(Index,X,Y,Z,W).
+
+%% @spec (Index,{X}) -> ok
+%% @equiv vertexAttribI1ui(Index,X)
+vertexAttribI1uiv(Index,{X}) -> vertexAttribI1ui(Index,X).
+
+%% @spec (Index,{X,Y}) -> ok
+%% @equiv vertexAttribI2ui(Index,X,Y)
+vertexAttribI2uiv(Index,{X,Y}) -> vertexAttribI2ui(Index,X,Y).
+
+%% @spec (Index,{X,Y,Z}) -> ok
+%% @equiv vertexAttribI3ui(Index,X,Y,Z)
+vertexAttribI3uiv(Index,{X,Y,Z}) -> vertexAttribI3ui(Index,X,Y,Z).
+
+%% @spec (Index,{X,Y,Z,W}) -> ok
+%% @equiv vertexAttribI4ui(Index,X,Y,Z,W)
+vertexAttribI4uiv(Index,{X,Y,Z,W}) -> vertexAttribI4ui(Index,X,Y,Z,W).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4bv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5573, <<Index:?GLuint,V1:?GLbyte,V2:?GLbyte,V3:?GLbyte,V4:?GLbyte>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4sv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5574, <<Index:?GLuint,V1:?GLshort,V2:?GLshort,V3:?GLshort,V4:?GLshort>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4ubv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5575, <<Index:?GLuint,V1:?GLubyte,V2:?GLubyte,V3:?GLubyte,V4:?GLubyte>>).
+
+%% @spec (Index::integer(),V::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribI.xml">external</a> documentation.
+vertexAttribI4usv(Index,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5576, <<Index:?GLuint,V1:?GLushort,V2:?GLushort,V3:?GLushort,V4:?GLushort>>).
+
+%% @spec (Mode::enum(),First::integer(),Count::integer(),Primcount::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawArraysInstance.xml">external</a> documentation.
+drawArraysInstanced(Mode,First,Count,Primcount) ->
+ wxe_util:cast(5577, <<Mode:?GLenum,First:?GLint,Count:?GLsizei,Primcount:?GLsizei>>).
+
+%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary(),Primcount::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawElementsInstance.xml">external</a> documentation.
+drawElementsInstanced(Mode,Count,Type,Indices,Primcount) when is_integer(Indices) ->
+ wxe_util:cast(5578, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Indices:?GLuint,Primcount:?GLsizei>>);
+drawElementsInstanced(Mode,Count,Type,Indices,Primcount) ->
+ wxe_util:send_bin(Indices),
+ wxe_util:cast(5579, <<Mode:?GLenum,Count:?GLsizei,Type:?GLenum,Primcount:?GLsizei>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Buffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexBuffer.xml">external</a> documentation.
+texBuffer(Target,Internalformat,Buffer) ->
+ wxe_util:cast(5580, <<Target:?GLenum,Internalformat:?GLenum,Buffer:?GLuint>>).
+
+%% @spec (Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glPrimitiveRestartIndex.xml">external</a> documentation.
+primitiveRestartIndex(Index) ->
+ wxe_util:cast(5581, <<Index:?GLuint>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrixARB.xml">external</a> documentation.
+loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5582, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5582, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadTransposeMatrixARB.xml">external</a> documentation.
+loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5583, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5583, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrixARB.xml">external</a> documentation.
+multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5584, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,M13:?GLfloat,M14:?GLfloat,M15:?GLfloat,M16:?GLfloat>>);
+multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5584, <<M1:?GLfloat,M2:?GLfloat,M3:?GLfloat,0:?GLfloat,M4:?GLfloat,M5:?GLfloat,M6:?GLfloat,0:?GLfloat,M7:?GLfloat,M8:?GLfloat,M9:?GLfloat,0:?GLfloat,M10:?GLfloat,M11:?GLfloat,M12:?GLfloat,1:?GLfloat>>).
+
+%% @spec (M::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultTransposeMatrixARB.xml">external</a> documentation.
+multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) ->
+ wxe_util:cast(5585, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble>>);
+multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) ->
+ wxe_util:cast(5585, <<M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightbvARB(Weights) ->
+ wxe_util:cast(5586, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLbyte>> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightsvARB(Weights) ->
+ wxe_util:cast(5587, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLshort>> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightivARB(Weights) ->
+ wxe_util:cast(5588, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLint>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
+
+%% @spec (Weights::[float()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightfvARB(Weights) ->
+ wxe_util:cast(5589, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLfloat>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
+
+%% @spec (Weights::[float()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightdvARB(Weights) ->
+ wxe_util:cast(5590, <<(length(Weights)):?GLuint,0:32,
+ (<< <<C:?GLdouble>> || C <- Weights>>)/binary>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightubvARB(Weights) ->
+ wxe_util:cast(5591, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLubyte>> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightusvARB(Weights) ->
+ wxe_util:cast(5592, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLushort>> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Weights::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWeightARB.xml">external</a> documentation.
+weightuivARB(Weights) ->
+ wxe_util:cast(5593, <<(length(Weights)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>).
+
+%% @spec (Count::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexBlenARB.xml">external</a> documentation.
+vertexBlendARB(Count) ->
+ wxe_util:cast(5594, <<Count:?GLint>>).
+
+%% @spec (Index::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCurrentPaletteMatrixARB.xml">external</a> documentation.
+currentPaletteMatrixARB(Index) ->
+ wxe_util:cast(5595, <<Index:?GLint>>).
+
+%% @spec (Indices::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
+matrixIndexubvARB(Indices) ->
+ wxe_util:cast(5596, <<(length(Indices)):?GLuint,
+ (<< <<C:?GLubyte>> || C <- Indices>>)/binary,0:((8-((length(Indices)+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Indices::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
+matrixIndexusvARB(Indices) ->
+ wxe_util:cast(5597, <<(length(Indices)):?GLuint,
+ (<< <<C:?GLushort>> || C <- Indices>>)/binary,0:((8-((length(Indices)*2+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Indices::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixIndexARB.xml">external</a> documentation.
+matrixIndexuivARB(Indices) ->
+ wxe_util:cast(5598, <<(length(Indices)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Indices>>)/binary,0:(((1+length(Indices)) rem 2)*32)>>).
+
+%% @spec (Target::enum(),Format::enum(),String::string()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramStringARB.xml">external</a> documentation.
+programStringARB(Target,Format,String) ->
+ wxe_util:cast(5599, <<Target:?GLenum,Format:?GLenum,(list_to_binary([String|[0]]))/binary,0:((8-((length(String)+ 1) rem 8)) rem 8)>>).
+
+%% @spec (Target::enum(),Program::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindProgramARB.xml">external</a> documentation.
+bindProgramARB(Target,Program) ->
+ wxe_util:cast(5600, <<Target:?GLenum,Program:?GLuint>>).
+
+%% @spec (Programs::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgramsARB.xml">external</a> documentation.
+deleteProgramsARB(Programs) ->
+ wxe_util:cast(5601, <<(length(Programs)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Programs>>)/binary,0:(((1+length(Programs)) rem 2)*32)>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenProgramsARB.xml">external</a> documentation.
+genProgramsARB(N) ->
+ wxe_util:call(5602, <<N:?GLsizei>>).
+
+%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
+programEnvParameter4dARB(Target,Index,X,Y,Z,W) ->
+ wxe_util:cast(5603, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
+programEnvParameter4dvARB(Target,Index,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5604, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
+
+%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
+programEnvParameter4fARB(Target,Index,X,Y,Z,W) ->
+ wxe_util:cast(5605, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramEnvParameterARB.xml">external</a> documentation.
+programEnvParameter4fvARB(Target,Index,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5606, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
+
+%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
+programLocalParameter4dARB(Target,Index,X,Y,Z,W) ->
+ wxe_util:cast(5607, <<Target:?GLenum,Index:?GLuint,X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
+programLocalParameter4dvARB(Target,Index,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5608, <<Target:?GLenum,Index:?GLuint,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble>>).
+
+%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
+programLocalParameter4fARB(Target,Index,X,Y,Z,W) ->
+ wxe_util:cast(5609, <<Target:?GLenum,Index:?GLuint,X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramLocalParameterARB.xml">external</a> documentation.
+programLocalParameter4fvARB(Target,Index,{P1,P2,P3,P4}) ->
+ wxe_util:cast(5610, <<Target:?GLenum,Index:?GLuint,P1:?GLfloat,P2:?GLfloat,P3:?GLfloat,P4:?GLfloat>>).
+
+%% @spec (Target::enum(),Index::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramEnvParameterARB.xml">external</a> documentation.
+getProgramEnvParameterdvARB(Target,Index) ->
+ wxe_util:call(5611, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramEnvParameterARB.xml">external</a> documentation.
+getProgramEnvParameterfvARB(Target,Index) ->
+ wxe_util:call(5612, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramLocalParameterARB.xml">external</a> documentation.
+getProgramLocalParameterdvARB(Target,Index) ->
+ wxe_util:call(5613, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Index::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramLocalParameterARB.xml">external</a> documentation.
+getProgramLocalParameterfvARB(Target,Index) ->
+ wxe_util:call(5614, <<Target:?GLenum,Index:?GLuint>>).
+
+%% @spec (Target::enum(),Pname::enum(),String::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramStringARB.xml">external</a> documentation.
+getProgramStringARB(Target,Pname,String) ->
+ wxe_util:send_bin(String#wx_mem.bin),
+ wxe_util:call(5615, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Obj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteObjectARB.xml">external</a> documentation.
+deleteObjectARB(Obj) ->
+ wxe_util:cast(5616, <<Obj:?GLhandleARB>>).
+
+%% @spec (Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetHandleARB.xml">external</a> documentation.
+getHandleARB(Pname) ->
+ wxe_util:call(5617, <<Pname:?GLenum>>).
+
+%% @spec (ContainerObj::integer(),AttachedObj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDetachObjectARB.xml">external</a> documentation.
+detachObjectARB(ContainerObj,AttachedObj) ->
+ wxe_util:cast(5618, <<ContainerObj:?GLhandleARB,AttachedObj:?GLhandleARB>>).
+
+%% @spec (ShaderType::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShaderObjectARB.xml">external</a> documentation.
+createShaderObjectARB(ShaderType) ->
+ wxe_util:call(5619, <<ShaderType:?GLenum>>).
+
+%% @spec (ShaderObj::integer(),String::[string()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderSourceARB.xml">external</a> documentation.
+shaderSourceARB(ShaderObj,String) ->
+ StringTemp = list_to_binary([[Str|[0]] || Str <- String ]),
+ wxe_util:cast(5620, <<ShaderObj:?GLhandleARB,(length(String)):?GLuint,(size(StringTemp)):?GLuint,(StringTemp)/binary,0:((8-((size(StringTemp)+4) rem 8)) rem 8)>>).
+
+%% @spec (ShaderObj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShaderARB.xml">external</a> documentation.
+compileShaderARB(ShaderObj) ->
+ wxe_util:cast(5621, <<ShaderObj:?GLhandleARB>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgramObjectARB.xml">external</a> documentation.
+createProgramObjectARB() ->
+ wxe_util:call(5622, <<>>).
+
+%% @spec (ContainerObj::integer(),Obj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAttachObjectARB.xml">external</a> documentation.
+attachObjectARB(ContainerObj,Obj) ->
+ wxe_util:cast(5623, <<ContainerObj:?GLhandleARB,Obj:?GLhandleARB>>).
+
+%% @spec (ProgramObj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgramARB.xml">external</a> documentation.
+linkProgramARB(ProgramObj) ->
+ wxe_util:cast(5624, <<ProgramObj:?GLhandleARB>>).
+
+%% @spec (ProgramObj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgramObjectARB.xml">external</a> documentation.
+useProgramObjectARB(ProgramObj) ->
+ wxe_util:cast(5625, <<ProgramObj:?GLhandleARB>>).
+
+%% @spec (ProgramObj::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glValidateProgramARB.xml">external</a> documentation.
+validateProgramARB(ProgramObj) ->
+ wxe_util:cast(5626, <<ProgramObj:?GLhandleARB>>).
+
+%% @spec (Obj::integer(),Pname::enum()) -> float()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetObjectParameterARB.xml">external</a> documentation.
+getObjectParameterfvARB(Obj,Pname) ->
+ wxe_util:call(5627, <<Obj:?GLhandleARB,Pname:?GLenum>>).
+
+%% @spec (Obj::integer(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetObjectParameterARB.xml">external</a> documentation.
+getObjectParameterivARB(Obj,Pname) ->
+ wxe_util:call(5628, <<Obj:?GLhandleARB,Pname:?GLenum>>).
+
+%% @spec (Obj::integer(),MaxLength::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetInfoLogARB.xml">external</a> documentation.
+getInfoLogARB(Obj,MaxLength) ->
+ wxe_util:call(5629, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
+
+%% @spec (ContainerObj::integer(),MaxCount::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttachedObjectsARB.xml">external</a> documentation.
+getAttachedObjectsARB(ContainerObj,MaxCount) ->
+ wxe_util:call(5630, <<ContainerObj:?GLhandleARB,MaxCount:?GLsizei>>).
+
+%% @spec (ProgramObj::integer(),Name::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocationARB.xml">external</a> documentation.
+getUniformLocationARB(ProgramObj,Name) ->
+ wxe_util:call(5631, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
+
+%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformARB.xml">external</a> documentation.
+getActiveUniformARB(ProgramObj,Index,MaxLength) ->
+ wxe_util:call(5632, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
+
+%% @spec (ProgramObj::integer(),Location::integer()) -> {float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformARB.xml">external</a> documentation.
+getUniformfvARB(ProgramObj,Location) ->
+ wxe_util:call(5633, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
+
+%% @spec (ProgramObj::integer(),Location::integer()) -> {integer()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformARB.xml">external</a> documentation.
+getUniformivARB(ProgramObj,Location) ->
+ wxe_util:call(5634, <<ProgramObj:?GLhandleARB,Location:?GLint>>).
+
+%% @spec (Obj::integer(),MaxLength::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderSourceARB.xml">external</a> documentation.
+getShaderSourceARB(Obj,MaxLength) ->
+ wxe_util:call(5635, <<Obj:?GLhandleARB,MaxLength:?GLsizei>>).
+
+%% @spec (ProgramObj::integer(),Index::integer(),Name::string()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindAttribLocationARB.xml">external</a> documentation.
+bindAttribLocationARB(ProgramObj,Index,Name) ->
+ wxe_util:cast(5636, <<ProgramObj:?GLhandleARB,Index:?GLuint,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 5) rem 8)) rem 8)>>).
+
+%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveAttribARB.xml">external</a> documentation.
+getActiveAttribARB(ProgramObj,Index,MaxLength) ->
+ wxe_util:call(5637, <<ProgramObj:?GLhandleARB,Index:?GLuint,MaxLength:?GLsizei>>).
+
+%% @spec (ProgramObj::integer(),Name::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocationARB.xml">external</a> documentation.
+getAttribLocationARB(ProgramObj,Name) ->
+ wxe_util:call(5638, <<ProgramObj:?GLhandleARB,(list_to_binary([Name|[0]]))/binary,0:((8-((length(Name)+ 1) rem 8)) rem 8)>>).
+
+%% @spec (Renderbuffer::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsRenderbuffer.xml">external</a> documentation.
+isRenderbuffer(Renderbuffer) ->
+ wxe_util:call(5639, <<Renderbuffer:?GLuint>>).
+
+%% @spec (Target::enum(),Renderbuffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindRenderbuffer.xml">external</a> documentation.
+bindRenderbuffer(Target,Renderbuffer) ->
+ wxe_util:cast(5640, <<Target:?GLenum,Renderbuffer:?GLuint>>).
+
+%% @spec (Renderbuffers::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml">external</a> documentation.
+deleteRenderbuffers(Renderbuffers) ->
+ wxe_util:cast(5641, <<(length(Renderbuffers)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Renderbuffers>>)/binary,0:(((1+length(Renderbuffers)) rem 2)*32)>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenRenderbuffers.xml">external</a> documentation.
+genRenderbuffers(N) ->
+ wxe_util:call(5642, <<N:?GLsizei>>).
+
+%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderbufferStorage.xml">external</a> documentation.
+renderbufferStorage(Target,Internalformat,Width,Height) ->
+ wxe_util:cast(5643, <<Target:?GLenum,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Target::enum(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetRenderbufferParameter.xml">external</a> documentation.
+getRenderbufferParameteriv(Target,Pname) ->
+ wxe_util:call(5644, <<Target:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Framebuffer::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsFramebuffer.xml">external</a> documentation.
+isFramebuffer(Framebuffer) ->
+ wxe_util:call(5645, <<Framebuffer:?GLuint>>).
+
+%% @spec (Target::enum(),Framebuffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindFramebuffer.xml">external</a> documentation.
+bindFramebuffer(Target,Framebuffer) ->
+ wxe_util:cast(5646, <<Target:?GLenum,Framebuffer:?GLuint>>).
+
+%% @spec (Framebuffers::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteFramebuffers.xml">external</a> documentation.
+deleteFramebuffers(Framebuffers) ->
+ wxe_util:cast(5647, <<(length(Framebuffers)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Framebuffers>>)/binary,0:(((1+length(Framebuffers)) rem 2)*32)>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenFramebuffers.xml">external</a> documentation.
+genFramebuffers(N) ->
+ wxe_util:call(5648, <<N:?GLsizei>>).
+
+%% @spec (Target::enum()) -> enum()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml">external</a> documentation.
+checkFramebufferStatus(Target) ->
+ wxe_util:call(5649, <<Target:?GLenum>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture1D.xml">external</a> documentation.
+framebufferTexture1D(Target,Attachment,Textarget,Texture,Level) ->
+ wxe_util:cast(5650, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture2D.xml">external</a> documentation.
+framebufferTexture2D(Target,Attachment,Textarget,Texture,Level) ->
+ wxe_util:cast(5651, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer(),Zoffset::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTexture3D.xml">external</a> documentation.
+framebufferTexture3D(Target,Attachment,Textarget,Texture,Level,Zoffset) ->
+ wxe_util:cast(5652, <<Target:?GLenum,Attachment:?GLenum,Textarget:?GLenum,Texture:?GLuint,Level:?GLint,Zoffset:?GLint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Renderbuffertarget::enum(),Renderbuffer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml">external</a> documentation.
+framebufferRenderbuffer(Target,Attachment,Renderbuffertarget,Renderbuffer) ->
+ wxe_util:cast(5653, <<Target:?GLenum,Attachment:?GLenum,Renderbuffertarget:?GLenum,Renderbuffer:?GLuint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Pname::enum()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameter.xml">external</a> documentation.
+getFramebufferAttachmentParameteriv(Target,Attachment,Pname) ->
+ wxe_util:call(5654, <<Target:?GLenum,Attachment:?GLenum,Pname:?GLenum>>).
+
+%% @spec (Target::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenerateMipmap.xml">external</a> documentation.
+generateMipmap(Target) ->
+ wxe_util:cast(5655, <<Target:?GLenum>>).
+
+%% @spec (SrcX0::integer(),SrcY0::integer(),SrcX1::integer(),SrcY1::integer(),DstX0::integer(),DstY0::integer(),DstX1::integer(),DstY1::integer(),Mask::integer(),Filter::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlitFramebuffer.xml">external</a> documentation.
+blitFramebuffer(SrcX0,SrcY0,SrcX1,SrcY1,DstX0,DstY0,DstX1,DstY1,Mask,Filter) ->
+ wxe_util:cast(5656, <<SrcX0:?GLint,SrcY0:?GLint,SrcX1:?GLint,SrcY1:?GLint,DstX0:?GLint,DstY0:?GLint,DstX1:?GLint,DstY1:?GLint,Mask:?GLbitfield,Filter:?GLenum>>).
+
+%% @spec (Target::enum(),Samples::integer(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderbufferStorageMultisample.xml">external</a> documentation.
+renderbufferStorageMultisample(Target,Samples,Internalformat,Width,Height) ->
+ wxe_util:cast(5657, <<Target:?GLenum,Samples:?GLsizei,Internalformat:?GLenum,Width:?GLsizei,Height:?GLsizei>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Layer::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureLayer.xml">external</a> documentation.
+framebufferTextureLayer(Target,Attachment,Texture,Level,Layer) ->
+ wxe_util:cast(5658, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Layer:?GLint>>).
+
+%% @spec (Program::integer(),Pname::enum(),Value::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glProgramParameterARB.xml">external</a> documentation.
+programParameteriARB(Program,Pname,Value) ->
+ wxe_util:cast(5659, <<Program:?GLuint,Pname:?GLenum,Value:?GLint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureARB.xml">external</a> documentation.
+framebufferTextureARB(Target,Attachment,Texture,Level) ->
+ wxe_util:cast(5660, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint>>).
+
+%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Face::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFramebufferTextureFaceARB.xml">external</a> documentation.
+framebufferTextureFaceARB(Target,Attachment,Texture,Level,Face) ->
+ wxe_util:cast(5661, <<Target:?GLenum,Attachment:?GLenum,Texture:?GLuint,Level:?GLint,Face:?GLenum>>).
+
+%% @spec (Index::integer(),Divisor::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribDivisorARB.xml">external</a> documentation.
+vertexAttribDivisorARB(Index,Divisor) ->
+ wxe_util:cast(5662, <<Index:?GLuint,Divisor:?GLuint>>).
+
+%% @spec (Target::enum(),Offset::integer(),Length::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glFlushMappedBufferRange.xml">external</a> documentation.
+flushMappedBufferRange(Target,Offset,Length) ->
+ wxe_util:cast(5663, <<Target:?GLenum,0:32,Offset:?GLintptr,Length:?GLsizeiptr>>).
+
+%% @spec (Array::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindVertexArray.xml">external</a> documentation.
+bindVertexArray(Array) ->
+ wxe_util:cast(5664, <<Array:?GLuint>>).
+
+%% @spec (Arrays::[integer()]) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteVertexArrays.xml">external</a> documentation.
+deleteVertexArrays(Arrays) ->
+ wxe_util:cast(5665, <<(length(Arrays)):?GLuint,
+ (<< <<C:?GLuint>> || C <- Arrays>>)/binary,0:(((1+length(Arrays)) rem 2)*32)>>).
+
+%% @spec (N::integer()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenVertexArrays.xml">external</a> documentation.
+genVertexArrays(N) ->
+ wxe_util:call(5666, <<N:?GLsizei>>).
+
+%% @spec (Array::integer()) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsVertexArray.xml">external</a> documentation.
+isVertexArray(Array) ->
+ wxe_util:call(5667, <<Array:?GLuint>>).
+
+%% @spec (Program::integer(),UniformNames::[string()]) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformIndices.xml">external</a> documentation.
+getUniformIndices(Program,UniformNames) ->
+ UniformNamesTemp = list_to_binary([[Str|[0]] || Str <- UniformNames ]),
+ wxe_util:call(5668, <<Program:?GLuint,(length(UniformNames)):?GLuint,(size(UniformNamesTemp)):?GLuint,(UniformNamesTemp)/binary,0:((8-((size(UniformNamesTemp)+0) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer(),UniformIndices::[integer()],Pname::enum()) -> [integer()]
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniforms.xml">external</a> documentation.
+getActiveUniformsiv(Program,UniformIndices,Pname) ->
+ wxe_util:call(5669, <<Program:?GLuint,(length(UniformIndices)):?GLuint,
+ (<< <<C:?GLuint>> || C <- UniformIndices>>)/binary,0:(((length(UniformIndices)) rem 2)*32),Pname:?GLenum>>).
+
+%% @spec (Program::integer(),UniformIndex::integer(),BufSize::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformName.xml">external</a> documentation.
+getActiveUniformName(Program,UniformIndex,BufSize) ->
+ wxe_util:call(5670, <<Program:?GLuint,UniformIndex:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Program::integer(),UniformBlockName::string()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformBlockIndex.xml">external</a> documentation.
+getUniformBlockIndex(Program,UniformBlockName) ->
+ wxe_util:call(5671, <<Program:?GLuint,(list_to_binary([UniformBlockName|[0]]))/binary,0:((8-((length(UniformBlockName)+ 5) rem 8)) rem 8)>>).
+
+%% @spec (Program::integer(),UniformBlockIndex::integer(),Pname::enum(),Params::wx:wx_mem()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformBlock.xml">external</a> documentation.
+getActiveUniformBlockiv(Program,UniformBlockIndex,Pname,Params) ->
+ wxe_util:send_bin(Params#wx_mem.bin),
+ wxe_util:call(5672, <<Program:?GLuint,UniformBlockIndex:?GLuint,Pname:?GLenum>>).
+
+%% @spec (Program::integer(),UniformBlockIndex::integer(),BufSize::integer()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetActiveUniformBlockName.xml">external</a> documentation.
+getActiveUniformBlockName(Program,UniformBlockIndex,BufSize) ->
+ wxe_util:call(5673, <<Program:?GLuint,UniformBlockIndex:?GLuint,BufSize:?GLsizei>>).
+
+%% @spec (Program::integer(),UniformBlockIndex::integer(),UniformBlockBinding::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniformBlockBinding.xml">external</a> documentation.
+uniformBlockBinding(Program,UniformBlockIndex,UniformBlockBinding) ->
+ wxe_util:cast(5674, <<Program:?GLuint,UniformBlockIndex:?GLuint,UniformBlockBinding:?GLuint>>).
+
+%% @spec (ReadTarget::enum(),WriteTarget::enum(),ReadOffset::integer(),WriteOffset::integer(),Size::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyBufferSubData.xml">external</a> documentation.
+copyBufferSubData(ReadTarget,WriteTarget,ReadOffset,WriteOffset,Size) ->
+ wxe_util:cast(5675, <<ReadTarget:?GLenum,WriteTarget:?GLenum,ReadOffset:?GLintptr,WriteOffset:?GLintptr,Size:?GLsizeiptr>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glResizeBuffersMESA.xml">external</a> documentation.
+resizeBuffersMESA() ->
+ wxe_util:cast(5676, <<>>).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4dMESA.xml">external</a> documentation.
+windowPos4dMESA(X,Y,Z,W) ->
+ wxe_util:cast(5677, <<X:?GLdouble,Y:?GLdouble,Z:?GLdouble,W:?GLdouble>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv windowPos4dMESA(X,Y,Z,W)
+windowPos4dvMESA({X,Y,Z,W}) -> windowPos4dMESA(X,Y,Z,W).
+
+%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4fMESA.xml">external</a> documentation.
+windowPos4fMESA(X,Y,Z,W) ->
+ wxe_util:cast(5678, <<X:?GLfloat,Y:?GLfloat,Z:?GLfloat,W:?GLfloat>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv windowPos4fMESA(X,Y,Z,W)
+windowPos4fvMESA({X,Y,Z,W}) -> windowPos4fMESA(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4iMESA.xml">external</a> documentation.
+windowPos4iMESA(X,Y,Z,W) ->
+ wxe_util:cast(5679, <<X:?GLint,Y:?GLint,Z:?GLint,W:?GLint>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv windowPos4iMESA(X,Y,Z,W)
+windowPos4ivMESA({X,Y,Z,W}) -> windowPos4iMESA(X,Y,Z,W).
+
+%% @spec (X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glWindowPos4sMESA.xml">external</a> documentation.
+windowPos4sMESA(X,Y,Z,W) ->
+ wxe_util:cast(5680, <<X:?GLshort,Y:?GLshort,Z:?GLshort,W:?GLshort>>).
+
+%% @spec ({X,Y,Z,W}) -> ok
+%% @equiv windowPos4sMESA(X,Y,Z,W)
+windowPos4svMESA({X,Y,Z,W}) -> windowPos4sMESA(X,Y,Z,W).
+
+%% @spec (Zmin::clamp(),Zmax::clamp()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthBoundsEXT.xml">external</a> documentation.
+depthBoundsEXT(Zmin,Zmax) ->
+ wxe_util:cast(5681, <<Zmin:?GLclampd,Zmax:?GLclampd>>).
+
+%% @spec (StencilTagBits::integer(),StencilClearTag::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilClearTagEXT.xml">external</a> documentation.
+stencilClearTagEXT(StencilTagBits,StencilClearTag) ->
+ wxe_util:cast(5682, <<StencilTagBits:?GLsizei,StencilClearTag:?GLuint>>).
+
diff --git a/lib/wx/src/gen/gl_debug.hrl b/lib/wx/src/gen/gl_debug.hrl
new file mode 100644
index 0000000000..8c25d94590
--- /dev/null
+++ b/lib/wx/src/gen/gl_debug.hrl
@@ -0,0 +1,697 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+gldebug_table() ->
+[
+ {5037, {gl, accum, 0}},
+ {5038, {gl, alphaFunc, 0}},
+ {5039, {gl, areTexturesResident, 0}},
+ {5040, {gl, arrayElement, 0}},
+ {5041, {gl, 'begin', 0}},
+ {5042, {gl, bindTexture, 0}},
+ {5043, {gl, bitmap, 0}},
+ {5044, {gl, bitmap, 0}},
+ {5045, {gl, blendFunc, 0}},
+ {5046, {gl, callList, 0}},
+ {5047, {gl, callLists, 0}},
+ {5048, {gl, clear, 0}},
+ {5049, {gl, clearAccum, 0}},
+ {5050, {gl, clearColor, 0}},
+ {5051, {gl, clearDepth, 0}},
+ {5052, {gl, clearIndex, 0}},
+ {5053, {gl, clearStencil, 0}},
+ {5054, {gl, clipPlane, 0}},
+ {5055, {gl, color3b, 0}},
+ {5056, {gl, color3d, 0}},
+ {5057, {gl, color3f, 0}},
+ {5058, {gl, color3i, 0}},
+ {5059, {gl, color3s, 0}},
+ {5060, {gl, color3ub, 0}},
+ {5061, {gl, color3ui, 0}},
+ {5062, {gl, color3us, 0}},
+ {5063, {gl, color4b, 0}},
+ {5064, {gl, color4d, 0}},
+ {5065, {gl, color4f, 0}},
+ {5066, {gl, color4i, 0}},
+ {5067, {gl, color4s, 0}},
+ {5068, {gl, color4ub, 0}},
+ {5069, {gl, color4ui, 0}},
+ {5070, {gl, color4us, 0}},
+ {5071, {gl, colorMask, 0}},
+ {5072, {gl, colorMaterial, 0}},
+ {5073, {gl, colorPointer, 0}},
+ {5074, {gl, colorPointer, 0}},
+ {5075, {gl, copyPixels, 0}},
+ {5076, {gl, copyTexImage1D, 0}},
+ {5077, {gl, copyTexImage2D, 0}},
+ {5078, {gl, copyTexSubImage1D, 0}},
+ {5079, {gl, copyTexSubImage2D, 0}},
+ {5080, {gl, cullFace, 0}},
+ {5081, {gl, deleteLists, 0}},
+ {5082, {gl, deleteTextures, 0}},
+ {5083, {gl, depthFunc, 0}},
+ {5084, {gl, depthMask, 0}},
+ {5085, {gl, depthRange, 0}},
+ {5086, {gl, disable, 0}},
+ {5087, {gl, disableClientState, 0}},
+ {5088, {gl, drawArrays, 0}},
+ {5089, {gl, drawBuffer, 0}},
+ {5090, {gl, drawElements, 0}},
+ {5091, {gl, drawElements, 0}},
+ {5092, {gl, drawPixels, 0}},
+ {5093, {gl, drawPixels, 0}},
+ {5094, {gl, edgeFlag, 0}},
+ {5095, {gl, edgeFlagPointer, 0}},
+ {5096, {gl, edgeFlagPointer, 0}},
+ {5097, {gl, enable, 0}},
+ {5098, {gl, enableClientState, 0}},
+ {5099, {gl, 'end', 0}},
+ {5100, {gl, endList, 0}},
+ {5101, {gl, evalCoord1d, 0}},
+ {5102, {gl, evalCoord1f, 0}},
+ {5103, {gl, evalCoord2d, 0}},
+ {5104, {gl, evalCoord2f, 0}},
+ {5105, {gl, evalMesh1, 0}},
+ {5106, {gl, evalMesh2, 0}},
+ {5107, {gl, evalPoint1, 0}},
+ {5108, {gl, evalPoint2, 0}},
+ {5109, {gl, feedbackBuffer, 0}},
+ {5110, {gl, finish, 0}},
+ {5111, {gl, flush, 0}},
+ {5112, {gl, fogf, 0}},
+ {5113, {gl, fogfv, 0}},
+ {5114, {gl, fogi, 0}},
+ {5115, {gl, fogiv, 0}},
+ {5116, {gl, frontFace, 0}},
+ {5117, {gl, frustum, 0}},
+ {5118, {gl, genLists, 0}},
+ {5119, {gl, genTextures, 0}},
+ {5120, {gl, getBooleanv, 0}},
+ {5121, {gl, getClipPlane, 0}},
+ {5122, {gl, getDoublev, 0}},
+ {5123, {gl, getError, 0}},
+ {5124, {gl, getFloatv, 0}},
+ {5125, {gl, getIntegerv, 0}},
+ {5126, {gl, getLightfv, 0}},
+ {5127, {gl, getLightiv, 0}},
+ {5128, {gl, getMapdv, 0}},
+ {5129, {gl, getMapfv, 0}},
+ {5130, {gl, getMapiv, 0}},
+ {5131, {gl, getMaterialfv, 0}},
+ {5132, {gl, getMaterialiv, 0}},
+ {5133, {gl, getPixelMapfv, 0}},
+ {5134, {gl, getPixelMapuiv, 0}},
+ {5135, {gl, getPixelMapusv, 0}},
+ {5136, {gl, getPolygonStipple, 0}},
+ {5137, {gl, getString, 0}},
+ {5138, {gl, getTexEnvfv, 0}},
+ {5139, {gl, getTexEnviv, 0}},
+ {5140, {gl, getTexGendv, 0}},
+ {5141, {gl, getTexGenfv, 0}},
+ {5142, {gl, getTexGeniv, 0}},
+ {5143, {gl, getTexImage, 0}},
+ {5144, {gl, getTexLevelParameterfv, 0}},
+ {5145, {gl, getTexLevelParameteriv, 0}},
+ {5146, {gl, getTexParameterfv, 0}},
+ {5147, {gl, getTexParameteriv, 0}},
+ {5148, {gl, hint, 0}},
+ {5149, {gl, indexMask, 0}},
+ {5150, {gl, indexPointer, 0}},
+ {5151, {gl, indexPointer, 0}},
+ {5152, {gl, indexd, 0}},
+ {5153, {gl, indexf, 0}},
+ {5154, {gl, indexi, 0}},
+ {5155, {gl, indexs, 0}},
+ {5156, {gl, indexub, 0}},
+ {5157, {gl, initNames, 0}},
+ {5158, {gl, interleavedArrays, 0}},
+ {5159, {gl, interleavedArrays, 0}},
+ {5160, {gl, isEnabled, 0}},
+ {5161, {gl, isList, 0}},
+ {5162, {gl, isTexture, 0}},
+ {5163, {gl, lightModelf, 0}},
+ {5164, {gl, lightModelfv, 0}},
+ {5165, {gl, lightModeli, 0}},
+ {5166, {gl, lightModeliv, 0}},
+ {5167, {gl, lightf, 0}},
+ {5168, {gl, lightfv, 0}},
+ {5169, {gl, lighti, 0}},
+ {5170, {gl, lightiv, 0}},
+ {5171, {gl, lineStipple, 0}},
+ {5172, {gl, lineWidth, 0}},
+ {5173, {gl, listBase, 0}},
+ {5174, {gl, loadIdentity, 0}},
+ {5175, {gl, loadMatrixd, 0}},
+ {5176, {gl, loadMatrixf, 0}},
+ {5177, {gl, loadName, 0}},
+ {5178, {gl, logicOp, 0}},
+ {5179, {gl, map1d, 0}},
+ {5180, {gl, map1f, 0}},
+ {5181, {gl, map2d, 0}},
+ {5182, {gl, map2f, 0}},
+ {5183, {gl, mapGrid1d, 0}},
+ {5184, {gl, mapGrid1f, 0}},
+ {5185, {gl, mapGrid2d, 0}},
+ {5186, {gl, mapGrid2f, 0}},
+ {5187, {gl, materialf, 0}},
+ {5188, {gl, materialfv, 0}},
+ {5189, {gl, materiali, 0}},
+ {5190, {gl, materialiv, 0}},
+ {5191, {gl, matrixMode, 0}},
+ {5192, {gl, multMatrixd, 0}},
+ {5193, {gl, multMatrixf, 0}},
+ {5194, {gl, newList, 0}},
+ {5195, {gl, normal3b, 0}},
+ {5196, {gl, normal3d, 0}},
+ {5197, {gl, normal3f, 0}},
+ {5198, {gl, normal3i, 0}},
+ {5199, {gl, normal3s, 0}},
+ {5200, {gl, normalPointer, 0}},
+ {5201, {gl, normalPointer, 0}},
+ {5202, {gl, ortho, 0}},
+ {5203, {gl, passThrough, 0}},
+ {5204, {gl, pixelMapfv, 0}},
+ {5205, {gl, pixelMapuiv, 0}},
+ {5206, {gl, pixelMapusv, 0}},
+ {5207, {gl, pixelStoref, 0}},
+ {5208, {gl, pixelStorei, 0}},
+ {5209, {gl, pixelTransferf, 0}},
+ {5210, {gl, pixelTransferi, 0}},
+ {5211, {gl, pixelZoom, 0}},
+ {5212, {gl, pointSize, 0}},
+ {5213, {gl, polygonMode, 0}},
+ {5214, {gl, polygonOffset, 0}},
+ {5215, {gl, polygonStipple, 0}},
+ {5216, {gl, popAttrib, 0}},
+ {5217, {gl, popClientAttrib, 0}},
+ {5218, {gl, popMatrix, 0}},
+ {5219, {gl, popName, 0}},
+ {5220, {gl, prioritizeTextures, 0}},
+ {5221, {gl, pushAttrib, 0}},
+ {5222, {gl, pushClientAttrib, 0}},
+ {5223, {gl, pushMatrix, 0}},
+ {5224, {gl, pushName, 0}},
+ {5225, {gl, rasterPos2d, 0}},
+ {5226, {gl, rasterPos2f, 0}},
+ {5227, {gl, rasterPos2i, 0}},
+ {5228, {gl, rasterPos2s, 0}},
+ {5229, {gl, rasterPos3d, 0}},
+ {5230, {gl, rasterPos3f, 0}},
+ {5231, {gl, rasterPos3i, 0}},
+ {5232, {gl, rasterPos3s, 0}},
+ {5233, {gl, rasterPos4d, 0}},
+ {5234, {gl, rasterPos4f, 0}},
+ {5235, {gl, rasterPos4i, 0}},
+ {5236, {gl, rasterPos4s, 0}},
+ {5237, {gl, readBuffer, 0}},
+ {5238, {gl, readPixels, 0}},
+ {5239, {gl, rectd, 0}},
+ {5240, {gl, rectdv, 0}},
+ {5241, {gl, rectf, 0}},
+ {5242, {gl, rectfv, 0}},
+ {5243, {gl, recti, 0}},
+ {5244, {gl, rectiv, 0}},
+ {5245, {gl, rects, 0}},
+ {5246, {gl, rectsv, 0}},
+ {5247, {gl, renderMode, 0}},
+ {5248, {gl, rotated, 0}},
+ {5249, {gl, rotatef, 0}},
+ {5250, {gl, scaled, 0}},
+ {5251, {gl, scalef, 0}},
+ {5252, {gl, scissor, 0}},
+ {5253, {gl, selectBuffer, 0}},
+ {5254, {gl, shadeModel, 0}},
+ {5255, {gl, stencilFunc, 0}},
+ {5256, {gl, stencilMask, 0}},
+ {5257, {gl, stencilOp, 0}},
+ {5258, {gl, texCoord1d, 0}},
+ {5259, {gl, texCoord1f, 0}},
+ {5260, {gl, texCoord1i, 0}},
+ {5261, {gl, texCoord1s, 0}},
+ {5262, {gl, texCoord2d, 0}},
+ {5263, {gl, texCoord2f, 0}},
+ {5264, {gl, texCoord2i, 0}},
+ {5265, {gl, texCoord2s, 0}},
+ {5266, {gl, texCoord3d, 0}},
+ {5267, {gl, texCoord3f, 0}},
+ {5268, {gl, texCoord3i, 0}},
+ {5269, {gl, texCoord3s, 0}},
+ {5270, {gl, texCoord4d, 0}},
+ {5271, {gl, texCoord4f, 0}},
+ {5272, {gl, texCoord4i, 0}},
+ {5273, {gl, texCoord4s, 0}},
+ {5274, {gl, texCoordPointer, 0}},
+ {5275, {gl, texCoordPointer, 0}},
+ {5276, {gl, texEnvf, 0}},
+ {5277, {gl, texEnvfv, 0}},
+ {5278, {gl, texEnvi, 0}},
+ {5279, {gl, texEnviv, 0}},
+ {5280, {gl, texGend, 0}},
+ {5281, {gl, texGendv, 0}},
+ {5282, {gl, texGenf, 0}},
+ {5283, {gl, texGenfv, 0}},
+ {5284, {gl, texGeni, 0}},
+ {5285, {gl, texGeniv, 0}},
+ {5286, {gl, texImage1D, 0}},
+ {5287, {gl, texImage1D, 0}},
+ {5288, {gl, texImage2D, 0}},
+ {5289, {gl, texImage2D, 0}},
+ {5290, {gl, texParameterf, 0}},
+ {5291, {gl, texParameterfv, 0}},
+ {5292, {gl, texParameteri, 0}},
+ {5293, {gl, texParameteriv, 0}},
+ {5294, {gl, texSubImage1D, 0}},
+ {5295, {gl, texSubImage1D, 0}},
+ {5296, {gl, texSubImage2D, 0}},
+ {5297, {gl, texSubImage2D, 0}},
+ {5298, {gl, translated, 0}},
+ {5299, {gl, translatef, 0}},
+ {5300, {gl, vertex2d, 0}},
+ {5301, {gl, vertex2f, 0}},
+ {5302, {gl, vertex2i, 0}},
+ {5303, {gl, vertex2s, 0}},
+ {5304, {gl, vertex3d, 0}},
+ {5305, {gl, vertex3f, 0}},
+ {5306, {gl, vertex3i, 0}},
+ {5307, {gl, vertex3s, 0}},
+ {5308, {gl, vertex4d, 0}},
+ {5309, {gl, vertex4f, 0}},
+ {5310, {gl, vertex4i, 0}},
+ {5311, {gl, vertex4s, 0}},
+ {5312, {gl, vertexPointer, 0}},
+ {5313, {gl, vertexPointer, 0}},
+ {5314, {gl, viewport, 0}},
+ {5315, {gl, blendColor, 0}},
+ {5316, {gl, blendEquation, 0}},
+ {5317, {gl, drawRangeElements, 0}},
+ {5318, {gl, drawRangeElements, 0}},
+ {5319, {gl, texImage3D, 0}},
+ {5320, {gl, texImage3D, 0}},
+ {5321, {gl, texSubImage3D, 0}},
+ {5322, {gl, texSubImage3D, 0}},
+ {5323, {gl, copyTexSubImage3D, 0}},
+ {5324, {gl, colorTable, 0}},
+ {5325, {gl, colorTable, 0}},
+ {5326, {gl, colorTableParameterfv, 0}},
+ {5327, {gl, colorTableParameteriv, 0}},
+ {5328, {gl, copyColorTable, 0}},
+ {5329, {gl, getColorTable, 0}},
+ {5330, {gl, getColorTableParameterfv, 0}},
+ {5331, {gl, getColorTableParameteriv, 0}},
+ {5332, {gl, colorSubTable, 0}},
+ {5333, {gl, colorSubTable, 0}},
+ {5334, {gl, copyColorSubTable, 0}},
+ {5335, {gl, convolutionFilter1D, 0}},
+ {5336, {gl, convolutionFilter1D, 0}},
+ {5337, {gl, convolutionFilter2D, 0}},
+ {5338, {gl, convolutionFilter2D, 0}},
+ {5339, {gl, convolutionParameterf, 0}},
+ {5340, {gl, convolutionParameteri, 0}},
+ {5341, {gl, copyConvolutionFilter1D, 0}},
+ {5342, {gl, copyConvolutionFilter2D, 0}},
+ {5343, {gl, getConvolutionFilter, 0}},
+ {5344, {gl, getConvolutionParameterfv, 0}},
+ {5345, {gl, getConvolutionParameteriv, 0}},
+ {5346, {gl, separableFilter2D, 0}},
+ {5347, {gl, separableFilter2D, 0}},
+ {5348, {gl, getHistogram, 0}},
+ {5349, {gl, getHistogramParameterfv, 0}},
+ {5350, {gl, getHistogramParameteriv, 0}},
+ {5351, {gl, getMinmax, 0}},
+ {5352, {gl, getMinmaxParameterfv, 0}},
+ {5353, {gl, getMinmaxParameteriv, 0}},
+ {5354, {gl, histogram, 0}},
+ {5355, {gl, minmax, 0}},
+ {5356, {gl, resetHistogram, 0}},
+ {5357, {gl, resetMinmax, 0}},
+ {5358, {gl, activeTexture, 0}},
+ {5359, {gl, sampleCoverage, 0}},
+ {5360, {gl, compressedTexImage3D, 0}},
+ {5361, {gl, compressedTexImage3D, 0}},
+ {5362, {gl, compressedTexImage2D, 0}},
+ {5363, {gl, compressedTexImage2D, 0}},
+ {5364, {gl, compressedTexImage1D, 0}},
+ {5365, {gl, compressedTexImage1D, 0}},
+ {5366, {gl, compressedTexSubImage3D, 0}},
+ {5367, {gl, compressedTexSubImage3D, 0}},
+ {5368, {gl, compressedTexSubImage2D, 0}},
+ {5369, {gl, compressedTexSubImage2D, 0}},
+ {5370, {gl, compressedTexSubImage1D, 0}},
+ {5371, {gl, compressedTexSubImage1D, 0}},
+ {5372, {gl, getCompressedTexImage, 0}},
+ {5373, {gl, clientActiveTexture, 0}},
+ {5374, {gl, multiTexCoord1d, 0}},
+ {5375, {gl, multiTexCoord1f, 0}},
+ {5376, {gl, multiTexCoord1i, 0}},
+ {5377, {gl, multiTexCoord1s, 0}},
+ {5378, {gl, multiTexCoord2d, 0}},
+ {5379, {gl, multiTexCoord2f, 0}},
+ {5380, {gl, multiTexCoord2i, 0}},
+ {5381, {gl, multiTexCoord2s, 0}},
+ {5382, {gl, multiTexCoord3d, 0}},
+ {5383, {gl, multiTexCoord3f, 0}},
+ {5384, {gl, multiTexCoord3i, 0}},
+ {5385, {gl, multiTexCoord3s, 0}},
+ {5386, {gl, multiTexCoord4d, 0}},
+ {5387, {gl, multiTexCoord4f, 0}},
+ {5388, {gl, multiTexCoord4i, 0}},
+ {5389, {gl, multiTexCoord4s, 0}},
+ {5390, {gl, loadTransposeMatrixf, 0}},
+ {5391, {gl, loadTransposeMatrixd, 0}},
+ {5392, {gl, multTransposeMatrixf, 0}},
+ {5393, {gl, multTransposeMatrixd, 0}},
+ {5394, {gl, blendFuncSeparate, 0}},
+ {5395, {gl, multiDrawArrays, 0}},
+ {5396, {gl, pointParameterf, 0}},
+ {5397, {gl, pointParameterfv, 0}},
+ {5398, {gl, pointParameteri, 0}},
+ {5399, {gl, pointParameteriv, 0}},
+ {5400, {gl, fogCoordf, 0}},
+ {5401, {gl, fogCoordd, 0}},
+ {5402, {gl, fogCoordPointer, 0}},
+ {5403, {gl, fogCoordPointer, 0}},
+ {5404, {gl, secondaryColor3b, 0}},
+ {5405, {gl, secondaryColor3d, 0}},
+ {5406, {gl, secondaryColor3f, 0}},
+ {5407, {gl, secondaryColor3i, 0}},
+ {5408, {gl, secondaryColor3s, 0}},
+ {5409, {gl, secondaryColor3ub, 0}},
+ {5410, {gl, secondaryColor3ui, 0}},
+ {5411, {gl, secondaryColor3us, 0}},
+ {5412, {gl, secondaryColorPointer, 0}},
+ {5413, {gl, secondaryColorPointer, 0}},
+ {5414, {gl, windowPos2d, 0}},
+ {5415, {gl, windowPos2f, 0}},
+ {5416, {gl, windowPos2i, 0}},
+ {5417, {gl, windowPos2s, 0}},
+ {5418, {gl, windowPos3d, 0}},
+ {5419, {gl, windowPos3f, 0}},
+ {5420, {gl, windowPos3i, 0}},
+ {5421, {gl, windowPos3s, 0}},
+ {5422, {gl, genQueries, 0}},
+ {5423, {gl, deleteQueries, 0}},
+ {5424, {gl, isQuery, 0}},
+ {5425, {gl, beginQuery, 0}},
+ {5426, {gl, endQuery, 0}},
+ {5427, {gl, getQueryiv, 0}},
+ {5428, {gl, getQueryObjectiv, 0}},
+ {5429, {gl, getQueryObjectuiv, 0}},
+ {5430, {gl, bindBuffer, 0}},
+ {5431, {gl, deleteBuffers, 0}},
+ {5432, {gl, genBuffers, 0}},
+ {5433, {gl, isBuffer, 0}},
+ {5434, {gl, bufferData, 0}},
+ {5435, {gl, bufferData, 0}},
+ {5436, {gl, bufferSubData, 0}},
+ {5437, {gl, bufferSubData, 0}},
+ {5438, {gl, getBufferSubData, 0}},
+ {5439, {gl, getBufferParameteriv, 0}},
+ {5440, {gl, blendEquationSeparate, 0}},
+ {5441, {gl, drawBuffers, 0}},
+ {5442, {gl, stencilOpSeparate, 0}},
+ {5443, {gl, stencilFuncSeparate, 0}},
+ {5444, {gl, stencilMaskSeparate, 0}},
+ {5445, {gl, attachShader, 0}},
+ {5446, {gl, bindAttribLocation, 0}},
+ {5447, {gl, compileShader, 0}},
+ {5448, {gl, createProgram, 0}},
+ {5449, {gl, createShader, 0}},
+ {5450, {gl, deleteProgram, 0}},
+ {5451, {gl, deleteShader, 0}},
+ {5452, {gl, detachShader, 0}},
+ {5453, {gl, disableVertexAttribArray, 0}},
+ {5454, {gl, enableVertexAttribArray, 0}},
+ {5455, {gl, getActiveAttrib, 0}},
+ {5456, {gl, getActiveUniform, 0}},
+ {5457, {gl, getAttachedShaders, 0}},
+ {5458, {gl, getAttribLocation, 0}},
+ {5459, {gl, getProgramiv, 0}},
+ {5460, {gl, getProgramInfoLog, 0}},
+ {5461, {gl, getShaderiv, 0}},
+ {5462, {gl, getShaderInfoLog, 0}},
+ {5463, {gl, getShaderSource, 0}},
+ {5464, {gl, getUniformLocation, 0}},
+ {5465, {gl, getUniformfv, 0}},
+ {5466, {gl, getUniformiv, 0}},
+ {5467, {gl, getVertexAttribdv, 0}},
+ {5468, {gl, getVertexAttribfv, 0}},
+ {5469, {gl, getVertexAttribiv, 0}},
+ {5470, {gl, isProgram, 0}},
+ {5471, {gl, isShader, 0}},
+ {5472, {gl, linkProgram, 0}},
+ {5473, {gl, shaderSource, 0}},
+ {5474, {gl, useProgram, 0}},
+ {5475, {gl, uniform1f, 0}},
+ {5476, {gl, uniform2f, 0}},
+ {5477, {gl, uniform3f, 0}},
+ {5478, {gl, uniform4f, 0}},
+ {5479, {gl, uniform1i, 0}},
+ {5480, {gl, uniform2i, 0}},
+ {5481, {gl, uniform3i, 0}},
+ {5482, {gl, uniform4i, 0}},
+ {5483, {gl, uniform1fv, 0}},
+ {5484, {gl, uniform2fv, 0}},
+ {5485, {gl, uniform3fv, 0}},
+ {5486, {gl, uniform4fv, 0}},
+ {5487, {gl, uniform1iv, 0}},
+ {5488, {gl, uniform2iv, 0}},
+ {5489, {gl, uniform3iv, 0}},
+ {5490, {gl, uniform4iv, 0}},
+ {5491, {gl, uniformMatrix2fv, 0}},
+ {5492, {gl, uniformMatrix3fv, 0}},
+ {5493, {gl, uniformMatrix4fv, 0}},
+ {5494, {gl, validateProgram, 0}},
+ {5495, {gl, vertexAttrib1d, 0}},
+ {5496, {gl, vertexAttrib1f, 0}},
+ {5497, {gl, vertexAttrib1s, 0}},
+ {5498, {gl, vertexAttrib2d, 0}},
+ {5499, {gl, vertexAttrib2f, 0}},
+ {5500, {gl, vertexAttrib2s, 0}},
+ {5501, {gl, vertexAttrib3d, 0}},
+ {5502, {gl, vertexAttrib3f, 0}},
+ {5503, {gl, vertexAttrib3s, 0}},
+ {5504, {gl, vertexAttrib4Nbv, 0}},
+ {5505, {gl, vertexAttrib4Niv, 0}},
+ {5506, {gl, vertexAttrib4Nsv, 0}},
+ {5507, {gl, vertexAttrib4Nub, 0}},
+ {5508, {gl, vertexAttrib4Nuiv, 0}},
+ {5509, {gl, vertexAttrib4Nusv, 0}},
+ {5510, {gl, vertexAttrib4bv, 0}},
+ {5511, {gl, vertexAttrib4d, 0}},
+ {5512, {gl, vertexAttrib4f, 0}},
+ {5513, {gl, vertexAttrib4iv, 0}},
+ {5514, {gl, vertexAttrib4s, 0}},
+ {5515, {gl, vertexAttrib4ubv, 0}},
+ {5516, {gl, vertexAttrib4uiv, 0}},
+ {5517, {gl, vertexAttrib4usv, 0}},
+ {5518, {gl, vertexAttribPointer, 0}},
+ {5519, {gl, vertexAttribPointer, 0}},
+ {5520, {gl, uniformMatrix2x3fv, 0}},
+ {5521, {gl, uniformMatrix3x2fv, 0}},
+ {5522, {gl, uniformMatrix2x4fv, 0}},
+ {5523, {gl, uniformMatrix4x2fv, 0}},
+ {5524, {gl, uniformMatrix3x4fv, 0}},
+ {5525, {gl, uniformMatrix4x3fv, 0}},
+ {5526, {gl, colorMaski, 0}},
+ {5527, {gl, getBooleani_v, 0}},
+ {5528, {gl, getIntegeri_v, 0}},
+ {5529, {gl, enablei, 0}},
+ {5530, {gl, disablei, 0}},
+ {5531, {gl, isEnabledi, 0}},
+ {5532, {gl, beginTransformFeedback, 0}},
+ {5533, {gl, endTransformFeedback, 0}},
+ {5534, {gl, bindBufferRange, 0}},
+ {5535, {gl, bindBufferBase, 0}},
+ {5536, {gl, transformFeedbackVaryings, 0}},
+ {5537, {gl, getTransformFeedbackVarying, 0}},
+ {5538, {gl, clampColor, 0}},
+ {5539, {gl, beginConditionalRender, 0}},
+ {5540, {gl, endConditionalRender, 0}},
+ {5541, {gl, vertexAttribIPointer, 0}},
+ {5542, {gl, vertexAttribIPointer, 0}},
+ {5543, {gl, getVertexAttribIiv, 0}},
+ {5544, {gl, getVertexAttribIuiv, 0}},
+ {5545, {gl, getUniformuiv, 0}},
+ {5546, {gl, bindFragDataLocation, 0}},
+ {5547, {gl, getFragDataLocation, 0}},
+ {5548, {gl, uniform1ui, 0}},
+ {5549, {gl, uniform2ui, 0}},
+ {5550, {gl, uniform3ui, 0}},
+ {5551, {gl, uniform4ui, 0}},
+ {5552, {gl, uniform1uiv, 0}},
+ {5553, {gl, uniform2uiv, 0}},
+ {5554, {gl, uniform3uiv, 0}},
+ {5555, {gl, uniform4uiv, 0}},
+ {5556, {gl, texParameterIiv, 0}},
+ {5557, {gl, texParameterIuiv, 0}},
+ {5558, {gl, getTexParameterIiv, 0}},
+ {5559, {gl, getTexParameterIuiv, 0}},
+ {5560, {gl, clearBufferiv, 0}},
+ {5561, {gl, clearBufferuiv, 0}},
+ {5562, {gl, clearBufferfv, 0}},
+ {5563, {gl, clearBufferfi, 0}},
+ {5564, {gl, getStringi, 0}},
+ {5565, {gl, vertexAttribI1i, 0}},
+ {5566, {gl, vertexAttribI2i, 0}},
+ {5567, {gl, vertexAttribI3i, 0}},
+ {5568, {gl, vertexAttribI4i, 0}},
+ {5569, {gl, vertexAttribI1ui, 0}},
+ {5570, {gl, vertexAttribI2ui, 0}},
+ {5571, {gl, vertexAttribI3ui, 0}},
+ {5572, {gl, vertexAttribI4ui, 0}},
+ {5573, {gl, vertexAttribI4bv, 0}},
+ {5574, {gl, vertexAttribI4sv, 0}},
+ {5575, {gl, vertexAttribI4ubv, 0}},
+ {5576, {gl, vertexAttribI4usv, 0}},
+ {5577, {gl, drawArraysInstanced, 0}},
+ {5578, {gl, drawElementsInstanced, 0}},
+ {5579, {gl, drawElementsInstanced, 0}},
+ {5580, {gl, texBuffer, 0}},
+ {5581, {gl, primitiveRestartIndex, 0}},
+ {5582, {gl, loadTransposeMatrixfARB, 0}},
+ {5583, {gl, loadTransposeMatrixdARB, 0}},
+ {5584, {gl, multTransposeMatrixfARB, 0}},
+ {5585, {gl, multTransposeMatrixdARB, 0}},
+ {5586, {gl, weightbvARB, 0}},
+ {5587, {gl, weightsvARB, 0}},
+ {5588, {gl, weightivARB, 0}},
+ {5589, {gl, weightfvARB, 0}},
+ {5590, {gl, weightdvARB, 0}},
+ {5591, {gl, weightubvARB, 0}},
+ {5592, {gl, weightusvARB, 0}},
+ {5593, {gl, weightuivARB, 0}},
+ {5594, {gl, vertexBlendARB, 0}},
+ {5595, {gl, currentPaletteMatrixARB, 0}},
+ {5596, {gl, matrixIndexubvARB, 0}},
+ {5597, {gl, matrixIndexusvARB, 0}},
+ {5598, {gl, matrixIndexuivARB, 0}},
+ {5599, {gl, programStringARB, 0}},
+ {5600, {gl, bindProgramARB, 0}},
+ {5601, {gl, deleteProgramsARB, 0}},
+ {5602, {gl, genProgramsARB, 0}},
+ {5603, {gl, programEnvParameter4dARB, 0}},
+ {5604, {gl, programEnvParameter4dvARB, 0}},
+ {5605, {gl, programEnvParameter4fARB, 0}},
+ {5606, {gl, programEnvParameter4fvARB, 0}},
+ {5607, {gl, programLocalParameter4dARB, 0}},
+ {5608, {gl, programLocalParameter4dvARB, 0}},
+ {5609, {gl, programLocalParameter4fARB, 0}},
+ {5610, {gl, programLocalParameter4fvARB, 0}},
+ {5611, {gl, getProgramEnvParameterdvARB, 0}},
+ {5612, {gl, getProgramEnvParameterfvARB, 0}},
+ {5613, {gl, getProgramLocalParameterdvARB, 0}},
+ {5614, {gl, getProgramLocalParameterfvARB, 0}},
+ {5615, {gl, getProgramStringARB, 0}},
+ {5616, {gl, deleteObjectARB, 0}},
+ {5617, {gl, getHandleARB, 0}},
+ {5618, {gl, detachObjectARB, 0}},
+ {5619, {gl, createShaderObjectARB, 0}},
+ {5620, {gl, shaderSourceARB, 0}},
+ {5621, {gl, compileShaderARB, 0}},
+ {5622, {gl, createProgramObjectARB, 0}},
+ {5623, {gl, attachObjectARB, 0}},
+ {5624, {gl, linkProgramARB, 0}},
+ {5625, {gl, useProgramObjectARB, 0}},
+ {5626, {gl, validateProgramARB, 0}},
+ {5627, {gl, getObjectParameterfvARB, 0}},
+ {5628, {gl, getObjectParameterivARB, 0}},
+ {5629, {gl, getInfoLogARB, 0}},
+ {5630, {gl, getAttachedObjectsARB, 0}},
+ {5631, {gl, getUniformLocationARB, 0}},
+ {5632, {gl, getActiveUniformARB, 0}},
+ {5633, {gl, getUniformfvARB, 0}},
+ {5634, {gl, getUniformivARB, 0}},
+ {5635, {gl, getShaderSourceARB, 0}},
+ {5636, {gl, bindAttribLocationARB, 0}},
+ {5637, {gl, getActiveAttribARB, 0}},
+ {5638, {gl, getAttribLocationARB, 0}},
+ {5639, {gl, isRenderbuffer, 0}},
+ {5640, {gl, bindRenderbuffer, 0}},
+ {5641, {gl, deleteRenderbuffers, 0}},
+ {5642, {gl, genRenderbuffers, 0}},
+ {5643, {gl, renderbufferStorage, 0}},
+ {5644, {gl, getRenderbufferParameteriv, 0}},
+ {5645, {gl, isFramebuffer, 0}},
+ {5646, {gl, bindFramebuffer, 0}},
+ {5647, {gl, deleteFramebuffers, 0}},
+ {5648, {gl, genFramebuffers, 0}},
+ {5649, {gl, checkFramebufferStatus, 0}},
+ {5650, {gl, framebufferTexture1D, 0}},
+ {5651, {gl, framebufferTexture2D, 0}},
+ {5652, {gl, framebufferTexture3D, 0}},
+ {5653, {gl, framebufferRenderbuffer, 0}},
+ {5654, {gl, getFramebufferAttachmentParameteriv, 0}},
+ {5655, {gl, generateMipmap, 0}},
+ {5656, {gl, blitFramebuffer, 0}},
+ {5657, {gl, renderbufferStorageMultisample, 0}},
+ {5658, {gl, framebufferTextureLayer, 0}},
+ {5659, {gl, programParameteriARB, 0}},
+ {5660, {gl, framebufferTextureARB, 0}},
+ {5661, {gl, framebufferTextureFaceARB, 0}},
+ {5662, {gl, vertexAttribDivisorARB, 0}},
+ {5663, {gl, flushMappedBufferRange, 0}},
+ {5664, {gl, bindVertexArray, 0}},
+ {5665, {gl, deleteVertexArrays, 0}},
+ {5666, {gl, genVertexArrays, 0}},
+ {5667, {gl, isVertexArray, 0}},
+ {5668, {gl, getUniformIndices, 0}},
+ {5669, {gl, getActiveUniformsiv, 0}},
+ {5670, {gl, getActiveUniformName, 0}},
+ {5671, {gl, getUniformBlockIndex, 0}},
+ {5672, {gl, getActiveUniformBlockiv, 0}},
+ {5673, {gl, getActiveUniformBlockName, 0}},
+ {5674, {gl, uniformBlockBinding, 0}},
+ {5675, {gl, copyBufferSubData, 0}},
+ {5676, {gl, resizeBuffersMESA, 0}},
+ {5677, {gl, windowPos4dMESA, 0}},
+ {5678, {gl, windowPos4fMESA, 0}},
+ {5679, {gl, windowPos4iMESA, 0}},
+ {5680, {gl, windowPos4sMESA, 0}},
+ {5681, {gl, depthBoundsEXT, 0}},
+ {5682, {gl, stencilClearTagEXT, 0}},
+ {5010, {glu, build1DMipmapLevels, 0}},
+ {5011, {glu, build1DMipmaps, 0}},
+ {5012, {glu, build2DMipmapLevels, 0}},
+ {5013, {glu, build2DMipmaps, 0}},
+ {5014, {glu, build3DMipmapLevels, 0}},
+ {5015, {glu, build3DMipmaps, 0}},
+ {5016, {glu, checkExtension, 0}},
+ {5017, {glu, cylinder, 0}},
+ {5018, {glu, deleteQuadric, 0}},
+ {5019, {glu, disk, 0}},
+ {5020, {glu, errorString, 0}},
+ {5021, {glu, getString, 0}},
+ {5022, {glu, lookAt, 0}},
+ {5023, {glu, newQuadric, 0}},
+ {5024, {glu, ortho2D, 0}},
+ {5025, {glu, partialDisk, 0}},
+ {5026, {glu, perspective, 0}},
+ {5027, {glu, pickMatrix, 0}},
+ {5028, {glu, project, 0}},
+ {5029, {glu, quadricDrawStyle, 0}},
+ {5030, {glu, quadricNormals, 0}},
+ {5031, {glu, quadricOrientation, 0}},
+ {5032, {glu, quadricTexture, 0}},
+ {5033, {glu, scaleImage, 0}},
+ {5034, {glu, sphere, 0}},
+ {5035, {glu, unProject, 0}},
+ {5036, {glu, unProject4, 0}},
+ {-1, {mod, func, -1}}
+].
+
diff --git a/lib/wx/src/gen/glu.erl b/lib/wx/src/gen/glu.erl
new file mode 100644
index 0000000000..9a06be4077
--- /dev/null
+++ b/lib/wx/src/gen/glu.erl
@@ -0,0 +1,231 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+
+%% OPENGL UTILITY API
+
+%% This file is generated DO NOT EDIT
+
+%% @doc A part of the standard OpenGL Utility api.
+%% See <a href="http://www.opengl.org/sdk/docs/man/">www.opengl.org</a>
+%%
+%% Booleans are represented by integers 0 and 1.
+
+%% @type wx_mem(). see wx.erl on memory allocation functions
+%% @type enum(). An integer defined in gl.hrl
+%% @type offset(). An integer which is an offset in an array
+%% @type clamp(). A float clamped between 0.0 - 1.0
+
+-module(glu).
+-compile(inline).
+-include("wxe.hrl").
+-define(GLenum,32/native-unsigned).
+-define(GLboolean,8/native-unsigned).
+-define(GLbitfield,32/native-unsigned).
+-define(GLbyte,8/native-signed).
+-define(GLshort,16/native-signed).
+-define(GLint,32/native-signed).
+-define(GLubyte,8/native-unsigned).
+-define(GLushort,16/native-unsigned).
+-define(GLuint,32/native-unsigned).
+-define(GLsizei,32/native-signed).
+-define(GLfloat,32/native-float).
+-define(GLclampf,32/native-float).
+-define(GLdouble,64/native-float).
+-define(GLclampd,64/native-float).
+-define(GLsizeiptr,64/native-unsigned).
+-define(GLintptr,64/native-unsigned).
+-define(GLUquadric,64/native-unsigned).
+-define(GLhandleARB,64/native-unsigned).
+
+-export([tesselate/2,build1DMipmapLevels/9,build1DMipmaps/6,build2DMipmapLevels/10,
+ build2DMipmaps/7,build3DMipmapLevels/11,build3DMipmaps/8,checkExtension/2,
+ cylinder/6,deleteQuadric/1,disk/5,errorString/1,getString/1,lookAt/9,
+ newQuadric/0,ortho2D/4,partialDisk/7,perspective/4,pickMatrix/5,project/6,
+ quadricDrawStyle/2,quadricNormals/2,quadricOrientation/2,quadricTexture/2,
+ scaleImage/9,sphere/4,unProject/6,unProject4/9]).
+
+
+%% API
+
+%% @spec (Vec3, [Vec3]) -> {Triangles, VertexPos}
+%% Vec3 = {float(),float(),float()}
+%% Triangles = [VertexIndex::integer()]
+%% VertexPos = binary()
+%% @doc General purpose polygon triangulation.
+%% The first argument is the normal and the second a list of
+%% vertex positions. Returned is a list of indecies of the vertices
+%% and a binary (64bit native float) containing an array of
+%% vertex positions, it starts with the vertices in Vs and
+%% may contain newly created vertices in the end.
+tesselate({Nx,Ny,Nz}, Vs) ->
+ wxe_util:call(5000, <<(length(Vs)):32/native,0:32,
+ Nx:?GLdouble,Ny:?GLdouble,Nz:?GLdouble,
+ (<< <<Vx:?GLdouble,Vy:?GLdouble,Vz:?GLdouble >>
+ || {Vx,Vy,Vz} <- Vs>>)/binary >>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Format::enum(),Type::enum(),Level::integer(),Base::integer(),Max::integer(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild1DMipmapLevels.xml">external</a> documentation.
+build1DMipmapLevels(Target,InternalFormat,Width,Format,Type,Level,Base,Max,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5010, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum,Level:?GLint,Base:?GLint,Max:?GLint>>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild1DMipmaps.xml">external</a> documentation.
+build1DMipmaps(Target,InternalFormat,Width,Format,Type,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5011, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Level::integer(),Base::integer(),Max::integer(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild2DMipmapLevels.xml">external</a> documentation.
+build2DMipmapLevels(Target,InternalFormat,Width,Height,Format,Type,Level,Base,Max,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5012, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum,Level:?GLint,Base:?GLint,Max:?GLint>>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild2DMipmaps.xml">external</a> documentation.
+build2DMipmaps(Target,InternalFormat,Width,Height,Format,Type,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5013, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Height:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Level::integer(),Base::integer(),Max::integer(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild3DMipmapLevels.xml">external</a> documentation.
+build3DMipmapLevels(Target,InternalFormat,Width,Height,Depth,Format,Type,Level,Base,Max,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5014, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum,Level:?GLint,Base:?GLint,Max:?GLint>>).
+
+%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluBuild3DMipmaps.xml">external</a> documentation.
+build3DMipmaps(Target,InternalFormat,Width,Height,Depth,Format,Type,Data) ->
+ wxe_util:send_bin(Data),
+ wxe_util:call(5015, <<Target:?GLenum,InternalFormat:?GLint,Width:?GLsizei,Height:?GLsizei,Depth:?GLsizei,Format:?GLenum,Type:?GLenum>>).
+
+%% @spec (ExtName::[integer()],ExtString::[integer()]) -> 0|1
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluCheckExtension.xml">external</a> documentation.
+checkExtension(ExtName,ExtString) ->
+ wxe_util:call(5016, <<(length(ExtName)):?GLuint,
+ (<< <<C:?GLubyte>> || C <- ExtName>>)/binary,0:((8-((length(ExtName)+ 4) rem 8)) rem 8),(length(ExtString)):?GLuint,
+ (<< <<C:?GLubyte>> || C <- ExtString>>)/binary,0:((8-((length(ExtString)+ 4) rem 8)) rem 8)>>).
+
+%% @spec (Quad::integer(),Base::float(),Top::float(),Height::float(),Slices::integer(),Stacks::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluCylinder.xml">external</a> documentation.
+cylinder(Quad,Base,Top,Height,Slices,Stacks) ->
+ wxe_util:cast(5017, <<Quad:?GLUquadric,Base:?GLdouble,Top:?GLdouble,Height:?GLdouble,Slices:?GLint,Stacks:?GLint>>).
+
+%% @spec (Quad::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluDeleteQuadric.xml">external</a> documentation.
+deleteQuadric(Quad) ->
+ wxe_util:cast(5018, <<Quad:?GLUquadric>>).
+
+%% @spec (Quad::integer(),Inner::float(),Outer::float(),Slices::integer(),Loops::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluDisk.xml">external</a> documentation.
+disk(Quad,Inner,Outer,Slices,Loops) ->
+ wxe_util:cast(5019, <<Quad:?GLUquadric,Inner:?GLdouble,Outer:?GLdouble,Slices:?GLint,Loops:?GLint>>).
+
+%% @spec (Error::enum()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluErrorString.xml">external</a> documentation.
+errorString(Error) ->
+ wxe_util:call(5020, <<Error:?GLenum>>).
+
+%% @spec (Name::enum()) -> string()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluGetString.xml">external</a> documentation.
+getString(Name) ->
+ wxe_util:call(5021, <<Name:?GLenum>>).
+
+%% @spec (EyeX::float(),EyeY::float(),EyeZ::float(),CenterX::float(),CenterY::float(),CenterZ::float(),UpX::float(),UpY::float(),UpZ::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluLookAt.xml">external</a> documentation.
+lookAt(EyeX,EyeY,EyeZ,CenterX,CenterY,CenterZ,UpX,UpY,UpZ) ->
+ wxe_util:cast(5022, <<EyeX:?GLdouble,EyeY:?GLdouble,EyeZ:?GLdouble,CenterX:?GLdouble,CenterY:?GLdouble,CenterZ:?GLdouble,UpX:?GLdouble,UpY:?GLdouble,UpZ:?GLdouble>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluNewQuadric.xml">external</a> documentation.
+newQuadric() ->
+ wxe_util:call(5023, <<>>).
+
+%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluOrtho2D.xml">external</a> documentation.
+ortho2D(Left,Right,Bottom,Top) ->
+ wxe_util:cast(5024, <<Left:?GLdouble,Right:?GLdouble,Bottom:?GLdouble,Top:?GLdouble>>).
+
+%% @spec (Quad::integer(),Inner::float(),Outer::float(),Slices::integer(),Loops::integer(),Start::float(),Sweep::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluPartialDisk.xml">external</a> documentation.
+partialDisk(Quad,Inner,Outer,Slices,Loops,Start,Sweep) ->
+ wxe_util:cast(5025, <<Quad:?GLUquadric,Inner:?GLdouble,Outer:?GLdouble,Slices:?GLint,Loops:?GLint,Start:?GLdouble,Sweep:?GLdouble>>).
+
+%% @spec (Fovy::float(),Aspect::float(),ZNear::float(),ZFar::float()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluPerspective.xml">external</a> documentation.
+perspective(Fovy,Aspect,ZNear,ZFar) ->
+ wxe_util:cast(5026, <<Fovy:?GLdouble,Aspect:?GLdouble,ZNear:?GLdouble,ZFar:?GLdouble>>).
+
+%% @spec (X::float(),Y::float(),DelX::float(),DelY::float(),Viewport::{integer()}) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluPickMatrix.xml">external</a> documentation.
+pickMatrix(X,Y,DelX,DelY,{V1,V2,V3,V4}) ->
+ wxe_util:cast(5027, <<X:?GLdouble,Y:?GLdouble,DelX:?GLdouble,DelY:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
+
+%% @spec (ObjX::float(),ObjY::float(),ObjZ::float(),Model::{float()},Proj::{float()},View::{integer()}) -> {integer(),WinX::float(),WinY::float(),WinZ::float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluProject.xml">external</a> documentation.
+project(ObjX,ObjY,ObjZ,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16},{V1,V2,V3,V4}) ->
+ wxe_util:call(5028, <<ObjX:?GLdouble,ObjY:?GLdouble,ObjZ:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,P13:?GLdouble,P14:?GLdouble,P15:?GLdouble,P16:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>);
+project(ObjX,ObjY,ObjZ,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12},{V1,V2,V3,V4}) ->
+ wxe_util:call(5028, <<ObjX:?GLdouble,ObjY:?GLdouble,ObjZ:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,0:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,0:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,0:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,1:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
+
+%% @spec (Quad::integer(),Draw::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricDrawStyle.xml">external</a> documentation.
+quadricDrawStyle(Quad,Draw) ->
+ wxe_util:cast(5029, <<Quad:?GLUquadric,Draw:?GLenum>>).
+
+%% @spec (Quad::integer(),Normal::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricNormals.xml">external</a> documentation.
+quadricNormals(Quad,Normal) ->
+ wxe_util:cast(5030, <<Quad:?GLUquadric,Normal:?GLenum>>).
+
+%% @spec (Quad::integer(),Orientation::enum()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricOrientation.xml">external</a> documentation.
+quadricOrientation(Quad,Orientation) ->
+ wxe_util:cast(5031, <<Quad:?GLUquadric,Orientation:?GLenum>>).
+
+%% @spec (Quad::integer(),Texture::0|1) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricTexture.xml">external</a> documentation.
+quadricTexture(Quad,Texture) ->
+ wxe_util:cast(5032, <<Quad:?GLUquadric,Texture:?GLboolean>>).
+
+%% @spec (Format::enum(),WIn::integer(),HIn::integer(),TypeIn::enum(),DataIn::binary(),WOut::integer(),HOut::integer(),TypeOut::enum(),DataOut::wx:wx_mem()) -> integer()
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluScaleImage.xml">external</a> documentation.
+scaleImage(Format,WIn,HIn,TypeIn,DataIn,WOut,HOut,TypeOut,DataOut) ->
+ wxe_util:send_bin(DataIn),
+ wxe_util:send_bin(DataOut#wx_mem.bin),
+ wxe_util:call(5033, <<Format:?GLenum,WIn:?GLsizei,HIn:?GLsizei,TypeIn:?GLenum,WOut:?GLsizei,HOut:?GLsizei,TypeOut:?GLenum>>).
+
+%% @spec (Quad::integer(),Radius::float(),Slices::integer(),Stacks::integer()) -> ok
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluSphere.xml">external</a> documentation.
+sphere(Quad,Radius,Slices,Stacks) ->
+ wxe_util:cast(5034, <<Quad:?GLUquadric,Radius:?GLdouble,Slices:?GLint,Stacks:?GLint>>).
+
+%% @spec (WinX::float(),WinY::float(),WinZ::float(),Model::{float()},Proj::{float()},View::{integer()}) -> {integer(),ObjX::float(),ObjY::float(),ObjZ::float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluUnProject.xml">external</a> documentation.
+unProject(WinX,WinY,WinZ,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16},{V1,V2,V3,V4}) ->
+ wxe_util:call(5035, <<WinX:?GLdouble,WinY:?GLdouble,WinZ:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,P13:?GLdouble,P14:?GLdouble,P15:?GLdouble,P16:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>);
+unProject(WinX,WinY,WinZ,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12},{V1,V2,V3,V4}) ->
+ wxe_util:call(5035, <<WinX:?GLdouble,WinY:?GLdouble,WinZ:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,0:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,0:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,0:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,1:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint>>).
+
+%% @spec (WinX::float(),WinY::float(),WinZ::float(),ClipW::float(),Model::{float()},Proj::{float()},View::{integer()},NearVal::float(),FarVal::float()) -> {integer(),ObjX::float(),ObjY::float(),ObjZ::float(),ObjW::float()}
+%% @doc See <a href="http://www.opengl.org/sdk/docs/man/xhtml/gluUnProject.xml">external</a> documentation.
+unProject4(WinX,WinY,WinZ,ClipW,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16},{V1,V2,V3,V4},NearVal,FarVal) ->
+ wxe_util:call(5036, <<WinX:?GLdouble,WinY:?GLdouble,WinZ:?GLdouble,ClipW:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,M13:?GLdouble,M14:?GLdouble,M15:?GLdouble,M16:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,P13:?GLdouble,P14:?GLdouble,P15:?GLdouble,P16:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint,NearVal:?GLdouble,FarVal:?GLdouble>>);
+unProject4(WinX,WinY,WinZ,ClipW,{M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12},{P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12},{V1,V2,V3,V4},NearVal,FarVal) ->
+ wxe_util:call(5036, <<WinX:?GLdouble,WinY:?GLdouble,WinZ:?GLdouble,ClipW:?GLdouble,M1:?GLdouble,M2:?GLdouble,M3:?GLdouble,0:?GLdouble,M4:?GLdouble,M5:?GLdouble,M6:?GLdouble,0:?GLdouble,M7:?GLdouble,M8:?GLdouble,M9:?GLdouble,0:?GLdouble,M10:?GLdouble,M11:?GLdouble,M12:?GLdouble,1:?GLdouble,P1:?GLdouble,P2:?GLdouble,P3:?GLdouble,0:?GLdouble,P4:?GLdouble,P5:?GLdouble,P6:?GLdouble,0:?GLdouble,P7:?GLdouble,P8:?GLdouble,P9:?GLdouble,0:?GLdouble,P10:?GLdouble,P11:?GLdouble,P12:?GLdouble,1:?GLdouble,V1:?GLint,V2:?GLint,V3:?GLint,V4:?GLint,NearVal:?GLdouble,FarVal:?GLdouble>>).
+
diff --git a/lib/wx/src/gen/wxAcceleratorEntry.erl b/lib/wx/src/gen/wxAcceleratorEntry.erl
new file mode 100644
index 0000000000..4c6d35829c
--- /dev/null
+++ b/lib/wx/src/gen/wxAcceleratorEntry.erl
@@ -0,0 +1,109 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html">wxAcceleratorEntry</a>.
+%% @type wxAcceleratorEntry(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAcceleratorEntry).
+-include("wxe.hrl").
+-export([destroy/1,getCommand/1,getFlags/1,getKeyCode/1,new/0,new/1,set/4,set/5]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxAcceleratorEntry()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec (X::term()|wxAcceleratorEntry()) -> wxAcceleratorEntry()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html#wxacceleratorentrywxacceleratorentry">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new([Option]) -> wxAcceleratorEntry() </c>
+%%<br /> Option = {flags, integer()} | {keyCode, integer()} | {cmd, integer()} | {item, wxMenuItem:wxMenuItem()}
+%% </p>
+%% <p><c>
+%% new(Entry::wxAcceleratorEntry()) -> wxAcceleratorEntry() </c>
+%% </p>
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ ({keyCode, KeyCode}, Acc) -> [<<2:32/?UI,KeyCode:32/?UI>>|Acc];
+ ({cmd, Cmd}, Acc) -> [<<3:32/?UI,Cmd:32/?UI>>|Acc];
+ ({item, #wx_ref{type=ItemT,ref=ItemRef}}, Acc) -> ?CLASS(ItemT,wxMenuItem),[<<4:32/?UI,ItemRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxAcceleratorEntry_new_1_0,
+ <<BinOpt/binary>>);
+new(#wx_ref{type=EntryT,ref=EntryRef}) ->
+ ?CLASS(EntryT,wxAcceleratorEntry),
+ wxe_util:construct(?wxAcceleratorEntry_new_1_1,
+ <<EntryRef:32/?UI>>).
+
+%% @spec (This::wxAcceleratorEntry()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html#wxacceleratorentrygetcommand">external documentation</a>.
+getCommand(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAcceleratorEntry),
+ wxe_util:call(?wxAcceleratorEntry_GetCommand,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAcceleratorEntry()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html#wxacceleratorentrygetflags">external documentation</a>.
+getFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAcceleratorEntry),
+ wxe_util:call(?wxAcceleratorEntry_GetFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAcceleratorEntry()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html#wxacceleratorentrygetkeycode">external documentation</a>.
+getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAcceleratorEntry),
+ wxe_util:call(?wxAcceleratorEntry_GetKeyCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAcceleratorEntry(), Flags::integer(), KeyCode::integer(), Cmd::integer()) -> ok
+%% @equiv set(This,Flags,KeyCode,Cmd, [])
+set(This,Flags,KeyCode,Cmd)
+ when is_record(This, wx_ref),is_integer(Flags),is_integer(KeyCode),is_integer(Cmd) ->
+ set(This,Flags,KeyCode,Cmd, []).
+
+%% @spec (This::wxAcceleratorEntry(), Flags::integer(), KeyCode::integer(), Cmd::integer(), [Option]) -> ok
+%% Option = {item, wxMenuItem:wxMenuItem()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratorentry.html#wxacceleratorentryset">external documentation</a>.
+set(#wx_ref{type=ThisT,ref=ThisRef},Flags,KeyCode,Cmd, Options)
+ when is_integer(Flags),is_integer(KeyCode),is_integer(Cmd),is_list(Options) ->
+ ?CLASS(ThisT,wxAcceleratorEntry),
+ MOpts = fun({item, #wx_ref{type=ItemT,ref=ItemRef}}, Acc) -> ?CLASS(ItemT,wxMenuItem),[<<1:32/?UI,ItemRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxAcceleratorEntry_Set,
+ <<ThisRef:32/?UI,Flags:32/?UI,KeyCode:32/?UI,Cmd:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxAcceleratorEntry()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxAcceleratorEntry),
+ wxe_util:destroy(?wxAcceleratorEntry_destroy,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxAcceleratorTable.erl b/lib/wx/src/gen/wxAcceleratorTable.erl
new file mode 100644
index 0000000000..f4f7f55f70
--- /dev/null
+++ b/lib/wx/src/gen/wxAcceleratorTable.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratortable.html">wxAcceleratorTable</a>.
+%% @type wxAcceleratorTable(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAcceleratorTable).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/2,ok/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxAcceleratorTable()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratortable.html#wxacceleratortablewxacceleratortable">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxAcceleratorTable_new_0,
+ <<>>).
+
+%% @spec (N::integer(), Entries::[wxAcceleratorEntry:wxAcceleratorEntry()]) -> wxAcceleratorTable()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratortable.html#wxacceleratortablewxacceleratortable">external documentation</a>.
+new(N,Entries)
+ when is_integer(N),is_list(Entries) ->
+ [?CLASS(EntriesT,wxAcceleratorEntry) || #wx_ref{type=EntriesT} <- Entries],
+ wxe_util:construct(?wxAcceleratorTable_new_2,
+ <<N:32/?UI,(length(Entries)):32/?UI,
+ (<< <<(C#wx_ref.ref):32/?UI>> || C <- Entries>>)/binary, 0:(((0+length(Entries)) rem 2)*32)>>).
+
+%% @spec (This::wxAcceleratorTable()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxacceleratortable.html#wxacceleratortableok">external documentation</a>.
+ok(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAcceleratorTable),
+ wxe_util:call(?wxAcceleratorTable_Ok,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAcceleratorTable()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxAcceleratorTable),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxArtProvider.erl b/lib/wx/src/gen/wxArtProvider.erl
new file mode 100644
index 0000000000..4708f0844b
--- /dev/null
+++ b/lib/wx/src/gen/wxArtProvider.erl
@@ -0,0 +1,72 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxartprovider.html">wxArtProvider</a>.
+%% @type wxArtProvider(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxArtProvider).
+-include("wxe.hrl").
+-export([getBitmap/1,getBitmap/2,getIcon/1,getIcon/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Id::string()) -> wxBitmap:wxBitmap()
+%% @equiv getBitmap(Id, [])
+getBitmap(Id)
+ when is_list(Id) ->
+ getBitmap(Id, []).
+
+%% @spec (Id::string(), [Option]) -> wxBitmap:wxBitmap()
+%% Option = {client, string()} | {size, {W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxartprovider.html#wxartprovidergetbitmap">external documentation</a>.
+getBitmap(Id, Options)
+ when is_list(Id),is_list(Options) ->
+ Id_UC = unicode:characters_to_binary([Id,0]),
+ MOpts = fun({client, Client}, Acc) -> Client_UC = unicode:characters_to_binary([Client, $_, $C,0]),[<<1:32/?UI,(byte_size(Client_UC)):32/?UI,(Client_UC)/binary, 0:(((8- ((0+byte_size(Client_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxArtProvider_GetBitmap,
+ <<(byte_size(Id_UC)):32/?UI,(Id_UC)/binary, 0:(((8- ((4+byte_size(Id_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (Id::string()) -> wxIcon:wxIcon()
+%% @equiv getIcon(Id, [])
+getIcon(Id)
+ when is_list(Id) ->
+ getIcon(Id, []).
+
+%% @spec (Id::string(), [Option]) -> wxIcon:wxIcon()
+%% Option = {client, string()} | {size, {W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxartprovider.html#wxartprovidergeticon">external documentation</a>.
+getIcon(Id, Options)
+ when is_list(Id),is_list(Options) ->
+ Id_UC = unicode:characters_to_binary([Id,0]),
+ MOpts = fun({client, Client}, Acc) -> Client_UC = unicode:characters_to_binary([Client, $_, $C,0]),[<<1:32/?UI,(byte_size(Client_UC)):32/?UI,(Client_UC)/binary, 0:(((8- ((0+byte_size(Client_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxArtProvider_GetIcon,
+ <<(byte_size(Id_UC)):32/?UI,(Id_UC)/binary, 0:(((8- ((4+byte_size(Id_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
diff --git a/lib/wx/src/gen/wxAuiDockArt.erl b/lib/wx/src/gen/wxAuiDockArt.erl
new file mode 100644
index 0000000000..9997e69dfd
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiDockArt.erl
@@ -0,0 +1,34 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauidockart.html">wxAuiDockArt</a>.
+%% @type wxAuiDockArt(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiDockArt).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
diff --git a/lib/wx/src/gen/wxAuiManager.erl b/lib/wx/src/gen/wxAuiManager.erl
new file mode 100644
index 0000000000..7f46a36991
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiManager.erl
@@ -0,0 +1,316 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html">wxAuiManager</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxAuiManager(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiManager).
+-include("wxe.hrl").
+-export([addPane/2,addPane/3,addPane/4,destroy/1,detachPane/2,getAllPanes/1,
+ getArtProvider/1,getDockSizeConstraint/1,getFlags/1,getManagedWindow/1,
+ getManager/1,getPane/2,hideHint/1,insertPane/3,insertPane/4,loadPaneInfo/3,
+ loadPerspective/2,loadPerspective/3,new/0,new/1,savePaneInfo/2,savePerspective/1,
+ setArtProvider/2,setDockSizeConstraint/3,setFlags/2,setManagedWindow/2,
+ showHint/2,unInit/1,update/1]).
+
+%% inherited exports
+-export([connect/2,connect/3,disconnect/1,disconnect/2,disconnect/3,parent_class/1]).
+
+%% @hidden
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxAuiManager()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxAuiManager()
+%% Option = {managed_wnd, wxWindow:wxWindow()} | {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerwxauimanager">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({managed_wnd, #wx_ref{type=Managed_wndT,ref=Managed_wndRef}}, Acc) -> ?CLASS(Managed_wndT,wxWindow),[<<1:32/?UI,Managed_wndRef:32/?UI>>|Acc];
+ ({flags, Flags}, Acc) -> [<<2:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxAuiManager_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow()) -> bool()
+%% @equiv addPane(This,Window, [])
+addPane(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ addPane(This,Window, []).
+
+%% @spec (This::wxAuiManager(),Window::wxWindow:wxWindow(),X::term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanageraddpane">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% addPane(This::wxAuiManager(), Window::wxWindow:wxWindow(), [Option]) -> bool() </c>
+%%<br /> Option = {direction, integer()} | {caption, string()}
+%% </p>
+%% <p><c>
+%% addPane(This::wxAuiManager(), Window::wxWindow:wxWindow(), Pane_info::wxAuiPaneInfo:wxAuiPaneInfo()) -> bool() </c>
+%% </p>
+addPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ MOpts = fun({direction, Direction}, Acc) -> [<<1:32/?UI,Direction:32/?UI>>|Acc];
+ ({caption, Caption}, Acc) -> Caption_UC = unicode:characters_to_binary([Caption,0]),[<<2:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((0+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiManager_AddPane_2_0,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>);
+addPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=Pane_infoT,ref=Pane_infoRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ ?CLASS(Pane_infoT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiManager_AddPane_2_1,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,Pane_infoRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow(), Pane_info::wxAuiPaneInfo:wxAuiPaneInfo(), Drop_pos::{X::integer(),Y::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanageraddpane">external documentation</a>.
+addPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=Pane_infoT,ref=Pane_infoRef},{Drop_posX,Drop_posY})
+ when is_integer(Drop_posX),is_integer(Drop_posY) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ ?CLASS(Pane_infoT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiManager_AddPane_3,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,Pane_infoRef:32/?UI,Drop_posX:32/?UI,Drop_posY:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerdetachpane">external documentation</a>.
+detachPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxAuiManager_DetachPane,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> wxAuiPaneInfoArray:wxAuiPaneInfoArray()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetallpanes">external documentation</a>.
+getAllPanes(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_GetAllPanes,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> wxAuiDockArt:wxAuiDockArt()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetartprovider">external documentation</a>.
+getArtProvider(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_GetArtProvider,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> {Width_pct::float(),Height_pct::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetdocksizeconstraint">external documentation</a>.
+getDockSizeConstraint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_GetDockSizeConstraint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetflags">external documentation</a>.
+getFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_GetFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetmanagedwindow">external documentation</a>.
+getManagedWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_GetManagedWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Window::wxWindow:wxWindow()) -> wxAuiManager()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetmanager">external documentation</a>.
+getManager(#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxAuiManager_GetManager,
+ <<WindowRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(),X::string()|term()) -> wxAuiPaneInfo:wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagergetpane">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% getPane(This::wxAuiManager(), Name::string()) -> wxAuiPaneInfo:wxAuiPaneInfo() </c>
+%% </p>
+%% <p><c>
+%% getPane(This::wxAuiManager(), Window::wxWindow:wxWindow()) -> wxAuiPaneInfo:wxAuiPaneInfo() </c>
+%% </p>
+getPane(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxAuiManager),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxAuiManager_GetPane_1_0,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>);
+getPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxAuiManager_GetPane_1_1,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerhidehint">external documentation</a>.
+hideHint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_HideHint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow(), Insert_location::wxAuiPaneInfo:wxAuiPaneInfo()) -> bool()
+%% @equiv insertPane(This,Window,Insert_location, [])
+insertPane(This,Window,Insert_location)
+ when is_record(This, wx_ref),is_record(Window, wx_ref),is_record(Insert_location, wx_ref) ->
+ insertPane(This,Window,Insert_location, []).
+
+%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow(), Insert_location::wxAuiPaneInfo:wxAuiPaneInfo(), [Option]) -> bool()
+%% Option = {insert_level, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerinsertpane">external documentation</a>.
+insertPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=Insert_locationT,ref=Insert_locationRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(WindowT,wxWindow),
+ ?CLASS(Insert_locationT,wxAuiPaneInfo),
+ MOpts = fun({insert_level, Insert_level}, Acc) -> [<<1:32/?UI,Insert_level:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiManager_InsertPane,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,Insert_locationRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiManager(), Pane_part::string(), Pane::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerloadpaneinfo">external documentation</a>.
+loadPaneInfo(#wx_ref{type=ThisT,ref=ThisRef},Pane_part,#wx_ref{type=PaneT,ref=PaneRef})
+ when is_list(Pane_part) ->
+ ?CLASS(ThisT,wxAuiManager),
+ Pane_part_UC = unicode:characters_to_binary([Pane_part,0]),
+ ?CLASS(PaneT,wxAuiPaneInfo),
+ wxe_util:cast(?wxAuiManager_LoadPaneInfo,
+ <<ThisRef:32/?UI,(byte_size(Pane_part_UC)):32/?UI,(Pane_part_UC)/binary, 0:(((8- ((0+byte_size(Pane_part_UC)) band 16#7)) band 16#7))/unit:8,PaneRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Perspective::string()) -> bool()
+%% @equiv loadPerspective(This,Perspective, [])
+loadPerspective(This,Perspective)
+ when is_record(This, wx_ref),is_list(Perspective) ->
+ loadPerspective(This,Perspective, []).
+
+%% @spec (This::wxAuiManager(), Perspective::string(), [Option]) -> bool()
+%% Option = {update, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerloadperspective">external documentation</a>.
+loadPerspective(#wx_ref{type=ThisT,ref=ThisRef},Perspective, Options)
+ when is_list(Perspective),is_list(Options) ->
+ ?CLASS(ThisT,wxAuiManager),
+ Perspective_UC = unicode:characters_to_binary([Perspective,0]),
+ MOpts = fun({update, Update}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Update)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiManager_LoadPerspective,
+ <<ThisRef:32/?UI,(byte_size(Perspective_UC)):32/?UI,(Perspective_UC)/binary, 0:(((8- ((0+byte_size(Perspective_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxAuiManager(), Pane::wxAuiPaneInfo:wxAuiPaneInfo()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersavepaneinfo">external documentation</a>.
+savePaneInfo(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaneT,ref=PaneRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(PaneT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiManager_SavePaneInfo,
+ <<ThisRef:32/?UI,PaneRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersaveperspective">external documentation</a>.
+savePerspective(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:call(?wxAuiManager_SavePerspective,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Art_provider::wxAuiDockArt:wxAuiDockArt()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersetartprovider">external documentation</a>.
+setArtProvider(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Art_providerT,ref=Art_providerRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(Art_providerT,wxAuiDockArt),
+ wxe_util:cast(?wxAuiManager_SetArtProvider,
+ <<ThisRef:32/?UI,Art_providerRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Width_pct::float(), Height_pct::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersetdocksizeconstraint">external documentation</a>.
+setDockSizeConstraint(#wx_ref{type=ThisT,ref=ThisRef},Width_pct,Height_pct)
+ when is_float(Width_pct),is_float(Height_pct) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_SetDockSizeConstraint,
+ <<ThisRef:32/?UI,0:32,Width_pct:64/?F,Height_pct:64/?F>>).
+
+%% @spec (This::wxAuiManager(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersetflags">external documentation</a>.
+setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_SetFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Managed_wnd::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagersetmanagedwindow">external documentation</a>.
+setManagedWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Managed_wndT,ref=Managed_wndRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ ?CLASS(Managed_wndT,wxWindow),
+ wxe_util:cast(?wxAuiManager_SetManagedWindow,
+ <<ThisRef:32/?UI,Managed_wndRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagershowhint">external documentation</a>.
+showHint(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_ShowHint,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanageruninit">external documentation</a>.
+unInit(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_UnInit,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanager.html#wxauimanagerupdate">external documentation</a>.
+update(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManager),
+ wxe_util:cast(?wxAuiManager_Update,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManager()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxAuiManager),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxAuiManagerEvent.erl b/lib/wx/src/gen/wxAuiManagerEvent.erl
new file mode 100644
index 0000000000..c15eeb4ad6
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiManagerEvent.erl
@@ -0,0 +1,163 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html">wxAuiManagerEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>aui_pane_button</em>, <em>aui_pane_close</em>, <em>aui_pane_maximize</em>, <em>aui_pane_restore</em>, <em>aui_render</em>, <em>aui_find_manager</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxAuiManager(). #wxAuiManager{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxAuiManagerEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiManagerEvent).
+-include("wxe.hrl").
+-export([canVeto/1,getButton/1,getDC/1,getManager/1,getPane/1,getVeto/1,setButton/2,
+ setCanVeto/2,setDC/2,setManager/2,setPane/2,veto/1,veto/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxAuiManagerEvent(), Mgr::wxAuiManager:wxAuiManager()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetmanager">external documentation</a>.
+setManager(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MgrT,ref=MgrRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ ?CLASS(MgrT,wxAuiManager),
+ wxe_util:cast(?wxAuiManagerEvent_SetManager,
+ <<ThisRef:32/?UI,MgrRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> wxAuiManager:wxAuiManager()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetmanager">external documentation</a>.
+getManager(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_GetManager,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetpane">external documentation</a>.
+setPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PT,ref=PRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ ?CLASS(PT,wxAuiPaneInfo),
+ wxe_util:cast(?wxAuiManagerEvent_SetPane,
+ <<ThisRef:32/?UI,PRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> wxAuiPaneInfo:wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetpane">external documentation</a>.
+getPane(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_GetPane,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetbutton">external documentation</a>.
+setButton(#wx_ref{type=ThisT,ref=ThisRef},B)
+ when is_integer(B) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:cast(?wxAuiManagerEvent_SetButton,
+ <<ThisRef:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetbutton">external documentation</a>.
+getButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_GetButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent(), Pdc::wxDC:wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetdc">external documentation</a>.
+setDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PdcT,ref=PdcRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ ?CLASS(PdcT,wxDC),
+ wxe_util:cast(?wxAuiManagerEvent_SetDC,
+ <<ThisRef:32/?UI,PdcRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> wxDC:wxDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetdc">external documentation</a>.
+getDC(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_GetDC,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> ok
+%% @equiv veto(This, [])
+veto(This)
+ when is_record(This, wx_ref) ->
+ veto(This, []).
+
+%% @spec (This::wxAuiManagerEvent(), [Option]) -> ok
+%% Option = {veto, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventveto">external documentation</a>.
+veto(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ MOpts = fun({veto, Veto}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Veto)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxAuiManagerEvent_Veto,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetveto">external documentation</a>.
+getVeto(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_GetVeto,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent(), Can_veto::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetcanveto">external documentation</a>.
+setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},Can_veto)
+ when is_boolean(Can_veto) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:cast(?wxAuiManagerEvent_SetCanVeto,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Can_veto)):32/?UI>>).
+
+%% @spec (This::wxAuiManagerEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventcanveto">external documentation</a>.
+canVeto(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiManagerEvent),
+ wxe_util:call(?wxAuiManagerEvent_CanVeto,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxAuiNotebook.erl b/lib/wx/src/gen/wxAuiNotebook.erl
new file mode 100644
index 0000000000..abd2cf618b
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiNotebook.erl
@@ -0,0 +1,666 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html">wxAuiNotebook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxAuiNotebook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiNotebook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,create/2,create/3,deletePage/2,destroy/1,getArtProvider/1,
+ getPage/2,getPageBitmap/2,getPageCount/1,getPageIndex/2,getPageText/2,
+ getSelection/1,insertPage/4,insertPage/5,new/0,new/1,new/2,removePage/2,
+ setArtProvider/2,setFont/2,setPageBitmap/3,setPageText/3,setSelection/2,
+ setTabCtrlHeight/2,setUniformBitmapSize/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setSize/2,
+ setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,
+ setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxAuiNotebook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookwxauinotebook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxAuiNotebook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxAuiNotebook()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxAuiNotebook()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookwxauinotebook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxAuiNotebook_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiNotebook(), Page::wxWindow:wxWindow(), Caption::string()) -> bool()
+%% @equiv addPage(This,Page,Caption, [])
+addPage(This,Page,Caption)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Caption) ->
+ addPage(This,Page,Caption, []).
+
+%% @spec (This::wxAuiNotebook(), Page::wxWindow:wxWindow(), Caption::string(), [Option]) -> bool()
+%% Option = {select, bool()} | {bitmap, wxBitmap:wxBitmap()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Caption, Options)
+ when is_list(Caption),is_list(Options) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(PageT,wxWindow),
+ Caption_UC = unicode:characters_to_binary([Caption,0]),
+ MOpts = fun({select, Select}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Select)):32/?UI>>|Acc];
+ ({bitmap, #wx_ref{type=BitmapT,ref=BitmapRef}}, Acc) -> ?CLASS(BitmapT,wxBitmap),[<<2:32/?UI,BitmapRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiNotebook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((4+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxAuiNotebook(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxAuiNotebook(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiNotebook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxAuiNotebook(), Page::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},Page)
+ when is_integer(Page) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_DeletePage,
+ <<ThisRef:32/?UI,Page:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook()) -> wxAuiTabArt:wxAuiTabArt()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetartprovider">external documentation</a>.
+getArtProvider(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetArtProvider,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},Page_idx)
+ when is_integer(Page_idx) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetPage,
+ <<ThisRef:32/?UI,Page_idx:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetpagebitmap">external documentation</a>.
+getPageBitmap(#wx_ref{type=ThisT,ref=ThisRef},Page_idx)
+ when is_integer(Page_idx) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetPageBitmap,
+ <<ThisRef:32/?UI,Page_idx:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page_wnd::wxWindow:wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetpageindex">external documentation</a>.
+getPageIndex(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Page_wndT,ref=Page_wndRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(Page_wndT,wxWindow),
+ wxe_util:call(?wxAuiNotebook_GetPageIndex,
+ <<ThisRef:32/?UI,Page_wndRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},Page_idx)
+ when is_integer(Page_idx) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetPageText,
+ <<ThisRef:32/?UI,Page_idx:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page_idx::integer(), Page::wxWindow:wxWindow(), Caption::string()) -> bool()
+%% @equiv insertPage(This,Page_idx,Page,Caption, [])
+insertPage(This,Page_idx,Page,Caption)
+ when is_record(This, wx_ref),is_integer(Page_idx),is_record(Page, wx_ref),is_list(Caption) ->
+ insertPage(This,Page_idx,Page,Caption, []).
+
+%% @spec (This::wxAuiNotebook(), Page_idx::integer(), Page::wxWindow:wxWindow(), Caption::string(), [Option]) -> bool()
+%% Option = {select, bool()} | {bitmap, wxBitmap:wxBitmap()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},Page_idx,#wx_ref{type=PageT,ref=PageRef},Caption, Options)
+ when is_integer(Page_idx),is_list(Caption),is_list(Options) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(PageT,wxWindow),
+ Caption_UC = unicode:characters_to_binary([Caption,0]),
+ MOpts = fun({select, Select}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Select)):32/?UI>>|Acc];
+ ({bitmap, #wx_ref{type=BitmapT,ref=BitmapRef}}, Acc) -> ?CLASS(BitmapT,wxBitmap),[<<2:32/?UI,BitmapRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiNotebook_InsertPage,
+ <<ThisRef:32/?UI,Page_idx:32/?UI,PageRef:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((0+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxAuiNotebook(), Page::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},Page)
+ when is_integer(Page) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_RemovePage,
+ <<ThisRef:32/?UI,Page:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Art::wxAuiTabArt:wxAuiTabArt()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetartprovider">external documentation</a>.
+setArtProvider(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ArtT,ref=ArtRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(ArtT,wxAuiTabArt),
+ wxe_util:cast(?wxAuiNotebook_SetArtProvider,
+ <<ThisRef:32/?UI,ArtRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Font::wxFont:wxFont()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(FontT,wxFont),
+ wxe_util:call(?wxAuiNotebook_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetpagebitmap">external documentation</a>.
+setPageBitmap(#wx_ref{type=ThisT,ref=ThisRef},Page,#wx_ref{type=BitmapT,ref=BitmapRef})
+ when is_integer(Page) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxAuiNotebook_SetPageBitmap,
+ <<ThisRef:32/?UI,Page:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Page::integer(), Text::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},Page,Text)
+ when is_integer(Page),is_list(Text) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxAuiNotebook_SetPageText,
+ <<ThisRef:32/?UI,Page:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxAuiNotebook(), New_page::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},New_page)
+ when is_integer(New_page) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:call(?wxAuiNotebook_SetSelection,
+ <<ThisRef:32/?UI,New_page:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksettabctrlheight">external documentation</a>.
+setTabCtrlHeight(#wx_ref{type=ThisT,ref=ThisRef},Height)
+ when is_integer(Height) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:cast(?wxAuiNotebook_SetTabCtrlHeight,
+ <<ThisRef:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebook.html#wxauinotebooksetuniformbitmapsize">external documentation</a>.
+setUniformBitmapSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxAuiNotebook),
+ wxe_util:cast(?wxAuiNotebook_SetUniformBitmapSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxAuiNotebook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxAuiNotebook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxAuiNotebookEvent.erl b/lib/wx/src/gen/wxAuiNotebookEvent.erl
new file mode 100644
index 0000000000..763d7092f2
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiNotebookEvent.erl
@@ -0,0 +1,138 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html">wxAuiNotebookEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_auinotebook_page_close</em>, <em>command_auinotebook_page_changed</em>, <em>command_auinotebook_page_changing</em>, <em>command_auinotebook_button</em>, <em>command_auinotebook_begin_drag</em>, <em>command_auinotebook_end_drag</em>, <em>command_auinotebook_drag_motion</em>, <em>command_auinotebook_allow_dnd</em>, <em>command_auinotebook_tab_middle_down</em>, <em>command_auinotebook_tab_middle_up</em>, <em>command_auinotebook_tab_right_down</em>, <em>command_auinotebook_tab_right_up</em>, <em>command_auinotebook_page_closed</em>, <em>command_auinotebook_drag_done</em>, <em>command_auinotebook_bg_dclick</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxAuiNotebook(). #wxAuiNotebook{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxAuiNotebookEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiNotebookEvent).
+-include("wxe.hrl").
+-export([getDragSource/1,getOldSelection/1,getSelection/1,setDragSource/2,
+ setOldSelection/2,setSelection/2]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSkipped/1,
+ getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxAuiNotebookEvent(), S::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_integer(S) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ wxe_util:cast(?wxAuiNotebookEvent_SetSelection,
+ <<ThisRef:32/?UI,S:32/?UI>>).
+
+%% @spec (This::wxAuiNotebookEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ wxe_util:call(?wxAuiNotebookEvent_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebookEvent(), S::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventsetoldselection">external documentation</a>.
+setOldSelection(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_integer(S) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ wxe_util:cast(?wxAuiNotebookEvent_SetOldSelection,
+ <<ThisRef:32/?UI,S:32/?UI>>).
+
+%% @spec (This::wxAuiNotebookEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventgetoldselection">external documentation</a>.
+getOldSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ wxe_util:call(?wxAuiNotebookEvent_GetOldSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebookEvent(), S::wxAuiNotebook:wxAuiNotebook()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventsetdragsource">external documentation</a>.
+setDragSource(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ST,ref=SRef}) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ ?CLASS(ST,wxAuiNotebook),
+ wxe_util:cast(?wxAuiNotebookEvent_SetDragSource,
+ <<ThisRef:32/?UI,SRef:32/?UI>>).
+
+%% @spec (This::wxAuiNotebookEvent()) -> wxAuiNotebook:wxAuiNotebook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauinotebookevent.html#wxauinotebookeventgetdragsource">external documentation</a>.
+getDragSource(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiNotebookEvent),
+ wxe_util:call(?wxAuiNotebookEvent_GetDragSource,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxAuiPaneInfo.erl b/lib/wx/src/gen/wxAuiPaneInfo.erl
new file mode 100644
index 0000000000..1683045a90
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiPaneInfo.erl
@@ -0,0 +1,785 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html">wxAuiPaneInfo</a>.
+%% @type wxAuiPaneInfo(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiPaneInfo).
+-include("wxe.hrl").
+-export([bestSize/2,bestSize/3,bottom/1,bottomDockable/1,bottomDockable/2,caption/2,
+ captionVisible/1,captionVisible/2,centre/1,centrePane/1,closeButton/1,
+ closeButton/2,defaultPane/1,destroy/1,destroyOnClose/1,destroyOnClose/2,
+ direction/2,dock/1,dockable/1,dockable/2,fixed/1,float/1,floatable/1,
+ floatable/2,floatingPosition/2,floatingPosition/3,floatingSize/2,
+ floatingSize/3,gripper/1,gripper/2,gripperTop/1,gripperTop/2,hasBorder/1,
+ hasCaption/1,hasCloseButton/1,hasFlag/2,hasGripper/1,hasGripperTop/1,
+ hasMaximizeButton/1,hasMinimizeButton/1,hasPinButton/1,hide/1,isBottomDockable/1,
+ isDocked/1,isFixed/1,isFloatable/1,isFloating/1,isLeftDockable/1,isMovable/1,
+ isOk/1,isResizable/1,isRightDockable/1,isShown/1,isToolbar/1,isTopDockable/1,
+ layer/2,left/1,leftDockable/1,leftDockable/2,maxSize/2,maxSize/3,maximizeButton/1,
+ maximizeButton/2,minSize/2,minSize/3,minimizeButton/1,minimizeButton/2,
+ movable/1,movable/2,name/2,new/0,new/1,paneBorder/1,paneBorder/2,pinButton/1,
+ pinButton/2,position/2,resizable/1,resizable/2,right/1,rightDockable/1,
+ rightDockable/2,row/2,safeSet/2,setFlag/3,show/1,show/2,toolbarPane/1,
+ top/1,topDockable/1,topDockable/2,window/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfowxauipaneinfo">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxAuiPaneInfo_new_0,
+ <<>>).
+
+%% @spec (C::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfowxauipaneinfo">external documentation</a>.
+new(#wx_ref{type=CT,ref=CRef}) ->
+ ?CLASS(CT,wxAuiPaneInfo),
+ wxe_util:construct(?wxAuiPaneInfo_new_1,
+ <<CRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfobestsize">external documentation</a>.
+bestSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_BestSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfobestsize">external documentation</a>.
+bestSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_BestSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfobottom">external documentation</a>.
+bottom(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Bottom,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv bottomDockable(This, [])
+bottomDockable(This)
+ when is_record(This, wx_ref) ->
+ bottomDockable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfobottomdockable">external documentation</a>.
+bottomDockable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_BottomDockable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), C::string()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfocaption">external documentation</a>.
+caption(#wx_ref{type=ThisT,ref=ThisRef},C)
+ when is_list(C) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ C_UC = unicode:characters_to_binary([C,0]),
+ wxe_util:call(?wxAuiPaneInfo_Caption,
+ <<ThisRef:32/?UI,(byte_size(C_UC)):32/?UI,(C_UC)/binary, 0:(((8- ((0+byte_size(C_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv captionVisible(This, [])
+captionVisible(This)
+ when is_record(This, wx_ref) ->
+ captionVisible(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfocaptionvisible">external documentation</a>.
+captionVisible(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_CaptionVisible,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfocentre">external documentation</a>.
+centre(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Centre,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfocentrepane">external documentation</a>.
+centrePane(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_CentrePane,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv closeButton(This, [])
+closeButton(This)
+ when is_record(This, wx_ref) ->
+ closeButton(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoclosebutton">external documentation</a>.
+closeButton(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_CloseButton,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfodefaultpane">external documentation</a>.
+defaultPane(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_DefaultPane,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv destroyOnClose(This, [])
+destroyOnClose(This)
+ when is_record(This, wx_ref) ->
+ destroyOnClose(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfodestroyonclose">external documentation</a>.
+destroyOnClose(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_DestroyOnClose,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Direction::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfodirection">external documentation</a>.
+direction(#wx_ref{type=ThisT,ref=ThisRef},Direction)
+ when is_integer(Direction) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Direction,
+ <<ThisRef:32/?UI,Direction:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfodock">external documentation</a>.
+dock(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Dock,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv dockable(This, [])
+dockable(This)
+ when is_record(This, wx_ref) ->
+ dockable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfodockable">external documentation</a>.
+dockable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Dockable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofixed">external documentation</a>.
+fixed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Fixed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloat">external documentation</a>.
+float(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Float,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv floatable(This, [])
+floatable(This)
+ when is_record(This, wx_ref) ->
+ floatable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloatable">external documentation</a>.
+floatable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Floatable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Pos::{X::integer(),Y::integer()}) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloatingposition">external documentation</a>.
+floatingPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_FloatingPosition_1,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloatingposition">external documentation</a>.
+floatingPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_FloatingPosition_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloatingsize">external documentation</a>.
+floatingSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_FloatingSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfofloatingsize">external documentation</a>.
+floatingSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_FloatingSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv gripper(This, [])
+gripper(This)
+ when is_record(This, wx_ref) ->
+ gripper(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfogripper">external documentation</a>.
+gripper(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Gripper,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv gripperTop(This, [])
+gripperTop(This)
+ when is_record(This, wx_ref) ->
+ gripperTop(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {attop, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfogrippertop">external documentation</a>.
+gripperTop(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({attop, Attop}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Attop)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_GripperTop,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasborder">external documentation</a>.
+hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasBorder,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohascaption">external documentation</a>.
+hasCaption(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasCaption,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasclosebutton">external documentation</a>.
+hasCloseButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasCloseButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Flag::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasflag">external documentation</a>.
+hasFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_integer(Flag) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasFlag,
+ <<ThisRef:32/?UI,Flag:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasgripper">external documentation</a>.
+hasGripper(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasGripper,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasgrippertop">external documentation</a>.
+hasGripperTop(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasGripperTop,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasmaximizebutton">external documentation</a>.
+hasMaximizeButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasMaximizeButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohasminimizebutton">external documentation</a>.
+hasMinimizeButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasMinimizeButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohaspinbutton">external documentation</a>.
+hasPinButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_HasPinButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfohide">external documentation</a>.
+hide(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Hide,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisbottomdockable">external documentation</a>.
+isBottomDockable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsBottomDockable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisdocked">external documentation</a>.
+isDocked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsDocked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisfixed">external documentation</a>.
+isFixed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsFixed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisfloatable">external documentation</a>.
+isFloatable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsFloatable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisfloating">external documentation</a>.
+isFloating(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsFloating,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisleftdockable">external documentation</a>.
+isLeftDockable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsLeftDockable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoismovable">external documentation</a>.
+isMovable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsMovable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisresizable">external documentation</a>.
+isResizable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsResizable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisrightdockable">external documentation</a>.
+isRightDockable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsRightDockable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoisshown">external documentation</a>.
+isShown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsShown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoistoolbar">external documentation</a>.
+isToolbar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsToolbar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoistopdockable">external documentation</a>.
+isTopDockable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_IsTopDockable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Layer::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfolayer">external documentation</a>.
+layer(#wx_ref{type=ThisT,ref=ThisRef},Layer)
+ when is_integer(Layer) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Layer,
+ <<ThisRef:32/?UI,Layer:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoleft">external documentation</a>.
+left(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Left,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv leftDockable(This, [])
+leftDockable(This)
+ when is_record(This, wx_ref) ->
+ leftDockable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoleftdockable">external documentation</a>.
+leftDockable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_LeftDockable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfomaxsize">external documentation</a>.
+maxSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_MaxSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfomaxsize">external documentation</a>.
+maxSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_MaxSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv maximizeButton(This, [])
+maximizeButton(This)
+ when is_record(This, wx_ref) ->
+ maximizeButton(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfomaximizebutton">external documentation</a>.
+maximizeButton(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_MaximizeButton,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfominsize">external documentation</a>.
+minSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_MinSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfominsize">external documentation</a>.
+minSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_MinSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv minimizeButton(This, [])
+minimizeButton(This)
+ when is_record(This, wx_ref) ->
+ minimizeButton(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfominimizebutton">external documentation</a>.
+minimizeButton(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_MinimizeButton,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv movable(This, [])
+movable(This)
+ when is_record(This, wx_ref) ->
+ movable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfomovable">external documentation</a>.
+movable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Movable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), N::string()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoname">external documentation</a>.
+name(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_list(N) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ N_UC = unicode:characters_to_binary([N,0]),
+ wxe_util:call(?wxAuiPaneInfo_Name,
+ <<ThisRef:32/?UI,(byte_size(N_UC)):32/?UI,(N_UC)/binary, 0:(((8- ((0+byte_size(N_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv paneBorder(This, [])
+paneBorder(This)
+ when is_record(This, wx_ref) ->
+ paneBorder(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfopaneborder">external documentation</a>.
+paneBorder(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_PaneBorder,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv pinButton(This, [])
+pinButton(This)
+ when is_record(This, wx_ref) ->
+ pinButton(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {visible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfopinbutton">external documentation</a>.
+pinButton(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({visible, Visible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_PinButton,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Pos::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoposition">external documentation</a>.
+position(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Position,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv resizable(This, [])
+resizable(This)
+ when is_record(This, wx_ref) ->
+ resizable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {resizable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinforesizable">external documentation</a>.
+resizable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({resizable, Resizable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Resizable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Resizable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinforight">external documentation</a>.
+right(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Right,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv rightDockable(This, [])
+rightDockable(This)
+ when is_record(This, wx_ref) ->
+ rightDockable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinforightdockable">external documentation</a>.
+rightDockable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_RightDockable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), Row::integer()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinforow">external documentation</a>.
+row(#wx_ref{type=ThisT,ref=ThisRef},Row)
+ when is_integer(Row) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Row,
+ <<ThisRef:32/?UI,Row:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Source::wxAuiPaneInfo()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfosafeset">external documentation</a>.
+safeSet(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SourceT,ref=SourceRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ ?CLASS(SourceT,wxAuiPaneInfo),
+ wxe_util:cast(?wxAuiPaneInfo_SafeSet,
+ <<ThisRef:32/?UI,SourceRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo(), Flag::integer(), Option_state::bool()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfosetflag">external documentation</a>.
+setFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag,Option_state)
+ when is_integer(Flag),is_boolean(Option_state) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_SetFlag,
+ <<ThisRef:32/?UI,Flag:32/?UI,(wxe_util:from_bool(Option_state)):32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv show(This, [])
+show(This)
+ when is_record(This, wx_ref) ->
+ show(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {show, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfoshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_Show,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfotoolbarpane">external documentation</a>.
+toolbarPane(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_ToolbarPane,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfotop">external documentation</a>.
+top(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ wxe_util:call(?wxAuiPaneInfo_Top,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo()
+%% @equiv topDockable(This, [])
+topDockable(This)
+ when is_record(This, wx_ref) ->
+ topDockable(This, []).
+
+%% @spec (This::wxAuiPaneInfo(), [Option]) -> wxAuiPaneInfo()
+%% Option = {b, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfotopdockable">external documentation</a>.
+topDockable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ MOpts = fun({b, B}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(B)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxAuiPaneInfo_TopDockable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxAuiPaneInfo(), W::wxWindow:wxWindow()) -> wxAuiPaneInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauipaneinfo.html#wxauipaneinfowindow">external documentation</a>.
+window(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WT,ref=WRef}) ->
+ ?CLASS(ThisT,wxAuiPaneInfo),
+ ?CLASS(WT,wxWindow),
+ wxe_util:call(?wxAuiPaneInfo_Window,
+ <<ThisRef:32/?UI,WRef:32/?UI>>).
+
+%% @spec (This::wxAuiPaneInfo()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxAuiPaneInfo),
+ wxe_util:destroy(?wxAuiPaneInfo_destruct,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxAuiTabArt.erl b/lib/wx/src/gen/wxAuiTabArt.erl
new file mode 100644
index 0000000000..354ab611d0
--- /dev/null
+++ b/lib/wx/src/gen/wxAuiTabArt.erl
@@ -0,0 +1,34 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauitabart.html">wxAuiTabArt</a>.
+%% @type wxAuiTabArt(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxAuiTabArt).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
diff --git a/lib/wx/src/gen/wxBitmap.erl b/lib/wx/src/gen/wxBitmap.erl
new file mode 100644
index 0000000000..930d87198c
--- /dev/null
+++ b/lib/wx/src/gen/wxBitmap.erl
@@ -0,0 +1,299 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html">wxBitmap</a>.
+%% @type wxBitmap(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBitmap).
+-include("wxe.hrl").
+-export([convertToImage/1,copyFromIcon/2,create/3,create/4,destroy/1,getDepth/1,
+ getHeight/1,getMask/1,getPalette/1,getSubBitmap/2,getWidth/1,loadFile/2,
+ loadFile/3,new/0,new/1,new/2,new/3,new/4,ok/1,saveFile/3,saveFile/4,setDepth/2,
+ setHeight/2,setMask/2,setPalette/2,setWidth/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapwxbitmap">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxBitmap_new_0,
+ <<>>).
+
+%% @spec (X::string()|term()) -> wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapwxbitmap">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Filename::string()) -> new(Filename, []) </c></p>
+%% <p><c>
+%% new(Image::wxImage:wxImage()) -> new(Image, []) </c></p>
+
+new(Filename)
+ when is_list(Filename) ->
+ new(Filename, []);
+
+new(Image)
+ when is_record(Image, wx_ref) ->
+ new(Image, []).
+
+%% @spec (X::integer()|string()|term(),X::integer()|term()) -> wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapwxbitmap">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Width::integer(), Height::integer()) -> new(Width,Height, []) </c></p>
+%% <p><c>
+%% new(Filename::string(), [Option]) -> wxBitmap() </c>
+%%<br /> Option = {type, WxBitmapType}
+%%<br /> WxBitmapType = integer()
+%%<br /> WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_RESOURCE | ?wxBITMAP_TYPE_ICO | ?wxBITMAP_TYPE_ICO_RESOURCE | ?wxBITMAP_TYPE_CUR | ?wxBITMAP_TYPE_CUR_RESOURCE | ?wxBITMAP_TYPE_XBM | ?wxBITMAP_TYPE_XBM_DATA | ?wxBITMAP_TYPE_XPM | ?wxBITMAP_TYPE_XPM_DATA | ?wxBITMAP_TYPE_TIF | ?wxBITMAP_TYPE_TIF_RESOURCE | ?wxBITMAP_TYPE_GIF | ?wxBITMAP_TYPE_GIF_RESOURCE | ?wxBITMAP_TYPE_PNG | ?wxBITMAP_TYPE_PNG_RESOURCE | ?wxBITMAP_TYPE_JPEG | ?wxBITMAP_TYPE_JPEG_RESOURCE | ?wxBITMAP_TYPE_PNM | ?wxBITMAP_TYPE_PNM_RESOURCE | ?wxBITMAP_TYPE_PCX | ?wxBITMAP_TYPE_PCX_RESOURCE | ?wxBITMAP_TYPE_PICT | ?wxBITMAP_TYPE_PICT_RESOURCE | ?wxBITMAP_TYPE_ICON | ?wxBITMAP_TYPE_ICON_RESOURCE | ?wxBITMAP_TYPE_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY
+%% </p>
+%% <p><c>
+%% new(Image::wxImage:wxImage(), [Option]) -> wxBitmap() </c>
+%%<br /> Option = {depth, integer()}
+%% </p>
+
+new(Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ new(Width,Height, []);
+new(Filename, Options)
+ when is_list(Filename),is_list(Options) ->
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmap_new_2_0,
+ <<(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((4+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>);
+new(#wx_ref{type=ImageT,ref=ImageRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ImageT,wxImage),
+ MOpts = fun({depth, Depth}, Acc) -> [<<1:32/?UI,Depth:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmap_new_2_1,
+ <<ImageRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (X::binary()|integer(),X::integer(),X::integer()|term()) -> wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapwxbitmap">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Bits::binary(), Width::integer(), Height::integer()) -> new(Bits,Width,Height, []) </c></p>
+%% <p><c>
+%% new(Width::integer(), Height::integer(), [Option]) -> wxBitmap() </c>
+%%<br /> Option = {depth, integer()}
+%% </p>
+
+new(Bits,Width,Height)
+ when is_binary(Bits),is_integer(Width),is_integer(Height) ->
+ new(Bits,Width,Height, []);
+new(Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ MOpts = fun({depth, Depth}, Acc) -> [<<1:32/?UI,Depth:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmap_new_3,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (Bits::binary(), Width::integer(), Height::integer(), [Option]) -> wxBitmap()
+%% Option = {depth, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapwxbitmap">external documentation</a>.
+new(Bits,Width,Height, Options)
+ when is_binary(Bits),is_integer(Width),is_integer(Height),is_list(Options) ->
+ wxe_util:send_bin(Bits),
+ MOpts = fun({depth, Depth}, Acc) -> [<<1:32/?UI,Depth:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmap_new_4,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxBitmap()) -> wxImage:wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapconverttoimage">external documentation</a>.
+convertToImage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_ConvertToImage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Icon::wxIcon:wxIcon()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapcopyfromicon">external documentation</a>.
+copyFromIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ ?CLASS(IconT,wxIcon),
+ wxe_util:call(?wxBitmap_CopyFromIcon,
+ <<ThisRef:32/?UI,IconRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Width::integer(), Height::integer()) -> bool()
+%% @equiv create(This,Width,Height, [])
+create(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ create(This,Width,Height, []).
+
+%% @spec (This::wxBitmap(), Width::integer(), Height::integer(), [Option]) -> bool()
+%% Option = {depth, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxBitmap),
+ MOpts = fun({depth, Depth}, Acc) -> [<<1:32/?UI,Depth:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxBitmap_Create,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxBitmap()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetdepth">external documentation</a>.
+getDepth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetDepth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetheight">external documentation</a>.
+getHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap()) -> wxPalette:wxPalette()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetpalette">external documentation</a>.
+getPalette(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetPalette,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap()) -> wxMask:wxMask()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetmask">external documentation</a>.
+getMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetMask,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetwidth">external documentation</a>.
+getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapgetsubbitmap">external documentation</a>.
+getSubBitmap(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_GetSubBitmap,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Name::string()) -> bool()
+%% @equiv loadFile(This,Name, [])
+loadFile(This,Name)
+ when is_record(This, wx_ref),is_list(Name) ->
+ loadFile(This,Name, []).
+
+%% @spec (This::wxBitmap(), Name::string(), [Option]) -> bool()
+%% Option = {type, WxBitmapType}
+%% WxBitmapType = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmaploadfile">external documentation</a>.
+%%<br /> WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_RESOURCE | ?wxBITMAP_TYPE_ICO | ?wxBITMAP_TYPE_ICO_RESOURCE | ?wxBITMAP_TYPE_CUR | ?wxBITMAP_TYPE_CUR_RESOURCE | ?wxBITMAP_TYPE_XBM | ?wxBITMAP_TYPE_XBM_DATA | ?wxBITMAP_TYPE_XPM | ?wxBITMAP_TYPE_XPM_DATA | ?wxBITMAP_TYPE_TIF | ?wxBITMAP_TYPE_TIF_RESOURCE | ?wxBITMAP_TYPE_GIF | ?wxBITMAP_TYPE_GIF_RESOURCE | ?wxBITMAP_TYPE_PNG | ?wxBITMAP_TYPE_PNG_RESOURCE | ?wxBITMAP_TYPE_JPEG | ?wxBITMAP_TYPE_JPEG_RESOURCE | ?wxBITMAP_TYPE_PNM | ?wxBITMAP_TYPE_PNM_RESOURCE | ?wxBITMAP_TYPE_PCX | ?wxBITMAP_TYPE_PCX_RESOURCE | ?wxBITMAP_TYPE_PICT | ?wxBITMAP_TYPE_PICT_RESOURCE | ?wxBITMAP_TYPE_ICON | ?wxBITMAP_TYPE_ICON_RESOURCE | ?wxBITMAP_TYPE_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},Name, Options)
+ when is_list(Name),is_list(Options) ->
+ ?CLASS(ThisT,wxBitmap),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxBitmap_LoadFile,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxBitmap()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapok">external documentation</a>.
+ok(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:call(?wxBitmap_Ok,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Name::string(), Type::WxBitmapType) -> bool()
+%% @equiv saveFile(This,Name,Type, [])
+saveFile(This,Name,Type)
+ when is_record(This, wx_ref),is_list(Name),is_integer(Type) ->
+ saveFile(This,Name,Type, []).
+
+%% @spec (This::wxBitmap(), Name::string(), Type::WxBitmapType, [Option]) -> bool()
+%% Option = {palette, wxPalette:wxPalette()}
+%% WxBitmapType = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsavefile">external documentation</a>.
+%%<br /> WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_RESOURCE | ?wxBITMAP_TYPE_ICO | ?wxBITMAP_TYPE_ICO_RESOURCE | ?wxBITMAP_TYPE_CUR | ?wxBITMAP_TYPE_CUR_RESOURCE | ?wxBITMAP_TYPE_XBM | ?wxBITMAP_TYPE_XBM_DATA | ?wxBITMAP_TYPE_XPM | ?wxBITMAP_TYPE_XPM_DATA | ?wxBITMAP_TYPE_TIF | ?wxBITMAP_TYPE_TIF_RESOURCE | ?wxBITMAP_TYPE_GIF | ?wxBITMAP_TYPE_GIF_RESOURCE | ?wxBITMAP_TYPE_PNG | ?wxBITMAP_TYPE_PNG_RESOURCE | ?wxBITMAP_TYPE_JPEG | ?wxBITMAP_TYPE_JPEG_RESOURCE | ?wxBITMAP_TYPE_PNM | ?wxBITMAP_TYPE_PNM_RESOURCE | ?wxBITMAP_TYPE_PCX | ?wxBITMAP_TYPE_PCX_RESOURCE | ?wxBITMAP_TYPE_PICT | ?wxBITMAP_TYPE_PICT_RESOURCE | ?wxBITMAP_TYPE_ICON | ?wxBITMAP_TYPE_ICON_RESOURCE | ?wxBITMAP_TYPE_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY
+saveFile(#wx_ref{type=ThisT,ref=ThisRef},Name,Type, Options)
+ when is_list(Name),is_integer(Type),is_list(Options) ->
+ ?CLASS(ThisT,wxBitmap),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({palette, #wx_ref{type=PaletteT,ref=PaletteRef}}, Acc) -> ?CLASS(PaletteT,wxPalette),[<<1:32/?UI,PaletteRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxBitmap_SaveFile,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,Type:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxBitmap(), Depth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsetdepth">external documentation</a>.
+setDepth(#wx_ref{type=ThisT,ref=ThisRef},Depth)
+ when is_integer(Depth) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:cast(?wxBitmap_SetDepth,
+ <<ThisRef:32/?UI,Depth:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsetheight">external documentation</a>.
+setHeight(#wx_ref{type=ThisT,ref=ThisRef},Height)
+ when is_integer(Height) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:cast(?wxBitmap_SetHeight,
+ <<ThisRef:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Mask::wxMask:wxMask()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsetmask">external documentation</a>.
+setMask(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MaskT,ref=MaskRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ ?CLASS(MaskT,wxMask),
+ wxe_util:cast(?wxBitmap_SetMask,
+ <<ThisRef:32/?UI,MaskRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Palette::wxPalette:wxPalette()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsetpalette">external documentation</a>.
+setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) ->
+ ?CLASS(ThisT,wxBitmap),
+ ?CLASS(PaletteT,wxPalette),
+ wxe_util:cast(?wxBitmap_SetPalette,
+ <<ThisRef:32/?UI,PaletteRef:32/?UI>>).
+
+%% @spec (This::wxBitmap(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmapsetwidth">external documentation</a>.
+setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxBitmap),
+ wxe_util:cast(?wxBitmap_SetWidth,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxBitmap()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBitmap),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxBitmapButton.erl b/lib/wx/src/gen/wxBitmapButton.erl
new file mode 100644
index 0000000000..78d43d4918
--- /dev/null
+++ b/lib/wx/src/gen/wxBitmapButton.erl
@@ -0,0 +1,564 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html">wxBitmapButton</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxButton}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxBitmapButton(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBitmapButton).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getBitmapDisabled/1,getBitmapFocus/1,getBitmapLabel/1,
+ getBitmapSelected/1,new/0,new/3,new/4,setBitmapDisabled/2,setBitmapFocus/2,
+ setBitmapLabel/2,setBitmapSelected/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDefault/1,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxButton) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxBitmapButton()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonwxbitmapbutton">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxBitmapButton_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap()) -> wxBitmapButton()
+%% @equiv new(Parent,Id,Bitmap, [])
+new(Parent,Id,Bitmap)
+ when is_record(Parent, wx_ref),is_integer(Id),is_record(Bitmap, wx_ref) ->
+ new(Parent,Id,Bitmap, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wxBitmapButton()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonwxbitmapbutton">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmapButton_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,BitmapRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool()
+%% @equiv create(This,Parent,Id,Bitmap, [])
+create(This,Parent,Id,Bitmap)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_record(Bitmap, wx_ref) ->
+ create(This,Parent,Id,Bitmap, []).
+
+%% @spec (This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttoncreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxBitmapButton_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,BitmapRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttongetbitmapdisabled">external documentation</a>.
+getBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ wxe_util:call(?wxBitmapButton_GetBitmapDisabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttongetbitmapfocus">external documentation</a>.
+getBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ wxe_util:call(?wxBitmapButton_GetBitmapFocus,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttongetbitmaplabel">external documentation</a>.
+getBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ wxe_util:call(?wxBitmapButton_GetBitmapLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttongetbitmapselected">external documentation</a>.
+getBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ wxe_util:call(?wxBitmapButton_GetBitmapSelected,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton(), Disabled::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonsetbitmapdisabled">external documentation</a>.
+setBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DisabledT,ref=DisabledRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ ?CLASS(DisabledT,wxBitmap),
+ wxe_util:cast(?wxBitmapButton_SetBitmapDisabled,
+ <<ThisRef:32/?UI,DisabledRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton(), Focus::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonsetbitmapfocus">external documentation</a>.
+setBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FocusT,ref=FocusRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ ?CLASS(FocusT,wxBitmap),
+ wxe_util:cast(?wxBitmapButton_SetBitmapFocus,
+ <<ThisRef:32/?UI,FocusRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton(), Bitmap::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonsetbitmaplabel">external documentation</a>.
+setBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:cast(?wxBitmapButton_SetBitmapLabel,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton(), Sel::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapbutton.html#wxbitmapbuttonsetbitmapselected">external documentation</a>.
+setBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SelT,ref=SelRef}) ->
+ ?CLASS(ThisT,wxBitmapButton),
+ ?CLASS(SelT,wxBitmap),
+ wxe_util:cast(?wxBitmapButton_SetBitmapSelected,
+ <<ThisRef:32/?UI,SelRef:32/?UI>>).
+
+%% @spec (This::wxBitmapButton()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBitmapButton),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxButton
+%% @hidden
+setLabel(This,Label) -> wxButton:setLabel(This,Label).
+%% @hidden
+setDefault(This) -> wxButton:setDefault(This).
+ %% From wxControl
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxBitmapDataObject.erl b/lib/wx/src/gen/wxBitmapDataObject.erl
new file mode 100644
index 0000000000..7c7f6a20b0
--- /dev/null
+++ b/lib/wx/src/gen/wxBitmapDataObject.erl
@@ -0,0 +1,87 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapdataobject.html">wxBitmapDataObject</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDataObject}
+%% </p>
+%% @type wxBitmapDataObject(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBitmapDataObject).
+-include("wxe.hrl").
+-export([destroy/1,getBitmap/1,new/0,new/1,setBitmap/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(wxDataObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxBitmapDataObject()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec (X::term()) -> wxBitmapDataObject()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapdataobject.html#wxbitmapdataobjectwxbitmapdataobject">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new([Option]) -> wxBitmapDataObject() </c>
+%%<br /> Option = {bitmap, wxBitmap:wxBitmap()}
+%% </p>
+%% <p><c>
+%% new(Bitmap::wxBitmap:wxBitmap()) -> wxBitmapDataObject() </c>
+%% </p>
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({bitmap, #wx_ref{type=BitmapT,ref=BitmapRef}}, Acc) -> ?CLASS(BitmapT,wxBitmap),[<<1:32/?UI,BitmapRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBitmapDataObject_new_1_0,
+ <<BinOpt/binary>>);
+new(#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:construct(?wxBitmapDataObject_new_1_1,
+ <<BitmapRef:32/?UI>>).
+
+%% @spec (This::wxBitmapDataObject()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapdataobject.html#wxbitmapdataobjectgetbitmap">external documentation</a>.
+getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBitmapDataObject),
+ wxe_util:call(?wxBitmapDataObject_GetBitmap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBitmapDataObject(), Bitmap::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbitmapdataobject.html#wxbitmapdataobjectsetbitmap">external documentation</a>.
+setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxBitmapDataObject),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:cast(?wxBitmapDataObject_SetBitmap,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxBitmapDataObject()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBitmapDataObject),
+ wxe_util:destroy(?wxBitmapDataObject_destroy,Obj),
+ ok.
+ %% From wxDataObject
diff --git a/lib/wx/src/gen/wxBoxSizer.erl b/lib/wx/src/gen/wxBoxSizer.erl
new file mode 100644
index 0000000000..3599cd11b6
--- /dev/null
+++ b/lib/wx/src/gen/wxBoxSizer.erl
@@ -0,0 +1,161 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxboxsizer.html">wxBoxSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxBoxSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBoxSizer).
+-include("wxe.hrl").
+-export([destroy/1,getOrientation/1,new/1]).
+
+%% inherited exports
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
+ getItem/3,getMinSize/1,getPosition/1,getSize/1,hide/2,hide/3,insert/3,
+ insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,insertStretchSpacer/3,
+ isShown/2,layout/1,parent_class/1,prepend/2,prepend/3,prepend/4,prependSpacer/2,
+ prependStretchSpacer/1,prependStretchSpacer/2,recalcSizes/1,remove/2,
+ replace/3,replace/4,setDimension/5,setItemMinSize/3,setItemMinSize/4,
+ setMinSize/2,setMinSize/3,setSizeHints/2,setVirtualSizeHints/2,show/2,
+ show/3]).
+
+%% @hidden
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Orient::integer()) -> wxBoxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxboxsizer.html#wxboxsizerwxboxsizer">external documentation</a>.
+new(Orient)
+ when is_integer(Orient) ->
+ wxe_util:construct(?wxBoxSizer_new,
+ <<Orient:32/?UI>>).
+
+%% @spec (This::wxBoxSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxboxsizer.html#wxboxsizergetorientation">external documentation</a>.
+getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBoxSizer),
+ wxe_util:call(?wxBoxSizer_GetOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBoxSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBoxSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+calcMin(This) -> wxSizer:calcMin(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
+%% @hidden
+add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
+%% @hidden
+add(This,Width,Height) -> wxSizer:add(This,Width,Height).
+%% @hidden
+add(This,Window) -> wxSizer:add(This,Window).
diff --git a/lib/wx/src/gen/wxBrush.erl b/lib/wx/src/gen/wxBrush.erl
new file mode 100644
index 0000000000..2a5f184ce6
--- /dev/null
+++ b/lib/wx/src/gen/wxBrush.erl
@@ -0,0 +1,142 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html">wxBrush</a>.
+%% @type wxBrush(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBrush).
+-include("wxe.hrl").
+-export([destroy/1,getColour/1,getStipple/1,getStyle/1,isHatch/1,isOk/1,new/0,
+ new/1,new/2,setColour/2,setColour/4,setStipple/2,setStyle/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushwxbrush">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxBrush_new_0,
+ <<>>).
+
+%% @spec (X::term()) -> wxBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushwxbrush">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Colour::wx:colour()) -> new(Colour, []) </c></p>
+%% <p><c>
+%% new(StippleBitmap::wxBitmap:wxBitmap()) -> wxBrush() </c>
+%% </p>
+
+new(Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ new(Colour, []);
+new(#wx_ref{type=StippleBitmapT,ref=StippleBitmapRef}) ->
+ ?CLASS(StippleBitmapT,wxBitmap),
+ wxe_util:construct(?wxBrush_new_1,
+ <<StippleBitmapRef:32/?UI>>).
+
+%% @spec (Colour::wx:colour(), [Option]) -> wxBrush()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushwxbrush">external documentation</a>.
+new(Colour, Options)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4,is_list(Options) ->
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBrush_new_2,
+ <<(wxe_util:colour_bin(Colour)):16/binary, BinOpt/binary>>).
+
+%% @spec (This::wxBrush()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushgetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:call(?wxBrush_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBrush()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushgetstipple">external documentation</a>.
+getStipple(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:call(?wxBrush_GetStipple,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBrush()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushgetstyle">external documentation</a>.
+getStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:call(?wxBrush_GetStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBrush()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushishatch">external documentation</a>.
+isHatch(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:call(?wxBrush_IsHatch,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBrush()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:call(?wxBrush_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxBrush(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushsetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:cast(?wxBrush_SetColour_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxBrush(), R::integer(), G::integer(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushsetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},R,G,B)
+ when is_integer(R),is_integer(G),is_integer(B) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:cast(?wxBrush_SetColour_3,
+ <<ThisRef:32/?UI,R:32/?UI,G:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxBrush(), Stipple::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushsetstipple">external documentation</a>.
+setStipple(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StippleT,ref=StippleRef}) ->
+ ?CLASS(ThisT,wxBrush),
+ ?CLASS(StippleT,wxBitmap),
+ wxe_util:cast(?wxBrush_SetStipple,
+ <<ThisRef:32/?UI,StippleRef:32/?UI>>).
+
+%% @spec (This::wxBrush(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbrush.html#wxbrushsetstyle">external documentation</a>.
+setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxBrush),
+ wxe_util:cast(?wxBrush_SetStyle,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxBrush()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBrush),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxBufferedDC.erl b/lib/wx/src/gen/wxBufferedDC.erl
new file mode 100644
index 0000000000..b99822040d
--- /dev/null
+++ b/lib/wx/src/gen/wxBufferedDC.erl
@@ -0,0 +1,348 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html">wxBufferedDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxMemoryDC}
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxBufferedDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBufferedDC).
+-include("wxe.hrl").
+-export([destroy/1,init/2,init/3,init/4,new/0,new/1,new/2,new/3]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ selectObject/2,selectObjectAsSource/2,setAxisOrientation/3,setBackground/2,
+ setBackgroundMode/2,setBrush/2,setClippingRegion/2,setClippingRegion/3,
+ setDeviceOrigin/3,setFont/2,setLayoutDirection/2,setLogicalFunction/2,
+ setMapMode/2,setPalette/2,setPen/2,setTextBackground/2,setTextForeground/2,
+ setUserScale/3,startDoc/2,startPage/1]).
+
+%% @hidden
+parent_class(wxMemoryDC) -> true;
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxBufferedDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html#wxbuffereddcwxbuffereddc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxBufferedDC_new_0,
+ <<>>).
+
+%% @spec (Dc::wxDC:wxDC()) -> wxBufferedDC()
+%% @equiv new(Dc, [])
+new(Dc)
+ when is_record(Dc, wx_ref) ->
+ new(Dc, []).
+
+%% @spec (Dc::wxDC:wxDC(),X::term()) -> wxBufferedDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html#wxbuffereddcwxbuffereddc">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}) -> new(Dc,Area, []) </c></p>
+%% <p><c>
+%% new(Dc::wxDC:wxDC(), [Option]) -> wxBufferedDC() </c>
+%%<br /> Option = {buffer, wxBitmap:wxBitmap()} | {style, integer()}
+%% </p>
+
+new(Dc,Area={AreaW,AreaH})
+ when is_record(Dc, wx_ref),is_integer(AreaW),is_integer(AreaH) ->
+ new(Dc,Area, []);
+new(#wx_ref{type=DcT,ref=DcRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(DcT,wxDC),
+ MOpts = fun({buffer, #wx_ref{type=BufferT,ref=BufferRef}}, Acc) -> ?CLASS(BufferT,wxBitmap),[<<1:32/?UI,BufferRef:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBufferedDC_new_2,
+ <<DcRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}, [Option]) -> wxBufferedDC()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html#wxbuffereddcwxbuffereddc">external documentation</a>.
+new(#wx_ref{type=DcT,ref=DcRef},{AreaW,AreaH}, Options)
+ when is_integer(AreaW),is_integer(AreaH),is_list(Options) ->
+ ?CLASS(DcT,wxDC),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBufferedDC_new_3,
+ <<DcRef:32/?UI,AreaW:32/?UI,AreaH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxBufferedDC(), Dc::wxDC:wxDC()) -> ok
+%% @equiv init(This,Dc, [])
+init(This,Dc)
+ when is_record(This, wx_ref),is_record(Dc, wx_ref) ->
+ init(This,Dc, []).
+
+%% @spec (This::wxBufferedDC(),Dc::wxDC:wxDC(),X::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html#wxbuffereddcinit">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% init(This::wxBufferedDC(), Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}) -> init(This,Dc,Area, []) </c></p>
+%% <p><c>
+%% init(This::wxBufferedDC(), Dc::wxDC:wxDC(), [Option]) -> ok </c>
+%%<br /> Option = {buffer, wxBitmap:wxBitmap()} | {style, integer()}
+%% </p>
+
+init(This,Dc,Area={AreaW,AreaH})
+ when is_record(This, wx_ref),is_record(Dc, wx_ref),is_integer(AreaW),is_integer(AreaH) ->
+ init(This,Dc,Area, []);
+init(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxBufferedDC),
+ ?CLASS(DcT,wxDC),
+ MOpts = fun({buffer, #wx_ref{type=BufferT,ref=BufferRef}}, Acc) -> ?CLASS(BufferT,wxBitmap),[<<1:32/?UI,BufferRef:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxBufferedDC_Init_2,
+ <<ThisRef:32/?UI,DcRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxBufferedDC(), Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}, [Option]) -> ok
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbuffereddc.html#wxbuffereddcinit">external documentation</a>.
+init(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef},{AreaW,AreaH}, Options)
+ when is_integer(AreaW),is_integer(AreaH),is_list(Options) ->
+ ?CLASS(ThisT,wxBufferedDC),
+ ?CLASS(DcT,wxDC),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxBufferedDC_Init_3,
+ <<ThisRef:32/?UI,DcRef:32/?UI,AreaW:32/?UI,AreaH:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxBufferedDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBufferedDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxMemoryDC
+%% @hidden
+selectObjectAsSource(This,Bmp) -> wxMemoryDC:selectObjectAsSource(This,Bmp).
+%% @hidden
+selectObject(This,Bmp) -> wxMemoryDC:selectObject(This,Bmp).
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxBufferedPaintDC.erl b/lib/wx/src/gen/wxBufferedPaintDC.erl
new file mode 100644
index 0000000000..5674712055
--- /dev/null
+++ b/lib/wx/src/gen/wxBufferedPaintDC.erl
@@ -0,0 +1,309 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html">wxBufferedPaintDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxBufferedDC}
+%% <br />{@link wxMemoryDC}
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxBufferedPaintDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxBufferedPaintDC).
+-include("wxe.hrl").
+-export([destroy/1,new/1,new/2,new/3]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ init/2,init/3,init/4,isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,
+ logicalToDeviceY/2,logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,
+ parent_class/1,resetBoundingBox/1,selectObject/2,selectObjectAsSource/2,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxBufferedDC) -> true;
+parent_class(wxMemoryDC) -> true;
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Window::wxWindow:wxWindow()) -> wxBufferedPaintDC()
+%% @equiv new(Window, [])
+new(Window)
+ when is_record(Window, wx_ref) ->
+ new(Window, []).
+
+%% @spec (Window::wxWindow:wxWindow(),X::term()) -> wxBufferedPaintDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap()) -> new(Window,Buffer, []) </c></p>
+%% <p><c>
+%% new(Window::wxWindow:wxWindow(), [Option]) -> wxBufferedPaintDC() </c>
+%%<br /> Option = {style, integer()}
+%% </p>
+
+new(Window,Buffer)
+ when is_record(Window, wx_ref),is_record(Buffer, wx_ref) ->
+ new(Window,Buffer, []);
+new(#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(WindowT,wxWindow),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBufferedPaintDC_new_2,
+ <<WindowRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap(), [Option]) -> wxBufferedPaintDC()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>.
+new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=BufferT,ref=BufferRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(WindowT,wxWindow),
+ ?CLASS(BufferT,wxBitmap),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxBufferedPaintDC_new_3,
+ <<WindowRef:32/?UI,BufferRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxBufferedPaintDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxBufferedPaintDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxBufferedDC
+%% @hidden
+init(This,Dc,Area, Options) -> wxBufferedDC:init(This,Dc,Area, Options).
+%% @hidden
+init(This,Dc,Area) -> wxBufferedDC:init(This,Dc,Area).
+%% @hidden
+init(This,Dc) -> wxBufferedDC:init(This,Dc).
+ %% From wxMemoryDC
+%% @hidden
+selectObjectAsSource(This,Bmp) -> wxMemoryDC:selectObjectAsSource(This,Bmp).
+%% @hidden
+selectObject(This,Bmp) -> wxMemoryDC:selectObject(This,Bmp).
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxButton.erl b/lib/wx/src/gen/wxButton.erl
new file mode 100644
index 0000000000..261a961063
--- /dev/null
+++ b/lib/wx/src/gen/wxButton.erl
@@ -0,0 +1,518 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html">wxButton</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxButton(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxButton).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getDefaultSize/0,new/0,new/2,new/3,setDefault/1,
+ setLabel/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setMaxSize/2,setMinSize/2,
+ setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxButton()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttonwxbutton">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxButton_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxButton()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxButton()
+%% Option = {label, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttonwxbutton">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({label, Label}, Acc) -> Label_UC = unicode:characters_to_binary([Label,0]),[<<1:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxButton_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxButton(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxButton(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {label, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttoncreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxButton),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({label, Label}, Acc) -> Label_UC = unicode:characters_to_binary([Label,0]),[<<1:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxButton_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec () -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttongetdefaultsize">external documentation</a>.
+getDefaultSize() ->
+ wxe_util:call(?wxButton_GetDefaultSize,
+ <<>>).
+
+%% @spec (This::wxButton()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttonsetdefault">external documentation</a>.
+setDefault(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxButton),
+ wxe_util:cast(?wxButton_SetDefault,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxButton(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbutton.html#wxbuttonsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label)
+ when is_list(Label) ->
+ ?CLASS(ThisT,wxButton),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxButton_SetLabel,
+ <<ThisRef:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxButton()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxButton),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxCalendarCtrl.erl b/lib/wx/src/gen/wxCalendarCtrl.erl
new file mode 100644
index 0000000000..5b87ac54e4
--- /dev/null
+++ b/lib/wx/src/gen/wxCalendarCtrl.erl
@@ -0,0 +1,680 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html">wxCalendarCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxCalendarCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCalendarCtrl).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,enableHolidayDisplay/1,enableHolidayDisplay/2,
+ enableMonthChange/1,enableMonthChange/2,enableYearChange/1,enableYearChange/2,
+ getAttr/2,getDate/1,getHeaderColourBg/1,getHeaderColourFg/1,getHighlightColourBg/1,
+ getHighlightColourFg/1,getHolidayColourBg/1,getHolidayColourFg/1,
+ hitTest/2,new/0,new/2,new/3,resetAttr/2,setAttr/3,setDate/2,setHeaderColours/3,
+ setHighlightColours/3,setHoliday/2,setHolidayColours/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxCalendarCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlwxcalendarctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxCalendarCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxCalendarCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxCalendarCtrl()
+%% Option = {date, wx:datetime()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlwxcalendarctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({date, Date}, Acc) -> [<<1:32/?UI,(wxe_util:datetime_bin(Date)):24/binary,0:32>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCalendarCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxCalendarCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxCalendarCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {date, wx:datetime()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({date, Date}, Acc) -> [<<1:32/?UI,(wxe_util:datetime_bin(Date)):24/binary,0:32>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxCalendarCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxCalendarCtrl(), Date::wx:datetime()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsetdate">external documentation</a>.
+setDate(#wx_ref{type=ThisT,ref=ThisRef},Date)
+ when tuple_size(Date) =:= 2 ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_SetDate,
+ <<ThisRef:32/?UI,(wxe_util:datetime_bin(Date)):24/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:datetime()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetdate">external documentation</a>.
+getDate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetDate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl()) -> ok
+%% @equiv enableYearChange(This, [])
+enableYearChange(This)
+ when is_record(This, wx_ref) ->
+ enableYearChange(This, []).
+
+%% @spec (This::wxCalendarCtrl(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlenableyearchange">external documentation</a>.
+enableYearChange(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCalendarCtrl_EnableYearChange,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> ok
+%% @equiv enableMonthChange(This, [])
+enableMonthChange(This)
+ when is_record(This, wx_ref) ->
+ enableMonthChange(This, []).
+
+%% @spec (This::wxCalendarCtrl(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlenablemonthchange">external documentation</a>.
+enableMonthChange(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCalendarCtrl_EnableMonthChange,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> ok
+%% @equiv enableHolidayDisplay(This, [])
+enableHolidayDisplay(This)
+ when is_record(This, wx_ref) ->
+ enableHolidayDisplay(This, []).
+
+%% @spec (This::wxCalendarCtrl(), [Option]) -> ok
+%% Option = {display, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlenableholidaydisplay">external documentation</a>.
+enableHolidayDisplay(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ MOpts = fun({display, Display}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Display)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCalendarCtrl_EnableHolidayDisplay,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsetheadercolours">external documentation</a>.
+setHeaderColours(#wx_ref{type=ThisT,ref=ThisRef},ColFg,ColBg)
+ when tuple_size(ColFg) =:= 3; tuple_size(ColFg) =:= 4,tuple_size(ColBg) =:= 3; tuple_size(ColBg) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:cast(?wxCalendarCtrl_SetHeaderColours,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColFg)):16/binary,(wxe_util:colour_bin(ColBg)):16/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetheadercolourfg">external documentation</a>.
+getHeaderColourFg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHeaderColourFg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetheadercolourbg">external documentation</a>.
+getHeaderColourBg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHeaderColourBg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsethighlightcolours">external documentation</a>.
+setHighlightColours(#wx_ref{type=ThisT,ref=ThisRef},ColFg,ColBg)
+ when tuple_size(ColFg) =:= 3; tuple_size(ColFg) =:= 4,tuple_size(ColBg) =:= 3; tuple_size(ColBg) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:cast(?wxCalendarCtrl_SetHighlightColours,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColFg)):16/binary,(wxe_util:colour_bin(ColBg)):16/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgethighlightcolourfg">external documentation</a>.
+getHighlightColourFg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHighlightColourFg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgethighlightcolourbg">external documentation</a>.
+getHighlightColourBg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHighlightColourBg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsetholidaycolours">external documentation</a>.
+setHolidayColours(#wx_ref{type=ThisT,ref=ThisRef},ColFg,ColBg)
+ when tuple_size(ColFg) =:= 3; tuple_size(ColFg) =:= 4,tuple_size(ColBg) =:= 3; tuple_size(ColBg) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:cast(?wxCalendarCtrl_SetHolidayColours,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColFg)):16/binary,(wxe_util:colour_bin(ColBg)):16/binary>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetholidaycolourfg">external documentation</a>.
+getHolidayColourFg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHolidayColourFg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetholidaycolourbg">external documentation</a>.
+getHolidayColourBg(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetHolidayColourBg,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), Day::integer()) -> wxCalendarDateAttr:wxCalendarDateAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlgetattr">external documentation</a>.
+getAttr(#wx_ref{type=ThisT,ref=ThisRef},Day)
+ when is_integer(Day) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_GetAttr,
+ <<ThisRef:32/?UI,Day:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), Day::integer(), Attr::wxCalendarDateAttr:wxCalendarDateAttr()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsetattr">external documentation</a>.
+setAttr(#wx_ref{type=ThisT,ref=ThisRef},Day,#wx_ref{type=AttrT,ref=AttrRef})
+ when is_integer(Day) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ ?CLASS(AttrT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarCtrl_SetAttr,
+ <<ThisRef:32/?UI,Day:32/?UI,AttrRef:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), Day::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlsetholiday">external documentation</a>.
+setHoliday(#wx_ref{type=ThisT,ref=ThisRef},Day)
+ when is_integer(Day) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:cast(?wxCalendarCtrl_SetHoliday,
+ <<ThisRef:32/?UI,Day:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), Day::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlresetattr">external documentation</a>.
+resetAttr(#wx_ref{type=ThisT,ref=ThisRef},Day)
+ when is_integer(Day) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:cast(?wxCalendarCtrl_ResetAttr,
+ <<ThisRef:32/?UI,Day:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl(), Pos::{X::integer(),Y::integer()}) -> {WxCalendarHitTestResult,Date::wx:datetime(),Wd::WeekDay}
+%% WxCalendarHitTestResult = integer()
+%% WeekDay = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarctrl.html#wxcalendarctrlhittest">external documentation</a>.
+%%<br /> WxCalendarHitTestResult is one of ?wxCAL_HITTEST_NOWHERE | ?wxCAL_HITTEST_HEADER | ?wxCAL_HITTEST_DAY | ?wxCAL_HITTEST_INCMONTH | ?wxCAL_HITTEST_DECMONTH | ?wxCAL_HITTEST_SURROUNDING_WEEK
+%%<br /> WeekDay is one of ?wxDateTime_Sun | ?wxDateTime_Mon | ?wxDateTime_Tue | ?wxDateTime_Wed | ?wxDateTime_Thu | ?wxDateTime_Fri | ?wxDateTime_Sat | ?wxDateTime_Inv_WeekDay
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxCalendarCtrl),
+ wxe_util:call(?wxCalendarCtrl_HitTest,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxCalendarCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCalendarCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxCalendarDateAttr.erl b/lib/wx/src/gen/wxCalendarDateAttr.erl
new file mode 100644
index 0000000000..197e0eb996
--- /dev/null
+++ b/lib/wx/src/gen/wxCalendarDateAttr.erl
@@ -0,0 +1,227 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html">wxCalendarDateAttr</a>.
+%% @type wxCalendarDateAttr(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCalendarDateAttr).
+-include("wxe.hrl").
+-export([destroy/1,getBackgroundColour/1,getBorder/1,getBorderColour/1,getFont/1,
+ getTextColour/1,hasBackgroundColour/1,hasBorder/1,hasBorderColour/1,
+ hasFont/1,hasTextColour/1,isHoliday/1,new/0,new/1,new/2,setBackgroundColour/2,
+ setBorder/2,setBorderColour/2,setFont/2,setHoliday/2,setTextColour/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxCalendarDateAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrwxcalendardateattr">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxCalendarDateAttr_new_0,
+ <<>>).
+
+%% @spec (X::WxCalendarDateBorder|term()) -> wxCalendarDateAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrwxcalendardateattr">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Border::WxCalendarDateBorder) -> new(Border, []) </c></p>
+%% <p><c>
+%% new(ColText::wx:colour()) -> new(ColText, []) </c></p>
+
+new(Border)
+ when is_integer(Border) ->
+ new(Border, []);
+
+new(ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ new(ColText, []).
+
+%% @spec (X::WxCalendarDateBorder|term(),[Option]) -> wxCalendarDateAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrwxcalendardateattr">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Border::WxCalendarDateBorder, [Option]) -> wxCalendarDateAttr() </c>
+%%<br /> Option = {colBorder, wx:colour()}
+%%<br /> WxCalendarDateBorder = integer()
+%%<br /> WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND
+%% </p>
+%% <p><c>
+%% new(ColText::wx:colour(), [Option]) -> wxCalendarDateAttr() </c>
+%%<br /> Option = {colBack, wx:colour()} | {colBorder, wx:colour()} | {font, wxFont:wxFont()} | {border, WxCalendarDateBorder}
+%%<br /> WxCalendarDateBorder = integer()
+%%<br /> WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND
+%% </p>
+new(Border, Options)
+ when is_integer(Border),is_list(Options) ->
+ MOpts = fun({colBorder, ColBorder}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(ColBorder)):16/binary,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCalendarDateAttr_new_2_0,
+ <<Border:32/?UI, 0:32,BinOpt/binary>>);
+new(ColText, Options)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4,is_list(Options) ->
+ MOpts = fun({colBack, ColBack}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary,0:32>>|Acc];
+ ({colBorder, ColBorder}, Acc) -> [<<2:32/?UI,(wxe_util:colour_bin(ColBorder)):16/binary,0:32>>|Acc];
+ ({font, #wx_ref{type=FontT,ref=FontRef}}, Acc) -> ?CLASS(FontT,wxFont),[<<3:32/?UI,FontRef:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<4:32/?UI,Border:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCalendarDateAttr_new_2_1,
+ <<(wxe_util:colour_bin(ColText)):16/binary, BinOpt/binary>>).
+
+%% @spec (This::wxCalendarDateAttr(), ColText::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsettextcolour">external documentation</a>.
+setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarDateAttr_SetTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColText)):16/binary>>).
+
+%% @spec (This::wxCalendarDateAttr(), ColBack::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack)
+ when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarDateAttr_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary>>).
+
+%% @spec (This::wxCalendarDateAttr(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsetbordercolour">external documentation</a>.
+setBorderColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarDateAttr_SetBorderColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxCalendarDateAttr(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxCalendarDateAttr_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr(), Border::WxCalendarDateBorder) -> ok
+%% WxCalendarDateBorder = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsetborder">external documentation</a>.
+%%<br /> WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND
+setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border)
+ when is_integer(Border) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarDateAttr_SetBorder,
+ <<ThisRef:32/?UI,Border:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr(), Holiday::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrsetholiday">external documentation</a>.
+setHoliday(#wx_ref{type=ThisT,ref=ThisRef},Holiday)
+ when is_boolean(Holiday) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:cast(?wxCalendarDateAttr_SetHoliday,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Holiday)):32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrhastextcolour">external documentation</a>.
+hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_HasTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrhasbackgroundcolour">external documentation</a>.
+hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_HasBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrhasbordercolour">external documentation</a>.
+hasBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_HasBorderColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrhasfont">external documentation</a>.
+hasFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_HasFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrhasborder">external documentation</a>.
+hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_HasBorder,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrisholiday">external documentation</a>.
+isHoliday(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_IsHoliday,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrgettextcolour">external documentation</a>.
+getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_GetTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrgetbackgroundcolour">external documentation</a>.
+getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_GetBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrgetbordercolour">external documentation</a>.
+getBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_GetBorderColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> WxCalendarDateBorder
+%% WxCalendarDateBorder = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendardateattr.html#wxcalendardateattrgetborder">external documentation</a>.
+%%<br /> WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND
+getBorder(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarDateAttr),
+ wxe_util:call(?wxCalendarDateAttr_GetBorder,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCalendarDateAttr()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCalendarDateAttr),
+ wxe_util:destroy(?wxCalendarDateAttr_destroy,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxCalendarEvent.erl b/lib/wx/src/gen/wxCalendarEvent.erl
new file mode 100644
index 0000000000..de51d20cae
--- /dev/null
+++ b/lib/wx/src/gen/wxCalendarEvent.erl
@@ -0,0 +1,99 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarevent.html">wxCalendarEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>calendar_sel_changed</em>, <em>calendar_day_changed</em>, <em>calendar_month_changed</em>, <em>calendar_year_changed</em>, <em>calendar_doubleclicked</em>, <em>calendar_weekday_clicked</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxCalendar(). #wxCalendar{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDateEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxCalendarEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCalendarEvent).
+-include("wxe.hrl").
+-export([getWeekDay/1]).
+
+%% inherited exports
+-export([getClientData/1,getDate/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxDateEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxCalendarEvent()) -> WeekDay
+%% WeekDay = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcalendarevent.html#wxcalendareventgetweekday">external documentation</a>.
+%%<br /> WeekDay is one of ?wxDateTime_Sun | ?wxDateTime_Mon | ?wxDateTime_Tue | ?wxDateTime_Wed | ?wxDateTime_Thu | ?wxDateTime_Fri | ?wxDateTime_Sat | ?wxDateTime_Inv_WeekDay
+getWeekDay(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCalendarEvent),
+ wxe_util:call(?wxCalendarEvent_GetWeekDay,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxDateEvent
+%% @hidden
+getDate(This) -> wxDateEvent:getDate(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxCaret.erl b/lib/wx/src/gen/wxCaret.erl
new file mode 100644
index 0000000000..50844d36ff
--- /dev/null
+++ b/lib/wx/src/gen/wxCaret.erl
@@ -0,0 +1,181 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html">wxCaret</a>.
+%% @type wxCaret(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCaret).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getBlinkTime/0,getPosition/1,getSize/1,
+ getWindow/1,hide/1,isOk/1,isVisible/1,move/2,move/3,new/2,new/3,setBlinkTime/1,
+ setSize/2,setSize/3,show/1,show/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Window::wxWindow:wxWindow(), Size::{W::integer(),H::integer()}) -> wxCaret()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretwxcaret">external documentation</a>.
+new(#wx_ref{type=WindowT,ref=WindowRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:construct(?wxCaret_new_2,
+ <<WindowRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (Window::wxWindow:wxWindow(), Width::integer(), Height::integer()) -> wxCaret()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretwxcaret">external documentation</a>.
+new(#wx_ref{type=WindowT,ref=WindowRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:construct(?wxCaret_new_3,
+ <<WindowRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxCaret(), Window::wxWindow:wxWindow(), Size::{W::integer(),H::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxCaret),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxCaret_Create_2,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxCaret(), Window::wxWindow:wxWindow(), Width::integer(), Height::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxCaret),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxCaret_Create_3,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretgetblinktime">external documentation</a>.
+getBlinkTime() ->
+ wxe_util:call(?wxCaret_GetBlinkTime,
+ <<>>).
+
+%% @spec (This::wxCaret()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:call(?wxCaret_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:call(?wxCaret_GetSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretgetwindow">external documentation</a>.
+getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:call(?wxCaret_GetWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcarethide">external documentation</a>.
+hide(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:cast(?wxCaret_Hide,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:call(?wxCaret_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretisvisible">external documentation</a>.
+isVisible(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:call(?wxCaret_IsVisible,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCaret(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretmove">external documentation</a>.
+move(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:cast(?wxCaret_Move_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxCaret(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretmove">external documentation</a>.
+move(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:cast(?wxCaret_Move_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (Milliseconds::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretsetblinktime">external documentation</a>.
+setBlinkTime(Milliseconds)
+ when is_integer(Milliseconds) ->
+ wxe_util:cast(?wxCaret_SetBlinkTime,
+ <<Milliseconds:32/?UI>>).
+
+%% @spec (This::wxCaret(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretsetsize">external documentation</a>.
+setSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:cast(?wxCaret_SetSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxCaret(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretsetsize">external documentation</a>.
+setSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxCaret),
+ wxe_util:cast(?wxCaret_SetSize_2,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxCaret()) -> ok
+%% @equiv show(This, [])
+show(This)
+ when is_record(This, wx_ref) ->
+ show(This, []).
+
+%% @spec (This::wxCaret(), [Option]) -> ok
+%% Option = {show, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcaret.html#wxcaretshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxCaret),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCaret_Show,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxCaret()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCaret),
+ wxe_util:destroy(?wxCaret_destruct,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxCheckBox.erl b/lib/wx/src/gen/wxCheckBox.erl
new file mode 100644
index 0000000000..bf368dc965
--- /dev/null
+++ b/lib/wx/src/gen/wxCheckBox.erl
@@ -0,0 +1,554 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html">wxCheckBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxCheckBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCheckBox).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,get3StateValue/1,getValue/1,is3State/1,
+ is3rdStateAllowedForUser/1,isChecked/1,new/0,new/3,new/4,set3StateValue/2,
+ setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxCheckBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxwxcheckbox">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxCheckBox_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> wxCheckBox()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> wxCheckBox()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxwxcheckbox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCheckBox_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxCheckBox(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxCheckBox(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxCheckBox),
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxCheckBox_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxCheckBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:call(?wxCheckBox_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCheckBox()) -> WxCheckBoxState
+%% WxCheckBoxState = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxget3statevalue">external documentation</a>.
+%%<br /> WxCheckBoxState is one of ?wxCHK_UNCHECKED | ?wxCHK_CHECKED | ?wxCHK_UNDETERMINED
+get3StateValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:call(?wxCheckBox_Get3StateValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCheckBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxis3rdstateallowedforuser">external documentation</a>.
+is3rdStateAllowedForUser(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:call(?wxCheckBox_Is3rdStateAllowedForUser,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCheckBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxis3state">external documentation</a>.
+is3State(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:call(?wxCheckBox_Is3State,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCheckBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:call(?wxCheckBox_IsChecked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCheckBox(), State::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},State)
+ when is_boolean(State) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:cast(?wxCheckBox_SetValue,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(State)):32/?UI>>).
+
+%% @spec (This::wxCheckBox(), State::WxCheckBoxState) -> ok
+%% WxCheckBoxState = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html#wxcheckboxset3statevalue">external documentation</a>.
+%%<br /> WxCheckBoxState is one of ?wxCHK_UNCHECKED | ?wxCHK_CHECKED | ?wxCHK_UNDETERMINED
+set3StateValue(#wx_ref{type=ThisT,ref=ThisRef},State)
+ when is_integer(State) ->
+ ?CLASS(ThisT,wxCheckBox),
+ wxe_util:cast(?wxCheckBox_Set3StateValue,
+ <<ThisRef:32/?UI,State:32/?UI>>).
+
+%% @spec (This::wxCheckBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCheckBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxCheckListBox.erl b/lib/wx/src/gen/wxCheckListBox.erl
new file mode 100644
index 0000000000..7cbf9d18df
--- /dev/null
+++ b/lib/wx/src/gen/wxCheckListBox.erl
@@ -0,0 +1,564 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchecklistbox.html">wxCheckListBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxListBox}
+%% <br />{@link wxControlWithItems}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxCheckListBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCheckListBox).
+-include("wxe.hrl").
+-export([check/2,check/3,destroy/1,isChecked/2,new/0,new/2,new/3]).
+
+%% inherited exports
+-export([append/2,append/3,appendStrings/2,cacheBestSize/2,captureMouse/1,center/1,
+ center/2,centerOnParent/1,centerOnParent/2,centre/1,centre/2,centreOnParent/1,
+ centreOnParent/2,clear/1,clearBackground/1,clientToScreen/2,clientToScreen/3,
+ close/1,close/2,connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ delete/2,deselect/2,destroyChildren/1,disable/1,disconnect/1,disconnect/2,
+ disconnect/3,enable/1,enable/2,findString/2,findString/3,findWindow/2,
+ fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,getBackgroundColour/1,
+ getBackgroundStyle/1,getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,
+ getChildren/1,getClientData/2,getClientSize/1,getContainingSizer/1,
+ getCount/1,getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,
+ getFont/1,getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSelection/1,getSelections/1,
+ getSize/1,getSizer/1,getString/2,getStringSelection/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,hitTest/2,inheritAttributes/1,initDialog/1,insert/3,insert/4,
+ insertItems/3,invalidateBestSize/1,isEmpty/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isRetained/1,isSelected/2,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ select/2,set/2,setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientData/3,setClientSize/2,setClientSize/3,
+ setContainingSizer/2,setCursor/2,setDropTarget/2,setExtraStyle/2,
+ setFirstItem/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setSelection/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setString/3,setStringSelection/2,setThemeEnabled/2,setToolTip/2,setVirtualSize/2,
+ setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxListBox) -> true;
+parent_class(wxControlWithItems) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxCheckListBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchecklistbox.html#wxchecklistboxwxchecklistbox">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxCheckListBox_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxCheckListBox()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxCheckListBox()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {choices, [[string()]]} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchecklistbox.html#wxchecklistboxwxchecklistbox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({choices, Choices}, Acc) -> Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) || ChoicesTemp <- Choices],[<<3:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCheckListBox_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxCheckListBox(), Index::integer()) -> ok
+%% @equiv check(This,Index, [])
+check(This,Index)
+ when is_record(This, wx_ref),is_integer(Index) ->
+ check(This,Index, []).
+
+%% @spec (This::wxCheckListBox(), Index::integer(), [Option]) -> ok
+%% Option = {check, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchecklistbox.html#wxchecklistboxcheck">external documentation</a>.
+check(#wx_ref{type=ThisT,ref=ThisRef},Index, Options)
+ when is_integer(Index),is_list(Options) ->
+ ?CLASS(ThisT,wxCheckListBox),
+ MOpts = fun({check, Check}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Check)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCheckListBox_Check,
+ <<ThisRef:32/?UI,Index:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxCheckListBox(), Index::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchecklistbox.html#wxchecklistboxischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxCheckListBox),
+ wxe_util:call(?wxCheckListBox_IsChecked,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxCheckListBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCheckListBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxListBox
+%% @hidden
+setFirstItem(This,N) -> wxListBox:setFirstItem(This,N).
+%% @hidden
+hitTest(This,Point) -> wxListBox:hitTest(This,Point).
+%% @hidden
+set(This,Items) -> wxListBox:set(This,Items).
+%% @hidden
+isSelected(This,N) -> wxListBox:isSelected(This,N).
+%% @hidden
+insertItems(This,Items,Pos) -> wxListBox:insertItems(This,Items,Pos).
+%% @hidden
+getSelections(This) -> wxListBox:getSelections(This).
+%% @hidden
+deselect(This,N) -> wxListBox:deselect(This,N).
+ %% From wxControlWithItems
+%% @hidden
+setStringSelection(This,S) -> wxControlWithItems:setStringSelection(This,S).
+%% @hidden
+setString(This,N,S) -> wxControlWithItems:setString(This,N,S).
+%% @hidden
+setSelection(This,N) -> wxControlWithItems:setSelection(This,N).
+%% @hidden
+select(This,N) -> wxControlWithItems:select(This,N).
+%% @hidden
+isEmpty(This) -> wxControlWithItems:isEmpty(This).
+%% @hidden
+insert(This,Item,Pos,ClientData) -> wxControlWithItems:insert(This,Item,Pos,ClientData).
+%% @hidden
+insert(This,Item,Pos) -> wxControlWithItems:insert(This,Item,Pos).
+%% @hidden
+getStringSelection(This) -> wxControlWithItems:getStringSelection(This).
+%% @hidden
+getString(This,N) -> wxControlWithItems:getString(This,N).
+%% @hidden
+getSelection(This) -> wxControlWithItems:getSelection(This).
+%% @hidden
+getCount(This) -> wxControlWithItems:getCount(This).
+%% @hidden
+setClientData(This,N,ClientData) -> wxControlWithItems:setClientData(This,N,ClientData).
+%% @hidden
+getClientData(This,N) -> wxControlWithItems:getClientData(This,N).
+%% @hidden
+findString(This,S, Options) -> wxControlWithItems:findString(This,S, Options).
+%% @hidden
+findString(This,S) -> wxControlWithItems:findString(This,S).
+%% @hidden
+delete(This,N) -> wxControlWithItems:delete(This,N).
+%% @hidden
+clear(This) -> wxControlWithItems:clear(This).
+%% @hidden
+appendStrings(This,Strings) -> wxControlWithItems:appendStrings(This,Strings).
+%% @hidden
+append(This,Item,ClientData) -> wxControlWithItems:append(This,Item,ClientData).
+%% @hidden
+append(This,Item) -> wxControlWithItems:append(This,Item).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxChildFocusEvent.erl b/lib/wx/src/gen/wxChildFocusEvent.erl
new file mode 100644
index 0000000000..ea04e6863b
--- /dev/null
+++ b/lib/wx/src/gen/wxChildFocusEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchildfocusevent.html">wxChildFocusEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>child_focus</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxChildFocus(). #wxChildFocus{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxChildFocusEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxChildFocusEvent).
+-include("wxe.hrl").
+-export([getWindow/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxChildFocusEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchildfocusevent.html#wxchildfocuseventgetwindow">external documentation</a>.
+getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChildFocusEvent),
+ wxe_util:call(?wxChildFocusEvent_GetWindow,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxChoice.erl b/lib/wx/src/gen/wxChoice.erl
new file mode 100644
index 0000000000..3e20d5f933
--- /dev/null
+++ b/lib/wx/src/gen/wxChoice.erl
@@ -0,0 +1,574 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html">wxChoice</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControlWithItems}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxChoice(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxChoice).
+-include("wxe.hrl").
+-export([create/6,create/7,delete/2,destroy/1,getColumns/1,new/0,new/2,new/3,setColumns/1,
+ setColumns/2]).
+
+%% inherited exports
+-export([append/2,append/3,appendStrings/2,cacheBestSize/2,captureMouse/1,center/1,
+ center/2,centerOnParent/1,centerOnParent/2,centre/1,centre/2,centreOnParent/1,
+ centreOnParent/2,clear/1,clearBackground/1,clientToScreen/2,clientToScreen/3,
+ close/1,close/2,connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findString/2,findString/3,findWindow/2,fit/1,fitInside/1,
+ freeze/1,getAcceleratorTable/1,getBackgroundColour/1,getBackgroundStyle/1,
+ getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,
+ getClientData/2,getClientSize/1,getContainingSizer/1,getCount/1,getCursor/1,
+ getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSelection/1,getSize/1,getSizer/1,getString/2,getStringSelection/1,
+ getTextExtent/2,getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,
+ getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,hasScrollbar/2,
+ hasTransparentBackground/1,hide/1,inheritAttributes/1,initDialog/1,
+ insert/3,insert/4,invalidateBestSize/1,isEmpty/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,
+ moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ select/2,setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientData/3,setClientSize/2,setClientSize/3,
+ setContainingSizer/2,setCursor/2,setDropTarget/2,setExtraStyle/2,
+ setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,setHelpText/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setScrollPos/3,
+ setScrollPos/4,setScrollbar/5,setScrollbar/6,setSelection/2,setSize/2,
+ setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,
+ setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setString/3,
+ setStringSelection/2,setThemeEnabled/2,setToolTip/2,setVirtualSize/2,
+ setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControlWithItems) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxChoice()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicewxchoice">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxChoice_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxChoice()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxChoice()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {choices, [[string()]]} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicewxchoice">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({choices, Choices}, Acc) -> Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) || ChoicesTemp <- Choices],[<<3:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxChoice_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxChoice(), Parent::wxWindow:wxWindow(), Id::integer(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]]) -> bool()
+%% @equiv create(This,Parent,Id,Pos,Size,Choices, [])
+create(This,Parent,Id,Pos={PosX,PosY},Size={SizeW,SizeH},Choices)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices) ->
+ create(This,Parent,Id,Pos,Size,Choices, []).
+
+%% @spec (This::wxChoice(), Parent::wxWindow:wxWindow(), Id::integer(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]], [Option]) -> bool()
+%% Option = {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,{PosX,PosY},{SizeW,SizeH},Choices, Options)
+ when is_integer(Id),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices),is_list(Options) ->
+ ?CLASS(ThisT,wxChoice),
+ ?CLASS(ParentT,wxWindow),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<2:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxChoice_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxChoice(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicedelete">external documentation</a>.
+delete(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoice),
+ wxe_util:cast(?wxChoice_Delete,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoice()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicegetcolumns">external documentation</a>.
+getColumns(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoice),
+ wxe_util:call(?wxChoice_GetColumns,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoice()) -> ok
+%% @equiv setColumns(This, [])
+setColumns(This)
+ when is_record(This, wx_ref) ->
+ setColumns(This, []).
+
+%% @spec (This::wxChoice(), [Option]) -> ok
+%% Option = {n, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoice.html#wxchoicesetcolumns">external documentation</a>.
+setColumns(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxChoice),
+ MOpts = fun({n, N}, Acc) -> [<<1:32/?UI,N:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxChoice_SetColumns,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxChoice()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxChoice),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControlWithItems
+%% @hidden
+setStringSelection(This,S) -> wxControlWithItems:setStringSelection(This,S).
+%% @hidden
+setString(This,N,S) -> wxControlWithItems:setString(This,N,S).
+%% @hidden
+setSelection(This,N) -> wxControlWithItems:setSelection(This,N).
+%% @hidden
+select(This,N) -> wxControlWithItems:select(This,N).
+%% @hidden
+isEmpty(This) -> wxControlWithItems:isEmpty(This).
+%% @hidden
+insert(This,Item,Pos,ClientData) -> wxControlWithItems:insert(This,Item,Pos,ClientData).
+%% @hidden
+insert(This,Item,Pos) -> wxControlWithItems:insert(This,Item,Pos).
+%% @hidden
+getStringSelection(This) -> wxControlWithItems:getStringSelection(This).
+%% @hidden
+getString(This,N) -> wxControlWithItems:getString(This,N).
+%% @hidden
+getSelection(This) -> wxControlWithItems:getSelection(This).
+%% @hidden
+getCount(This) -> wxControlWithItems:getCount(This).
+%% @hidden
+setClientData(This,N,ClientData) -> wxControlWithItems:setClientData(This,N,ClientData).
+%% @hidden
+getClientData(This,N) -> wxControlWithItems:getClientData(This,N).
+%% @hidden
+findString(This,S, Options) -> wxControlWithItems:findString(This,S, Options).
+%% @hidden
+findString(This,S) -> wxControlWithItems:findString(This,S).
+%% @hidden
+clear(This) -> wxControlWithItems:clear(This).
+%% @hidden
+appendStrings(This,Strings) -> wxControlWithItems:appendStrings(This,Strings).
+%% @hidden
+append(This,Item,ClientData) -> wxControlWithItems:append(This,Item,ClientData).
+%% @hidden
+append(This,Item) -> wxControlWithItems:append(This,Item).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxChoicebook.erl b/lib/wx/src/gen/wxChoicebook.erl
new file mode 100644
index 0000000000..faf7c402b7
--- /dev/null
+++ b/lib/wx/src/gen/wxChoicebook.erl
@@ -0,0 +1,698 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html">wxChoicebook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxChoicebook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxChoicebook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
+ changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
+ destroy/1,getCurrentPage/1,getImageList/1,getPage/2,getPageCount/1,
+ getPageImage/2,getPageText/2,getSelection/1,hitTest/2,insertPage/4,
+ insertPage/5,new/0,new/2,new/3,removePage/2,setImageList/2,setPageImage/3,
+ setPageSize/2,setPageText/3,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxChoicebook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookwxchoicebook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxChoicebook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxChoicebook()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxChoicebook()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookwxchoicebook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxChoicebook_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxChoicebook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv addPage(This,Page,Text, [])
+addPage(This,Page,Text)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
+ addPage(This,Page,Text, []).
+
+%% @spec (This::wxChoicebook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxChoicebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxChoicebook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxChoicebook()) -> ok
+%% @equiv advanceSelection(This, [])
+advanceSelection(This)
+ when is_record(This, wx_ref) ->
+ advanceSelection(This, []).
+
+%% @spec (This::wxChoicebook(), [Option]) -> ok
+%% Option = {forward, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookadvanceselection">external documentation</a>.
+advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxChoicebook),
+ MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxChoicebook_AdvanceSelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxChoicebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxChoicebook_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxChoicebook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxChoicebook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxChoicebook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxChoicebook()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookdeleteallpages">external documentation</a>.
+deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_DeleteAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_DeletePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_RemovePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetPage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetpageimage">external documentation</a>.
+getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetPageText,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_HitTest,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv insertPage(This,N,Page,Text, [])
+insertPage(This,N,Page,Text)
+ when is_record(This, wx_ref),is_integer(N),is_record(Page, wx_ref),is_list(Text) ->
+ insertPage(This,N,Page,Text, []).
+
+%% @spec (This::wxChoicebook(), N::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},N,#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_integer(N),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxChoicebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxChoicebook_InsertPage,
+ <<ThisRef:32/?UI,N:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxChoicebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebooksetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxChoicebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxChoicebook_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebooksetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:cast(?wxChoicebook_SetPageSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer(), ImageId::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebooksetpageimage">external documentation</a>.
+setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId)
+ when is_integer(N),is_integer(ImageId) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_SetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI,ImageId:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer(), StrText::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},N,StrText)
+ when is_integer(N),is_list(StrText) ->
+ ?CLASS(ThisT,wxChoicebook),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ wxe_util:call(?wxChoicebook_SetPageText,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxchoicebook.html#wxchoicebookchangeselection">external documentation</a>.
+changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxChoicebook),
+ wxe_util:call(?wxChoicebook_ChangeSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxChoicebook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxChoicebook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxClientDC.erl b/lib/wx/src/gen/wxClientDC.erl
new file mode 100644
index 0000000000..86418cc922
--- /dev/null
+++ b/lib/wx/src/gen/wxClientDC.erl
@@ -0,0 +1,267 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclientdc.html">wxClientDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindowDC}
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxClientDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxClientDC).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxWindowDC) -> true;
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxClientDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclientdc.html#wxclientdcwxclientdc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxClientDC_new_0,
+ <<>>).
+
+%% @spec (Win::wxWindow:wxWindow()) -> wxClientDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclientdc.html#wxclientdcwxclientdc">external documentation</a>.
+new(#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(WinT,wxWindow),
+ wxe_util:construct(?wxClientDC_new_1,
+ <<WinRef:32/?UI>>).
+
+%% @spec (This::wxClientDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxClientDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindowDC
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxClipboard.erl b/lib/wx/src/gen/wxClipboard.erl
new file mode 100644
index 0000000000..c92f7b9af4
--- /dev/null
+++ b/lib/wx/src/gen/wxClipboard.erl
@@ -0,0 +1,138 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html">wxClipboard</a>.
+%% @type wxClipboard(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxClipboard).
+-include("wxe.hrl").
+-export([addData/2,clear/1,close/1,destroy/1,flush/1,get/0,getData/2,isOpened/1,
+ isSupported/2,new/0,open/1,setData/2,usePrimarySelection/1,usePrimarySelection/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxClipboard()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardwxclipboard">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxClipboard_new,
+ <<>>).
+
+%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardadddata">external documentation</a>.
+addData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ ?CLASS(DataT,wxDataObject),
+ wxe_util:call(?wxClipboard_AddData,
+ <<ThisRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:cast(?wxClipboard_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardclose">external documentation</a>.
+close(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:cast(?wxClipboard_Close,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardflush">external documentation</a>.
+flush(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:call(?wxClipboard_Flush,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardgetdata">external documentation</a>.
+getData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ ?CLASS(DataT,wxDataObject),
+ wxe_util:call(?wxClipboard_GetData,
+ <<ThisRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardisopened">external documentation</a>.
+isOpened(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:call(?wxClipboard_IsOpened,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardopen">external documentation</a>.
+open(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:call(?wxClipboard_Open,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardsetdata">external documentation</a>.
+setData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ThisT,wxClipboard),
+ ?CLASS(DataT,wxDataObject),
+ wxe_util:call(?wxClipboard_SetData,
+ <<ThisRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxClipboard()) -> ok
+%% @equiv usePrimarySelection(This, [])
+usePrimarySelection(This)
+ when is_record(This, wx_ref) ->
+ usePrimarySelection(This, []).
+
+%% @spec (This::wxClipboard(), [Option]) -> ok
+%% Option = {primary, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboarduseprimaryselection">external documentation</a>.
+usePrimarySelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxClipboard),
+ MOpts = fun({primary, Primary}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Primary)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxClipboard_UsePrimarySelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxClipboard(), Format::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardissupported">external documentation</a>.
+isSupported(#wx_ref{type=ThisT,ref=ThisRef},Format)
+ when is_integer(Format) ->
+ ?CLASS(ThisT,wxClipboard),
+ wxe_util:call(?wxClipboard_IsSupported,
+ <<ThisRef:32/?UI,Format:32/?UI>>).
+
+%% @spec () -> wxClipboard()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardget">external documentation</a>.
+get() ->
+ wxe_util:call(?wxClipboard_Get,
+ <<>>).
+
+%% @spec (This::wxClipboard()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxClipboard),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxCloseEvent.erl b/lib/wx/src/gen/wxCloseEvent.erl
new file mode 100644
index 0000000000..e8e25a448c
--- /dev/null
+++ b/lib/wx/src/gen/wxCloseEvent.erl
@@ -0,0 +1,110 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html">wxCloseEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>close_window</em>, <em>end_session</em>, <em>query_end_session</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxClose(). #wxClose{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxCloseEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCloseEvent).
+-include("wxe.hrl").
+-export([canVeto/1,getLoggingOff/1,setCanVeto/2,setLoggingOff/2,veto/1,veto/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxCloseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html#wxcloseeventcanveto">external documentation</a>.
+canVeto(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCloseEvent),
+ wxe_util:call(?wxCloseEvent_CanVeto,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCloseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html#wxcloseeventgetloggingoff">external documentation</a>.
+getLoggingOff(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCloseEvent),
+ wxe_util:call(?wxCloseEvent_GetLoggingOff,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCloseEvent(), CanVeto::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html#wxcloseeventsetcanveto">external documentation</a>.
+setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},CanVeto)
+ when is_boolean(CanVeto) ->
+ ?CLASS(ThisT,wxCloseEvent),
+ wxe_util:cast(?wxCloseEvent_SetCanVeto,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(CanVeto)):32/?UI>>).
+
+%% @spec (This::wxCloseEvent(), LogOff::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html#wxcloseeventsetloggingoff">external documentation</a>.
+setLoggingOff(#wx_ref{type=ThisT,ref=ThisRef},LogOff)
+ when is_boolean(LogOff) ->
+ ?CLASS(ThisT,wxCloseEvent),
+ wxe_util:cast(?wxCloseEvent_SetLoggingOff,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(LogOff)):32/?UI>>).
+
+%% @spec (This::wxCloseEvent()) -> ok
+%% @equiv veto(This, [])
+veto(This)
+ when is_record(This, wx_ref) ->
+ veto(This, []).
+
+%% @spec (This::wxCloseEvent(), [Option]) -> ok
+%% Option = {veto, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcloseevent.html#wxcloseeventveto">external documentation</a>.
+veto(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxCloseEvent),
+ MOpts = fun({veto, Veto}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Veto)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxCloseEvent_Veto,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxColourData.erl b/lib/wx/src/gen/wxColourData.erl
new file mode 100644
index 0000000000..973086c295
--- /dev/null
+++ b/lib/wx/src/gen/wxColourData.erl
@@ -0,0 +1,100 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html">wxColourData</a>.
+%% @type wxColourData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxColourData).
+-include("wxe.hrl").
+-export([destroy/1,getChooseFull/1,getColour/1,getCustomColour/2,new/0,new/1,
+ setChooseFull/2,setColour/2,setCustomColour/3]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxColourData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatawxcolourdata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxColourData_new_0,
+ <<>>).
+
+%% @spec (Data::wxColourData()) -> wxColourData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatawxcolourdata">external documentation</a>.
+new(#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(DataT,wxColourData),
+ wxe_util:construct(?wxColourData_new_1,
+ <<DataRef:32/?UI>>).
+
+%% @spec (This::wxColourData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetchoosefull">external documentation</a>.
+getChooseFull(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:call(?wxColourData_GetChooseFull,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxColourData()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:call(?wxColourData_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxColourData(), I::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetcustomcolour">external documentation</a>.
+getCustomColour(#wx_ref{type=ThisT,ref=ThisRef},I)
+ when is_integer(I) ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:call(?wxColourData_GetCustomColour,
+ <<ThisRef:32/?UI,I:32/?UI>>).
+
+%% @spec (This::wxColourData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetchoosefull">external documentation</a>.
+setChooseFull(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:cast(?wxColourData_SetChooseFull,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxColourData(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:cast(?wxColourData_SetColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxColourData(), I::integer(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetcustomcolour">external documentation</a>.
+setCustomColour(#wx_ref{type=ThisT,ref=ThisRef},I,Colour)
+ when is_integer(I),tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxColourData),
+ wxe_util:cast(?wxColourData_SetCustomColour,
+ <<ThisRef:32/?UI,I:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxColourData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxColourData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxColourDialog.erl b/lib/wx/src/gen/wxColourDialog.erl
new file mode 100644
index 0000000000..08a6b73775
--- /dev/null
+++ b/lib/wx/src/gen/wxColourDialog.erl
@@ -0,0 +1,570 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdialog.html">wxColourDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxColourDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxColourDialog).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getColourData/1,new/0,new/1,new/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxColourDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdialog.html#wxcolourdialogwxcolourdialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxColourDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxColourDialog()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxColourDialog()
+%% Option = {data, wxColourData:wxColourData()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdialog.html#wxcolourdialogwxcolourdialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxColourData),[<<1:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxColourDialog_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxColourDialog(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxColourDialog(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {data, wxColourData:wxColourData()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdialog.html#wxcolourdialogcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxColourDialog),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxColourData),[<<1:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxColourDialog_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxColourDialog()) -> wxColourData:wxColourData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdialog.html#wxcolourdialoggetcolourdata">external documentation</a>.
+getColourData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxColourDialog),
+ wxe_util:call(?wxColourDialog_GetColourData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxColourDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxColourDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxColourPickerCtrl.erl b/lib/wx/src/gen/wxColourPickerCtrl.erl
new file mode 100644
index 0000000000..1f345b4294
--- /dev/null
+++ b/lib/wx/src/gen/wxColourPickerCtrl.erl
@@ -0,0 +1,560 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html">wxColourPickerCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPickerBase}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxColourPickerCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxColourPickerCtrl).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getColour/1,new/0,new/2,new/3,setColour/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getInternalMargin/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPickerCtrlProportion/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextCtrl/1,getTextCtrlProportion/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTextCtrl/1,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isPickerCtrlGrowable/1,isRetained/1,
+ isShown/1,isTextCtrlGrowable/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setInternalMargin/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,
+ setPickerCtrlProportion/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,
+ setScrollbar/6,setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,
+ setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,
+ setSizerAndFit/3,setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPickerBase) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxColourPickerCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html#wxcolourpickerctrlwxcolourpickerctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxColourPickerCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxColourPickerCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxColourPickerCtrl()
+%% Option = {col, wx:colour()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html#wxcolourpickerctrlwxcolourpickerctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({col, Col}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Col)):16/binary,0:32>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxColourPickerCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxColourPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxColourPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {col, wx:colour()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html#wxcolourpickerctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxColourPickerCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({col, Col}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Col)):16/binary,0:32>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxColourPickerCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxColourPickerCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html#wxcolourpickerctrlgetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxColourPickerCtrl),
+ wxe_util:call(?wxColourPickerCtrl_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxColourPickerCtrl(),X::string()|term()) -> bool()|ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerctrl.html#wxcolourpickerctrlsetcolour">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setColour(This::wxColourPickerCtrl(), Text::string()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% setColour(This::wxColourPickerCtrl(), Col::wx:colour()) -> ok </c>
+%% </p>
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxColourPickerCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxColourPickerCtrl_SetColour_1_0,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>);
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxColourPickerCtrl),
+ wxe_util:cast(?wxColourPickerCtrl_SetColour_1_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxColourPickerCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxColourPickerCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPickerBase
+%% @hidden
+isPickerCtrlGrowable(This) -> wxPickerBase:isPickerCtrlGrowable(This).
+%% @hidden
+setTextCtrlGrowable(This, Options) -> wxPickerBase:setTextCtrlGrowable(This, Options).
+%% @hidden
+setTextCtrlGrowable(This) -> wxPickerBase:setTextCtrlGrowable(This).
+%% @hidden
+setPickerCtrlGrowable(This, Options) -> wxPickerBase:setPickerCtrlGrowable(This, Options).
+%% @hidden
+setPickerCtrlGrowable(This) -> wxPickerBase:setPickerCtrlGrowable(This).
+%% @hidden
+isTextCtrlGrowable(This) -> wxPickerBase:isTextCtrlGrowable(This).
+%% @hidden
+getTextCtrl(This) -> wxPickerBase:getTextCtrl(This).
+%% @hidden
+hasTextCtrl(This) -> wxPickerBase:hasTextCtrl(This).
+%% @hidden
+getPickerCtrlProportion(This) -> wxPickerBase:getPickerCtrlProportion(This).
+%% @hidden
+getTextCtrlProportion(This) -> wxPickerBase:getTextCtrlProportion(This).
+%% @hidden
+setPickerCtrlProportion(This,Prop) -> wxPickerBase:setPickerCtrlProportion(This,Prop).
+%% @hidden
+setTextCtrlProportion(This,Prop) -> wxPickerBase:setTextCtrlProportion(This,Prop).
+%% @hidden
+getInternalMargin(This) -> wxPickerBase:getInternalMargin(This).
+%% @hidden
+setInternalMargin(This,Newmargin) -> wxPickerBase:setInternalMargin(This,Newmargin).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxColourPickerEvent.erl b/lib/wx/src/gen/wxColourPickerEvent.erl
new file mode 100644
index 0000000000..0ed131fc30
--- /dev/null
+++ b/lib/wx/src/gen/wxColourPickerEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerevent.html">wxColourPickerEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_colourpicker_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxColourPicker(). #wxColourPicker{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxColourPickerEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxColourPickerEvent).
+-include("wxe.hrl").
+-export([getColour/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxColourPickerEvent()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourpickerevent.html#wxcolourpickereventgetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxColourPickerEvent),
+ wxe_util:call(?wxColourPickerEvent_GetColour,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxComboBox.erl b/lib/wx/src/gen/wxComboBox.erl
new file mode 100644
index 0000000000..6a40aacd50
--- /dev/null
+++ b/lib/wx/src/gen/wxComboBox.erl
@@ -0,0 +1,693 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html">wxComboBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControlWithItems}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxComboBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxComboBox).
+-include("wxe.hrl").
+-export([canCopy/1,canCut/1,canPaste/1,canRedo/1,canUndo/1,copy/1,create/7,create/8,
+ cut/1,destroy/1,getInsertionPoint/1,getLastPosition/1,getValue/1,new/0,
+ new/2,new/3,paste/1,redo/1,remove/3,replace/4,setInsertionPoint/2,setInsertionPointEnd/1,
+ setSelection/2,setSelection/3,setValue/2,undo/1]).
+
+%% inherited exports
+-export([append/2,append/3,appendStrings/2,cacheBestSize/2,captureMouse/1,center/1,
+ center/2,centerOnParent/1,centerOnParent/2,centre/1,centre/2,centreOnParent/1,
+ centreOnParent/2,clear/1,clearBackground/1,clientToScreen/2,clientToScreen/3,
+ close/1,close/2,connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ delete/2,destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findString/2,findString/3,findWindow/2,fit/1,fitInside/1,
+ freeze/1,getAcceleratorTable/1,getBackgroundColour/1,getBackgroundStyle/1,
+ getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,
+ getClientData/2,getClientSize/1,getContainingSizer/1,getCount/1,getCursor/1,
+ getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSelection/1,getSize/1,getSizer/1,getString/2,getStringSelection/1,
+ getTextExtent/2,getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,
+ getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,hasScrollbar/2,
+ hasTransparentBackground/1,hide/1,inheritAttributes/1,initDialog/1,
+ insert/3,insert/4,invalidateBestSize/1,isEmpty/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,
+ moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ select/2,setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientData/3,setClientSize/2,setClientSize/3,
+ setContainingSizer/2,setCursor/2,setDropTarget/2,setExtraStyle/2,
+ setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,setHelpText/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setScrollPos/3,
+ setScrollPos/4,setScrollbar/5,setScrollbar/6,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setString/3,setStringSelection/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControlWithItems) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxComboBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxwxcombobox">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxComboBox_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxComboBox()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxComboBox()
+%% Option = {value, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {choices, [[string()]]} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxwxcombobox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<1:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({choices, Choices}, Acc) -> Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) || ChoicesTemp <- Choices],[<<4:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<6:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxComboBox_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxComboBox(), Parent::wxWindow:wxWindow(), Id::integer(), Value::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]]) -> bool()
+%% @equiv create(This,Parent,Id,Value,Pos,Size,Choices, [])
+create(This,Parent,Id,Value,Pos={PosX,PosY},Size={SizeW,SizeH},Choices)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Value),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices) ->
+ create(This,Parent,Id,Value,Pos,Size,Choices, []).
+
+%% @spec (This::wxComboBox(), Parent::wxWindow:wxWindow(), Id::integer(), Value::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]], [Option]) -> bool()
+%% Option = {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Value,{PosX,PosY},{SizeW,SizeH},Choices, Options)
+ when is_integer(Id),is_list(Value),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices),is_list(Options) ->
+ ?CLASS(ThisT,wxComboBox),
+ ?CLASS(ParentT,wxWindow),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<2:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxComboBox_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxComboBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcancopy">external documentation</a>.
+canCopy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_CanCopy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcancut">external documentation</a>.
+canCut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_CanCut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcanpaste">external documentation</a>.
+canPaste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_CanPaste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcanredo">external documentation</a>.
+canRedo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_CanRedo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcanundo">external documentation</a>.
+canUndo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_CanUndo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcopy">external documentation</a>.
+copy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Copy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxcut">external documentation</a>.
+cut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Cut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxgetinsertionpoint">external documentation</a>.
+getInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_GetInsertionPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxgetlastposition">external documentation</a>.
+getLastPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_GetLastPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:call(?wxComboBox_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxpaste">external documentation</a>.
+paste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Paste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxredo">external documentation</a>.
+redo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Redo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox(), From::integer(), To::integer(), Value::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},From,To,Value)
+ when is_integer(From),is_integer(To),is_list(Value) ->
+ ?CLASS(ThisT,wxComboBox),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxComboBox_Replace,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxComboBox(), From::integer(), To::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxremove">external documentation</a>.
+remove(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Remove,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxComboBox(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxsetinsertionpoint">external documentation</a>.
+setInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_SetInsertionPoint,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxsetinsertionpointend">external documentation</a>.
+setInsertionPointEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_SetInsertionPointEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_SetSelection_1,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxComboBox(), From::integer(), To::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_SetSelection_2,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxComboBox(), Value::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
+ when is_list(Value) ->
+ ?CLASS(ThisT,wxComboBox),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxComboBox_SetValue,
+ <<ThisRef:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcombobox.html#wxcomboboxundo">external documentation</a>.
+undo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxComboBox),
+ wxe_util:cast(?wxComboBox_Undo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxComboBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxComboBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControlWithItems
+%% @hidden
+setStringSelection(This,S) -> wxControlWithItems:setStringSelection(This,S).
+%% @hidden
+setString(This,N,S) -> wxControlWithItems:setString(This,N,S).
+%% @hidden
+select(This,N) -> wxControlWithItems:select(This,N).
+%% @hidden
+isEmpty(This) -> wxControlWithItems:isEmpty(This).
+%% @hidden
+insert(This,Item,Pos,ClientData) -> wxControlWithItems:insert(This,Item,Pos,ClientData).
+%% @hidden
+insert(This,Item,Pos) -> wxControlWithItems:insert(This,Item,Pos).
+%% @hidden
+getStringSelection(This) -> wxControlWithItems:getStringSelection(This).
+%% @hidden
+getString(This,N) -> wxControlWithItems:getString(This,N).
+%% @hidden
+getSelection(This) -> wxControlWithItems:getSelection(This).
+%% @hidden
+getCount(This) -> wxControlWithItems:getCount(This).
+%% @hidden
+setClientData(This,N,ClientData) -> wxControlWithItems:setClientData(This,N,ClientData).
+%% @hidden
+getClientData(This,N) -> wxControlWithItems:getClientData(This,N).
+%% @hidden
+findString(This,S, Options) -> wxControlWithItems:findString(This,S, Options).
+%% @hidden
+findString(This,S) -> wxControlWithItems:findString(This,S).
+%% @hidden
+delete(This,N) -> wxControlWithItems:delete(This,N).
+%% @hidden
+clear(This) -> wxControlWithItems:clear(This).
+%% @hidden
+appendStrings(This,Strings) -> wxControlWithItems:appendStrings(This,Strings).
+%% @hidden
+append(This,Item,ClientData) -> wxControlWithItems:append(This,Item,ClientData).
+%% @hidden
+append(This,Item) -> wxControlWithItems:append(This,Item).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxCommandEvent.erl b/lib/wx/src/gen/wxCommandEvent.erl
new file mode 100644
index 0000000000..f1df933d78
--- /dev/null
+++ b/lib/wx/src/gen/wxCommandEvent.erl
@@ -0,0 +1,129 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html">wxCommandEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_button_clicked</em>, <em>command_checkbox_clicked</em>, <em>command_choice_selected</em>, <em>command_listbox_selected</em>, <em>command_listbox_doubleclicked</em>, <em>command_text_updated</em>, <em>command_text_enter</em>, <em>command_menu_selected</em>, <em>command_slider_updated</em>, <em>command_radiobox_selected</em>, <em>command_radiobutton_selected</em>, <em>command_scrollbar_updated</em>, <em>command_vlbox_selected</em>, <em>command_combobox_selected</em>, <em>command_tool_rclicked</em>, <em>command_tool_enter</em>, <em>command_checklistbox_toggled</em>, <em>command_togglebutton_clicked</em>, <em>command_left_click</em>, <em>command_left_dclick</em>, <em>command_right_click</em>, <em>command_set_focus</em>, <em>command_kill_focus</em>, <em>command_enter</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxCommand(). #wxCommand{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxCommandEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCommandEvent).
+-include("wxe.hrl").
+-export([getClientData/1,getExtraLong/1,getInt/1,getSelection/1,getString/1,
+ isChecked/1,isSelection/1,setInt/2,setString/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxCommandEvent()) -> term()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventgetclientobject">external documentation</a>.
+getClientData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_getClientData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventgetextralong">external documentation</a>.
+getExtraLong(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_GetExtraLong,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventgetint">external documentation</a>.
+getInt(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_GetInt,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventgetstring">external documentation</a>.
+getString(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_GetString,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_IsChecked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventisselection">external documentation</a>.
+isSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:call(?wxCommandEvent_IsSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCommandEvent(), I::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventsetint">external documentation</a>.
+setInt(#wx_ref{type=ThisT,ref=ThisRef},I)
+ when is_integer(I) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ wxe_util:cast(?wxCommandEvent_SetInt,
+ <<ThisRef:32/?UI,I:32/?UI>>).
+
+%% @spec (This::wxCommandEvent(), S::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html#wxcommandeventsetstring">external documentation</a>.
+setString(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_list(S) ->
+ ?CLASS(ThisT,wxCommandEvent),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxCommandEvent_SetString,
+ <<ThisRef:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxContextMenuEvent.erl b/lib/wx/src/gen/wxContextMenuEvent.erl
new file mode 100644
index 0000000000..15167b0996
--- /dev/null
+++ b/lib/wx/src/gen/wxContextMenuEvent.erl
@@ -0,0 +1,100 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontextmenuevent.html">wxContextMenuEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>context_menu</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxContextMenu(). #wxContextMenu{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxContextMenuEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxContextMenuEvent).
+-include("wxe.hrl").
+-export([getPosition/1,setPosition/2]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxContextMenuEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontextmenuevent.html#wxcontextmenueventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxContextMenuEvent),
+ wxe_util:call(?wxContextMenuEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxContextMenuEvent(), Pos::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontextmenuevent.html#wxcontextmenueventsetposition">external documentation</a>.
+setPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxContextMenuEvent),
+ wxe_util:cast(?wxContextMenuEvent_SetPosition,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxControl.erl b/lib/wx/src/gen/wxControl.erl
new file mode 100644
index 0000000000..1088afcc43
--- /dev/null
+++ b/lib/wx/src/gen/wxControl.erl
@@ -0,0 +1,449 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrol.html">wxControl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxControl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxControl).
+-include("wxe.hrl").
+-export([getLabel/1,setLabel/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,getPosition/1,
+ getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setMaxSize/2,setMinSize/2,
+ setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxControl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrol.html#wxcontrolgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControl),
+ wxe_util:call(?wxControl_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControl(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrol.html#wxcontrolsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label)
+ when is_list(Label) ->
+ ?CLASS(ThisT,wxControl),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxControl_SetLabel,
+ <<ThisRef:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxControlWithItems.erl b/lib/wx/src/gen/wxControlWithItems.erl
new file mode 100644
index 0000000000..ff5e3aaedf
--- /dev/null
+++ b/lib/wx/src/gen/wxControlWithItems.erl
@@ -0,0 +1,612 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html">wxControlWithItems</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxControlWithItems(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxControlWithItems).
+-include("wxe.hrl").
+-export([append/2,append/3,appendStrings/2,clear/1,delete/2,findString/2,findString/3,
+ getClientData/2,getCount/1,getSelection/1,getString/2,getStringSelection/1,
+ insert/3,insert/4,isEmpty/1,select/2,setClientData/3,setSelection/2,
+ setString/3,setStringSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxControlWithItems(), Item::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsappend">external documentation</a>.
+append(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_list(Item) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ Item_UC = unicode:characters_to_binary([Item,0]),
+ wxe_util:call(?wxControlWithItems_Append_1,
+ <<ThisRef:32/?UI,(byte_size(Item_UC)):32/?UI,(Item_UC)/binary, 0:(((8- ((0+byte_size(Item_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxControlWithItems(), Item::string(), ClientData::term()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsappend">external documentation</a>.
+append(#wx_ref{type=ThisT,ref=ThisRef},Item,ClientData)
+ when is_list(Item) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ Item_UC = unicode:characters_to_binary([Item,0]),
+ wxe_util:send_bin(term_to_binary(ClientData)),
+ wxe_util:call(?wxControlWithItems_Append_2,
+ <<ThisRef:32/?UI,(byte_size(Item_UC)):32/?UI,(Item_UC)/binary, 0:(((8- ((0+byte_size(Item_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxControlWithItems(), Strings::[[string()]]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsappend">external documentation</a>.
+appendStrings(#wx_ref{type=ThisT,ref=ThisRef},Strings)
+ when is_list(Strings) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ Strings_UCA = [unicode:characters_to_binary([StringsTemp,0]) ||
+ StringsTemp <- Strings],
+ wxe_util:cast(?wxControlWithItems_appendStrings_1,
+ <<ThisRef:32/?UI,(length(Strings_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Strings_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Strings_UCA])) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxControlWithItems()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:cast(?wxControlWithItems_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsdelete">external documentation</a>.
+delete(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:cast(?wxControlWithItems_Delete,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), S::string()) -> integer()
+%% @equiv findString(This,S, [])
+findString(This,S)
+ when is_record(This, wx_ref),is_list(S) ->
+ findString(This,S, []).
+
+%% @spec (This::wxControlWithItems(), S::string(), [Option]) -> integer()
+%% Option = {bCase, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsfindstring">external documentation</a>.
+findString(#wx_ref{type=ThisT,ref=ThisRef},S, Options)
+ when is_list(S),is_list(Options) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ S_UC = unicode:characters_to_binary([S,0]),
+ MOpts = fun({bCase, BCase}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BCase)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxControlWithItems_FindString,
+ <<ThisRef:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxControlWithItems(), N::integer()) -> term()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsgetclientobject">external documentation</a>.
+getClientData(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_getClientData,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer(), ClientData::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemssetclientobject">external documentation</a>.
+setClientData(#wx_ref{type=ThisT,ref=ThisRef},N,ClientData)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:send_bin(term_to_binary(ClientData)),
+ wxe_util:cast(?wxControlWithItems_setClientData,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsgetcount">external documentation</a>.
+getCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_GetCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControlWithItems()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsgetstring">external documentation</a>.
+getString(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_GetString,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsgetstringselection">external documentation</a>.
+getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_GetStringSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), Item::string(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsinsert">external documentation</a>.
+insert(#wx_ref{type=ThisT,ref=ThisRef},Item,Pos)
+ when is_list(Item),is_integer(Pos) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ Item_UC = unicode:characters_to_binary([Item,0]),
+ wxe_util:call(?wxControlWithItems_Insert_2,
+ <<ThisRef:32/?UI,(byte_size(Item_UC)):32/?UI,(Item_UC)/binary, 0:(((8- ((0+byte_size(Item_UC)) band 16#7)) band 16#7))/unit:8,Pos:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), Item::string(), Pos::integer(), ClientData::term()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsinsert">external documentation</a>.
+insert(#wx_ref{type=ThisT,ref=ThisRef},Item,Pos,ClientData)
+ when is_list(Item),is_integer(Pos) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ Item_UC = unicode:characters_to_binary([Item,0]),
+ wxe_util:send_bin(term_to_binary(ClientData)),
+ wxe_util:call(?wxControlWithItems_Insert_3,
+ <<ThisRef:32/?UI,(byte_size(Item_UC)):32/?UI,(Item_UC)/binary, 0:(((8- ((0+byte_size(Item_UC)) band 16#7)) band 16#7))/unit:8,Pos:32/?UI>>).
+
+%% @spec (This::wxControlWithItems()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsisempty">external documentation</a>.
+isEmpty(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:call(?wxControlWithItems_IsEmpty,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemsselect">external documentation</a>.
+select(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:cast(?wxControlWithItems_Select,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemssetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ wxe_util:cast(?wxControlWithItems_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxControlWithItems(), N::integer(), S::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemssetstring">external documentation</a>.
+setString(#wx_ref{type=ThisT,ref=ThisRef},N,S)
+ when is_integer(N),is_list(S) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxControlWithItems_SetString,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((4+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxControlWithItems(), S::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcontrolwithitems.html#wxcontrolwithitemssetstringselection">external documentation</a>.
+setStringSelection(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_list(S) ->
+ ?CLASS(ThisT,wxControlWithItems),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:call(?wxControlWithItems_SetStringSelection,
+ <<ThisRef:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxCursor.erl b/lib/wx/src/gen/wxCursor.erl
new file mode 100644
index 0000000000..4c2a46cc84
--- /dev/null
+++ b/lib/wx/src/gen/wxCursor.erl
@@ -0,0 +1,131 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcursor.html">wxCursor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxBitmap}
+%% </p>
+%% @type wxCursor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxCursor).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1,new/3,new/4,ok/1]).
+
+%% inherited exports
+-export([convertToImage/1,copyFromIcon/2,getDepth/1,getHeight/1,getMask/1,getPalette/1,
+ getSubBitmap/2,getWidth/1,loadFile/2,loadFile/3,parent_class/1,saveFile/3,
+ saveFile/4,setDepth/2,setHeight/2,setMask/2,setPalette/2,setWidth/2]).
+
+%% @hidden
+parent_class(wxBitmap) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxCursor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcursor.html#wxcursorwxcursor">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxCursor_new_0,
+ <<>>).
+
+%% @spec (X::integer()|term()) -> wxCursor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcursor.html#wxcursorwxcursor">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(CursorId::integer()) -> wxCursor() </c>
+%% </p>
+%% <p><c>
+%% new(Image::wxImage:wxImage()) -> wxCursor() </c>
+%% </p>
+new(CursorId)
+ when is_integer(CursorId) ->
+ wxe_util:construct(?wxCursor_new_1_0,
+ <<CursorId:32/?UI>>);
+new(#wx_ref{type=ImageT,ref=ImageRef}) ->
+ ?CLASS(ImageT,wxImage),
+ wxe_util:construct(?wxCursor_new_1_1,
+ <<ImageRef:32/?UI>>).
+
+%% @spec (Bits::binary(), Width::integer(), Height::integer()) -> wxCursor()
+%% @equiv new(Bits,Width,Height, [])
+new(Bits,Width,Height)
+ when is_binary(Bits),is_integer(Width),is_integer(Height) ->
+ new(Bits,Width,Height, []).
+
+%% @spec (Bits::binary(), Width::integer(), Height::integer(), [Option]) -> wxCursor()
+%% Option = {hotSpotX, integer()} | {hotSpotY, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcursor.html#wxcursorwxcursor">external documentation</a>.
+new(Bits,Width,Height, Options)
+ when is_binary(Bits),is_integer(Width),is_integer(Height),is_list(Options) ->
+ wxe_util:send_bin(Bits),
+ MOpts = fun({hotSpotX, HotSpotX}, Acc) -> [<<1:32/?UI,HotSpotX:32/?UI>>|Acc];
+ ({hotSpotY, HotSpotY}, Acc) -> [<<2:32/?UI,HotSpotY:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxCursor_new_4,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxCursor()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcursor.html#wxcursorok">external documentation</a>.
+ok(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxCursor),
+ wxe_util:call(?wxCursor_Ok,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxCursor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxCursor),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxBitmap
+%% @hidden
+setWidth(This,Width) -> wxBitmap:setWidth(This,Width).
+%% @hidden
+setPalette(This,Palette) -> wxBitmap:setPalette(This,Palette).
+%% @hidden
+setMask(This,Mask) -> wxBitmap:setMask(This,Mask).
+%% @hidden
+setHeight(This,Height) -> wxBitmap:setHeight(This,Height).
+%% @hidden
+setDepth(This,Depth) -> wxBitmap:setDepth(This,Depth).
+%% @hidden
+saveFile(This,Name,Type, Options) -> wxBitmap:saveFile(This,Name,Type, Options).
+%% @hidden
+saveFile(This,Name,Type) -> wxBitmap:saveFile(This,Name,Type).
+%% @hidden
+loadFile(This,Name, Options) -> wxBitmap:loadFile(This,Name, Options).
+%% @hidden
+loadFile(This,Name) -> wxBitmap:loadFile(This,Name).
+%% @hidden
+getSubBitmap(This,Rect) -> wxBitmap:getSubBitmap(This,Rect).
+%% @hidden
+getWidth(This) -> wxBitmap:getWidth(This).
+%% @hidden
+getMask(This) -> wxBitmap:getMask(This).
+%% @hidden
+getPalette(This) -> wxBitmap:getPalette(This).
+%% @hidden
+getHeight(This) -> wxBitmap:getHeight(This).
+%% @hidden
+getDepth(This) -> wxBitmap:getDepth(This).
+%% @hidden
+copyFromIcon(This,Icon) -> wxBitmap:copyFromIcon(This,Icon).
+%% @hidden
+convertToImage(This) -> wxBitmap:convertToImage(This).
diff --git a/lib/wx/src/gen/wxDC.erl b/lib/wx/src/gen/wxDC.erl
new file mode 100644
index 0000000000..17bf77c331
--- /dev/null
+++ b/lib/wx/src/gen/wxDC.erl
@@ -0,0 +1,831 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html">wxDC</a>.
+%% @type wxDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDC).
+-include("wxe.hrl").
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxDC(), DestPt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Source::wxDC(), SrcPt::{X::integer(),Y::integer()}) -> bool()
+%% @equiv blit(This,DestPt,Sz,Source,SrcPt, [])
+blit(This,DestPt={DestPtX,DestPtY},Sz={SzW,SzH},Source,SrcPt={SrcPtX,SrcPtY})
+ when is_record(This, wx_ref),is_integer(DestPtX),is_integer(DestPtY),is_integer(SzW),is_integer(SzH),is_record(Source, wx_ref),is_integer(SrcPtX),is_integer(SrcPtY) ->
+ blit(This,DestPt,Sz,Source,SrcPt, []).
+
+%% @spec (This::wxDC(), DestPt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Source::wxDC(), SrcPt::{X::integer(),Y::integer()}, [Option]) -> bool()
+%% Option = {rop, integer()} | {useMask, bool()} | {srcPtMask, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcblit">external documentation</a>.
+blit(#wx_ref{type=ThisT,ref=ThisRef},{DestPtX,DestPtY},{SzW,SzH},#wx_ref{type=SourceT,ref=SourceRef},{SrcPtX,SrcPtY}, Options)
+ when is_integer(DestPtX),is_integer(DestPtY),is_integer(SzW),is_integer(SzH),is_integer(SrcPtX),is_integer(SrcPtY),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(SourceT,wxDC),
+ MOpts = fun({rop, Rop}, Acc) -> [<<1:32/?UI,Rop:32/?UI>>|Acc];
+ ({useMask, UseMask}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(UseMask)):32/?UI>>|Acc];
+ ({srcPtMask, {SrcPtMaskX,SrcPtMaskY}}, Acc) -> [<<3:32/?UI,SrcPtMaskX:32/?UI,SrcPtMaskY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDC_Blit,
+ <<ThisRef:32/?UI,DestPtX:32/?UI,DestPtY:32/?UI,SzW:32/?UI,SzH:32/?UI,SourceRef:32/?UI,SrcPtX:32/?UI,SrcPtY:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdccalcboundingbox">external documentation</a>.
+calcBoundingBox(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_CalcBoundingBox,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdccomputescaleandorigin">external documentation</a>.
+computeScaleAndOrigin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_ComputeScaleAndOrigin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdccrosshair">external documentation</a>.
+crossHair(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_CrossHair,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdestroyclippingregion">external documentation</a>.
+destroyClippingRegion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DestroyClippingRegion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), X::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdevicetologicalx">external documentation</a>.
+deviceToLogicalX(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_DeviceToLogicalX,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxDC(), X::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdevicetologicalxrel">external documentation</a>.
+deviceToLogicalXRel(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_DeviceToLogicalXRel,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxDC(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdevicetologicaly">external documentation</a>.
+deviceToLogicalY(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_DeviceToLogicalY,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdevicetologicalyrel">external documentation</a>.
+deviceToLogicalYRel(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_DeviceToLogicalYRel,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt1::{X::integer(),Y::integer()}, Pt2::{X::integer(),Y::integer()}, Centre::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawarc">external documentation</a>.
+drawArc(#wx_ref{type=ThisT,ref=ThisRef},{Pt1X,Pt1Y},{Pt2X,Pt2Y},{CentreX,CentreY})
+ when is_integer(Pt1X),is_integer(Pt1Y),is_integer(Pt2X),is_integer(Pt2Y),is_integer(CentreX),is_integer(CentreY) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawArc,
+ <<ThisRef:32/?UI,Pt1X:32/?UI,Pt1Y:32/?UI,Pt2X:32/?UI,Pt2Y:32/?UI,CentreX:32/?UI,CentreY:32/?UI>>).
+
+%% @spec (This::wxDC(), Bmp::wxBitmap:wxBitmap(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @equiv drawBitmap(This,Bmp,Pt, [])
+drawBitmap(This,Bmp,Pt={PtX,PtY})
+ when is_record(This, wx_ref),is_record(Bmp, wx_ref),is_integer(PtX),is_integer(PtY) ->
+ drawBitmap(This,Bmp,Pt, []).
+
+%% @spec (This::wxDC(), Bmp::wxBitmap:wxBitmap(), Pt::{X::integer(),Y::integer()}, [Option]) -> ok
+%% Option = {useMask, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawbitmap">external documentation</a>.
+drawBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef},{PtX,PtY}, Options)
+ when is_integer(PtX),is_integer(PtY),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(BmpT,wxBitmap),
+ MOpts = fun({useMask, UseMask}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(UseMask)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxDC_DrawBitmap,
+ <<ThisRef:32/?UI,BmpRef:32/?UI,PtX:32/?UI,PtY:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawcheckmark">external documentation</a>.
+drawCheckMark(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawCheckMark,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Radius::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawcircle">external documentation</a>.
+drawCircle(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},Radius)
+ when is_integer(PtX),is_integer(PtY),is_integer(Radius) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawCircle,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,Radius:32/?UI>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawellipse">external documentation</a>.
+drawEllipse(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawEllipse_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawellipse">external documentation</a>.
+drawEllipse(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH})
+ when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawEllipse_2,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Sa::float(), Ea::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawellipticarc">external documentation</a>.
+drawEllipticArc(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH},Sa,Ea)
+ when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH),is_float(Sa),is_float(Ea) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawEllipticArc,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,SzW:32/?UI,SzH:32/?UI,0:32,Sa:64/?F,Ea:64/?F>>).
+
+%% @spec (This::wxDC(), Icon::wxIcon:wxIcon(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawicon">external documentation</a>.
+drawIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(IconT,wxIcon),
+ wxe_util:cast(?wxDC_DrawIcon,
+ <<ThisRef:32/?UI,IconRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxDC(), Text::string(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @equiv drawLabel(This,Text,Rect, [])
+drawLabel(This,Text,Rect={RectX,RectY,RectW,RectH})
+ when is_record(This, wx_ref),is_list(Text),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ drawLabel(This,Text,Rect, []).
+
+%% @spec (This::wxDC(), Text::string(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> ok
+%% Option = {alignment, integer()} | {indexAccel, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawlabel">external documentation</a>.
+drawLabel(#wx_ref{type=ThisT,ref=ThisRef},Text,{RectX,RectY,RectW,RectH}, Options)
+ when is_list(Text),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({alignment, Alignment}, Acc) -> [<<1:32/?UI,Alignment:32/?UI>>|Acc];
+ ({indexAccel, IndexAccel}, Acc) -> [<<2:32/?UI,IndexAccel:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxDC_DrawLabel,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), Pt1::{X::integer(),Y::integer()}, Pt2::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawline">external documentation</a>.
+drawLine(#wx_ref{type=ThisT,ref=ThisRef},{Pt1X,Pt1Y},{Pt2X,Pt2Y})
+ when is_integer(Pt1X),is_integer(Pt1Y),is_integer(Pt2X),is_integer(Pt2Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawLine,
+ <<ThisRef:32/?UI,Pt1X:32/?UI,Pt1Y:32/?UI,Pt2X:32/?UI,Pt2Y:32/?UI>>).
+
+%% @spec (This::wxDC(), Points::[{X::integer(),Y::integer()}]) -> ok
+%% @equiv drawLines(This,Points, [])
+drawLines(This,Points)
+ when is_record(This, wx_ref),is_list(Points) ->
+ drawLines(This,Points, []).
+
+%% @spec (This::wxDC(), Points::[{X::integer(),Y::integer()}], [Option]) -> ok
+%% Option = {xoffset, integer()} | {yoffset, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawlines">external documentation</a>.
+drawLines(#wx_ref{type=ThisT,ref=ThisRef},Points, Options)
+ when is_list(Points),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ MOpts = fun({xoffset, Xoffset}, Acc) -> [<<1:32/?UI,Xoffset:32/?UI>>|Acc];
+ ({yoffset, Yoffset}, Acc) -> [<<2:32/?UI,Yoffset:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxDC_DrawLines,
+ <<ThisRef:32/?UI,(length(Points)):32/?UI,
+ (<< <<X:32/?I,Y:32/?I>> || {X,Y} <- Points>>)/binary, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), Points::[{X::integer(),Y::integer()}]) -> ok
+%% @equiv drawPolygon(This,Points, [])
+drawPolygon(This,Points)
+ when is_record(This, wx_ref),is_list(Points) ->
+ drawPolygon(This,Points, []).
+
+%% @spec (This::wxDC(), Points::[{X::integer(),Y::integer()}], [Option]) -> ok
+%% Option = {xoffset, integer()} | {yoffset, integer()} | {fillStyle, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawpolygon">external documentation</a>.
+drawPolygon(#wx_ref{type=ThisT,ref=ThisRef},Points, Options)
+ when is_list(Points),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ MOpts = fun({xoffset, Xoffset}, Acc) -> [<<1:32/?UI,Xoffset:32/?UI>>|Acc];
+ ({yoffset, Yoffset}, Acc) -> [<<2:32/?UI,Yoffset:32/?UI>>|Acc];
+ ({fillStyle, FillStyle}, Acc) -> [<<3:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxDC_DrawPolygon,
+ <<ThisRef:32/?UI,(length(Points)):32/?UI,
+ (<< <<X:32/?I,Y:32/?I>> || {X,Y} <- Points>>)/binary, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawpoint">external documentation</a>.
+drawPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawPoint,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawrectangle">external documentation</a>.
+drawRectangle(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawRectangle_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawrectangle">external documentation</a>.
+drawRectangle(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH})
+ when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawRectangle_2,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxDC(), Text::string(), Pt::{X::integer(),Y::integer()}, Angle::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawrotatedtext">external documentation</a>.
+drawRotatedText(#wx_ref{type=ThisT,ref=ThisRef},Text,{PtX,PtY},Angle)
+ when is_list(Text),is_integer(PtX),is_integer(PtY),is_float(Angle) ->
+ ?CLASS(ThisT,wxDC),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxDC_DrawRotatedText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,PtX:32/?UI,PtY:32/?UI,Angle:64/?F>>).
+
+%% @spec (This::wxDC(), R::{X::integer(),Y::integer(),W::integer(),H::integer()}, Radius::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawroundedrectangle">external documentation</a>.
+drawRoundedRectangle(#wx_ref{type=ThisT,ref=ThisRef},{RX,RY,RW,RH},Radius)
+ when is_integer(RX),is_integer(RY),is_integer(RW),is_integer(RH),is_float(Radius) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawRoundedRectangle_2,
+ <<ThisRef:32/?UI,RX:32/?UI,RY:32/?UI,RW:32/?UI,RH:32/?UI,0:32,Radius:64/?F>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Radius::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawroundedrectangle">external documentation</a>.
+drawRoundedRectangle(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH},Radius)
+ when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH),is_float(Radius) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_DrawRoundedRectangle_3,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,SzW:32/?UI,SzH:32/?UI,0:32,Radius:64/?F>>).
+
+%% @spec (This::wxDC(), Text::string(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcdrawtext">external documentation</a>.
+drawText(#wx_ref{type=ThisT,ref=ThisRef},Text,{PtX,PtY})
+ when is_list(Text),is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxDC),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxDC_DrawText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcenddoc">external documentation</a>.
+endDoc(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_EndDoc,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcendpage">external documentation</a>.
+endPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_EndPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Col::wx:colour()) -> bool()
+%% @equiv floodFill(This,Pt,Col, [])
+floodFill(This,Pt={PtX,PtY},Col)
+ when is_record(This, wx_ref),is_integer(PtX),is_integer(PtY),tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ floodFill(This,Pt,Col, []).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Col::wx:colour(), [Option]) -> bool()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcfloodfill">external documentation</a>.
+floodFill(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},Col, Options)
+ when is_integer(PtX),is_integer(PtY),tuple_size(Col) =:= 3; tuple_size(Col) =:= 4,is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDC_FloodFill,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,(wxe_util:colour_bin(Col)):16/binary, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxDC()) -> wxBrush:wxBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetbackground">external documentation</a>.
+getBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetbackgroundmode">external documentation</a>.
+getBackgroundMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetBackgroundMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> wxBrush:wxBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetbrush">external documentation</a>.
+getBrush(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetBrush,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetcharheight">external documentation</a>.
+getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetCharHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetcharwidth">external documentation</a>.
+getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetCharWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetclippingbox">external documentation</a>.
+getClippingBox(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_GetClippingBox,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxDC()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> WxLayoutDirection
+%% WxLayoutDirection = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetlayoutdirection">external documentation</a>.
+%%<br /> WxLayoutDirection is one of ?wxLayout_Default | ?wxLayout_LeftToRight | ?wxLayout_RightToLeft
+getLayoutDirection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetLayoutDirection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetlogicalfunction">external documentation</a>.
+getLogicalFunction(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetLogicalFunction,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetmapmode">external documentation</a>.
+getMapMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetMapMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), String::string()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetmultilinetextextent">external documentation</a>.
+getMultiLineTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String)
+ when is_list(String) ->
+ ?CLASS(ThisT,wxDC),
+ String_UC = unicode:characters_to_binary([String,0]),
+ wxe_util:call(?wxDC_GetMultiLineTextExtent_1,
+ <<ThisRef:32/?UI,(byte_size(String_UC)):32/?UI,(String_UC)/binary, 0:(((8- ((0+byte_size(String_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDC(), String::string(), [Option]) -> {Width::integer(),Height::integer(),HeightLine::integer()}
+%% Option = {font, wxFont:wxFont()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetmultilinetextextent">external documentation</a>.
+getMultiLineTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String, Options)
+ when is_list(String),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ String_UC = unicode:characters_to_binary([String,0]),
+ MOpts = fun({font, #wx_ref{type=FontT,ref=FontRef}}, Acc) -> ?CLASS(FontT,wxFont),[<<1:32/?UI,FontRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDC_GetMultiLineTextExtent_4,
+ <<ThisRef:32/?UI,(byte_size(String_UC)):32/?UI,(String_UC)/binary, 0:(((8- ((0+byte_size(String_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxDC(), Text::string(), Widths::[integer()]) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetpartialtextextents">external documentation</a>.
+getPartialTextExtents(#wx_ref{type=ThisT,ref=ThisRef},Text,Widths)
+ when is_list(Text),is_list(Widths) ->
+ ?CLASS(ThisT,wxDC),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxDC_GetPartialTextExtents,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,(length(Widths)):32/?UI,
+ (<< <<C:32/?I>> || C <- Widths>>)/binary, 0:(((1+length(Widths)) rem 2)*32)>>).
+
+%% @spec (This::wxDC()) -> wxPen:wxPen()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetpen">external documentation</a>.
+getPen(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetPen,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Col::wx:colour()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetpixel">external documentation</a>.
+getPixel(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},Col)
+ when is_integer(PtX),is_integer(PtY),tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetPixel,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxDC()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetppi">external documentation</a>.
+getPPI(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetPPI,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetsizemm">external documentation</a>.
+getSizeMM(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetSizeMM,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgettextbackground">external documentation</a>.
+getTextBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetTextBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), String::string()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgettextextent">external documentation</a>.
+getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String)
+ when is_list(String) ->
+ ?CLASS(ThisT,wxDC),
+ String_UC = unicode:characters_to_binary([String,0]),
+ wxe_util:call(?wxDC_GetTextExtent_1,
+ <<ThisRef:32/?UI,(byte_size(String_UC)):32/?UI,(String_UC)/binary, 0:(((8- ((0+byte_size(String_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDC(), String::string(), [Option]) -> {X::integer(),Y::integer(),Descent::integer(),ExternalLeading::integer()}
+%% Option = {theFont, wxFont:wxFont()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgettextextent">external documentation</a>.
+getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String, Options)
+ when is_list(String),is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ String_UC = unicode:characters_to_binary([String,0]),
+ MOpts = fun({theFont, #wx_ref{type=TheFontT,ref=TheFontRef}}, Acc) -> ?CLASS(TheFontT,wxFont),[<<1:32/?UI,TheFontRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDC_GetTextExtent_4,
+ <<ThisRef:32/?UI,(byte_size(String_UC)):32/?UI,(String_UC)/binary, 0:(((8- ((0+byte_size(String_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxDC()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgettextforeground">external documentation</a>.
+getTextForeground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetTextForeground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> {X::float(),Y::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgetuserscale">external documentation</a>.
+getUserScale(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_GetUserScale,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, InitialColour::wx:colour(), DestColour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgradientfillconcentric">external documentation</a>.
+gradientFillConcentric(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH},InitialColour,DestColour)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),tuple_size(InitialColour) =:= 3; tuple_size(InitialColour) =:= 4,tuple_size(DestColour) =:= 3; tuple_size(DestColour) =:= 4 ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_GradientFillConcentric_3,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,(wxe_util:colour_bin(InitialColour)):16/binary,(wxe_util:colour_bin(DestColour)):16/binary>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, InitialColour::wx:colour(), DestColour::wx:colour(), CircleCenter::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgradientfillconcentric">external documentation</a>.
+gradientFillConcentric(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH},InitialColour,DestColour,{CircleCenterX,CircleCenterY})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),tuple_size(InitialColour) =:= 3; tuple_size(InitialColour) =:= 4,tuple_size(DestColour) =:= 3; tuple_size(DestColour) =:= 4,is_integer(CircleCenterX),is_integer(CircleCenterY) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_GradientFillConcentric_4,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,(wxe_util:colour_bin(InitialColour)):16/binary,(wxe_util:colour_bin(DestColour)):16/binary,CircleCenterX:32/?UI,CircleCenterY:32/?UI>>).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, InitialColour::wx:colour(), DestColour::wx:colour()) -> ok
+%% @equiv gradientFillLinear(This,Rect,InitialColour,DestColour, [])
+gradientFillLinear(This,Rect={RectX,RectY,RectW,RectH},InitialColour,DestColour)
+ when is_record(This, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),tuple_size(InitialColour) =:= 3; tuple_size(InitialColour) =:= 4,tuple_size(DestColour) =:= 3; tuple_size(DestColour) =:= 4 ->
+ gradientFillLinear(This,Rect,InitialColour,DestColour, []).
+
+%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, InitialColour::wx:colour(), DestColour::wx:colour(), [Option]) -> ok
+%% Option = {nDirection, WxDirection}
+%% WxDirection = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcgradientfilllinear">external documentation</a>.
+%%<br /> WxDirection is one of ?wxLEFT | ?wxRIGHT | ?wxUP | ?wxDOWN | ?wxTOP | ?wxBOTTOM | ?wxNORTH | ?wxSOUTH | ?wxWEST | ?wxEAST | ?wxALL
+gradientFillLinear(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH},InitialColour,DestColour, Options)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),tuple_size(InitialColour) =:= 3; tuple_size(InitialColour) =:= 4,tuple_size(DestColour) =:= 3; tuple_size(DestColour) =:= 4,is_list(Options) ->
+ ?CLASS(ThisT,wxDC),
+ MOpts = fun({nDirection, NDirection}, Acc) -> [<<1:32/?UI,NDirection:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxDC_GradientFillLinear,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,(wxe_util:colour_bin(InitialColour)):16/binary,(wxe_util:colour_bin(DestColour)):16/binary, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxDC(), X::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdclogicaltodevicex">external documentation</a>.
+logicalToDeviceX(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_LogicalToDeviceX,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxDC(), X::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdclogicaltodevicexrel">external documentation</a>.
+logicalToDeviceXRel(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_LogicalToDeviceXRel,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxDC(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdclogicaltodevicey">external documentation</a>.
+logicalToDeviceY(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_LogicalToDeviceY,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdclogicaltodeviceyrel">external documentation</a>.
+logicalToDeviceYRel(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_LogicalToDeviceYRel,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcmaxx">external documentation</a>.
+maxX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_MaxX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcmaxy">external documentation</a>.
+maxY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_MaxY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcminx">external documentation</a>.
+minX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_MinX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcminy">external documentation</a>.
+minY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_MinY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:call(?wxDC_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcresetboundingbox">external documentation</a>.
+resetBoundingBox(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_ResetBoundingBox,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDC(), XLeftRight::bool(), YBottomUp::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetaxisorientation">external documentation</a>.
+setAxisOrientation(#wx_ref{type=ThisT,ref=ThisRef},XLeftRight,YBottomUp)
+ when is_boolean(XLeftRight),is_boolean(YBottomUp) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetAxisOrientation,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(XLeftRight)):32/?UI,(wxe_util:from_bool(YBottomUp)):32/?UI>>).
+
+%% @spec (This::wxDC(), Brush::wxBrush:wxBrush()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetbackground">external documentation</a>.
+setBackground(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(BrushT,wxBrush),
+ wxe_util:cast(?wxDC_SetBackground,
+ <<ThisRef:32/?UI,BrushRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetbackgroundmode">external documentation</a>.
+setBackgroundMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetBackgroundMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxDC(), Brush::wxBrush:wxBrush()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetbrush">external documentation</a>.
+setBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(BrushT,wxBrush),
+ wxe_util:cast(?wxDC_SetBrush,
+ <<ThisRef:32/?UI,BrushRef:32/?UI>>).
+
+%% @spec (This::wxDC(),X::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetclippingregion">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setClippingRegion(This::wxDC(), Region::wxRegion:wxRegion()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setClippingRegion(This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok </c>
+%% </p>
+setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:cast(?wxDC_SetClippingRegion_1_0,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>);
+setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetClippingRegion_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetclippingregion">external documentation</a>.
+setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH})
+ when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetClippingRegion_2,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxDC(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetdeviceorigin">external documentation</a>.
+setDeviceOrigin(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetDeviceOrigin,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxDC(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxDC_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Dir::WxLayoutDirection) -> ok
+%% WxLayoutDirection = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetlayoutdirection">external documentation</a>.
+%%<br /> WxLayoutDirection is one of ?wxLayout_Default | ?wxLayout_LeftToRight | ?wxLayout_RightToLeft
+setLayoutDirection(#wx_ref{type=ThisT,ref=ThisRef},Dir)
+ when is_integer(Dir) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetLayoutDirection,
+ <<ThisRef:32/?UI,Dir:32/?UI>>).
+
+%% @spec (This::wxDC(), Function::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetlogicalfunction">external documentation</a>.
+setLogicalFunction(#wx_ref{type=ThisT,ref=ThisRef},Function)
+ when is_integer(Function) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetLogicalFunction,
+ <<ThisRef:32/?UI,Function:32/?UI>>).
+
+%% @spec (This::wxDC(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetmapmode">external documentation</a>.
+setMapMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetMapMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxDC(), Palette::wxPalette:wxPalette()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetpalette">external documentation</a>.
+setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(PaletteT,wxPalette),
+ wxe_util:cast(?wxDC_SetPalette,
+ <<ThisRef:32/?UI,PaletteRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Pen::wxPen:wxPen()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetpen">external documentation</a>.
+setPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) ->
+ ?CLASS(ThisT,wxDC),
+ ?CLASS(PenT,wxPen),
+ wxe_util:cast(?wxDC_SetPen,
+ <<ThisRef:32/?UI,PenRef:32/?UI>>).
+
+%% @spec (This::wxDC(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsettextbackground">external documentation</a>.
+setTextBackground(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetTextBackground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxDC(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsettextforeground">external documentation</a>.
+setTextForeground(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetTextForeground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxDC(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcsetuserscale">external documentation</a>.
+setUserScale(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_SetUserScale,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxDC(), Message::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcstartdoc">external documentation</a>.
+startDoc(#wx_ref{type=ThisT,ref=ThisRef},Message)
+ when is_list(Message) ->
+ ?CLASS(ThisT,wxDC),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ wxe_util:call(?wxDC_StartDoc,
+ <<ThisRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcstartpage">external documentation</a>.
+startPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDC),
+ wxe_util:cast(?wxDC_StartPage,
+ <<ThisRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxDataObject.erl b/lib/wx/src/gen/wxDataObject.erl
new file mode 100644
index 0000000000..801bd3dfba
--- /dev/null
+++ b/lib/wx/src/gen/wxDataObject.erl
@@ -0,0 +1,34 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdataobject.html">wxDataObject</a>.
+%% @type wxDataObject(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDataObject).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
diff --git a/lib/wx/src/gen/wxDateEvent.erl b/lib/wx/src/gen/wxDateEvent.erl
new file mode 100644
index 0000000000..9885d6729a
--- /dev/null
+++ b/lib/wx/src/gen/wxDateEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdateevent.html">wxDateEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>date_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxDate(). #wxDate{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxDateEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDateEvent).
+-include("wxe.hrl").
+-export([getDate/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxDateEvent()) -> wx:datetime()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdateevent.html#wxdateeventgetdate">external documentation</a>.
+getDate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDateEvent),
+ wxe_util:call(?wxDateEvent_GetDate,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxDatePickerCtrl.erl b/lib/wx/src/gen/wxDatePickerCtrl.erl
new file mode 100644
index 0000000000..b9ac9cdbad
--- /dev/null
+++ b/lib/wx/src/gen/wxDatePickerCtrl.erl
@@ -0,0 +1,540 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html">wxDatePickerCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPickerBase}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxDatePickerCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDatePickerCtrl).
+-include("wxe.hrl").
+-export([destroy/1,getRange/3,getValue/1,new/0,new/2,new/3,setRange/3,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getInternalMargin/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPickerCtrlProportion/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextCtrl/1,getTextCtrlProportion/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTextCtrl/1,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isPickerCtrlGrowable/1,isRetained/1,
+ isShown/1,isTextCtrlGrowable/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setInternalMargin/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,
+ setPickerCtrlProportion/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,
+ setScrollbar/6,setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,
+ setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,
+ setSizerAndFit/3,setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPickerBase) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxDatePickerCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlwxdatepickerctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxDatePickerCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxDatePickerCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxDatePickerCtrl()
+%% Option = {date, wx:datetime()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlwxdatepickerctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({date, Date}, Acc) -> [<<1:32/?UI,(wxe_util:datetime_bin(Date)):24/binary,0:32>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxDatePickerCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxDatePickerCtrl(), Dt1::wx:datetime(), Dt2::wx:datetime()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlgetrange">external documentation</a>.
+getRange(#wx_ref{type=ThisT,ref=ThisRef},Dt1,Dt2)
+ when tuple_size(Dt1) =:= 2,tuple_size(Dt2) =:= 2 ->
+ ?CLASS(ThisT,wxDatePickerCtrl),
+ wxe_util:call(?wxDatePickerCtrl_GetRange,
+ <<ThisRef:32/?UI,(wxe_util:datetime_bin(Dt1)):24/binary,(wxe_util:datetime_bin(Dt2)):24/binary>>).
+
+%% @spec (This::wxDatePickerCtrl()) -> wx:datetime()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDatePickerCtrl),
+ wxe_util:call(?wxDatePickerCtrl_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDatePickerCtrl(), Dt1::wx:datetime(), Dt2::wx:datetime()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlsetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},Dt1,Dt2)
+ when tuple_size(Dt1) =:= 2,tuple_size(Dt2) =:= 2 ->
+ ?CLASS(ThisT,wxDatePickerCtrl),
+ wxe_util:cast(?wxDatePickerCtrl_SetRange,
+ <<ThisRef:32/?UI,(wxe_util:datetime_bin(Dt1)):24/binary,(wxe_util:datetime_bin(Dt2)):24/binary>>).
+
+%% @spec (This::wxDatePickerCtrl(), Date::wx:datetime()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdatepickerctrl.html#wxdatepickerctrlsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Date)
+ when tuple_size(Date) =:= 2 ->
+ ?CLASS(ThisT,wxDatePickerCtrl),
+ wxe_util:cast(?wxDatePickerCtrl_SetValue,
+ <<ThisRef:32/?UI,(wxe_util:datetime_bin(Date)):24/binary>>).
+
+%% @spec (This::wxDatePickerCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxDatePickerCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPickerBase
+%% @hidden
+isPickerCtrlGrowable(This) -> wxPickerBase:isPickerCtrlGrowable(This).
+%% @hidden
+setTextCtrlGrowable(This, Options) -> wxPickerBase:setTextCtrlGrowable(This, Options).
+%% @hidden
+setTextCtrlGrowable(This) -> wxPickerBase:setTextCtrlGrowable(This).
+%% @hidden
+setPickerCtrlGrowable(This, Options) -> wxPickerBase:setPickerCtrlGrowable(This, Options).
+%% @hidden
+setPickerCtrlGrowable(This) -> wxPickerBase:setPickerCtrlGrowable(This).
+%% @hidden
+isTextCtrlGrowable(This) -> wxPickerBase:isTextCtrlGrowable(This).
+%% @hidden
+getTextCtrl(This) -> wxPickerBase:getTextCtrl(This).
+%% @hidden
+hasTextCtrl(This) -> wxPickerBase:hasTextCtrl(This).
+%% @hidden
+getPickerCtrlProportion(This) -> wxPickerBase:getPickerCtrlProportion(This).
+%% @hidden
+getTextCtrlProportion(This) -> wxPickerBase:getTextCtrlProportion(This).
+%% @hidden
+setPickerCtrlProportion(This,Prop) -> wxPickerBase:setPickerCtrlProportion(This,Prop).
+%% @hidden
+setTextCtrlProportion(This,Prop) -> wxPickerBase:setTextCtrlProportion(This,Prop).
+%% @hidden
+getInternalMargin(This) -> wxPickerBase:getInternalMargin(This).
+%% @hidden
+setInternalMargin(This,Newmargin) -> wxPickerBase:setInternalMargin(This,Newmargin).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxDialog.erl b/lib/wx/src/gen/wxDialog.erl
new file mode 100644
index 0000000000..75b8064bf7
--- /dev/null
+++ b/lib/wx/src/gen/wxDialog.erl
@@ -0,0 +1,630 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html">wxDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDialog).
+-include("wxe.hrl").
+-export([create/4,create/5,createButtonSizer/2,createStdDialogButtonSizer/2,
+ destroy/1,endModal/2,getAffirmativeId/1,getReturnCode/1,isModal/1,
+ new/0,new/3,new/4,setAffirmativeId/2,setReturnCode/2,show/1,show/2,showModal/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,
+ getScrollPos/2,getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,
+ getTextExtent/2,getTextExtent/3,getTitle/1,getToolTip/1,getUpdateRegion/1,
+ getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,
+ hasScrollbar/2,hasTransparentBackground/1,hide/1,iconize/1,iconize/2,
+ inheritAttributes/1,initDialog/1,invalidateBestSize/1,isActive/1,
+ isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,isIconized/1,
+ isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,
+ lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,requestUserAttention/1,
+ requestUserAttention/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,setTitle/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,showFullScreen/2,showFullScreen/3,
+ thaw/1,transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogwxdialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> wxDialog()
+%% @equiv new(Parent,Id,Title, [])
+new(Parent,Id,Title)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ new(Parent,Id,Title, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> wxDialog()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogwxdialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxDialog_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxDialog(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Id,Title, [])
+create(This,Parent,Id,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ create(This,Parent,Id,Title, []).
+
+%% @spec (This::wxDialog(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxDialog),
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDialog_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxDialog(), Flags::integer()) -> wxSizer:wxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogcreatebuttonsizer">external documentation</a>.
+createButtonSizer(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_CreateButtonSizer,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxDialog(), Flags::integer()) -> wxStdDialogButtonSizer:wxStdDialogButtonSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogcreatestddialogbuttonsizer">external documentation</a>.
+createStdDialogButtonSizer(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_CreateStdDialogButtonSizer,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxDialog(), RetCode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogendmodal">external documentation</a>.
+endModal(#wx_ref{type=ThisT,ref=ThisRef},RetCode)
+ when is_integer(RetCode) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:cast(?wxDialog_EndModal,
+ <<ThisRef:32/?UI,RetCode:32/?UI>>).
+
+%% @spec (This::wxDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialoggetaffirmativeid">external documentation</a>.
+getAffirmativeId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_GetAffirmativeId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialoggetreturncode">external documentation</a>.
+getReturnCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_GetReturnCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDialog()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogismodal">external documentation</a>.
+isModal(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_IsModal,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDialog(), AffirmativeId::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogsetaffirmativeid">external documentation</a>.
+setAffirmativeId(#wx_ref{type=ThisT,ref=ThisRef},AffirmativeId)
+ when is_integer(AffirmativeId) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:cast(?wxDialog_SetAffirmativeId,
+ <<ThisRef:32/?UI,AffirmativeId:32/?UI>>).
+
+%% @spec (This::wxDialog(), ReturnCode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogsetreturncode">external documentation</a>.
+setReturnCode(#wx_ref{type=ThisT,ref=ThisRef},ReturnCode)
+ when is_integer(ReturnCode) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:cast(?wxDialog_SetReturnCode,
+ <<ThisRef:32/?UI,ReturnCode:32/?UI>>).
+
+%% @spec (This::wxDialog()) -> bool()
+%% @equiv show(This, [])
+show(This)
+ when is_record(This, wx_ref) ->
+ show(This, []).
+
+%% @spec (This::wxDialog(), [Option]) -> bool()
+%% Option = {show, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxDialog),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDialog_Show,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogshowmodal">external documentation</a>.
+showModal(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDialog),
+ wxe_util:call(?wxDialog_ShowModal,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxDirDialog.erl b/lib/wx/src/gen/wxDirDialog.erl
new file mode 100644
index 0000000000..4329be13bd
--- /dev/null
+++ b/lib/wx/src/gen/wxDirDialog.erl
@@ -0,0 +1,574 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html">wxDirDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxDirDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDirDialog).
+-include("wxe.hrl").
+-export([destroy/1,getMessage/1,getPath/1,new/1,new/2,setMessage/2,setPath/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxDirDialog()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxDirDialog()
+%% Option = {title, string()} | {defaultPath, string()} | {style, integer()} | {pos, {X::integer(),Y::integer()}} | {sz, {W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html#wxdirdialogwxdirdialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({title, Title}, Acc) -> Title_UC = unicode:characters_to_binary([Title,0]),[<<1:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({defaultPath, DefaultPath}, Acc) -> DefaultPath_UC = unicode:characters_to_binary([DefaultPath,0]),[<<2:32/?UI,(byte_size(DefaultPath_UC)):32/?UI,(DefaultPath_UC)/binary, 0:(((8- ((0+byte_size(DefaultPath_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<4:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({sz, {SzW,SzH}}, Acc) -> [<<5:32/?UI,SzW:32/?UI,SzH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxDirDialog_new,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxDirDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html#wxdirdialoggetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDirDialog),
+ wxe_util:call(?wxDirDialog_GetPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDirDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html#wxdirdialoggetmessage">external documentation</a>.
+getMessage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDirDialog),
+ wxe_util:call(?wxDirDialog_GetMessage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDirDialog(), Message::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html#wxdirdialogsetmessage">external documentation</a>.
+setMessage(#wx_ref{type=ThisT,ref=ThisRef},Message)
+ when is_list(Message) ->
+ ?CLASS(ThisT,wxDirDialog),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ wxe_util:cast(?wxDirDialog_SetMessage,
+ <<ThisRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDirDialog(), Path::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirdialog.html#wxdirdialogsetpath">external documentation</a>.
+setPath(#wx_ref{type=ThisT,ref=ThisRef},Path)
+ when is_list(Path) ->
+ ?CLASS(ThisT,wxDirDialog),
+ Path_UC = unicode:characters_to_binary([Path,0]),
+ wxe_util:cast(?wxDirDialog_SetPath,
+ <<ThisRef:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDirDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxDirDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxDirPickerCtrl.erl b/lib/wx/src/gen/wxDirPickerCtrl.erl
new file mode 100644
index 0000000000..787d3606f5
--- /dev/null
+++ b/lib/wx/src/gen/wxDirPickerCtrl.erl
@@ -0,0 +1,550 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html">wxDirPickerCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPickerBase}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxDirPickerCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDirPickerCtrl).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getPath/1,new/0,new/2,new/3,setPath/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getInternalMargin/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPickerCtrlProportion/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextCtrl/1,getTextCtrlProportion/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTextCtrl/1,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isPickerCtrlGrowable/1,isRetained/1,
+ isShown/1,isTextCtrlGrowable/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setInternalMargin/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,
+ setPickerCtrlProportion/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,
+ setScrollbar/6,setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,
+ setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,
+ setSizerAndFit/3,setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPickerBase) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxDirPickerCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html#wxdirpickerctrlwxdirpickerctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxDirPickerCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxDirPickerCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxDirPickerCtrl()
+%% Option = {path, string()} | {message, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html#wxdirpickerctrlwxdirpickerctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({path, Path}, Acc) -> Path_UC = unicode:characters_to_binary([Path,0]),[<<1:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({message, Message}, Acc) -> Message_UC = unicode:characters_to_binary([Message,0]),[<<2:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<6:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxDirPickerCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxDirPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxDirPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {path, string()} | {message, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html#wxdirpickerctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxDirPickerCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({path, Path}, Acc) -> Path_UC = unicode:characters_to_binary([Path,0]),[<<1:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({message, Message}, Acc) -> Message_UC = unicode:characters_to_binary([Message,0]),[<<2:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<6:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxDirPickerCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxDirPickerCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html#wxdirpickerctrlgetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxDirPickerCtrl),
+ wxe_util:call(?wxDirPickerCtrl_GetPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxDirPickerCtrl(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdirpickerctrl.html#wxdirpickerctrlsetpath">external documentation</a>.
+setPath(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxDirPickerCtrl),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxDirPickerCtrl_SetPath,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxDirPickerCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxDirPickerCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPickerBase
+%% @hidden
+isPickerCtrlGrowable(This) -> wxPickerBase:isPickerCtrlGrowable(This).
+%% @hidden
+setTextCtrlGrowable(This, Options) -> wxPickerBase:setTextCtrlGrowable(This, Options).
+%% @hidden
+setTextCtrlGrowable(This) -> wxPickerBase:setTextCtrlGrowable(This).
+%% @hidden
+setPickerCtrlGrowable(This, Options) -> wxPickerBase:setPickerCtrlGrowable(This, Options).
+%% @hidden
+setPickerCtrlGrowable(This) -> wxPickerBase:setPickerCtrlGrowable(This).
+%% @hidden
+isTextCtrlGrowable(This) -> wxPickerBase:isTextCtrlGrowable(This).
+%% @hidden
+getTextCtrl(This) -> wxPickerBase:getTextCtrl(This).
+%% @hidden
+hasTextCtrl(This) -> wxPickerBase:hasTextCtrl(This).
+%% @hidden
+getPickerCtrlProportion(This) -> wxPickerBase:getPickerCtrlProportion(This).
+%% @hidden
+getTextCtrlProportion(This) -> wxPickerBase:getTextCtrlProportion(This).
+%% @hidden
+setPickerCtrlProportion(This,Prop) -> wxPickerBase:setPickerCtrlProportion(This,Prop).
+%% @hidden
+setTextCtrlProportion(This,Prop) -> wxPickerBase:setTextCtrlProportion(This,Prop).
+%% @hidden
+getInternalMargin(This) -> wxPickerBase:getInternalMargin(This).
+%% @hidden
+setInternalMargin(This,Newmargin) -> wxPickerBase:setInternalMargin(This,Newmargin).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxDisplayChangedEvent.erl b/lib/wx/src/gen/wxDisplayChangedEvent.erl
new file mode 100644
index 0000000000..280a51ffc2
--- /dev/null
+++ b/lib/wx/src/gen/wxDisplayChangedEvent.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxdisplaychangedevent.html">wxDisplayChangedEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>display_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxDisplayChanged(). #wxDisplayChanged{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxDisplayChangedEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxDisplayChangedEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxEraseEvent.erl b/lib/wx/src/gen/wxEraseEvent.erl
new file mode 100644
index 0000000000..66fc161aba
--- /dev/null
+++ b/lib/wx/src/gen/wxEraseEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxeraseevent.html">wxEraseEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>erase_background</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxErase(). #wxErase{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxEraseEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxEraseEvent).
+-include("wxe.hrl").
+-export([getDC/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxEraseEvent()) -> wxDC:wxDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxeraseevent.html#wxeraseeventgetdc">external documentation</a>.
+getDC(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEraseEvent),
+ wxe_util:call(?wxEraseEvent_GetDC,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxEvent.erl b/lib/wx/src/gen/wxEvent.erl
new file mode 100644
index 0000000000..dda4c0189d
--- /dev/null
+++ b/lib/wx/src/gen/wxEvent.erl
@@ -0,0 +1,103 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html">wxEvent</a>.
+%% @type wxEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxEvent).
+-include("wxe.hrl").
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,resumePropagation/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventgetid">external documentation</a>.
+getId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_GetId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventgetskipped">external documentation</a>.
+getSkipped(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_GetSkipped,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventgettimestamp">external documentation</a>.
+getTimestamp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_GetTimestamp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventiscommandevent">external documentation</a>.
+isCommandEvent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_IsCommandEvent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxEvent(), PropagationLevel::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventresumepropagation">external documentation</a>.
+resumePropagation(#wx_ref{type=ThisT,ref=ThisRef},PropagationLevel)
+ when is_integer(PropagationLevel) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:cast(?wxEvent_ResumePropagation,
+ <<ThisRef:32/?UI,PropagationLevel:32/?UI>>).
+
+%% @spec (This::wxEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventshouldpropagate">external documentation</a>.
+shouldPropagate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_ShouldPropagate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxEvent()) -> ok
+%% @equiv skip(This, [])
+skip(This)
+ when is_record(This, wx_ref) ->
+ skip(This, []).
+
+%% @spec (This::wxEvent(), [Option]) -> ok
+%% Option = {skip, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventskip">external documentation</a>.
+skip(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxEvent),
+ MOpts = fun({skip, Skip}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Skip)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxEvent_Skip,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevent.html#wxeventstoppropagation">external documentation</a>.
+stopPropagation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxEvent),
+ wxe_util:call(?wxEvent_StopPropagation,
+ <<ThisRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxEvtHandler.erl b/lib/wx/src/gen/wxEvtHandler.erl
new file mode 100644
index 0000000000..0d4e224fc5
--- /dev/null
+++ b/lib/wx/src/gen/wxEvtHandler.erl
@@ -0,0 +1,203 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% This module is actually handwritten see ../api_gen/wx_extra/wxEvtHandler.erl
+%%
+%% @doc The Event handler.
+%%
+%% To get events from wxwidgets objects you subscribe to them by
+%% calling connect/[2-3]. Events are sent as messages, if no callback
+%% was supplied These messages will be {@link wx(). #wx{}} where
+%% EventRecord is a record that depends on the {@link
+%% wxEventType(). event type}. The records are defined in:
+%% wx/include/wx.hrl.
+%%
+%% If a callback was supplied to connect, the callback will be invoked
+%% (in another process) to handle the event. The callback should be of
+%% arity 2. fun(EventRecord::wx(), EventObject::wxObject()).
+%%
+%% Beware that the callback will be in executed in new process each time.
+%%
+%% <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html">
+%% The orginal documentation</a>.
+%%
+%% @headerfile "../../include/wx.hrl"
+%%
+%%@type wxEvtHandler(). An object reference
+
+-module(wxEvtHandler).
+-include("wxe.hrl").
+-include("../include/wx.hrl").
+
+%% API
+-export([connect/2, connect/3, disconnect/1, disconnect/2, disconnect/3]).
+
+%% internal exports
+-export([connect_impl/3, disconnect_impl/2, disconnect_impl/3,
+ new_evt_listener/0, destroy_evt_listener/1,
+ get_callback/1, replace_fun_with_id/2]).
+
+-record(evh, {et=null,id=?wxID_ANY,lastId=?wxID_ANY,skip=undefined,userdata=[],cb=0}).
+
+
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType()) -> ok
+%% @doc Equivalent to {@link connect/3. connect(This, EventType, [])}
+
+connect(This, EventType) ->
+ connect(This, EventType, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType(), [Options]) -> ok
+%% @doc This function subscribes the to events of EventType,
+%% in the range id, lastId. The events will be received as messages
+%% if no callback is supplied.
+%%
+%% Options:
+%% {id, integer()}, The identifier (or first of the identifier range) to be
+%% associated with this event handler.
+%% Default ?wxID_ANY
+%% {lastId, integer()}, The second part of the identifier range.
+%% If used 'id' must be set as the starting identifier range.
+%% Default ?wxID_ANY
+%% {skip, boolean()}, If skip is true further event_handlers will be called.
+%% This is not used if the 'callback' option is used.
+%% Default false.
+%% {callback, function()} Use a callback fun(EventRecord::wx(), EventObject::wxObject())
+%% to process the event. Default not specfied i.e. a message will
+%% be delivered to the process calling this function.
+%% {userData, term()} An erlang term that will be sent with the event. Default: [].
+connect(This=#wx_ref{type=ThisT}, EventType, Options) ->
+ EvH = parse_opts(Options, #evh{et=EventType}),
+ ?CLASS(ThisT,wxEvtHandler),
+ case wxe_util:connect_cb(This, EvH) of
+ ok -> ok;
+ {badarg, event_type} ->
+ erlang:error({badarg,EventType})
+ end.
+
+parse_opts([{callback,Fun}|R], Opts) when is_function(Fun) ->
+ %% Check Fun Arity?
+ parse_opts(R, Opts#evh{cb=Fun});
+parse_opts([callback|R], Opts) ->
+ parse_opts(R, Opts#evh{cb=1});
+parse_opts([{userData, UserData}|R],Opts) ->
+ parse_opts(R, Opts#evh{userdata=UserData});
+parse_opts([{skip, Skip}|R],Opts) when is_boolean(Skip) ->
+ parse_opts(R, Opts#evh{skip=Skip});
+parse_opts([{id, Id}|R],Opts) when is_integer(Id) ->
+ parse_opts(R, Opts#evh{id=Id});
+parse_opts([{lastId, Id}|R],Opts) when is_integer(Id) ->
+ parse_opts(R, Opts#evh{lastId=Id});
+parse_opts([_BadArg|R], Opts) ->
+ parse_opts(R, Opts);
+parse_opts([], Opts = #evh{id=Id,lastId=Lid,skip=Skip, cb=CB}) ->
+ if
+ Skip =/= undefined andalso CB =/= 0 ->
+ erlang:error({badarg, {combined, skip, callback}});
+ Lid =/= ?wxID_ANY andalso Id =:= ?wxID_ANY ->
+ erlang:error({badarg, no_start_identifier_range});
+ Skip =:= undefined -> %% Default
+ Opts#evh{skip=false};
+ true ->
+ Opts
+ end.
+
+%% @spec (This::wxEvtHandler()) -> true | false
+%% @doc Equivalent to {@link disconnect/3. disconnect(This, null, [])}
+%% Can also have an optional callback Fun() as an additional last argument.
+
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ disconnect(This, null, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType()) -> true | false
+%% @doc Equivalent to {@link disconnect/3. disconnect(This, EventType, [])}
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}, EventType) when is_atom(EventType) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ disconnect(This, EventType, []).
+
+%% @spec (This::wxEvtHandler(), EventType::wxEventType(), Opts) -> true | false
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html#wxevthandlerdisconnect">external documentation</a>
+%% This function unsubscribes the process or callback fun from the event handler.
+%% EventType may be the atom 'null' to match any eventtype.
+%% Notice that the options skip and userdata is not used to match the eventhandler.
+disconnect(This=#wx_ref{type=ThisT,ref=_ThisRef}, EventType, Opts) ->
+ ?CLASS(ThisT,wxEvtHandler),
+ EvH = parse_opts(Opts, #evh{et=EventType}),
+ case wxe_util:disconnect_cb(This, EvH) of
+ {badarg, event_type} ->
+ erlang:error({badarg,EventType});
+ Bool ->
+ Bool
+ end.
+
+
+%% @hidden
+connect_impl(#wx_ref{type=wxeEvtListener,ref=EvtList},
+ #wx_ref{type=ThisT,ref=ThisRef},
+ #evh{id=Winid, lastId=LastId, et=EventType,
+ skip=Skip, userdata=Userdata, cb=FunID})
+ when is_integer(FunID)->
+ EventTypeBin = list_to_binary([atom_to_list(EventType)|[0]]),
+ ThisTypeBin = list_to_binary([atom_to_list(ThisT)|[0]]),
+ UD = if Userdata =:= [] -> 0;
+ true ->
+ wxe_util:send_bin(term_to_binary(Userdata)),
+ 1
+ end,
+ wxe_util:call(100, <<EvtList:32/?UI,ThisRef:32/?UI,
+ Winid:32/?UI,LastId:32/?UI,
+ (wxe_util:from_bool(Skip)):32/?UI,
+ UD:32/?UI,
+ FunID:32/?UI,
+ (size(EventTypeBin)):32/?UI,
+ (size(ThisTypeBin)):32/?UI,
+ %% Note no alignment
+ EventTypeBin/binary,ThisTypeBin/binary>>).
+
+%% @hidden
+disconnect_impl(Listener, Object) ->
+ disconnect_impl(Listener, Object, #evh{}).
+%% @hidden
+disconnect_impl(#wx_ref{type=wxeEvtListener,ref=EvtList},
+ #wx_ref{type=_ThisT,ref=ThisRef},
+ #evh{id=Winid, lastId=LastId, et=EventType}) ->
+ EventTypeBin = list_to_binary([atom_to_list(EventType)|[0]]),
+ wxe_util:call(101, <<EvtList:32/?UI,
+ ThisRef:32/?UI,Winid:32/?UI,LastId:32/?UI,
+ (size(EventTypeBin)):32/?UI,
+ %% Note no alignment
+ EventTypeBin/binary>>).
+
+%% @hidden
+new_evt_listener() ->
+ wxe_util:call(98, <<>>).
+
+%% @hidden
+destroy_evt_listener(#wx_ref{type=wxeEvtListener,ref=EvtList}) ->
+ wxe_util:call(99, <<EvtList:32/?UI>>).
+
+%% @hidden
+get_callback(#evh{cb=Callback}) ->
+ Callback.
+
+%% @hidden
+replace_fun_with_id(Evh, Id) ->
+ Evh#evh{cb=Id}.
+
diff --git a/lib/wx/src/gen/wxFileDataObject.erl b/lib/wx/src/gen/wxFileDataObject.erl
new file mode 100644
index 0000000000..513f15eb00
--- /dev/null
+++ b/lib/wx/src/gen/wxFileDataObject.erl
@@ -0,0 +1,67 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledataobject.html">wxFileDataObject</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDataObject}
+%% </p>
+%% @type wxFileDataObject(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFileDataObject).
+-include("wxe.hrl").
+-export([addFile/2,destroy/1,getFilenames/1,new/0]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(wxDataObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFileDataObject()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledataobject.html#wxfiledataobjectwxfiledataobject">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFileDataObject_new,
+ <<>>).
+
+%% @spec (This::wxFileDataObject(), Filename::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledataobject.html#wxfiledataobjectaddfile">external documentation</a>.
+addFile(#wx_ref{type=ThisT,ref=ThisRef},Filename)
+ when is_list(Filename) ->
+ ?CLASS(ThisT,wxFileDataObject),
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ wxe_util:cast(?wxFileDataObject_AddFile,
+ <<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDataObject()) -> [[string()]]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledataobject.html#wxfiledataobjectgetfilenames">external documentation</a>.
+getFilenames(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDataObject),
+ wxe_util:call(?wxFileDataObject_GetFilenames,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDataObject()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFileDataObject),
+ wxe_util:destroy(?wxFileDataObject_destroy,Obj),
+ ok.
+ %% From wxDataObject
diff --git a/lib/wx/src/gen/wxFileDialog.erl b/lib/wx/src/gen/wxFileDialog.erl
new file mode 100644
index 0000000000..22b39aa150
--- /dev/null
+++ b/lib/wx/src/gen/wxFileDialog.erl
@@ -0,0 +1,658 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html">wxFileDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFileDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFileDialog).
+-include("wxe.hrl").
+-export([destroy/1,getDirectory/1,getFilename/1,getFilenames/1,getFilterIndex/1,
+ getMessage/1,getPath/1,getPaths/2,getWildcard/1,new/1,new/2,setDirectory/2,
+ setFilename/2,setFilterIndex/2,setMessage/2,setPath/2,setWildcard/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxFileDialog()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxFileDialog()
+%% Option = {message, string()} | {defaultDir, string()} | {defaultFile, string()} | {wildCard, string()} | {style, integer()} | {pos, {X::integer(),Y::integer()}} | {sz, {W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogwxfiledialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({message, Message}, Acc) -> Message_UC = unicode:characters_to_binary([Message,0]),[<<1:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({defaultDir, DefaultDir}, Acc) -> DefaultDir_UC = unicode:characters_to_binary([DefaultDir,0]),[<<2:32/?UI,(byte_size(DefaultDir_UC)):32/?UI,(DefaultDir_UC)/binary, 0:(((8- ((0+byte_size(DefaultDir_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({defaultFile, DefaultFile}, Acc) -> DefaultFile_UC = unicode:characters_to_binary([DefaultFile,0]),[<<3:32/?UI,(byte_size(DefaultFile_UC)):32/?UI,(DefaultFile_UC)/binary, 0:(((8- ((0+byte_size(DefaultFile_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({wildCard, WildCard}, Acc) -> WildCard_UC = unicode:characters_to_binary([WildCard,0]),[<<4:32/?UI,(byte_size(WildCard_UC)):32/?UI,(WildCard_UC)/binary, 0:(((8- ((0+byte_size(WildCard_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<6:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({sz, {SzW,SzH}}, Acc) -> [<<7:32/?UI,SzW:32/?UI,SzH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFileDialog_new,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxFileDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetdirectory">external documentation</a>.
+getDirectory(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetDirectory,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetfilename">external documentation</a>.
+getFilename(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetFilename,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog()) -> [[string()]]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetfilenames">external documentation</a>.
+getFilenames(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetFilenames,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetfilterindex">external documentation</a>.
+getFilterIndex(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetFilterIndex,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetmessage">external documentation</a>.
+getMessage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetMessage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog(), Paths::[[string()]]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetpaths">external documentation</a>.
+getPaths(#wx_ref{type=ThisT,ref=ThisRef},Paths)
+ when is_list(Paths) ->
+ ?CLASS(ThisT,wxFileDialog),
+ Paths_UCA = [unicode:characters_to_binary([PathsTemp,0]) ||
+ PathsTemp <- Paths],
+ wxe_util:cast(?wxFileDialog_GetPaths,
+ <<ThisRef:32/?UI,(length(Paths_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Paths_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Paths_UCA])) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialoggetwildcard">external documentation</a>.
+getWildcard(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:call(?wxFileDialog_GetWildcard,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFileDialog(), Dir::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetdirectory">external documentation</a>.
+setDirectory(#wx_ref{type=ThisT,ref=ThisRef},Dir)
+ when is_list(Dir) ->
+ ?CLASS(ThisT,wxFileDialog),
+ Dir_UC = unicode:characters_to_binary([Dir,0]),
+ wxe_util:cast(?wxFileDialog_SetDirectory,
+ <<ThisRef:32/?UI,(byte_size(Dir_UC)):32/?UI,(Dir_UC)/binary, 0:(((8- ((0+byte_size(Dir_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog(), Name::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetfilename">external documentation</a>.
+setFilename(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxFileDialog),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:cast(?wxFileDialog_SetFilename,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog(), FilterIndex::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetfilterindex">external documentation</a>.
+setFilterIndex(#wx_ref{type=ThisT,ref=ThisRef},FilterIndex)
+ when is_integer(FilterIndex) ->
+ ?CLASS(ThisT,wxFileDialog),
+ wxe_util:cast(?wxFileDialog_SetFilterIndex,
+ <<ThisRef:32/?UI,FilterIndex:32/?UI>>).
+
+%% @spec (This::wxFileDialog(), Message::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetmessage">external documentation</a>.
+setMessage(#wx_ref{type=ThisT,ref=ThisRef},Message)
+ when is_list(Message) ->
+ ?CLASS(ThisT,wxFileDialog),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ wxe_util:cast(?wxFileDialog_SetMessage,
+ <<ThisRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog(), Path::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetpath">external documentation</a>.
+setPath(#wx_ref{type=ThisT,ref=ThisRef},Path)
+ when is_list(Path) ->
+ ?CLASS(ThisT,wxFileDialog),
+ Path_UC = unicode:characters_to_binary([Path,0]),
+ wxe_util:cast(?wxFileDialog_SetPath,
+ <<ThisRef:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog(), WildCard::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledialog.html#wxfiledialogsetwildcard">external documentation</a>.
+setWildcard(#wx_ref{type=ThisT,ref=ThisRef},WildCard)
+ when is_list(WildCard) ->
+ ?CLASS(ThisT,wxFileDialog),
+ WildCard_UC = unicode:characters_to_binary([WildCard,0]),
+ wxe_util:cast(?wxFileDialog_SetWildcard,
+ <<ThisRef:32/?UI,(byte_size(WildCard_UC)):32/?UI,(WildCard_UC)/binary, 0:(((8- ((0+byte_size(WildCard_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFileDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFileDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxFileDirPickerEvent.erl b/lib/wx/src/gen/wxFileDirPickerEvent.erl
new file mode 100644
index 0000000000..0f9166e542
--- /dev/null
+++ b/lib/wx/src/gen/wxFileDirPickerEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledirpickerevent.html">wxFileDirPickerEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_filepicker_changed</em>, <em>command_dirpicker_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxFileDirPicker(). #wxFileDirPicker{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxFileDirPickerEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFileDirPickerEvent).
+-include("wxe.hrl").
+-export([getPath/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxFileDirPickerEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfiledirpickerevent.html#wxfiledirpickereventgetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFileDirPickerEvent),
+ wxe_util:call(?wxFileDirPickerEvent_GetPath,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxFilePickerCtrl.erl b/lib/wx/src/gen/wxFilePickerCtrl.erl
new file mode 100644
index 0000000000..c182d20f36
--- /dev/null
+++ b/lib/wx/src/gen/wxFilePickerCtrl.erl
@@ -0,0 +1,552 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html">wxFilePickerCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPickerBase}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFilePickerCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFilePickerCtrl).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getPath/1,new/0,new/2,new/3,setPath/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getInternalMargin/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPickerCtrlProportion/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextCtrl/1,getTextCtrlProportion/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTextCtrl/1,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isPickerCtrlGrowable/1,isRetained/1,
+ isShown/1,isTextCtrlGrowable/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setInternalMargin/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,
+ setPickerCtrlProportion/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,
+ setScrollbar/6,setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,
+ setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,
+ setSizerAndFit/3,setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPickerBase) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFilePickerCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html#wxfilepickerctrlwxfilepickerctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFilePickerCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxFilePickerCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxFilePickerCtrl()
+%% Option = {path, string()} | {message, string()} | {wildcard, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html#wxfilepickerctrlwxfilepickerctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({path, Path}, Acc) -> Path_UC = unicode:characters_to_binary([Path,0]),[<<1:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({message, Message}, Acc) -> Message_UC = unicode:characters_to_binary([Message,0]),[<<2:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({wildcard, Wildcard}, Acc) -> Wildcard_UC = unicode:characters_to_binary([Wildcard,0]),[<<3:32/?UI,(byte_size(Wildcard_UC)):32/?UI,(Wildcard_UC)/binary, 0:(((8- ((0+byte_size(Wildcard_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<4:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<5:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<6:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<7:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFilePickerCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxFilePickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxFilePickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {path, string()} | {message, string()} | {wildcard, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html#wxfilepickerctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxFilePickerCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({path, Path}, Acc) -> Path_UC = unicode:characters_to_binary([Path,0]),[<<1:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({message, Message}, Acc) -> Message_UC = unicode:characters_to_binary([Message,0]),[<<2:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({wildcard, Wildcard}, Acc) -> Wildcard_UC = unicode:characters_to_binary([Wildcard,0]),[<<3:32/?UI,(byte_size(Wildcard_UC)):32/?UI,(Wildcard_UC)/binary, 0:(((8- ((0+byte_size(Wildcard_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<4:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<5:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<6:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<7:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFilePickerCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxFilePickerCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html#wxfilepickerctrlgetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFilePickerCtrl),
+ wxe_util:call(?wxFilePickerCtrl_GetPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFilePickerCtrl(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfilepickerctrl.html#wxfilepickerctrlsetpath">external documentation</a>.
+setPath(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxFilePickerCtrl),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxFilePickerCtrl_SetPath,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFilePickerCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFilePickerCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPickerBase
+%% @hidden
+isPickerCtrlGrowable(This) -> wxPickerBase:isPickerCtrlGrowable(This).
+%% @hidden
+setTextCtrlGrowable(This, Options) -> wxPickerBase:setTextCtrlGrowable(This, Options).
+%% @hidden
+setTextCtrlGrowable(This) -> wxPickerBase:setTextCtrlGrowable(This).
+%% @hidden
+setPickerCtrlGrowable(This, Options) -> wxPickerBase:setPickerCtrlGrowable(This, Options).
+%% @hidden
+setPickerCtrlGrowable(This) -> wxPickerBase:setPickerCtrlGrowable(This).
+%% @hidden
+isTextCtrlGrowable(This) -> wxPickerBase:isTextCtrlGrowable(This).
+%% @hidden
+getTextCtrl(This) -> wxPickerBase:getTextCtrl(This).
+%% @hidden
+hasTextCtrl(This) -> wxPickerBase:hasTextCtrl(This).
+%% @hidden
+getPickerCtrlProportion(This) -> wxPickerBase:getPickerCtrlProportion(This).
+%% @hidden
+getTextCtrlProportion(This) -> wxPickerBase:getTextCtrlProportion(This).
+%% @hidden
+setPickerCtrlProportion(This,Prop) -> wxPickerBase:setPickerCtrlProportion(This,Prop).
+%% @hidden
+setTextCtrlProportion(This,Prop) -> wxPickerBase:setTextCtrlProportion(This,Prop).
+%% @hidden
+getInternalMargin(This) -> wxPickerBase:getInternalMargin(This).
+%% @hidden
+setInternalMargin(This,Newmargin) -> wxPickerBase:setInternalMargin(This,Newmargin).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxFindReplaceData.erl b/lib/wx/src/gen/wxFindReplaceData.erl
new file mode 100644
index 0000000000..ac09a23e89
--- /dev/null
+++ b/lib/wx/src/gen/wxFindReplaceData.erl
@@ -0,0 +1,101 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html">wxFindReplaceData</a>.
+%% @type wxFindReplaceData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFindReplaceData).
+-include("wxe.hrl").
+-export([destroy/1,getFindString/1,getFlags/1,getReplaceString/1,new/0,new/1,
+ setFindString/2,setFlags/2,setReplaceString/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFindReplaceData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatawxfindreplacedata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFindReplaceData_new_0,
+ <<>>).
+
+%% @spec (Flags::integer()) -> wxFindReplaceData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatawxfindreplacedata">external documentation</a>.
+new(Flags)
+ when is_integer(Flags) ->
+ wxe_util:construct(?wxFindReplaceData_new_1,
+ <<Flags:32/?UI>>).
+
+%% @spec (This::wxFindReplaceData()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatagetfindstring">external documentation</a>.
+getFindString(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ wxe_util:call(?wxFindReplaceData_GetFindString,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFindReplaceData()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatagetreplacestring">external documentation</a>.
+getReplaceString(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ wxe_util:call(?wxFindReplaceData_GetReplaceString,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFindReplaceData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatagetflags">external documentation</a>.
+getFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ wxe_util:call(?wxFindReplaceData_GetFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFindReplaceData(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatasetflags">external documentation</a>.
+setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ wxe_util:cast(?wxFindReplaceData_SetFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxFindReplaceData(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatasetfindstring">external documentation</a>.
+setFindString(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxFindReplaceData_SetFindString,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFindReplaceData(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedata.html#wxfindreplacedatasetreplacestring">external documentation</a>.
+setReplaceString(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxFindReplaceData),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxFindReplaceData_SetReplaceString,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFindReplaceData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFindReplaceData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxFindReplaceDialog.erl b/lib/wx/src/gen/wxFindReplaceDialog.erl
new file mode 100644
index 0000000000..82da24abf5
--- /dev/null
+++ b/lib/wx/src/gen/wxFindReplaceDialog.erl
@@ -0,0 +1,574 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedialog.html">wxFindReplaceDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFindReplaceDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFindReplaceDialog).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getData/1,new/0,new/3,new/4]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFindReplaceDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedialog.html#wxfindreplacedialogwxfindreplacedialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFindReplaceDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Data::wxFindReplaceData:wxFindReplaceData(), Title::string()) -> wxFindReplaceDialog()
+%% @equiv new(Parent,Data,Title, [])
+new(Parent,Data,Title)
+ when is_record(Parent, wx_ref),is_record(Data, wx_ref),is_list(Title) ->
+ new(Parent,Data,Title, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Data::wxFindReplaceData:wxFindReplaceData(), Title::string(), [Option]) -> wxFindReplaceDialog()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedialog.html#wxfindreplacedialogwxfindreplacedialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=DataT,ref=DataRef},Title, Options)
+ when is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(DataT,wxFindReplaceData),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFindReplaceDialog_new_4,
+ <<ParentRef:32/?UI,DataRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxFindReplaceDialog(), Parent::wxWindow:wxWindow(), Data::wxFindReplaceData:wxFindReplaceData(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Data,Title, [])
+create(This,Parent,Data,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_record(Data, wx_ref),is_list(Title) ->
+ create(This,Parent,Data,Title, []).
+
+%% @spec (This::wxFindReplaceDialog(), Parent::wxWindow:wxWindow(), Data::wxFindReplaceData:wxFindReplaceData(), Title::string(), [Option]) -> bool()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedialog.html#wxfindreplacedialogcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=DataT,ref=DataRef},Title, Options)
+ when is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxFindReplaceDialog),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(DataT,wxFindReplaceData),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFindReplaceDialog_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,DataRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxFindReplaceDialog()) -> wxFindReplaceData:wxFindReplaceData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfindreplacedialog.html#wxfindreplacedialoggetdata">external documentation</a>.
+getData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFindReplaceDialog),
+ wxe_util:call(?wxFindReplaceDialog_GetData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFindReplaceDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFindReplaceDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxFlexGridSizer.erl b/lib/wx/src/gen/wxFlexGridSizer.erl
new file mode 100644
index 0000000000..5387d04043
--- /dev/null
+++ b/lib/wx/src/gen/wxFlexGridSizer.erl
@@ -0,0 +1,281 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html">wxFlexGridSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridSizer}
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxFlexGridSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFlexGridSizer).
+-include("wxe.hrl").
+-export([addGrowableCol/2,addGrowableCol/3,addGrowableRow/2,addGrowableRow/3,
+ destroy/1,getFlexibleDirection/1,getNonFlexibleGrowMode/1,new/1,new/2,
+ new/4,removeGrowableCol/2,removeGrowableRow/2,setFlexibleDirection/2,
+ setNonFlexibleGrowMode/2]).
+
+%% inherited exports
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getCols/1,
+ getHGap/1,getItem/2,getItem/3,getMinSize/1,getPosition/1,getRows/1,
+ getSize/1,getVGap/1,hide/2,hide/3,insert/3,insert/4,insert/5,insertSpacer/3,
+ insertStretchSpacer/2,insertStretchSpacer/3,isShown/2,layout/1,parent_class/1,
+ prepend/2,prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1,
+ prependStretchSpacer/2,recalcSizes/1,remove/2,replace/3,replace/4,
+ setCols/2,setDimension/5,setHGap/2,setItemMinSize/3,setItemMinSize/4,
+ setMinSize/2,setMinSize/3,setRows/2,setSizeHints/2,setVGap/2,setVirtualSizeHints/2,
+ show/2,show/3]).
+
+%% @hidden
+parent_class(wxGridSizer) -> true;
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Cols::integer()) -> wxFlexGridSizer()
+%% @equiv new(Cols, [])
+new(Cols)
+ when is_integer(Cols) ->
+ new(Cols, []).
+
+%% @spec (Cols::integer(), [Option]) -> wxFlexGridSizer()
+%% Option = {vgap, integer()} | {hgap, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizerwxflexgridsizer">external documentation</a>.
+new(Cols, Options)
+ when is_integer(Cols),is_list(Options) ->
+ MOpts = fun({vgap, Vgap}, Acc) -> [<<1:32/?UI,Vgap:32/?UI>>|Acc];
+ ({hgap, Hgap}, Acc) -> [<<2:32/?UI,Hgap:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFlexGridSizer_new_2,
+ <<Cols:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Rows::integer(), Cols::integer(), Vgap::integer(), Hgap::integer()) -> wxFlexGridSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizerwxflexgridsizer">external documentation</a>.
+new(Rows,Cols,Vgap,Hgap)
+ when is_integer(Rows),is_integer(Cols),is_integer(Vgap),is_integer(Hgap) ->
+ wxe_util:construct(?wxFlexGridSizer_new_4,
+ <<Rows:32/?UI,Cols:32/?UI,Vgap:32/?UI,Hgap:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok
+%% @equiv addGrowableCol(This,Idx, [])
+addGrowableCol(This,Idx)
+ when is_record(This, wx_ref),is_integer(Idx) ->
+ addGrowableCol(This,Idx, []).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer(), [Option]) -> ok
+%% Option = {proportion, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizeraddgrowablecol">external documentation</a>.
+addGrowableCol(#wx_ref{type=ThisT,ref=ThisRef},Idx, Options)
+ when is_integer(Idx),is_list(Options) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxFlexGridSizer_AddGrowableCol,
+ <<ThisRef:32/?UI,Idx:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok
+%% @equiv addGrowableRow(This,Idx, [])
+addGrowableRow(This,Idx)
+ when is_record(This, wx_ref),is_integer(Idx) ->
+ addGrowableRow(This,Idx, []).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer(), [Option]) -> ok
+%% Option = {proportion, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizeraddgrowablerow">external documentation</a>.
+addGrowableRow(#wx_ref{type=ThisT,ref=ThisRef},Idx, Options)
+ when is_integer(Idx),is_list(Options) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxFlexGridSizer_AddGrowableRow,
+ <<ThisRef:32/?UI,Idx:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxFlexGridSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizergetflexibledirection">external documentation</a>.
+getFlexibleDirection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:call(?wxFlexGridSizer_GetFlexibleDirection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer()) -> WxFlexSizerGrowMode
+%% WxFlexSizerGrowMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizergetnonflexiblegrowmode">external documentation</a>.
+%%<br /> WxFlexSizerGrowMode is one of ?wxFLEX_GROWMODE_NONE | ?wxFLEX_GROWMODE_SPECIFIED | ?wxFLEX_GROWMODE_ALL
+getNonFlexibleGrowMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:call(?wxFlexGridSizer_GetNonFlexibleGrowMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizerremovegrowablecol">external documentation</a>.
+removeGrowableCol(#wx_ref{type=ThisT,ref=ThisRef},Idx)
+ when is_integer(Idx) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:cast(?wxFlexGridSizer_RemoveGrowableCol,
+ <<ThisRef:32/?UI,Idx:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizerremovegrowablerow">external documentation</a>.
+removeGrowableRow(#wx_ref{type=ThisT,ref=ThisRef},Idx)
+ when is_integer(Idx) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:cast(?wxFlexGridSizer_RemoveGrowableRow,
+ <<ThisRef:32/?UI,Idx:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer(), Direction::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizersetflexibledirection">external documentation</a>.
+setFlexibleDirection(#wx_ref{type=ThisT,ref=ThisRef},Direction)
+ when is_integer(Direction) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:cast(?wxFlexGridSizer_SetFlexibleDirection,
+ <<ThisRef:32/?UI,Direction:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer(), Mode::WxFlexSizerGrowMode) -> ok
+%% WxFlexSizerGrowMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxflexgridsizer.html#wxflexgridsizersetnonflexiblegrowmode">external documentation</a>.
+%%<br /> WxFlexSizerGrowMode is one of ?wxFLEX_GROWMODE_NONE | ?wxFLEX_GROWMODE_SPECIFIED | ?wxFLEX_GROWMODE_ALL
+setNonFlexibleGrowMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxFlexGridSizer),
+ wxe_util:cast(?wxFlexGridSizer_SetNonFlexibleGrowMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxFlexGridSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFlexGridSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxGridSizer
+%% @hidden
+setVGap(This,Gap) -> wxGridSizer:setVGap(This,Gap).
+%% @hidden
+setRows(This,Rows) -> wxGridSizer:setRows(This,Rows).
+%% @hidden
+setHGap(This,Gap) -> wxGridSizer:setHGap(This,Gap).
+%% @hidden
+setCols(This,Cols) -> wxGridSizer:setCols(This,Cols).
+%% @hidden
+getVGap(This) -> wxGridSizer:getVGap(This).
+%% @hidden
+getRows(This) -> wxGridSizer:getRows(This).
+%% @hidden
+getHGap(This) -> wxGridSizer:getHGap(This).
+%% @hidden
+getCols(This) -> wxGridSizer:getCols(This).
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+calcMin(This) -> wxSizer:calcMin(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
+%% @hidden
+add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
+%% @hidden
+add(This,Width,Height) -> wxSizer:add(This,Width,Height).
+%% @hidden
+add(This,Window) -> wxSizer:add(This,Window).
diff --git a/lib/wx/src/gen/wxFocusEvent.erl b/lib/wx/src/gen/wxFocusEvent.erl
new file mode 100644
index 0000000000..48a0f65e4f
--- /dev/null
+++ b/lib/wx/src/gen/wxFocusEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfocusevent.html">wxFocusEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>set_focus</em>, <em>kill_focus</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxFocus(). #wxFocus{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxFocusEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFocusEvent).
+-include("wxe.hrl").
+-export([getWindow/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxFocusEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfocusevent.html#wxfocuseventgetwindow">external documentation</a>.
+getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFocusEvent),
+ wxe_util:call(?wxFocusEvent_GetWindow,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxFont.erl b/lib/wx/src/gen/wxFont.erl
new file mode 100644
index 0000000000..4ee829d83d
--- /dev/null
+++ b/lib/wx/src/gen/wxFont.erl
@@ -0,0 +1,227 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html">wxFont</a>.
+%% @type wxFont(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFont).
+-include("wxe.hrl").
+-export([destroy/1,getDefaultEncoding/0,getFaceName/1,getFamily/1,getNativeFontInfoDesc/1,
+ getNativeFontInfoUserDesc/1,getPointSize/1,getStyle/1,getUnderlined/1,
+ getWeight/1,isFixedWidth/1,new/0,new/1,new/4,new/5,ok/1,setDefaultEncoding/1,
+ setFaceName/2,setFamily/2,setPointSize/2,setStyle/2,setUnderlined/2,
+ setWeight/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontwxfont">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFont_new_0,
+ <<>>).
+
+%% @spec (Fontname::string()) -> wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontwxfont">external documentation</a>.
+new(Fontname)
+ when is_list(Fontname) ->
+ Fontname_UC = unicode:characters_to_binary([Fontname,0]),
+ wxe_util:construct(?wxFont_new_1,
+ <<(byte_size(Fontname_UC)):32/?UI,(Fontname_UC)/binary, 0:(((8- ((4+byte_size(Fontname_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (Size::integer(), Family::WxFontFamily, Style::WxFontStyle, Weight::integer()) -> wxFont()
+%% @equiv new(Size,Family,Style,Weight, [])
+new(Size,Family,Style,Weight)
+ when is_integer(Size),is_integer(Family),is_integer(Style),is_integer(Weight) ->
+ new(Size,Family,Style,Weight, []).
+
+%% @spec (Size::integer(), Family::WxFontFamily, Style::WxFontStyle, Weight::integer(), [Option]) -> wxFont()
+%% Option = {underlined, bool()} | {face, string()} | {encoding, WxFontEncoding}
+%% WxFontFamily = integer()
+%% WxFontStyle = integer()
+%% WxFontEncoding = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontwxfont">external documentation</a>.
+%%<br /> WxFontFamily is one of ?wxFONTFAMILY_DEFAULT | ?wxFONTFAMILY_DECORATIVE | ?wxFONTFAMILY_ROMAN | ?wxFONTFAMILY_SCRIPT | ?wxFONTFAMILY_SWISS | ?wxFONTFAMILY_MODERN | ?wxFONTFAMILY_TELETYPE | ?wxFONTFAMILY_MAX | ?wxFONTFAMILY_UNKNOWN
+%%<br /> WxFontStyle is one of ?wxFONTSTYLE_NORMAL | ?wxFONTSTYLE_ITALIC | ?wxFONTSTYLE_SLANT | ?wxFONTSTYLE_MAX
+%%<br /> WxFontEncoding is one of ?wxFONTENCODING_SYSTEM | ?wxFONTENCODING_DEFAULT | ?wxFONTENCODING_ISO8859_1 | ?wxFONTENCODING_ISO8859_2 | ?wxFONTENCODING_ISO8859_3 | ?wxFONTENCODING_ISO8859_4 | ?wxFONTENCODING_ISO8859_5 | ?wxFONTENCODING_ISO8859_6 | ?wxFONTENCODING_ISO8859_7 | ?wxFONTENCODING_ISO8859_8 | ?wxFONTENCODING_ISO8859_9 | ?wxFONTENCODING_ISO8859_10 | ?wxFONTENCODING_ISO8859_11 | ?wxFONTENCODING_ISO8859_12 | ?wxFONTENCODING_ISO8859_13 | ?wxFONTENCODING_ISO8859_14 | ?wxFONTENCODING_ISO8859_15 | ?wxFONTENCODING_ISO8859_MAX | ?wxFONTENCODING_KOI8 | ?wxFONTENCODING_KOI8_U | ?wxFONTENCODING_ALTERNATIVE | ?wxFONTENCODING_BULGARIAN | ?wxFONTENCODING_CP437 | ?wxFONTENCODING_CP850 | ?wxFONTENCODING_CP852 | ?wxFONTENCODING_CP855 | ?wxFONTENCODING_CP866 | ?wxFONTENCODING_CP874 | ?wxFONTENCODING_CP932 | ?wxFONTENCODING_CP936 | ?wxFONTENCODING_CP949 | ?wxFONTENCODING_CP950 | ?wxFONTENCODING_CP1250 | ?wxFONTENCODING_CP1251 | ?wxFONTENCODING_CP1252 | ?wxFONTENCODING_CP1253 | ?wxFONTENCODING_CP1254 | ?wxFONTENCODING_CP1255 | ?wxFONTENCODING_CP1256 | ?wxFONTENCODING_CP1257 | ?wxFONTENCODING_CP12_MAX | ?wxFONTENCODING_UTF7 | ?wxFONTENCODING_UTF8 | ?wxFONTENCODING_EUC_JP | ?wxFONTENCODING_UTF16BE | ?wxFONTENCODING_UTF16LE | ?wxFONTENCODING_UTF32BE | ?wxFONTENCODING_UTF32LE | ?wxFONTENCODING_MACROMAN | ?wxFONTENCODING_MACJAPANESE | ?wxFONTENCODING_MACCHINESETRAD | ?wxFONTENCODING_MACKOREAN | ?wxFONTENCODING_MACARABIC | ?wxFONTENCODING_MACHEBREW | ?wxFONTENCODING_MACGREEK | ?wxFONTENCODING_MACCYRILLIC | ?wxFONTENCODING_MACDEVANAGARI | ?wxFONTENCODING_MACGURMUKHI | ?wxFONTENCODING_MACGUJARATI | ?wxFONTENCODING_MACORIYA | ?wxFONTENCODING_MACBENGALI | ?wxFONTENCODING_MACTAMIL | ?wxFONTENCODING_MACTELUGU | ?wxFONTENCODING_MACKANNADA | ?wxFONTENCODING_MACMALAJALAM | ?wxFONTENCODING_MACSINHALESE | ?wxFONTENCODING_MACBURMESE | ?wxFONTENCODING_MACKHMER | ?wxFONTENCODING_MACTHAI | ?wxFONTENCODING_MACLAOTIAN | ?wxFONTENCODING_MACGEORGIAN | ?wxFONTENCODING_MACARMENIAN | ?wxFONTENCODING_MACCHINESESIMP | ?wxFONTENCODING_MACTIBETAN | ?wxFONTENCODING_MACMONGOLIAN | ?wxFONTENCODING_MACETHIOPIC | ?wxFONTENCODING_MACCENTRALEUR | ?wxFONTENCODING_MACVIATNAMESE | ?wxFONTENCODING_MACARABICEXT | ?wxFONTENCODING_MACSYMBOL | ?wxFONTENCODING_MACDINGBATS | ?wxFONTENCODING_MACTURKISH | ?wxFONTENCODING_MACCROATIAN | ?wxFONTENCODING_MACICELANDIC | ?wxFONTENCODING_MACROMANIAN | ?wxFONTENCODING_MACCELTIC | ?wxFONTENCODING_MACGAELIC | ?wxFONTENCODING_MACKEYBOARD | ?wxFONTENCODING_MAX | ?wxFONTENCODING_MACMIN | ?wxFONTENCODING_MACMAX | ?wxFONTENCODING_UTF16 | ?wxFONTENCODING_UTF32 | ?wxFONTENCODING_UNICODE | ?wxFONTENCODING_GB2312 | ?wxFONTENCODING_BIG5 | ?wxFONTENCODING_SHIFT_JIS
+new(Size,Family,Style,Weight, Options)
+ when is_integer(Size),is_integer(Family),is_integer(Style),is_integer(Weight),is_list(Options) ->
+ MOpts = fun({underlined, Underlined}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Underlined)):32/?UI>>|Acc];
+ ({face, Face}, Acc) -> Face_UC = unicode:characters_to_binary([Face,0]),[<<2:32/?UI,(byte_size(Face_UC)):32/?UI,(Face_UC)/binary, 0:(((8- ((0+byte_size(Face_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({encoding, Encoding}, Acc) -> [<<3:32/?UI,Encoding:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFont_new_5,
+ <<Size:32/?UI,Family:32/?UI,Style:32/?UI,Weight:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxFont()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontisfixedwidth">external documentation</a>.
+isFixedWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_IsFixedWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> WxFontEncoding
+%% WxFontEncoding = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetdefaultencoding">external documentation</a>.
+%%<br /> WxFontEncoding is one of ?wxFONTENCODING_SYSTEM | ?wxFONTENCODING_DEFAULT | ?wxFONTENCODING_ISO8859_1 | ?wxFONTENCODING_ISO8859_2 | ?wxFONTENCODING_ISO8859_3 | ?wxFONTENCODING_ISO8859_4 | ?wxFONTENCODING_ISO8859_5 | ?wxFONTENCODING_ISO8859_6 | ?wxFONTENCODING_ISO8859_7 | ?wxFONTENCODING_ISO8859_8 | ?wxFONTENCODING_ISO8859_9 | ?wxFONTENCODING_ISO8859_10 | ?wxFONTENCODING_ISO8859_11 | ?wxFONTENCODING_ISO8859_12 | ?wxFONTENCODING_ISO8859_13 | ?wxFONTENCODING_ISO8859_14 | ?wxFONTENCODING_ISO8859_15 | ?wxFONTENCODING_ISO8859_MAX | ?wxFONTENCODING_KOI8 | ?wxFONTENCODING_KOI8_U | ?wxFONTENCODING_ALTERNATIVE | ?wxFONTENCODING_BULGARIAN | ?wxFONTENCODING_CP437 | ?wxFONTENCODING_CP850 | ?wxFONTENCODING_CP852 | ?wxFONTENCODING_CP855 | ?wxFONTENCODING_CP866 | ?wxFONTENCODING_CP874 | ?wxFONTENCODING_CP932 | ?wxFONTENCODING_CP936 | ?wxFONTENCODING_CP949 | ?wxFONTENCODING_CP950 | ?wxFONTENCODING_CP1250 | ?wxFONTENCODING_CP1251 | ?wxFONTENCODING_CP1252 | ?wxFONTENCODING_CP1253 | ?wxFONTENCODING_CP1254 | ?wxFONTENCODING_CP1255 | ?wxFONTENCODING_CP1256 | ?wxFONTENCODING_CP1257 | ?wxFONTENCODING_CP12_MAX | ?wxFONTENCODING_UTF7 | ?wxFONTENCODING_UTF8 | ?wxFONTENCODING_EUC_JP | ?wxFONTENCODING_UTF16BE | ?wxFONTENCODING_UTF16LE | ?wxFONTENCODING_UTF32BE | ?wxFONTENCODING_UTF32LE | ?wxFONTENCODING_MACROMAN | ?wxFONTENCODING_MACJAPANESE | ?wxFONTENCODING_MACCHINESETRAD | ?wxFONTENCODING_MACKOREAN | ?wxFONTENCODING_MACARABIC | ?wxFONTENCODING_MACHEBREW | ?wxFONTENCODING_MACGREEK | ?wxFONTENCODING_MACCYRILLIC | ?wxFONTENCODING_MACDEVANAGARI | ?wxFONTENCODING_MACGURMUKHI | ?wxFONTENCODING_MACGUJARATI | ?wxFONTENCODING_MACORIYA | ?wxFONTENCODING_MACBENGALI | ?wxFONTENCODING_MACTAMIL | ?wxFONTENCODING_MACTELUGU | ?wxFONTENCODING_MACKANNADA | ?wxFONTENCODING_MACMALAJALAM | ?wxFONTENCODING_MACSINHALESE | ?wxFONTENCODING_MACBURMESE | ?wxFONTENCODING_MACKHMER | ?wxFONTENCODING_MACTHAI | ?wxFONTENCODING_MACLAOTIAN | ?wxFONTENCODING_MACGEORGIAN | ?wxFONTENCODING_MACARMENIAN | ?wxFONTENCODING_MACCHINESESIMP | ?wxFONTENCODING_MACTIBETAN | ?wxFONTENCODING_MACMONGOLIAN | ?wxFONTENCODING_MACETHIOPIC | ?wxFONTENCODING_MACCENTRALEUR | ?wxFONTENCODING_MACVIATNAMESE | ?wxFONTENCODING_MACARABICEXT | ?wxFONTENCODING_MACSYMBOL | ?wxFONTENCODING_MACDINGBATS | ?wxFONTENCODING_MACTURKISH | ?wxFONTENCODING_MACCROATIAN | ?wxFONTENCODING_MACICELANDIC | ?wxFONTENCODING_MACROMANIAN | ?wxFONTENCODING_MACCELTIC | ?wxFONTENCODING_MACGAELIC | ?wxFONTENCODING_MACKEYBOARD | ?wxFONTENCODING_MAX | ?wxFONTENCODING_MACMIN | ?wxFONTENCODING_MACMAX | ?wxFONTENCODING_UTF16 | ?wxFONTENCODING_UTF32 | ?wxFONTENCODING_UNICODE | ?wxFONTENCODING_GB2312 | ?wxFONTENCODING_BIG5 | ?wxFONTENCODING_SHIFT_JIS
+getDefaultEncoding() ->
+ wxe_util:call(?wxFont_GetDefaultEncoding,
+ <<>>).
+
+%% @spec (This::wxFont()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetfacename">external documentation</a>.
+getFaceName(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetFaceName,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> WxFontFamily
+%% WxFontFamily = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetfamily">external documentation</a>.
+%%<br /> WxFontFamily is one of ?wxFONTFAMILY_DEFAULT | ?wxFONTFAMILY_DECORATIVE | ?wxFONTFAMILY_ROMAN | ?wxFONTFAMILY_SCRIPT | ?wxFONTFAMILY_SWISS | ?wxFONTFAMILY_MODERN | ?wxFONTFAMILY_TELETYPE | ?wxFONTFAMILY_MAX | ?wxFONTFAMILY_UNKNOWN
+getFamily(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetFamily,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetnativefontinfodesc">external documentation</a>.
+getNativeFontInfoDesc(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetNativeFontInfoDesc,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetnativefontinfouserdesc">external documentation</a>.
+getNativeFontInfoUserDesc(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetNativeFontInfoUserDesc,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetpointsize">external documentation</a>.
+getPointSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetPointSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> WxFontStyle
+%% WxFontStyle = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetstyle">external documentation</a>.
+%%<br /> WxFontStyle is one of ?wxFONTSTYLE_NORMAL | ?wxFONTSTYLE_ITALIC | ?wxFONTSTYLE_SLANT | ?wxFONTSTYLE_MAX
+getStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetunderlined">external documentation</a>.
+getUnderlined(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetUnderlined,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontgetweight">external documentation</a>.
+getWeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_GetWeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFont()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontok">external documentation</a>.
+ok(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:call(?wxFont_Ok,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Encoding::WxFontEncoding) -> ok
+%% WxFontEncoding = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetdefaultencoding">external documentation</a>.
+%%<br /> WxFontEncoding is one of ?wxFONTENCODING_SYSTEM | ?wxFONTENCODING_DEFAULT | ?wxFONTENCODING_ISO8859_1 | ?wxFONTENCODING_ISO8859_2 | ?wxFONTENCODING_ISO8859_3 | ?wxFONTENCODING_ISO8859_4 | ?wxFONTENCODING_ISO8859_5 | ?wxFONTENCODING_ISO8859_6 | ?wxFONTENCODING_ISO8859_7 | ?wxFONTENCODING_ISO8859_8 | ?wxFONTENCODING_ISO8859_9 | ?wxFONTENCODING_ISO8859_10 | ?wxFONTENCODING_ISO8859_11 | ?wxFONTENCODING_ISO8859_12 | ?wxFONTENCODING_ISO8859_13 | ?wxFONTENCODING_ISO8859_14 | ?wxFONTENCODING_ISO8859_15 | ?wxFONTENCODING_ISO8859_MAX | ?wxFONTENCODING_KOI8 | ?wxFONTENCODING_KOI8_U | ?wxFONTENCODING_ALTERNATIVE | ?wxFONTENCODING_BULGARIAN | ?wxFONTENCODING_CP437 | ?wxFONTENCODING_CP850 | ?wxFONTENCODING_CP852 | ?wxFONTENCODING_CP855 | ?wxFONTENCODING_CP866 | ?wxFONTENCODING_CP874 | ?wxFONTENCODING_CP932 | ?wxFONTENCODING_CP936 | ?wxFONTENCODING_CP949 | ?wxFONTENCODING_CP950 | ?wxFONTENCODING_CP1250 | ?wxFONTENCODING_CP1251 | ?wxFONTENCODING_CP1252 | ?wxFONTENCODING_CP1253 | ?wxFONTENCODING_CP1254 | ?wxFONTENCODING_CP1255 | ?wxFONTENCODING_CP1256 | ?wxFONTENCODING_CP1257 | ?wxFONTENCODING_CP12_MAX | ?wxFONTENCODING_UTF7 | ?wxFONTENCODING_UTF8 | ?wxFONTENCODING_EUC_JP | ?wxFONTENCODING_UTF16BE | ?wxFONTENCODING_UTF16LE | ?wxFONTENCODING_UTF32BE | ?wxFONTENCODING_UTF32LE | ?wxFONTENCODING_MACROMAN | ?wxFONTENCODING_MACJAPANESE | ?wxFONTENCODING_MACCHINESETRAD | ?wxFONTENCODING_MACKOREAN | ?wxFONTENCODING_MACARABIC | ?wxFONTENCODING_MACHEBREW | ?wxFONTENCODING_MACGREEK | ?wxFONTENCODING_MACCYRILLIC | ?wxFONTENCODING_MACDEVANAGARI | ?wxFONTENCODING_MACGURMUKHI | ?wxFONTENCODING_MACGUJARATI | ?wxFONTENCODING_MACORIYA | ?wxFONTENCODING_MACBENGALI | ?wxFONTENCODING_MACTAMIL | ?wxFONTENCODING_MACTELUGU | ?wxFONTENCODING_MACKANNADA | ?wxFONTENCODING_MACMALAJALAM | ?wxFONTENCODING_MACSINHALESE | ?wxFONTENCODING_MACBURMESE | ?wxFONTENCODING_MACKHMER | ?wxFONTENCODING_MACTHAI | ?wxFONTENCODING_MACLAOTIAN | ?wxFONTENCODING_MACGEORGIAN | ?wxFONTENCODING_MACARMENIAN | ?wxFONTENCODING_MACCHINESESIMP | ?wxFONTENCODING_MACTIBETAN | ?wxFONTENCODING_MACMONGOLIAN | ?wxFONTENCODING_MACETHIOPIC | ?wxFONTENCODING_MACCENTRALEUR | ?wxFONTENCODING_MACVIATNAMESE | ?wxFONTENCODING_MACARABICEXT | ?wxFONTENCODING_MACSYMBOL | ?wxFONTENCODING_MACDINGBATS | ?wxFONTENCODING_MACTURKISH | ?wxFONTENCODING_MACCROATIAN | ?wxFONTENCODING_MACICELANDIC | ?wxFONTENCODING_MACROMANIAN | ?wxFONTENCODING_MACCELTIC | ?wxFONTENCODING_MACGAELIC | ?wxFONTENCODING_MACKEYBOARD | ?wxFONTENCODING_MAX | ?wxFONTENCODING_MACMIN | ?wxFONTENCODING_MACMAX | ?wxFONTENCODING_UTF16 | ?wxFONTENCODING_UTF32 | ?wxFONTENCODING_UNICODE | ?wxFONTENCODING_GB2312 | ?wxFONTENCODING_BIG5 | ?wxFONTENCODING_SHIFT_JIS
+setDefaultEncoding(Encoding)
+ when is_integer(Encoding) ->
+ wxe_util:cast(?wxFont_SetDefaultEncoding,
+ <<Encoding:32/?UI>>).
+
+%% @spec (This::wxFont(), FaceName::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetfacename">external documentation</a>.
+setFaceName(#wx_ref{type=ThisT,ref=ThisRef},FaceName)
+ when is_list(FaceName) ->
+ ?CLASS(ThisT,wxFont),
+ FaceName_UC = unicode:characters_to_binary([FaceName,0]),
+ wxe_util:call(?wxFont_SetFaceName,
+ <<ThisRef:32/?UI,(byte_size(FaceName_UC)):32/?UI,(FaceName_UC)/binary, 0:(((8- ((0+byte_size(FaceName_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxFont(), Family::WxFontFamily) -> ok
+%% WxFontFamily = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetfamily">external documentation</a>.
+%%<br /> WxFontFamily is one of ?wxFONTFAMILY_DEFAULT | ?wxFONTFAMILY_DECORATIVE | ?wxFONTFAMILY_ROMAN | ?wxFONTFAMILY_SCRIPT | ?wxFONTFAMILY_SWISS | ?wxFONTFAMILY_MODERN | ?wxFONTFAMILY_TELETYPE | ?wxFONTFAMILY_MAX | ?wxFONTFAMILY_UNKNOWN
+setFamily(#wx_ref{type=ThisT,ref=ThisRef},Family)
+ when is_integer(Family) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:cast(?wxFont_SetFamily,
+ <<ThisRef:32/?UI,Family:32/?UI>>).
+
+%% @spec (This::wxFont(), PointSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetpointsize">external documentation</a>.
+setPointSize(#wx_ref{type=ThisT,ref=ThisRef},PointSize)
+ when is_integer(PointSize) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:cast(?wxFont_SetPointSize,
+ <<ThisRef:32/?UI,PointSize:32/?UI>>).
+
+%% @spec (This::wxFont(), Style::WxFontStyle) -> ok
+%% WxFontStyle = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetstyle">external documentation</a>.
+%%<br /> WxFontStyle is one of ?wxFONTSTYLE_NORMAL | ?wxFONTSTYLE_ITALIC | ?wxFONTSTYLE_SLANT | ?wxFONTSTYLE_MAX
+setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:cast(?wxFont_SetStyle,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxFont(), Underlined::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetunderlined">external documentation</a>.
+setUnderlined(#wx_ref{type=ThisT,ref=ThisRef},Underlined)
+ when is_boolean(Underlined) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:cast(?wxFont_SetUnderlined,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Underlined)):32/?UI>>).
+
+%% @spec (This::wxFont(), Weight::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfont.html#wxfontsetweight">external documentation</a>.
+setWeight(#wx_ref{type=ThisT,ref=ThisRef},Weight)
+ when is_integer(Weight) ->
+ ?CLASS(ThisT,wxFont),
+ wxe_util:cast(?wxFont_SetWeight,
+ <<ThisRef:32/?UI,Weight:32/?UI>>).
+
+%% @spec (This::wxFont()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFont),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxFontData.erl b/lib/wx/src/gen/wxFontData.erl
new file mode 100644
index 0000000000..9b8de9212f
--- /dev/null
+++ b/lib/wx/src/gen/wxFontData.erl
@@ -0,0 +1,153 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html">wxFontData</a>.
+%% @type wxFontData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFontData).
+-include("wxe.hrl").
+-export([destroy/1,enableEffects/2,getAllowSymbols/1,getChosenFont/1,getColour/1,
+ getEnableEffects/1,getInitialFont/1,getShowHelp/1,new/0,new/1,setAllowSymbols/2,
+ setChosenFont/2,setColour/2,setInitialFont/2,setRange/3,setShowHelp/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFontData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatawxfontdata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFontData_new_0,
+ <<>>).
+
+%% @spec (Data::wxFontData()) -> wxFontData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatawxfontdata">external documentation</a>.
+new(#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(DataT,wxFontData),
+ wxe_util:construct(?wxFontData_new_1,
+ <<DataRef:32/?UI>>).
+
+%% @spec (This::wxFontData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdataenableeffects">external documentation</a>.
+enableEffects(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:cast(?wxFontData_EnableEffects,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxFontData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetallowsymbols">external documentation</a>.
+getAllowSymbols(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetAllowSymbols,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetchosenfont">external documentation</a>.
+getChosenFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetChosenFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetenableeffects">external documentation</a>.
+getEnableEffects(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetEnableEffects,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetinitialfont">external documentation</a>.
+getInitialFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetInitialFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatagetshowhelp">external documentation</a>.
+getShowHelp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:call(?wxFontData_GetShowHelp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetallowsymbols">external documentation</a>.
+setAllowSymbols(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:cast(?wxFontData_SetAllowSymbols,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxFontData(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetchosenfont">external documentation</a>.
+setChosenFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxFontData_SetChosenFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxFontData(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:cast(?wxFontData_SetColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxFontData(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetinitialfont">external documentation</a>.
+setInitialFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxFontData),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxFontData_SetInitialFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxFontData(), MinRange::integer(), MaxRange::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},MinRange,MaxRange)
+ when is_integer(MinRange),is_integer(MaxRange) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:cast(?wxFontData_SetRange,
+ <<ThisRef:32/?UI,MinRange:32/?UI,MaxRange:32/?UI>>).
+
+%% @spec (This::wxFontData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdata.html#wxfontdatasetshowhelp">external documentation</a>.
+setShowHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxFontData),
+ wxe_util:cast(?wxFontData_SetShowHelp,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxFontData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFontData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxFontDialog.erl b/lib/wx/src/gen/wxFontDialog.erl
new file mode 100644
index 0000000000..009e320117
--- /dev/null
+++ b/lib/wx/src/gen/wxFontDialog.erl
@@ -0,0 +1,550 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdialog.html">wxFontDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFontDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFontDialog).
+-include("wxe.hrl").
+-export([create/3,destroy/1,getFontData/1,new/0,new/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFontDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdialog.html#wxfontdialogwxfontdialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFontDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Data::wxFontData:wxFontData()) -> wxFontDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdialog.html#wxfontdialogwxfontdialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(DataT,wxFontData),
+ wxe_util:construct(?wxFontDialog_new_2,
+ <<ParentRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxFontDialog(), Parent::wxWindow:wxWindow(), Data::wxFontData:wxFontData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdialog.html#wxfontdialogcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ThisT,wxFontDialog),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(DataT,wxFontData),
+ wxe_util:call(?wxFontDialog_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxFontDialog()) -> wxFontData:wxFontData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontdialog.html#wxfontdialoggetfontdata">external documentation</a>.
+getFontData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontDialog),
+ wxe_util:call(?wxFontDialog_GetFontData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFontDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxFontPickerCtrl.erl b/lib/wx/src/gen/wxFontPickerCtrl.erl
new file mode 100644
index 0000000000..fca934df49
--- /dev/null
+++ b/lib/wx/src/gen/wxFontPickerCtrl.erl
@@ -0,0 +1,563 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html">wxFontPickerCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPickerBase}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFontPickerCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFontPickerCtrl).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getMaxPointSize/1,getSelectedFont/1,new/0,
+ new/2,new/3,setMaxPointSize/2,setSelectedFont/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getInternalMargin/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPickerCtrlProportion/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextCtrl/1,getTextCtrlProportion/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTextCtrl/1,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isPickerCtrlGrowable/1,isRetained/1,
+ isShown/1,isTextCtrlGrowable/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setInternalMargin/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,
+ setPickerCtrlProportion/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,
+ setScrollbar/6,setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,
+ setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,
+ setSizerAndFit/3,setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPickerBase) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFontPickerCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlwxfontpickerctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFontPickerCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxFontPickerCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxFontPickerCtrl()
+%% Option = {initial, wxFont:wxFont()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlwxfontpickerctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({initial, #wx_ref{type=InitialT,ref=InitialRef}}, Acc) -> ?CLASS(InitialT,wxFont),[<<1:32/?UI,InitialRef:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFontPickerCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxFontPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxFontPickerCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {initial, wxFont:wxFont()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxFontPickerCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({initial, #wx_ref{type=InitialT,ref=InitialRef}}, Acc) -> ?CLASS(InitialT,wxFont),[<<1:32/?UI,InitialRef:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFontPickerCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxFontPickerCtrl()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlgetselectedfont">external documentation</a>.
+getSelectedFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontPickerCtrl),
+ wxe_util:call(?wxFontPickerCtrl_GetSelectedFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontPickerCtrl(), F::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlsetselectedfont">external documentation</a>.
+setSelectedFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FT,ref=FRef}) ->
+ ?CLASS(ThisT,wxFontPickerCtrl),
+ ?CLASS(FT,wxFont),
+ wxe_util:cast(?wxFontPickerCtrl_SetSelectedFont,
+ <<ThisRef:32/?UI,FRef:32/?UI>>).
+
+%% @spec (This::wxFontPickerCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlgetmaxpointsize">external documentation</a>.
+getMaxPointSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontPickerCtrl),
+ wxe_util:call(?wxFontPickerCtrl_GetMaxPointSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFontPickerCtrl(), Max::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerctrl.html#wxfontpickerctrlsetmaxpointsize">external documentation</a>.
+setMaxPointSize(#wx_ref{type=ThisT,ref=ThisRef},Max)
+ when is_integer(Max) ->
+ ?CLASS(ThisT,wxFontPickerCtrl),
+ wxe_util:cast(?wxFontPickerCtrl_SetMaxPointSize,
+ <<ThisRef:32/?UI,Max:32/?UI>>).
+
+%% @spec (This::wxFontPickerCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFontPickerCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPickerBase
+%% @hidden
+isPickerCtrlGrowable(This) -> wxPickerBase:isPickerCtrlGrowable(This).
+%% @hidden
+setTextCtrlGrowable(This, Options) -> wxPickerBase:setTextCtrlGrowable(This, Options).
+%% @hidden
+setTextCtrlGrowable(This) -> wxPickerBase:setTextCtrlGrowable(This).
+%% @hidden
+setPickerCtrlGrowable(This, Options) -> wxPickerBase:setPickerCtrlGrowable(This, Options).
+%% @hidden
+setPickerCtrlGrowable(This) -> wxPickerBase:setPickerCtrlGrowable(This).
+%% @hidden
+isTextCtrlGrowable(This) -> wxPickerBase:isTextCtrlGrowable(This).
+%% @hidden
+getTextCtrl(This) -> wxPickerBase:getTextCtrl(This).
+%% @hidden
+hasTextCtrl(This) -> wxPickerBase:hasTextCtrl(This).
+%% @hidden
+getPickerCtrlProportion(This) -> wxPickerBase:getPickerCtrlProportion(This).
+%% @hidden
+getTextCtrlProportion(This) -> wxPickerBase:getTextCtrlProportion(This).
+%% @hidden
+setPickerCtrlProportion(This,Prop) -> wxPickerBase:setPickerCtrlProportion(This,Prop).
+%% @hidden
+setTextCtrlProportion(This,Prop) -> wxPickerBase:setTextCtrlProportion(This,Prop).
+%% @hidden
+getInternalMargin(This) -> wxPickerBase:getInternalMargin(This).
+%% @hidden
+setInternalMargin(This,Newmargin) -> wxPickerBase:setInternalMargin(This,Newmargin).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxFontPickerEvent.erl b/lib/wx/src/gen/wxFontPickerEvent.erl
new file mode 100644
index 0000000000..28c1e0fc98
--- /dev/null
+++ b/lib/wx/src/gen/wxFontPickerEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerevent.html">wxFontPickerEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_fontpicker_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxFontPicker(). #wxFontPicker{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxFontPickerEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFontPickerEvent).
+-include("wxe.hrl").
+-export([getFont/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxFontPickerEvent()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxfontpickerevent.html#wxfontpickereventgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFontPickerEvent),
+ wxe_util:call(?wxFontPickerEvent_GetFont,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxFrame.erl b/lib/wx/src/gen/wxFrame.erl
new file mode 100644
index 0000000000..136651c001
--- /dev/null
+++ b/lib/wx/src/gen/wxFrame.erl
@@ -0,0 +1,699 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html">wxFrame</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxFrame(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxFrame).
+-include("wxe.hrl").
+-export([create/4,create/5,createStatusBar/1,createStatusBar/2,createToolBar/1,
+ createToolBar/2,destroy/1,getClientAreaOrigin/1,getMenuBar/1,getStatusBar/1,
+ getStatusBarPane/1,getToolBar/1,new/0,new/3,new/4,processCommand/2,
+ sendSizeEvent/1,setMenuBar/2,setStatusBar/2,setStatusBarPane/2,setStatusText/2,
+ setStatusText/3,setStatusWidths/2,setToolBar/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,
+ getParent/1,getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,
+ getScrollPos/2,getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,
+ getTextExtent/2,getTextExtent/3,getTitle/1,getToolTip/1,getUpdateRegion/1,
+ getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,
+ hasScrollbar/2,hasTransparentBackground/1,hide/1,iconize/1,iconize/2,
+ inheritAttributes/1,initDialog/1,invalidateBestSize/1,isActive/1,
+ isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,isIconized/1,
+ isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,
+ lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,requestUserAttention/1,
+ requestUserAttention/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,setTitle/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,showFullScreen/2,
+ showFullScreen/3,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframewxframe">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxFrame_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> wxFrame()
+%% @equiv new(Parent,Id,Title, [])
+new(Parent,Id,Title)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ new(Parent,Id,Title, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> wxFrame()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframewxframe">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxFrame_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Id,Title, [])
+create(This,Parent,Id,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ create(This,Parent,Id,Title, []).
+
+%% @spec (This::wxFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxFrame),
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFrame_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxFrame()) -> wxStatusBar:wxStatusBar()
+%% @equiv createStatusBar(This, [])
+createStatusBar(This)
+ when is_record(This, wx_ref) ->
+ createStatusBar(This, []).
+
+%% @spec (This::wxFrame(), [Option]) -> wxStatusBar:wxStatusBar()
+%% Option = {number, integer()} | {style, integer()} | {id, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframecreatestatusbar">external documentation</a>.
+createStatusBar(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxFrame),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ ({id, Id}, Acc) -> [<<3:32/?UI,Id:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFrame_CreateStatusBar,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxFrame()) -> wxToolBar:wxToolBar()
+%% @equiv createToolBar(This, [])
+createToolBar(This)
+ when is_record(This, wx_ref) ->
+ createToolBar(This, []).
+
+%% @spec (This::wxFrame(), [Option]) -> wxToolBar:wxToolBar()
+%% Option = {style, integer()} | {id, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframecreatetoolbar">external documentation</a>.
+createToolBar(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxFrame),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({id, Id}, Acc) -> [<<2:32/?UI,Id:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxFrame_CreateToolBar,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxFrame()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframegetclientareaorigin">external documentation</a>.
+getClientAreaOrigin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_GetClientAreaOrigin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> wxMenuBar:wxMenuBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframegetmenubar">external documentation</a>.
+getMenuBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_GetMenuBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> wxStatusBar:wxStatusBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframegetstatusbar">external documentation</a>.
+getStatusBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_GetStatusBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframegetstatusbarpane">external documentation</a>.
+getStatusBarPane(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_GetStatusBarPane,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> wxToolBar:wxToolBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframegettoolbar">external documentation</a>.
+getToolBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_GetToolBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame(), Winid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframeprocesscommand">external documentation</a>.
+processCommand(#wx_ref{type=ThisT,ref=ThisRef},Winid)
+ when is_integer(Winid) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:call(?wxFrame_ProcessCommand,
+ <<ThisRef:32/?UI,Winid:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesendsizeevent">external documentation</a>.
+sendSizeEvent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:cast(?wxFrame_SendSizeEvent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxFrame(), Menubar::wxMenuBar:wxMenuBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesetmenubar">external documentation</a>.
+setMenuBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenubarT,ref=MenubarRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ ?CLASS(MenubarT,wxMenuBar),
+ wxe_util:cast(?wxFrame_SetMenuBar,
+ <<ThisRef:32/?UI,MenubarRef:32/?UI>>).
+
+%% @spec (This::wxFrame(), Statbar::wxStatusBar:wxStatusBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesetstatusbar">external documentation</a>.
+setStatusBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StatbarT,ref=StatbarRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ ?CLASS(StatbarT,wxStatusBar),
+ wxe_util:cast(?wxFrame_SetStatusBar,
+ <<ThisRef:32/?UI,StatbarRef:32/?UI>>).
+
+%% @spec (This::wxFrame(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesetstatusbarpane">external documentation</a>.
+setStatusBarPane(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:cast(?wxFrame_SetStatusBarPane,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxFrame(), Text::string()) -> ok
+%% @equiv setStatusText(This,Text, [])
+setStatusText(This,Text)
+ when is_record(This, wx_ref),is_list(Text) ->
+ setStatusText(This,Text, []).
+
+%% @spec (This::wxFrame(), Text::string(), [Option]) -> ok
+%% Option = {number, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesetstatustext">external documentation</a>.
+setStatusText(#wx_ref{type=ThisT,ref=ThisRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxFrame),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxFrame_SetStatusText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxFrame(), Widths_field::[integer()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesetstatuswidths">external documentation</a>.
+setStatusWidths(#wx_ref{type=ThisT,ref=ThisRef},Widths_field)
+ when is_list(Widths_field) ->
+ ?CLASS(ThisT,wxFrame),
+ wxe_util:cast(?wxFrame_SetStatusWidths,
+ <<ThisRef:32/?UI,(length(Widths_field)):32/?UI,
+ (<< <<C:32/?I>> || C <- Widths_field>>)/binary, 0:(((0+length(Widths_field)) rem 2)*32)>>).
+
+%% @spec (This::wxFrame(), Toolbar::wxToolBar:wxToolBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxframe.html#wxframesettoolbar">external documentation</a>.
+setToolBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ToolbarT,ref=ToolbarRef}) ->
+ ?CLASS(ThisT,wxFrame),
+ ?CLASS(ToolbarT,wxToolBar),
+ wxe_util:cast(?wxFrame_SetToolBar,
+ <<ThisRef:32/?UI,ToolbarRef:32/?UI>>).
+
+%% @spec (This::wxFrame()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxFrame),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxGBSizerItem.erl b/lib/wx/src/gen/wxGBSizerItem.erl
new file mode 100644
index 0000000000..4d79e5c3db
--- /dev/null
+++ b/lib/wx/src/gen/wxGBSizerItem.erl
@@ -0,0 +1,110 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgbsizeritem.html">wxGBSizerItem</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxSizerItem}
+%% </p>
+%% @type wxGBSizerItem(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGBSizerItem).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([calcMin/1,deleteWindows/1,detachSizer/1,getBorder/1,getFlag/1,getMinSize/1,
+ getPosition/1,getProportion/1,getRatio/1,getRect/1,getSize/1,getSizer/1,
+ getSpacer/1,getUserData/1,getWindow/1,isShown/1,isSizer/1,isSpacer/1,
+ isWindow/1,parent_class/1,setBorder/2,setDimension/3,setFlag/2,setInitSize/3,
+ setMinSize/2,setMinSize/3,setProportion/2,setRatio/2,setRatio/3,setSizer/2,
+ setSpacer/2,setSpacer/3,setWindow/2,show/2]).
+
+%% @hidden
+parent_class(wxSizerItem) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxSizerItem
+%% @hidden
+show(This,Show) -> wxSizerItem:show(This,Show).
+%% @hidden
+setWindow(This,Window) -> wxSizerItem:setWindow(This,Window).
+%% @hidden
+setSpacer(This,Width,Height) -> wxSizerItem:setSpacer(This,Width,Height).
+%% @hidden
+setSpacer(This,Size) -> wxSizerItem:setSpacer(This,Size).
+%% @hidden
+setSizer(This,Sizer) -> wxSizerItem:setSizer(This,Sizer).
+%% @hidden
+setRatio(This,Width,Height) -> wxSizerItem:setRatio(This,Width,Height).
+%% @hidden
+setRatio(This,Ratio) -> wxSizerItem:setRatio(This,Ratio).
+%% @hidden
+setProportion(This,Proportion) -> wxSizerItem:setProportion(This,Proportion).
+%% @hidden
+setMinSize(This,X,Y) -> wxSizerItem:setMinSize(This,X,Y).
+%% @hidden
+setMinSize(This,Size) -> wxSizerItem:setMinSize(This,Size).
+%% @hidden
+setInitSize(This,X,Y) -> wxSizerItem:setInitSize(This,X,Y).
+%% @hidden
+setFlag(This,Flag) -> wxSizerItem:setFlag(This,Flag).
+%% @hidden
+setDimension(This,Pos,Size) -> wxSizerItem:setDimension(This,Pos,Size).
+%% @hidden
+setBorder(This,Border) -> wxSizerItem:setBorder(This,Border).
+%% @hidden
+isWindow(This) -> wxSizerItem:isWindow(This).
+%% @hidden
+isSpacer(This) -> wxSizerItem:isSpacer(This).
+%% @hidden
+isShown(This) -> wxSizerItem:isShown(This).
+%% @hidden
+isSizer(This) -> wxSizerItem:isSizer(This).
+%% @hidden
+getWindow(This) -> wxSizerItem:getWindow(This).
+%% @hidden
+getUserData(This) -> wxSizerItem:getUserData(This).
+%% @hidden
+getSpacer(This) -> wxSizerItem:getSpacer(This).
+%% @hidden
+getSizer(This) -> wxSizerItem:getSizer(This).
+%% @hidden
+getSize(This) -> wxSizerItem:getSize(This).
+%% @hidden
+getRect(This) -> wxSizerItem:getRect(This).
+%% @hidden
+getRatio(This) -> wxSizerItem:getRatio(This).
+%% @hidden
+getProportion(This) -> wxSizerItem:getProportion(This).
+%% @hidden
+getPosition(This) -> wxSizerItem:getPosition(This).
+%% @hidden
+getMinSize(This) -> wxSizerItem:getMinSize(This).
+%% @hidden
+getFlag(This) -> wxSizerItem:getFlag(This).
+%% @hidden
+getBorder(This) -> wxSizerItem:getBorder(This).
+%% @hidden
+detachSizer(This) -> wxSizerItem:detachSizer(This).
+%% @hidden
+deleteWindows(This) -> wxSizerItem:deleteWindows(This).
+%% @hidden
+calcMin(This) -> wxSizerItem:calcMin(This).
diff --git a/lib/wx/src/gen/wxGLCanvas.erl b/lib/wx/src/gen/wxGLCanvas.erl
new file mode 100644
index 0000000000..25d4ddc9f2
--- /dev/null
+++ b/lib/wx/src/gen/wxGLCanvas.erl
@@ -0,0 +1,524 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html">wxGLCanvas</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxGLCanvas(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGLCanvas).
+-include("wxe.hrl").
+-export([destroy/1,getContext/1,new/1,new/2,new/3,setCurrent/1,swapBuffers/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxGLCanvas()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(),X::term()) -> wxGLCanvas()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html#wxglcanvaswxglcanvas">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), Shared::wxGLContext:wxGLContext() | wxGLCanvas()) -> new(Parent,Shared, []) </c></p>
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), [Option]) -> wxGLCanvas() </c>
+%%<br /> Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {name, string()} | {attribList, [integer()]} | {palette, wxPalette:wxPalette()}
+%% </p>
+
+new(Parent,Shared)
+ when is_record(Parent, wx_ref),is_record(Shared, wx_ref) ->
+ new(Parent,Shared, []);
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({name, Name}, Acc) -> Name_UC = unicode:characters_to_binary([Name,0]),[<<5:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({attribList, AttribList}, Acc) -> [<<6:32/?UI,(length(AttribList)):32/?UI,
+ (<< <<C:32/?I>> || C <- AttribList>>)/binary, 0:(((0+length(AttribList)) rem 2)*32)>>|Acc];
+ ({palette, #wx_ref{type=PaletteT,ref=PaletteRef}}, Acc) -> ?CLASS(PaletteT,wxPalette),[<<7:32/?UI,PaletteRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGLCanvas_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Shared::wxGLContext:wxGLContext() | wxGLCanvas(), [Option]) -> wxGLCanvas()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {name, string()} | {attribList, [integer()]} | {palette, wxPalette:wxPalette()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html#wxglcanvaswxglcanvas">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=SharedT,ref=SharedRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ SharedOP = case ?CLASS_T(SharedT,wxGLContext) of
+ true ->
+ ?wxGLCanvas_new_3_1;
+ _ -> ?CLASS(SharedT,wxGLCanvas),
+ ?wxGLCanvas_new_3_0
+ end,
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({name, Name}, Acc) -> Name_UC = unicode:characters_to_binary([Name,0]),[<<5:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({attribList, AttribList}, Acc) -> [<<6:32/?UI,(length(AttribList)):32/?UI,
+ (<< <<C:32/?I>> || C <- AttribList>>)/binary, 0:(((0+length(AttribList)) rem 2)*32)>>|Acc];
+ ({palette, #wx_ref{type=PaletteT,ref=PaletteRef}}, Acc) -> ?CLASS(PaletteT,wxPalette),[<<7:32/?UI,PaletteRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(SharedOP,
+ <<ParentRef:32/?UI,SharedRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGLCanvas()) -> wxGLContext:wxGLContext()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html#wxglcanvasgetcontext">external documentation</a>.
+getContext(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGLCanvas),
+ wxe_util:call(?wxGLCanvas_GetContext,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGLCanvas()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html#wxglcanvassetcurrent">external documentation</a>.
+setCurrent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGLCanvas),
+ wxe_util:cast(?wxGLCanvas_SetCurrent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGLCanvas()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxglcanvas.html#wxglcanvasswapbuffers">external documentation</a>.
+swapBuffers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGLCanvas),
+ wxe_util:cast(?wxGLCanvas_SwapBuffers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGLCanvas()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGLCanvas),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxGauge.erl b/lib/wx/src/gen/wxGauge.erl
new file mode 100644
index 0000000000..3a5e117e19
--- /dev/null
+++ b/lib/wx/src/gen/wxGauge.erl
@@ -0,0 +1,571 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html">wxGauge</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxGauge(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGauge).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getBezelFace/1,getRange/1,getShadowWidth/1,
+ getValue/1,isVertical/1,new/0,new/3,new/4,pulse/1,setBezelFace/2,setRange/2,
+ setShadowWidth/2,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGauge()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugewxgauge">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGauge_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Range::integer()) -> wxGauge()
+%% @equiv new(Parent,Id,Range, [])
+new(Parent,Id,Range)
+ when is_record(Parent, wx_ref),is_integer(Id),is_integer(Range) ->
+ new(Parent,Id,Range, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Range::integer(), [Option]) -> wxGauge()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugewxgauge">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Range, Options)
+ when is_integer(Id),is_integer(Range),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGauge_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,Range:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGauge(), Parent::wxWindow:wxWindow(), Id::integer(), Range::integer()) -> bool()
+%% @equiv create(This,Parent,Id,Range, [])
+create(This,Parent,Id,Range)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_integer(Range) ->
+ create(This,Parent,Id,Range, []).
+
+%% @spec (This::wxGauge(), Parent::wxWindow:wxWindow(), Id::integer(), Range::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Range, Options)
+ when is_integer(Id),is_integer(Range),is_list(Options) ->
+ ?CLASS(ThisT,wxGauge),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGauge_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,Range:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGauge()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugegetbezelface">external documentation</a>.
+getBezelFace(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:call(?wxGauge_GetBezelFace,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugegetrange">external documentation</a>.
+getRange(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:call(?wxGauge_GetRange,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugegetshadowwidth">external documentation</a>.
+getShadowWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:call(?wxGauge_GetShadowWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugegetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:call(?wxGauge_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugeisvertical">external documentation</a>.
+isVertical(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:call(?wxGauge_IsVertical,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge(), W::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugesetbezelface">external documentation</a>.
+setBezelFace(#wx_ref{type=ThisT,ref=ThisRef},W)
+ when is_integer(W) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:cast(?wxGauge_SetBezelFace,
+ <<ThisRef:32/?UI,W:32/?UI>>).
+
+%% @spec (This::wxGauge(), R::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugesetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},R)
+ when is_integer(R) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:cast(?wxGauge_SetRange,
+ <<ThisRef:32/?UI,R:32/?UI>>).
+
+%% @spec (This::wxGauge(), W::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugesetshadowwidth">external documentation</a>.
+setShadowWidth(#wx_ref{type=ThisT,ref=ThisRef},W)
+ when is_integer(W) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:cast(?wxGauge_SetShadowWidth,
+ <<ThisRef:32/?UI,W:32/?UI>>).
+
+%% @spec (This::wxGauge(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugesetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:cast(?wxGauge_SetValue,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgauge.html#wxgaugepulse">external documentation</a>.
+pulse(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGauge),
+ wxe_util:cast(?wxGauge_Pulse,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGauge()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGauge),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxGenericDirCtrl.erl b/lib/wx/src/gen/wxGenericDirCtrl.erl
new file mode 100644
index 0000000000..4146a3bacc
--- /dev/null
+++ b/lib/wx/src/gen/wxGenericDirCtrl.erl
@@ -0,0 +1,618 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html">wxGenericDirCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxGenericDirCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGenericDirCtrl).
+-include("wxe.hrl").
+-export([collapseTree/1,create/2,create/3,destroy/1,expandPath/2,getDefaultPath/1,
+ getFilePath/1,getFilter/1,getFilterIndex/1,getPath/1,getRootId/1,getTreeCtrl/1,
+ init/1,new/0,new/1,new/2,reCreateTree/1,setDefaultPath/2,setFilter/2,
+ setFilterIndex/2,setPath/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGenericDirCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlwxgenericdirctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGenericDirCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxGenericDirCtrl()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxGenericDirCtrl()
+%% Option = {id, integer()} | {dir, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {filter, string()} | {defaultFilter, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlwxgenericdirctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({dir, Dir}, Acc) -> Dir_UC = unicode:characters_to_binary([Dir,0]),[<<2:32/?UI,(byte_size(Dir_UC)):32/?UI,(Dir_UC)/binary, 0:(((8- ((0+byte_size(Dir_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({filter, Filter}, Acc) -> Filter_UC = unicode:characters_to_binary([Filter,0]),[<<6:32/?UI,(byte_size(Filter_UC)):32/?UI,(Filter_UC)/binary, 0:(((8- ((0+byte_size(Filter_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({defaultFilter, DefaultFilter}, Acc) -> [<<7:32/?UI,DefaultFilter:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGenericDirCtrl_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGenericDirCtrl(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxGenericDirCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {dir, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {filter, string()} | {defaultFilter, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({dir, Dir}, Acc) -> Dir_UC = unicode:characters_to_binary([Dir,0]),[<<2:32/?UI,(byte_size(Dir_UC)):32/?UI,(Dir_UC)/binary, 0:(((8- ((0+byte_size(Dir_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({filter, Filter}, Acc) -> Filter_UC = unicode:characters_to_binary([Filter,0]),[<<6:32/?UI,(byte_size(Filter_UC)):32/?UI,(Filter_UC)/binary, 0:(((8- ((0+byte_size(Filter_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({defaultFilter, DefaultFilter}, Acc) -> [<<7:32/?UI,DefaultFilter:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGenericDirCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlinit">external documentation</a>.
+init(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:cast(?wxGenericDirCtrl_Init,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlcollapsetree">external documentation</a>.
+collapseTree(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:cast(?wxGenericDirCtrl_CollapseTree,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl(), Path::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlexpandpath">external documentation</a>.
+expandPath(#wx_ref{type=ThisT,ref=ThisRef},Path)
+ when is_list(Path) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ Path_UC = unicode:characters_to_binary([Path,0]),
+ wxe_util:call(?wxGenericDirCtrl_ExpandPath,
+ <<ThisRef:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetdefaultpath">external documentation</a>.
+getDefaultPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetDefaultPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetpath">external documentation</a>.
+getPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetPath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetfilepath">external documentation</a>.
+getFilePath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetFilePath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetfilter">external documentation</a>.
+getFilter(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetFilter,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetfilterindex">external documentation</a>.
+getFilterIndex(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetFilterIndex,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgetrootid">external documentation</a>.
+getRootId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetRootId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> wxTreeCtrl:wxTreeCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlgettreectrl">external documentation</a>.
+getTreeCtrl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:call(?wxGenericDirCtrl_GetTreeCtrl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlrecreatetree">external documentation</a>.
+reCreateTree(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:cast(?wxGenericDirCtrl_ReCreateTree,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl(), Path::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlsetdefaultpath">external documentation</a>.
+setDefaultPath(#wx_ref{type=ThisT,ref=ThisRef},Path)
+ when is_list(Path) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ Path_UC = unicode:characters_to_binary([Path,0]),
+ wxe_util:cast(?wxGenericDirCtrl_SetDefaultPath,
+ <<ThisRef:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGenericDirCtrl(), Filter::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlsetfilter">external documentation</a>.
+setFilter(#wx_ref{type=ThisT,ref=ThisRef},Filter)
+ when is_list(Filter) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ Filter_UC = unicode:characters_to_binary([Filter,0]),
+ wxe_util:cast(?wxGenericDirCtrl_SetFilter,
+ <<ThisRef:32/?UI,(byte_size(Filter_UC)):32/?UI,(Filter_UC)/binary, 0:(((8- ((0+byte_size(Filter_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGenericDirCtrl(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlsetfilterindex">external documentation</a>.
+setFilterIndex(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ wxe_util:cast(?wxGenericDirCtrl_SetFilterIndex,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxGenericDirCtrl(), Path::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlsetpath">external documentation</a>.
+setPath(#wx_ref{type=ThisT,ref=ThisRef},Path)
+ when is_list(Path) ->
+ ?CLASS(ThisT,wxGenericDirCtrl),
+ Path_UC = unicode:characters_to_binary([Path,0]),
+ wxe_util:cast(?wxGenericDirCtrl_SetPath,
+ <<ThisRef:32/?UI,(byte_size(Path_UC)):32/?UI,(Path_UC)/binary, 0:(((8- ((0+byte_size(Path_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGenericDirCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGenericDirCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxGraphicsBrush.erl b/lib/wx/src/gen/wxGraphicsBrush.erl
new file mode 100644
index 0000000000..c1db82dcb3
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsBrush.erl
@@ -0,0 +1,43 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsbrush.html">wxGraphicsBrush</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsBrush(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsBrush).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsContext.erl b/lib/wx/src/gen/wxGraphicsContext.erl
new file mode 100644
index 0000000000..885578657d
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsContext.erl
@@ -0,0 +1,461 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html">wxGraphicsContext</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsContext(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsContext).
+-include("wxe.hrl").
+-export([clip/2,clip/5,concatTransform/2,create/0,create/1,createBrush/2,createFont/2,
+ createFont/3,createLinearGradientBrush/7,createMatrix/1,createMatrix/2,
+ createPath/1,createPen/2,createRadialGradientBrush/8,drawBitmap/6,
+ drawEllipse/5,drawIcon/6,drawLines/3,drawLines/4,drawPath/2,drawPath/3,
+ drawRectangle/5,drawRoundedRectangle/6,drawText/4,drawText/5,drawText/6,
+ fillPath/2,fillPath/3,getNativeContext/1,getPartialTextExtents/3,
+ getTextExtent/2,getTransform/1,resetClip/1,rotate/2,scale/3,setBrush/2,
+ setFont/2,setFont/3,setPen/2,setTransform/2,strokeLine/5,strokeLines/3,
+ strokeLines/4,strokePath/2,translate/3]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGraphicsContext()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreate">external documentation</a>.
+create() ->
+ wxe_util:call(?wxGraphicsContext_Create_0,
+ <<>>).
+
+%% @spec (Dc::wxWindowDC:wxWindowDC() | wxWindow:wxWindow()) -> wxGraphicsContext()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreate">external documentation</a>.
+create(#wx_ref{type=DcT,ref=DcRef}) ->
+ DcOP = case ?CLASS_T(DcT,wxWindowDC) of
+ true ->
+ ?wxGraphicsContext_Create_1_1;
+ _ -> ?CLASS(DcT,wxWindow),
+ ?wxGraphicsContext_Create_1_0
+ end,
+ wxe_util:call(DcOP,
+ <<DcRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen()) -> wxGraphicsPen:wxGraphicsPen()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatepen">external documentation</a>.
+createPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(PenT,wxPen),
+ wxe_util:call(?wxGraphicsContext_CreatePen,
+ <<ThisRef:32/?UI,PenRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Brush::wxBrush:wxBrush()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatebrush">external documentation</a>.
+createBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(BrushT,wxBrush),
+ wxe_util:call(?wxGraphicsContext_CreateBrush,
+ <<ThisRef:32/?UI,BrushRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::wx:colour(), CColor::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreateradialgradientbrush">external documentation</a>.
+createRadialGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},Xo,Yo,Xc,Yc,Radius,OColor,CColor)
+ when is_float(Xo),is_float(Yo),is_float(Xc),is_float(Yc),is_float(Radius),tuple_size(OColor) =:= 3; tuple_size(OColor) =:= 4,tuple_size(CColor) =:= 3; tuple_size(CColor) =:= 4 ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:call(?wxGraphicsContext_CreateRadialGradientBrush,
+ <<ThisRef:32/?UI,0:32,Xo:64/?F,Yo:64/?F,Xc:64/?F,Yc:64/?F,Radius:64/?F,(wxe_util:colour_bin(OColor)):16/binary,(wxe_util:colour_bin(CColor)):16/binary>>).
+
+%% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::wx:colour(), C2::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatelineargradientbrush">external documentation</a>.
+createLinearGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2,C1,C2)
+ when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2),tuple_size(C1) =:= 3; tuple_size(C1) =:= 4,tuple_size(C2) =:= 3; tuple_size(C2) =:= 4 ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:call(?wxGraphicsContext_CreateLinearGradientBrush,
+ <<ThisRef:32/?UI,0:32,X1:64/?F,Y1:64/?F,X2:64/?F,Y2:64/?F,(wxe_util:colour_bin(C1)):16/binary,(wxe_util:colour_bin(C2)):16/binary>>).
+
+%% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont()) -> wxGraphicsFont:wxGraphicsFont()
+%% @equiv createFont(This,Font, [])
+createFont(This,Font)
+ when is_record(This, wx_ref),is_record(Font, wx_ref) ->
+ createFont(This,Font, []).
+
+%% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont(), [Option]) -> wxGraphicsFont:wxGraphicsFont()
+%% Option = {col, wx:colour()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatefont">external documentation</a>.
+createFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(FontT,wxFont),
+ MOpts = fun({col, Col}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Col)):16/binary,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsContext_CreateFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsContext()) -> wxGraphicsMatrix:wxGraphicsMatrix()
+%% @equiv createMatrix(This, [])
+createMatrix(This)
+ when is_record(This, wx_ref) ->
+ createMatrix(This, []).
+
+%% @spec (This::wxGraphicsContext(), [Option]) -> wxGraphicsMatrix:wxGraphicsMatrix()
+%% Option = {a, float()} | {b, float()} | {c, float()} | {d, float()} | {tx, float()} | {ty, float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatematrix">external documentation</a>.
+createMatrix(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ MOpts = fun({a, A}, Acc) -> [<<1:32/?UI,0:32,A:64/?F>>|Acc];
+ ({b, B}, Acc) -> [<<2:32/?UI,0:32,B:64/?F>>|Acc];
+ ({c, C}, Acc) -> [<<3:32/?UI,0:32,C:64/?F>>|Acc];
+ ({d, D}, Acc) -> [<<4:32/?UI,0:32,D:64/?F>>|Acc];
+ ({tx, Tx}, Acc) -> [<<5:32/?UI,0:32,Tx:64/?F>>|Acc];
+ ({ty, Ty}, Acc) -> [<<6:32/?UI,0:32,Ty:64/?F>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsContext_CreateMatrix,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsContext()) -> wxGraphicsPath:wxGraphicsPath()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextcreatepath">external documentation</a>.
+createPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:call(?wxGraphicsContext_CreatePath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Region::wxRegion:wxRegion()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextclip">external documentation</a>.
+clip(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:cast(?wxGraphicsContext_Clip_1,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextclip">external documentation</a>.
+clip(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_Clip_4,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsContext()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextresetclip">external documentation</a>.
+resetClip(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_ResetClip,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Bmp::wxBitmap:wxBitmap(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawbitmap">external documentation</a>.
+drawBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxGraphicsContext_DrawBitmap,
+ <<ThisRef:32/?UI,BmpRef:32/?UI,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawellipse">external documentation</a>.
+drawEllipse(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_DrawEllipse,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), Icon::wxIcon:wxIcon(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawicon">external documentation</a>.
+drawIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(IconT,wxIcon),
+ wxe_util:cast(?wxGraphicsContext_DrawIcon,
+ <<ThisRef:32/?UI,IconRef:32/?UI,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}) -> ok
+%% @equiv drawLines(This,N,Points, [])
+drawLines(This,N,Points={PointsX,PointsY})
+ when is_record(This, wx_ref),is_integer(N),is_number(PointsX),is_number(PointsY) ->
+ drawLines(This,N,Points, []).
+
+%% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}, [Option]) -> ok
+%% Option = {fillStyle, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawlines">external documentation</a>.
+drawLines(#wx_ref{type=ThisT,ref=ThisRef},N,{PointsX,PointsY}, Options)
+ when is_integer(N),is_number(PointsX),is_number(PointsY),is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGraphicsContext_DrawLines,
+ <<ThisRef:32/?UI,N:32/?UI,PointsX:64/float,PointsY:64/float, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok
+%% @equiv drawPath(This,Path, [])
+drawPath(This,Path)
+ when is_record(This, wx_ref),is_record(Path, wx_ref) ->
+ drawPath(This,Path, []).
+
+%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath(), [Option]) -> ok
+%% Option = {fillStyle, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawpath">external documentation</a>.
+drawPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(PathT,wxGraphicsPath),
+ MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGraphicsContext_DrawPath,
+ <<ThisRef:32/?UI,PathRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawrectangle">external documentation</a>.
+drawRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_DrawRectangle,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawroundedrectangle">external documentation</a>.
+drawRoundedRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H,Radius)
+ when is_float(X),is_float(Y),is_float(W),is_float(H),is_float(Radius) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_DrawRoundedRectangle,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F,Radius:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawtext">external documentation</a>.
+drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y)
+ when is_list(Str),is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxGraphicsContext_DrawText_3,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(),Str::string(),X::float(),Y::float(),X::float()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawtext">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float()) -> ok </c>
+%% </p>
+%% <p><c>
+%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok </c>
+%% </p>
+drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,Angle)
+ when is_list(Str),is_float(X),is_float(Y),is_float(Angle) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxGraphicsContext_DrawText_4_0,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8,X:64/?F,Y:64/?F,Angle:64/?F>>);
+drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,#wx_ref{type=BackgroundBrushT,ref=BackgroundBrushRef})
+ when is_list(Str),is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ ?CLASS(BackgroundBrushT,wxGraphicsBrush),
+ wxe_util:cast(?wxGraphicsContext_DrawText_4_1,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8,X:64/?F,Y:64/?F,BackgroundBrushRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextdrawtext">external documentation</a>.
+drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,Angle,#wx_ref{type=BackgroundBrushT,ref=BackgroundBrushRef})
+ when is_list(Str),is_float(X),is_float(Y),is_float(Angle) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ ?CLASS(BackgroundBrushT,wxGraphicsBrush),
+ wxe_util:cast(?wxGraphicsContext_DrawText_5,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8,X:64/?F,Y:64/?F,Angle:64/?F,BackgroundBrushRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok
+%% @equiv fillPath(This,Path, [])
+fillPath(This,Path)
+ when is_record(This, wx_ref),is_record(Path, wx_ref) ->
+ fillPath(This,Path, []).
+
+%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath(), [Option]) -> ok
+%% Option = {fillStyle, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextfillpath">external documentation</a>.
+fillPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(PathT,wxGraphicsPath),
+ MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGraphicsContext_FillPath,
+ <<ThisRef:32/?UI,PathRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextstrokepath">external documentation</a>.
+strokePath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(PathT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsContext_StrokePath,
+ <<ThisRef:32/?UI,PathRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextgetnativecontext">external documentation</a>.
+getNativeContext(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_GetNativeContext,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Text::string(), Widths::[float()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextgetpartialtextextents">external documentation</a>.
+getPartialTextExtents(#wx_ref{type=ThisT,ref=ThisRef},Text,Widths)
+ when is_list(Text),is_list(Widths) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxGraphicsContext_GetPartialTextExtents,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,(length(Widths)):32/?UI,
+0:32, (<< <<C:64/float>> || C <- Widths>>)/binary>>).
+
+%% @spec (This::wxGraphicsContext(), Text::string()) -> {Width::float(),Height::float(),Descent::float(),ExternalLeading::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextgettextextent">external documentation</a>.
+getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxGraphicsContext_GetTextExtent,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGraphicsContext(), Angle::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextrotate">external documentation</a>.
+rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle)
+ when is_float(Angle) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_Rotate,
+ <<ThisRef:32/?UI,0:32,Angle:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), XScale::float(), YScale::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextscale">external documentation</a>.
+scale(#wx_ref{type=ThisT,ref=ThisRef},XScale,YScale)
+ when is_float(XScale),is_float(YScale) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_Scale,
+ <<ThisRef:32/?UI,0:32,XScale:64/?F,YScale:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), Dx::float(), Dy::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontexttranslate">external documentation</a>.
+translate(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy)
+ when is_float(Dx),is_float(Dy) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_Translate,
+ <<ThisRef:32/?UI,0:32,Dx:64/?F,Dy:64/?F>>).
+
+%% @spec (This::wxGraphicsContext()) -> wxGraphicsMatrix:wxGraphicsMatrix()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextgettransform">external documentation</a>.
+getTransform(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:call(?wxGraphicsContext_GetTransform,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextsettransform">external documentation</a>.
+setTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(MatrixT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsContext_SetTransform,
+ <<ThisRef:32/?UI,MatrixRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextconcattransform">external documentation</a>.
+concatTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(MatrixT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsContext_ConcatTransform,
+ <<ThisRef:32/?UI,MatrixRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Brush::wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextsetbrush">external documentation</a>.
+setBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ BrushOP = case ?CLASS_T(BrushT,wxGraphicsBrush) of
+ true ->
+ ?wxGraphicsContext_SetBrush_1_1;
+ _ -> ?CLASS(BrushT,wxBrush),
+ ?wxGraphicsContext_SetBrush_1_0
+ end,
+ wxe_util:cast(BrushOP,
+ <<ThisRef:32/?UI,BrushRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Font::wxGraphicsFont:wxGraphicsFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(FontT,wxGraphicsFont),
+ wxe_util:cast(?wxGraphicsContext_SetFont_1,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxGraphicsContext_SetFont_2,
+ <<ThisRef:32/?UI,FontRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextsetpen">external documentation</a>.
+setPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ PenOP = case ?CLASS_T(PenT,wxPen) of
+ true ->
+ ?wxGraphicsContext_SetPen_1_1;
+ _ -> ?CLASS(PenT,wxGraphicsPen),
+ ?wxGraphicsContext_SetPen_1_0
+ end,
+ wxe_util:cast(PenOP,
+ <<ThisRef:32/?UI,PenRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextstrokeline">external documentation</a>.
+strokeLine(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2)
+ when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_StrokeLine,
+ <<ThisRef:32/?UI,0:32,X1:64/?F,Y1:64/?F,X2:64/?F,Y2:64/?F>>).
+
+%% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextstrokelines">external documentation</a>.
+strokeLines(#wx_ref{type=ThisT,ref=ThisRef},N,{PointsX,PointsY})
+ when is_integer(N),is_number(PointsX),is_number(PointsY) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_StrokeLines_2,
+ <<ThisRef:32/?UI,N:32/?UI,PointsX:64/float,PointsY:64/float>>).
+
+%% @spec (This::wxGraphicsContext(), N::integer(), BeginPoints::{X::float(),Y::float()}, EndPoints::{X::float(),Y::float()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicscontext.html#wxgraphicscontextstrokelines">external documentation</a>.
+strokeLines(#wx_ref{type=ThisT,ref=ThisRef},N,{BeginPointsX,BeginPointsY},{EndPointsX,EndPointsY})
+ when is_integer(N),is_number(BeginPointsX),is_number(BeginPointsY),is_number(EndPointsX),is_number(EndPointsY) ->
+ ?CLASS(ThisT,wxGraphicsContext),
+ wxe_util:cast(?wxGraphicsContext_StrokeLines_3,
+ <<ThisRef:32/?UI,N:32/?UI,BeginPointsX:64/float,BeginPointsY:64/float,EndPointsX:64/float,EndPointsY:64/float>>).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsFont.erl b/lib/wx/src/gen/wxGraphicsFont.erl
new file mode 100644
index 0000000000..07c964d9b9
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsFont.erl
@@ -0,0 +1,43 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsfont.html">wxGraphicsFont</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsFont(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsFont).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsMatrix.erl b/lib/wx/src/gen/wxGraphicsMatrix.erl
new file mode 100644
index 0000000000..b8c7b3eefb
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsMatrix.erl
@@ -0,0 +1,149 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html">wxGraphicsMatrix</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsMatrix(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsMatrix).
+-include("wxe.hrl").
+-export([concat/2,get/1,getNativeMatrix/1,invert/1,isEqual/2,isIdentity/1,rotate/2,
+ scale/3,set/1,set/2,transformDistance/1,transformPoint/1,translate/3]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGraphicsMatrix(), T::wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixconcat">external documentation</a>.
+concat(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TT,ref=TRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ ?CLASS(TT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_Concat,
+ <<ThisRef:32/?UI,TRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> {A::float(),B::float(),C::float(),D::float(),Tx::float(),Ty::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixget">external documentation</a>.
+get(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:call(?wxGraphicsMatrix_Get,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixgetnativematrix">external documentation</a>.
+getNativeMatrix(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_GetNativeMatrix,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixinvert">external documentation</a>.
+invert(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_Invert,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix(), T::wxGraphicsMatrix()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixisequal">external documentation</a>.
+isEqual(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TT,ref=TRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ ?CLASS(TT,wxGraphicsMatrix),
+ wxe_util:call(?wxGraphicsMatrix_IsEqual,
+ <<ThisRef:32/?UI,TRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixisidentity">external documentation</a>.
+isIdentity(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:call(?wxGraphicsMatrix_IsIdentity,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix(), Angle::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixrotate">external documentation</a>.
+rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle)
+ when is_float(Angle) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_Rotate,
+ <<ThisRef:32/?UI,0:32,Angle:64/?F>>).
+
+%% @spec (This::wxGraphicsMatrix(), XScale::float(), YScale::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixscale">external documentation</a>.
+scale(#wx_ref{type=ThisT,ref=ThisRef},XScale,YScale)
+ when is_float(XScale),is_float(YScale) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_Scale,
+ <<ThisRef:32/?UI,0:32,XScale:64/?F,YScale:64/?F>>).
+
+%% @spec (This::wxGraphicsMatrix(), Dx::float(), Dy::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixtranslate">external documentation</a>.
+translate(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy)
+ when is_float(Dx),is_float(Dy) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsMatrix_Translate,
+ <<ThisRef:32/?UI,0:32,Dx:64/?F,Dy:64/?F>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> ok
+%% @equiv set(This, [])
+set(This)
+ when is_record(This, wx_ref) ->
+ set(This, []).
+
+%% @spec (This::wxGraphicsMatrix(), [Option]) -> ok
+%% Option = {a, float()} | {b, float()} | {c, float()} | {d, float()} | {tx, float()} | {ty, float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixset">external documentation</a>.
+set(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ MOpts = fun({a, A}, Acc) -> [<<1:32/?UI,0:32,A:64/?F>>|Acc];
+ ({b, B}, Acc) -> [<<2:32/?UI,0:32,B:64/?F>>|Acc];
+ ({c, C}, Acc) -> [<<3:32/?UI,0:32,C:64/?F>>|Acc];
+ ({d, D}, Acc) -> [<<4:32/?UI,0:32,D:64/?F>>|Acc];
+ ({tx, Tx}, Acc) -> [<<5:32/?UI,0:32,Tx:64/?F>>|Acc];
+ ({ty, Ty}, Acc) -> [<<6:32/?UI,0:32,Ty:64/?F>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGraphicsMatrix_Set,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> {X::float(),Y::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixtransformpoint">external documentation</a>.
+transformPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:call(?wxGraphicsMatrix_TransformPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsMatrix()) -> {Dx::float(),Dy::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsmatrix.html#wxgraphicsmatrixtransformdistance">external documentation</a>.
+transformDistance(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsMatrix),
+ wxe_util:call(?wxGraphicsMatrix_TransformDistance,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsObject.erl b/lib/wx/src/gen/wxGraphicsObject.erl
new file mode 100644
index 0000000000..5b8b44ceca
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsObject.erl
@@ -0,0 +1,48 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsobject.html">wxGraphicsObject</a>.
+%% @type wxGraphicsObject(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsObject).
+-include("wxe.hrl").
+-export([getRenderer/1,isNull/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGraphicsObject()) -> wxGraphicsRenderer:wxGraphicsRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsobject.html#wxgraphicsobjectgetrenderer">external documentation</a>.
+getRenderer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsObject),
+ wxe_util:call(?wxGraphicsObject_GetRenderer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsObject()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsobject.html#wxgraphicsobjectisnull">external documentation</a>.
+isNull(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsObject),
+ wxe_util:call(?wxGraphicsObject_IsNull,
+ <<ThisRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxGraphicsPath.erl b/lib/wx/src/gen/wxGraphicsPath.erl
new file mode 100644
index 0000000000..7b27545d5f
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsPath.erl
@@ -0,0 +1,236 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html">wxGraphicsPath</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsPath(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsPath).
+-include("wxe.hrl").
+-export([addArc/6,addArc/7,addArcToPoint/6,addCircle/4,addCurveToPoint/4,addCurveToPoint/7,
+ addEllipse/5,addLineToPoint/2,addLineToPoint/3,addPath/2,addQuadCurveToPoint/5,
+ addRectangle/5,addRoundedRectangle/6,closeSubpath/1,contains/2,contains/3,
+ contains/4,getBox/1,getCurrentPoint/1,moveToPoint/2,moveToPoint/3,
+ transform/2]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGraphicsPath(), P::{X::float(),Y::float()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathmovetopoint">external documentation</a>.
+moveToPoint(#wx_ref{type=ThisT,ref=ThisRef},{PX,PY})
+ when is_number(PX),is_number(PY) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_MoveToPoint_1,
+ <<ThisRef:32/?UI,0:32,PX:64/float,PY:64/float>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathmovetopoint">external documentation</a>.
+moveToPoint(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_MoveToPoint_2,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), C::{X::float(),Y::float()}, R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddarc">external documentation</a>.
+addArc(#wx_ref{type=ThisT,ref=ThisRef},{CX,CY},R,StartAngle,EndAngle,Clockwise)
+ when is_number(CX),is_number(CY),is_float(R),is_float(StartAngle),is_float(EndAngle),is_boolean(Clockwise) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddArc_5,
+ <<ThisRef:32/?UI,0:32,CX:64/float,CY:64/float,R:64/?F,StartAngle:64/?F,EndAngle:64/?F,(wxe_util:from_bool(Clockwise)):32/?UI>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddarc">external documentation</a>.
+addArc(#wx_ref{type=ThisT,ref=ThisRef},X,Y,R,StartAngle,EndAngle,Clockwise)
+ when is_float(X),is_float(Y),is_float(R),is_float(StartAngle),is_float(EndAngle),is_boolean(Clockwise) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddArc_6,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,R:64/?F,StartAngle:64/?F,EndAngle:64/?F,(wxe_util:from_bool(Clockwise)):32/?UI>>).
+
+%% @spec (This::wxGraphicsPath(), X1::float(), Y1::float(), X2::float(), Y2::float(), R::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddarctopoint">external documentation</a>.
+addArcToPoint(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2,R)
+ when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2),is_float(R) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddArcToPoint,
+ <<ThisRef:32/?UI,0:32,X1:64/?F,Y1:64/?F,X2:64/?F,Y2:64/?F,R:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddcircle">external documentation</a>.
+addCircle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,R)
+ when is_float(X),is_float(Y),is_float(R) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddCircle,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,R:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), C1::{X::float(),Y::float()}, C2::{X::float(),Y::float()}, E::{X::float(),Y::float()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddcurvetopoint">external documentation</a>.
+addCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},{C1X,C1Y},{C2X,C2Y},{EX,EY})
+ when is_number(C1X),is_number(C1Y),is_number(C2X),is_number(C2Y),is_number(EX),is_number(EY) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddCurveToPoint_3,
+ <<ThisRef:32/?UI,0:32,C1X:64/float,C1Y:64/float,C2X:64/float,C2Y:64/float,EX:64/float,EY:64/float>>).
+
+%% @spec (This::wxGraphicsPath(), Cx1::float(), Cy1::float(), Cx2::float(), Cy2::float(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddcurvetopoint">external documentation</a>.
+addCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},Cx1,Cy1,Cx2,Cy2,X,Y)
+ when is_float(Cx1),is_float(Cy1),is_float(Cx2),is_float(Cy2),is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddCurveToPoint_6,
+ <<ThisRef:32/?UI,0:32,Cx1:64/?F,Cy1:64/?F,Cx2:64/?F,Cy2:64/?F,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddellipse">external documentation</a>.
+addEllipse(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddEllipse,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), P::{X::float(),Y::float()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddlinetopoint">external documentation</a>.
+addLineToPoint(#wx_ref{type=ThisT,ref=ThisRef},{PX,PY})
+ when is_number(PX),is_number(PY) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddLineToPoint_1,
+ <<ThisRef:32/?UI,0:32,PX:64/float,PY:64/float>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddlinetopoint">external documentation</a>.
+addLineToPoint(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddLineToPoint_2,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), Path::wxGraphicsPath()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddpath">external documentation</a>.
+addPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ ?CLASS(PathT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddPath,
+ <<ThisRef:32/?UI,PathRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsPath(), Cx::float(), Cy::float(), X::float(), Y::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddquadcurvetopoint">external documentation</a>.
+addQuadCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},Cx,Cy,X,Y)
+ when is_float(Cx),is_float(Cy),is_float(X),is_float(Y) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddQuadCurveToPoint,
+ <<ThisRef:32/?UI,0:32,Cx:64/?F,Cy:64/?F,X:64/?F,Y:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddrectangle">external documentation</a>.
+addRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_float(X),is_float(Y),is_float(W),is_float(H) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddRectangle,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathaddroundedrectangle">external documentation</a>.
+addRoundedRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H,Radius)
+ when is_float(X),is_float(Y),is_float(W),is_float(H),is_float(Radius) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_AddRoundedRectangle,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F,W:64/?F,H:64/?F,Radius:64/?F>>).
+
+%% @spec (This::wxGraphicsPath()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathclosesubpath">external documentation</a>.
+closeSubpath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:cast(?wxGraphicsPath_CloseSubpath,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsPath(), C::{X::float(),Y::float()}) -> bool()
+%% @equiv contains(This,C, [])
+contains(This,C={CX,CY})
+ when is_record(This, wx_ref),is_number(CX),is_number(CY) ->
+ contains(This,C, []).
+
+%% @spec (This::wxGraphicsPath(),X::float()|term(),X::float()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathcontains">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% contains(This::wxGraphicsPath(), X::float(), Y::float()) -> contains(This,X,Y, []) </c></p>
+%% <p><c>
+%% contains(This::wxGraphicsPath(), C::{X::float(),Y::float()}, [Option]) -> bool() </c>
+%%<br /> Option = {fillStyle, integer()}
+%% </p>
+
+contains(This,X,Y)
+ when is_record(This, wx_ref),is_float(X),is_float(Y) ->
+ contains(This,X,Y, []);
+contains(#wx_ref{type=ThisT,ref=ThisRef},{CX,CY}, Options)
+ when is_number(CX),is_number(CY),is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsPath_Contains_2,
+ <<ThisRef:32/?UI,0:32,CX:64/float,CY:64/float, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), [Option]) -> bool()
+%% Option = {fillStyle, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathcontains">external documentation</a>.
+contains(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options)
+ when is_float(X),is_float(Y),is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsPath_Contains_3,
+ <<ThisRef:32/?UI,0:32,X:64/?F,Y:64/?F, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsPath()) -> {X::float(),Y::float(),W::float(),H::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathgetbox">external documentation</a>.
+getBox(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:call(?wxGraphicsPath_GetBox,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsPath()) -> {X::float(),Y::float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathgetcurrentpoint">external documentation</a>.
+getCurrentPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ wxe_util:call(?wxGraphicsPath_GetCurrentPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsPath(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspath.html#wxgraphicspathtransform">external documentation</a>.
+transform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) ->
+ ?CLASS(ThisT,wxGraphicsPath),
+ ?CLASS(MatrixT,wxGraphicsMatrix),
+ wxe_util:cast(?wxGraphicsPath_Transform,
+ <<ThisRef:32/?UI,MatrixRef:32/?UI>>).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsPen.erl b/lib/wx/src/gen/wxGraphicsPen.erl
new file mode 100644
index 0000000000..6abf52f025
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsPen.erl
@@ -0,0 +1,43 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicspen.html">wxGraphicsPen</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGraphicsObject}
+%% </p>
+%% @type wxGraphicsPen(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsPen).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getRenderer/1,isNull/1,parent_class/1]).
+
+%% @hidden
+parent_class(wxGraphicsObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxGraphicsObject
+%% @hidden
+isNull(This) -> wxGraphicsObject:isNull(This).
+%% @hidden
+getRenderer(This) -> wxGraphicsObject:getRenderer(This).
diff --git a/lib/wx/src/gen/wxGraphicsRenderer.erl b/lib/wx/src/gen/wxGraphicsRenderer.erl
new file mode 100644
index 0000000000..457ffe2b6e
--- /dev/null
+++ b/lib/wx/src/gen/wxGraphicsRenderer.erl
@@ -0,0 +1,136 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html">wxGraphicsRenderer</a>.
+%% @type wxGraphicsRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGraphicsRenderer).
+-include("wxe.hrl").
+-export([createBrush/2,createContext/2,createFont/2,createFont/3,createLinearGradientBrush/7,
+ createMatrix/1,createMatrix/2,createPath/1,createPen/2,createRadialGradientBrush/8,
+ getDefaultRenderer/0]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGraphicsRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderergetdefaultrenderer">external documentation</a>.
+getDefaultRenderer() ->
+ wxe_util:call(?wxGraphicsRenderer_GetDefaultRenderer,
+ <<>>).
+
+%% @spec (This::wxGraphicsRenderer(), Dc::wxWindowDC:wxWindowDC() | wxWindow:wxWindow()) -> wxGraphicsContext:wxGraphicsContext()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatecontext">external documentation</a>.
+createContext(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ DcOP = case ?CLASS_T(DcT,wxWindowDC) of
+ true ->
+ ?wxGraphicsRenderer_CreateContext_1_1;
+ _ -> ?CLASS(DcT,wxWindow),
+ ?wxGraphicsRenderer_CreateContext_1_0
+ end,
+ wxe_util:call(DcOP,
+ <<ThisRef:32/?UI,DcRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsRenderer(), Pen::wxPen:wxPen()) -> wxGraphicsPen:wxGraphicsPen()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatepen">external documentation</a>.
+createPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ ?CLASS(PenT,wxPen),
+ wxe_util:call(?wxGraphicsRenderer_CreatePen,
+ <<ThisRef:32/?UI,PenRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsRenderer(), Brush::wxBrush:wxBrush()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatebrush">external documentation</a>.
+createBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ ?CLASS(BrushT,wxBrush),
+ wxe_util:call(?wxGraphicsRenderer_CreateBrush,
+ <<ThisRef:32/?UI,BrushRef:32/?UI>>).
+
+%% @spec (This::wxGraphicsRenderer(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::wx:colour(), C2::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatelineargradientbrush">external documentation</a>.
+createLinearGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2,C1,C2)
+ when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2),tuple_size(C1) =:= 3; tuple_size(C1) =:= 4,tuple_size(C2) =:= 3; tuple_size(C2) =:= 4 ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ wxe_util:call(?wxGraphicsRenderer_CreateLinearGradientBrush,
+ <<ThisRef:32/?UI,0:32,X1:64/?F,Y1:64/?F,X2:64/?F,Y2:64/?F,(wxe_util:colour_bin(C1)):16/binary,(wxe_util:colour_bin(C2)):16/binary>>).
+
+%% @spec (This::wxGraphicsRenderer(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::wx:colour(), CColor::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreateradialgradientbrush">external documentation</a>.
+createRadialGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},Xo,Yo,Xc,Yc,Radius,OColor,CColor)
+ when is_float(Xo),is_float(Yo),is_float(Xc),is_float(Yc),is_float(Radius),tuple_size(OColor) =:= 3; tuple_size(OColor) =:= 4,tuple_size(CColor) =:= 3; tuple_size(CColor) =:= 4 ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ wxe_util:call(?wxGraphicsRenderer_CreateRadialGradientBrush,
+ <<ThisRef:32/?UI,0:32,Xo:64/?F,Yo:64/?F,Xc:64/?F,Yc:64/?F,Radius:64/?F,(wxe_util:colour_bin(OColor)):16/binary,(wxe_util:colour_bin(CColor)):16/binary>>).
+
+%% @spec (This::wxGraphicsRenderer(), Font::wxFont:wxFont()) -> wxGraphicsFont:wxGraphicsFont()
+%% @equiv createFont(This,Font, [])
+createFont(This,Font)
+ when is_record(This, wx_ref),is_record(Font, wx_ref) ->
+ createFont(This,Font, []).
+
+%% @spec (This::wxGraphicsRenderer(), Font::wxFont:wxFont(), [Option]) -> wxGraphicsFont:wxGraphicsFont()
+%% Option = {col, wx:colour()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatefont">external documentation</a>.
+createFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ ?CLASS(FontT,wxFont),
+ MOpts = fun({col, Col}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Col)):16/binary,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsRenderer_CreateFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsRenderer()) -> wxGraphicsMatrix:wxGraphicsMatrix()
+%% @equiv createMatrix(This, [])
+createMatrix(This)
+ when is_record(This, wx_ref) ->
+ createMatrix(This, []).
+
+%% @spec (This::wxGraphicsRenderer(), [Option]) -> wxGraphicsMatrix:wxGraphicsMatrix()
+%% Option = {a, float()} | {b, float()} | {c, float()} | {d, float()} | {tx, float()} | {ty, float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatematrix">external documentation</a>.
+createMatrix(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ MOpts = fun({a, A}, Acc) -> [<<1:32/?UI,0:32,A:64/?F>>|Acc];
+ ({b, B}, Acc) -> [<<2:32/?UI,0:32,B:64/?F>>|Acc];
+ ({c, C}, Acc) -> [<<3:32/?UI,0:32,C:64/?F>>|Acc];
+ ({d, D}, Acc) -> [<<4:32/?UI,0:32,D:64/?F>>|Acc];
+ ({tx, Tx}, Acc) -> [<<5:32/?UI,0:32,Tx:64/?F>>|Acc];
+ ({ty, Ty}, Acc) -> [<<6:32/?UI,0:32,Ty:64/?F>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGraphicsRenderer_CreateMatrix,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGraphicsRenderer()) -> wxGraphicsPath:wxGraphicsPath()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsrenderer.html#wxgraphicsrenderercreatepath">external documentation</a>.
+createPath(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGraphicsRenderer),
+ wxe_util:call(?wxGraphicsRenderer_CreatePath,
+ <<ThisRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxGrid.erl b/lib/wx/src/gen/wxGrid.erl
new file mode 100644
index 0000000000..2a45bc3d6b
--- /dev/null
+++ b/lib/wx/src/gen/wxGrid.erl
@@ -0,0 +1,2264 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html">wxGrid</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxScrolledWindow}
+%% <br />{@link wxPanel}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxGrid(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGrid).
+-include("wxe.hrl").
+-export([appendCols/1,appendCols/2,appendRows/1,appendRows/2,autoSize/1,autoSizeColumn/2,
+ autoSizeColumn/3,autoSizeColumns/1,autoSizeColumns/2,autoSizeRow/2,
+ autoSizeRow/3,autoSizeRows/1,autoSizeRows/2,beginBatch/1,blockToDeviceRect/3,
+ canDragColSize/1,canDragGridSize/1,canDragRowSize/1,canEnableCellControl/1,
+ cellToRect/2,cellToRect/3,clearGrid/1,clearSelection/1,createGrid/3,
+ createGrid/4,deleteCols/1,deleteCols/2,deleteRows/1,deleteRows/2,destroy/1,
+ disableCellEditControl/1,disableDragColSize/1,disableDragGridSize/1,
+ disableDragRowSize/1,enableCellEditControl/1,enableCellEditControl/2,
+ enableDragColSize/1,enableDragColSize/2,enableDragGridSize/1,enableDragGridSize/2,
+ enableDragRowSize/1,enableDragRowSize/2,enableEditing/2,enableGridLines/1,
+ enableGridLines/2,endBatch/1,fit/1,forceRefresh/1,getBatchCount/1,
+ getCellAlignment/3,getCellBackgroundColour/3,getCellEditor/3,getCellFont/3,
+ getCellRenderer/3,getCellTextColour/3,getCellValue/2,getCellValue/3,
+ getColLabelAlignment/1,getColLabelSize/1,getColLabelValue/2,getColMinimalAcceptableWidth/1,
+ getDefaultCellAlignment/1,getDefaultCellBackgroundColour/1,getDefaultCellFont/1,
+ getDefaultCellTextColour/1,getDefaultColLabelSize/1,getDefaultColSize/1,
+ getDefaultEditor/1,getDefaultEditorForCell/2,getDefaultEditorForCell/3,
+ getDefaultEditorForType/2,getDefaultRenderer/1,getDefaultRendererForCell/3,
+ getDefaultRendererForType/2,getDefaultRowLabelSize/1,getDefaultRowSize/1,
+ getGridColLabelWindow/1,getGridCornerLabelWindow/1,getGridCursorCol/1,
+ getGridCursorRow/1,getGridLineColour/1,getGridRowLabelWindow/1,getGridWindow/1,
+ getLabelBackgroundColour/1,getLabelFont/1,getLabelTextColour/1,getNumberCols/1,
+ getNumberRows/1,getOrCreateCellAttr/3,getRowLabelAlignment/1,getRowLabelSize/1,
+ getRowLabelValue/2,getRowMinimalAcceptableHeight/1,getRowSize/2,
+ getScrollLineX/1,getScrollLineY/1,getSelectedCells/1,getSelectedCols/1,
+ getSelectedRows/1,getSelectionBackground/1,getSelectionBlockBottomRight/1,
+ getSelectionBlockTopLeft/1,getSelectionForeground/1,getViewWidth/1,
+ gridLinesEnabled/1,hideCellEditControl/1,insertCols/1,insertCols/2,
+ insertRows/1,insertRows/2,isCellEditControlEnabled/1,isCurrentCellReadOnly/1,
+ isEditable/1,isInSelection/2,isInSelection/3,isReadOnly/3,isSelection/1,
+ isVisible/2,isVisible/3,isVisible/4,makeCellVisible/2,makeCellVisible/3,
+ moveCursorDown/2,moveCursorDownBlock/2,moveCursorLeft/2,moveCursorLeftBlock/2,
+ moveCursorRight/2,moveCursorRightBlock/2,moveCursorUp/2,moveCursorUpBlock/2,
+ movePageDown/1,movePageUp/1,new/0,new/2,new/3,new/4,registerDataType/4,
+ saveEditControlValue/1,selectAll/1,selectBlock/3,selectBlock/4,selectBlock/5,
+ selectBlock/6,selectCol/2,selectCol/3,selectRow/2,selectRow/3,setCellAlignment/2,
+ setCellAlignment/4,setCellAlignment/5,setCellBackgroundColour/2,
+ setCellBackgroundColour/4,setCellEditor/4,setCellFont/4,setCellRenderer/4,
+ setCellTextColour/2,setCellTextColour/4,setCellValue/3,setCellValue/4,
+ setColAttr/3,setColFormatBool/2,setColFormatCustom/3,setColFormatFloat/2,
+ setColFormatFloat/3,setColFormatNumber/2,setColLabelAlignment/3,
+ setColLabelSize/2,setColLabelValue/3,setColMinimalAcceptableWidth/2,
+ setColMinimalWidth/3,setColSize/3,setDefaultCellAlignment/3,setDefaultCellBackgroundColour/2,
+ setDefaultCellFont/2,setDefaultCellTextColour/2,setDefaultColSize/2,
+ setDefaultColSize/3,setDefaultEditor/2,setDefaultRenderer/2,setDefaultRowSize/2,
+ setDefaultRowSize/3,setGridCursor/3,setGridLineColour/2,setLabelBackgroundColour/2,
+ setLabelFont/2,setLabelTextColour/2,setMargins/3,setReadOnly/3,setReadOnly/4,
+ setRowAttr/3,setRowLabelAlignment/3,setRowLabelSize/2,setRowLabelValue/3,
+ setRowMinimalAcceptableHeight/2,setRowMinimalHeight/3,setRowSize/3,
+ setScrollLineX/2,setScrollLineY/2,setSelectionBackground/2,setSelectionForeground/2,
+ setSelectionMode/2,showCellEditControl/1,xToCol/2,xToCol/3,xToEdgeOfCol/2,
+ yToEdgeOfRow/2,yToRow/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,calcScrolledPosition/2,calcScrolledPosition/3,calcUnscrolledPosition/2,
+ calcUnscrolledPosition/3,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ doPrepareDC/2,enable/1,enable/2,enableScrolling/3,findWindow/2,fitInside/1,
+ freeze/1,getAcceleratorTable/1,getBackgroundColour/1,getBackgroundStyle/1,
+ getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPixelsPerUnit/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getToolTip/1,getUpdateRegion/1,getViewStart/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,prepareDC/2,raise/1,refresh/1,refresh/2,
+ refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,
+ screenToClient/1,screenToClient/2,scroll/3,scrollLines/2,scrollPages/2,
+ scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollRate/3,setScrollbar/5,setScrollbar/6,
+ setScrollbars/5,setScrollbars/6,setSize/2,setSize/3,setSize/5,setSize/6,
+ setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,
+ setSizerAndFit/2,setSizerAndFit/3,setTargetWindow/2,setThemeEnabled/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxScrolledWindow) -> true;
+parent_class(wxPanel) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGrid()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridwxgrid">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGrid_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxGrid()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(),X::integer(),X::integer()|term()) -> wxGrid()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridwxgrid">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), X::integer(), Y::integer()) -> new(Parent,X,Y, []) </c></p>
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxGrid() </c>
+%%<br /> Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% </p>
+
+new(Parent,X,Y)
+ when is_record(Parent, wx_ref),is_integer(X),is_integer(Y) ->
+ new(Parent,X,Y, []);
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGrid_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), [Option]) -> wxGrid()
+%% Option = {w, integer()} | {h, integer()} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridwxgrid">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},X,Y, Options)
+ when is_integer(X),is_integer(Y),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({w, W}, Acc) -> [<<1:32/?UI,W:32/?UI>>|Acc];
+ ({h, H}, Acc) -> [<<2:32/?UI,H:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGrid_new_4,
+ <<ParentRef:32/?UI,X:32/?UI,Y:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv appendCols(This, [])
+appendCols(This)
+ when is_record(This, wx_ref) ->
+ appendCols(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {numCols, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridappendcols">external documentation</a>.
+appendCols(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({numCols, NumCols}, Acc) -> [<<1:32/?UI,NumCols:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_AppendCols,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv appendRows(This, [])
+appendRows(This)
+ when is_record(This, wx_ref) ->
+ appendRows(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {numRows, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridappendrows">external documentation</a>.
+appendRows(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({numRows, NumRows}, Acc) -> [<<1:32/?UI,NumRows:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_AppendRows,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridautosize">external documentation</a>.
+autoSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_AutoSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> ok
+%% @equiv autoSizeColumn(This,Col, [])
+autoSizeColumn(This,Col)
+ when is_record(This, wx_ref),is_integer(Col) ->
+ autoSizeColumn(This,Col, []).
+
+%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok
+%% Option = {setAsMin, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridautosizecolumn">external documentation</a>.
+autoSizeColumn(#wx_ref{type=ThisT,ref=ThisRef},Col, Options)
+ when is_integer(Col),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({setAsMin, SetAsMin}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(SetAsMin)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_AutoSizeColumn,
+ <<ThisRef:32/?UI,Col:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv autoSizeColumns(This, [])
+autoSizeColumns(This)
+ when is_record(This, wx_ref) ->
+ autoSizeColumns(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {setAsMin, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridautosizecolumns">external documentation</a>.
+autoSizeColumns(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({setAsMin, SetAsMin}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(SetAsMin)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_AutoSizeColumns,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Row::integer()) -> ok
+%% @equiv autoSizeRow(This,Row, [])
+autoSizeRow(This,Row)
+ when is_record(This, wx_ref),is_integer(Row) ->
+ autoSizeRow(This,Row, []).
+
+%% @spec (This::wxGrid(), Row::integer(), [Option]) -> ok
+%% Option = {setAsMin, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridautosizerow">external documentation</a>.
+autoSizeRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options)
+ when is_integer(Row),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({setAsMin, SetAsMin}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(SetAsMin)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_AutoSizeRow,
+ <<ThisRef:32/?UI,Row:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv autoSizeRows(This, [])
+autoSizeRows(This)
+ when is_record(This, wx_ref) ->
+ autoSizeRows(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {setAsMin, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridautosizerows">external documentation</a>.
+autoSizeRows(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({setAsMin, SetAsMin}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(SetAsMin)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_AutoSizeRows,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridbeginbatch">external documentation</a>.
+beginBatch(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_BeginBatch,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), TopLeft::{R::integer(),C::integer()}, BottomRight::{R::integer(),C::integer()}) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridblocktodevicerect">external documentation</a>.
+blockToDeviceRect(#wx_ref{type=ThisT,ref=ThisRef},{TopLeftR,TopLeftC},{BottomRightR,BottomRightC})
+ when is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_BlockToDeviceRect,
+ <<ThisRef:32/?UI,TopLeftR:32/?UI,TopLeftC:32/?UI,BottomRightR:32/?UI,BottomRightC:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcandragcolsize">external documentation</a>.
+canDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CanDragColSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcandragrowsize">external documentation</a>.
+canDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CanDragRowSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcandraggridsize">external documentation</a>.
+canDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CanDragGridSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcanenablecellcontrol">external documentation</a>.
+canEnableCellControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CanEnableCellControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcelltorect">external documentation</a>.
+cellToRect(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC})
+ when is_integer(CoordsR),is_integer(CoordsC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CellToRect_1,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcelltorect">external documentation</a>.
+cellToRect(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_CellToRect_2,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcleargrid">external documentation</a>.
+clearGrid(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_ClearGrid,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridclearselection">external documentation</a>.
+clearSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_ClearSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), NumRows::integer(), NumCols::integer()) -> bool()
+%% @equiv createGrid(This,NumRows,NumCols, [])
+createGrid(This,NumRows,NumCols)
+ when is_record(This, wx_ref),is_integer(NumRows),is_integer(NumCols) ->
+ createGrid(This,NumRows,NumCols, []).
+
+%% @spec (This::wxGrid(), NumRows::integer(), NumCols::integer(), [Option]) -> bool()
+%% Option = {selmode, WxGridSelectionModes}
+%% WxGridSelectionModes = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridcreategrid">external documentation</a>.
+%%<br /> WxGridSelectionModes is one of ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns
+createGrid(#wx_ref{type=ThisT,ref=ThisRef},NumRows,NumCols, Options)
+ when is_integer(NumRows),is_integer(NumCols),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({selmode, Selmode}, Acc) -> [<<1:32/?UI,Selmode:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_CreateGrid,
+ <<ThisRef:32/?UI,NumRows:32/?UI,NumCols:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv deleteCols(This, [])
+deleteCols(This)
+ when is_record(This, wx_ref) ->
+ deleteCols(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {pos, integer()} | {numCols, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddeletecols">external documentation</a>.
+deleteCols(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({pos, Pos}, Acc) -> [<<1:32/?UI,Pos:32/?UI>>|Acc];
+ ({numCols, NumCols}, Acc) -> [<<2:32/?UI,NumCols:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<3:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_DeleteCols,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv deleteRows(This, [])
+deleteRows(This)
+ when is_record(This, wx_ref) ->
+ deleteRows(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {pos, integer()} | {numRows, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddeleterows">external documentation</a>.
+deleteRows(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({pos, Pos}, Acc) -> [<<1:32/?UI,Pos:32/?UI>>|Acc];
+ ({numRows, NumRows}, Acc) -> [<<2:32/?UI,NumRows:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<3:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_DeleteRows,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddisablecelleditcontrol">external documentation</a>.
+disableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_DisableCellEditControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddisabledragcolsize">external documentation</a>.
+disableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_DisableDragColSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddisabledraggridsize">external documentation</a>.
+disableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_DisableDragGridSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgriddisabledragrowsize">external documentation</a>.
+disableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_DisableDragRowSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv enableCellEditControl(This, [])
+enableCellEditControl(This)
+ when is_record(This, wx_ref) ->
+ enableCellEditControl(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenablecelleditcontrol">external documentation</a>.
+enableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_EnableCellEditControl,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv enableDragColSize(This, [])
+enableDragColSize(This)
+ when is_record(This, wx_ref) ->
+ enableDragColSize(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenabledragcolsize">external documentation</a>.
+enableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_EnableDragColSize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv enableDragGridSize(This, [])
+enableDragGridSize(This)
+ when is_record(This, wx_ref) ->
+ enableDragGridSize(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenabledraggridsize">external documentation</a>.
+enableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_EnableDragGridSize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv enableDragRowSize(This, [])
+enableDragRowSize(This)
+ when is_record(This, wx_ref) ->
+ enableDragRowSize(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenabledragrowsize">external documentation</a>.
+enableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_EnableDragRowSize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Edit::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenableediting">external documentation</a>.
+enableEditing(#wx_ref{type=ThisT,ref=ThisRef},Edit)
+ when is_boolean(Edit) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_EnableEditing,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Edit)):32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @equiv enableGridLines(This, [])
+enableGridLines(This)
+ when is_record(This, wx_ref) ->
+ enableGridLines(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridenablegridlines">external documentation</a>.
+enableGridLines(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_EnableGridLines,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridendbatch">external documentation</a>.
+endBatch(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_EndBatch,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridfit">external documentation</a>.
+fit(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_Fit,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridforcerefresh">external documentation</a>.
+forceRefresh(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_ForceRefresh,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetbatchcount">external documentation</a>.
+getBatchCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetBatchCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {Horiz::integer(),Vert::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellalignment">external documentation</a>.
+getCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellAlignment,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellbackgroundcolour">external documentation</a>.
+getCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellBackgroundColour,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcelleditor">external documentation</a>.
+getCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellEditor,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellfont">external documentation</a>.
+getCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellFont,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellrenderer">external documentation</a>.
+getCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellRenderer,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcelltextcolour">external documentation</a>.
+getCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellTextColour,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellvalue">external documentation</a>.
+getCellValue(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC})
+ when is_integer(CoordsR),is_integer(CoordsC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellValue_1,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcellvalue">external documentation</a>.
+getCellValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetCellValue_2,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcollabelalignment">external documentation</a>.
+getColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetColLabelAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcollabelsize">external documentation</a>.
+getColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetColLabelSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcollabelvalue">external documentation</a>.
+getColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetColLabelValue,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetcolminimalacceptablewidth">external documentation</a>.
+getColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetColMinimalAcceptableWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcellalignment">external documentation</a>.
+getDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultCellAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcellbackgroundcolour">external documentation</a>.
+getDefaultCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultCellBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcellfont">external documentation</a>.
+getDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultCellFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcelltextcolour">external documentation</a>.
+getDefaultCellTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultCellTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcollabelsize">external documentation</a>.
+getDefaultColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultColLabelSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultcolsize">external documentation</a>.
+getDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultColSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaulteditor">external documentation</a>.
+getDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultEditor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), C::{R::integer(),C::integer()}) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaulteditorforcell">external documentation</a>.
+getDefaultEditorForCell(#wx_ref{type=ThisT,ref=ThisRef},{CR,CC})
+ when is_integer(CR),is_integer(CC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultEditorForCell_1,
+ <<ThisRef:32/?UI,CR:32/?UI,CC:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaulteditorforcell">external documentation</a>.
+getDefaultEditorForCell(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultEditorForCell_2,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaulteditorfortype">external documentation</a>.
+getDefaultEditorForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName)
+ when is_list(TypeName) ->
+ ?CLASS(ThisT,wxGrid),
+ TypeName_UC = unicode:characters_to_binary([TypeName,0]),
+ wxe_util:call(?wxGrid_GetDefaultEditorForType,
+ <<ThisRef:32/?UI,(byte_size(TypeName_UC)):32/?UI,(TypeName_UC)/binary, 0:(((8- ((0+byte_size(TypeName_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid()) -> wxGridCellRenderer:wxGridCellRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultrenderer">external documentation</a>.
+getDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultRenderer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultrendererforcell">external documentation</a>.
+getDefaultRendererForCell(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultRendererForCell,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellRenderer:wxGridCellRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultrendererfortype">external documentation</a>.
+getDefaultRendererForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName)
+ when is_list(TypeName) ->
+ ?CLASS(ThisT,wxGrid),
+ TypeName_UC = unicode:characters_to_binary([TypeName,0]),
+ wxe_util:call(?wxGrid_GetDefaultRendererForType,
+ <<ThisRef:32/?UI,(byte_size(TypeName_UC)):32/?UI,(TypeName_UC)/binary, 0:(((8- ((0+byte_size(TypeName_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultrowlabelsize">external documentation</a>.
+getDefaultRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultRowLabelSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetdefaultrowsize">external documentation</a>.
+getDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetDefaultRowSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridcursorcol">external documentation</a>.
+getGridCursorCol(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridCursorCol,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridcursorrow">external documentation</a>.
+getGridCursorRow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridCursorRow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridlinecolour">external documentation</a>.
+getGridLineColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridLineColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgridlinesenabled">external documentation</a>.
+gridLinesEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GridLinesEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetlabelbackgroundcolour">external documentation</a>.
+getLabelBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetLabelBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetlabelfont">external documentation</a>.
+getLabelFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetLabelFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetlabeltextcolour">external documentation</a>.
+getLabelTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetLabelTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetnumbercols">external documentation</a>.
+getNumberCols(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetNumberCols,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetnumberrows">external documentation</a>.
+getNumberRows(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetNumberRows,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellAttr:wxGridCellAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetorcreatecellattr">external documentation</a>.
+getOrCreateCellAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetOrCreateCellAttr,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetrowminimalacceptableheight">external documentation</a>.
+getRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetRowMinimalAcceptableHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetrowlabelalignment">external documentation</a>.
+getRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetRowLabelAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetrowlabelsize">external documentation</a>.
+getRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetRowLabelSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetrowlabelvalue">external documentation</a>.
+getRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row)
+ when is_integer(Row) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetRowLabelValue,
+ <<ThisRef:32/?UI,Row:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetrowsize">external documentation</a>.
+getRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row)
+ when is_integer(Row) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetRowSize,
+ <<ThisRef:32/?UI,Row:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetscrolllinex">external documentation</a>.
+getScrollLineX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetScrollLineX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetscrollliney">external documentation</a>.
+getScrollLineY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetScrollLineY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectedcells">external documentation</a>.
+getSelectedCells(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectedCells,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> [integer()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectedcols">external documentation</a>.
+getSelectedCols(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectedCols,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> [integer()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectedrows">external documentation</a>.
+getSelectedRows(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectedRows,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectionbackground">external documentation</a>.
+getSelectionBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectionBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectionblocktopleft">external documentation</a>.
+getSelectionBlockTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectionBlockTopLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectionblockbottomright">external documentation</a>.
+getSelectionBlockBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectionBlockBottomRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetselectionforeground">external documentation</a>.
+getSelectionForeground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetSelectionForeground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetviewwidth">external documentation</a>.
+getViewWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetViewWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridwindow">external documentation</a>.
+getGridWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridrowlabelwindow">external documentation</a>.
+getGridRowLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridRowLabelWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridcollabelwindow">external documentation</a>.
+getGridColLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridColLabelWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridgetgridcornerlabelwindow">external documentation</a>.
+getGridCornerLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_GetGridCornerLabelWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridhidecelleditcontrol">external documentation</a>.
+hideCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_HideCellEditControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv insertCols(This, [])
+insertCols(This)
+ when is_record(This, wx_ref) ->
+ insertCols(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {pos, integer()} | {numCols, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridinsertcols">external documentation</a>.
+insertCols(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({pos, Pos}, Acc) -> [<<1:32/?UI,Pos:32/?UI>>|Acc];
+ ({numCols, NumCols}, Acc) -> [<<2:32/?UI,NumCols:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<3:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_InsertCols,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @equiv insertRows(This, [])
+insertRows(This)
+ when is_record(This, wx_ref) ->
+ insertRows(This, []).
+
+%% @spec (This::wxGrid(), [Option]) -> bool()
+%% Option = {pos, integer()} | {numRows, integer()} | {updateLabels, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridinsertrows">external documentation</a>.
+insertRows(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({pos, Pos}, Acc) -> [<<1:32/?UI,Pos:32/?UI>>|Acc];
+ ({numRows, NumRows}, Acc) -> [<<2:32/?UI,NumRows:32/?UI>>|Acc];
+ ({updateLabels, UpdateLabels}, Acc) -> [<<3:32/?UI,(wxe_util:from_bool(UpdateLabels)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_InsertRows,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridiscelleditcontrolenabled">external documentation</a>.
+isCellEditControlEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsCellEditControlEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridiscurrentcellreadonly">external documentation</a>.
+isCurrentCellReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsCurrentCellReadOnly,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridiseditable">external documentation</a>.
+isEditable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsEditable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisinselection">external documentation</a>.
+isInSelection(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC})
+ when is_integer(CoordsR),is_integer(CoordsC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsInSelection_1,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisinselection">external documentation</a>.
+isInSelection(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsInSelection_2,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisreadonly">external documentation</a>.
+isReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsReadOnly,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisselection">external documentation</a>.
+isSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_IsSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> bool()
+%% @equiv isVisible(This,Coords, [])
+isVisible(This,Coords={CoordsR,CoordsC})
+ when is_record(This, wx_ref),is_integer(CoordsR),is_integer(CoordsC) ->
+ isVisible(This,Coords, []).
+
+%% @spec (This::wxGrid(),X::integer()|term(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisvisible">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% isVisible(This::wxGrid(), Row::integer(), Col::integer()) -> isVisible(This,Row,Col, []) </c></p>
+%% <p><c>
+%% isVisible(This::wxGrid(), Coords::{R::integer(),C::integer()}, [Option]) -> bool() </c>
+%%<br /> Option = {wholeCellVisible, bool()}
+%% </p>
+
+isVisible(This,Row,Col)
+ when is_record(This, wx_ref),is_integer(Row),is_integer(Col) ->
+ isVisible(This,Row,Col, []);
+isVisible(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}, Options)
+ when is_integer(CoordsR),is_integer(CoordsC),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({wholeCellVisible, WholeCellVisible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(WholeCellVisible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_IsVisible_2,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), [Option]) -> bool()
+%% Option = {wholeCellVisible, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridisvisible">external documentation</a>.
+isVisible(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options)
+ when is_integer(Row),is_integer(Col),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({wholeCellVisible, WholeCellVisible}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(WholeCellVisible)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_IsVisible_3,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmakecellvisible">external documentation</a>.
+makeCellVisible(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC})
+ when is_integer(CoordsR),is_integer(CoordsC) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_MakeCellVisible_1,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmakecellvisible">external documentation</a>.
+makeCellVisible(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_MakeCellVisible_2,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursordown">external documentation</a>.
+moveCursorDown(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorDown,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorleft">external documentation</a>.
+moveCursorLeft(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorLeft,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorright">external documentation</a>.
+moveCursorRight(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorRight,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorup">external documentation</a>.
+moveCursorUp(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorUp,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursordownblock">external documentation</a>.
+moveCursorDownBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorDownBlock,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorleftblock">external documentation</a>.
+moveCursorLeftBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorLeftBlock,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorrightblock">external documentation</a>.
+moveCursorRightBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorRightBlock,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovecursorupblock">external documentation</a>.
+moveCursorUpBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection)
+ when is_boolean(ExpandSelection) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MoveCursorUpBlock,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ExpandSelection)):32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovepagedown">external documentation</a>.
+movePageDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MovePageDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridmovepageup">external documentation</a>.
+movePageUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_MovePageUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), TypeName::string(), Renderer::wxGridCellRenderer:wxGridCellRenderer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridregisterdatatype">external documentation</a>.
+registerDataType(#wx_ref{type=ThisT,ref=ThisRef},TypeName,#wx_ref{type=RendererT,ref=RendererRef},#wx_ref{type=EditorT,ref=EditorRef})
+ when is_list(TypeName) ->
+ ?CLASS(ThisT,wxGrid),
+ TypeName_UC = unicode:characters_to_binary([TypeName,0]),
+ ?CLASS(RendererT,wxGridCellRenderer),
+ ?CLASS(EditorT,wxGridCellEditor),
+ wxe_util:cast(?wxGrid_RegisterDataType,
+ <<ThisRef:32/?UI,(byte_size(TypeName_UC)):32/?UI,(TypeName_UC)/binary, 0:(((8- ((0+byte_size(TypeName_UC)) band 16#7)) band 16#7))/unit:8,RendererRef:32/?UI,EditorRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsaveeditcontrolvalue">external documentation</a>.
+saveEditControlValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SaveEditControlValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridselectall">external documentation</a>.
+selectAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SelectAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), TopLeft::{R::integer(),C::integer()}, BottomRight::{R::integer(),C::integer()}) -> ok
+%% @equiv selectBlock(This,TopLeft,BottomRight, [])
+selectBlock(This,TopLeft={TopLeftR,TopLeftC},BottomRight={BottomRightR,BottomRightC})
+ when is_record(This, wx_ref),is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC) ->
+ selectBlock(This,TopLeft,BottomRight, []).
+
+%% @spec (This::wxGrid(), TopLeft::{R::integer(),C::integer()}, BottomRight::{R::integer(),C::integer()}, [Option]) -> ok
+%% Option = {addToSelected, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridselectblock">external documentation</a>.
+selectBlock(#wx_ref{type=ThisT,ref=ThisRef},{TopLeftR,TopLeftC},{BottomRightR,BottomRightC}, Options)
+ when is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({addToSelected, AddToSelected}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(AddToSelected)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SelectBlock_3,
+ <<ThisRef:32/?UI,TopLeftR:32/?UI,TopLeftC:32/?UI,BottomRightR:32/?UI,BottomRightC:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer()) -> ok
+%% @equiv selectBlock(This,TopRow,LeftCol,BottomRow,RightCol, [])
+selectBlock(This,TopRow,LeftCol,BottomRow,RightCol)
+ when is_record(This, wx_ref),is_integer(TopRow),is_integer(LeftCol),is_integer(BottomRow),is_integer(RightCol) ->
+ selectBlock(This,TopRow,LeftCol,BottomRow,RightCol, []).
+
+%% @spec (This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer(), [Option]) -> ok
+%% Option = {addToSelected, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridselectblock">external documentation</a>.
+selectBlock(#wx_ref{type=ThisT,ref=ThisRef},TopRow,LeftCol,BottomRow,RightCol, Options)
+ when is_integer(TopRow),is_integer(LeftCol),is_integer(BottomRow),is_integer(RightCol),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({addToSelected, AddToSelected}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(AddToSelected)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SelectBlock_5,
+ <<ThisRef:32/?UI,TopRow:32/?UI,LeftCol:32/?UI,BottomRow:32/?UI,RightCol:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> ok
+%% @equiv selectCol(This,Col, [])
+selectCol(This,Col)
+ when is_record(This, wx_ref),is_integer(Col) ->
+ selectCol(This,Col, []).
+
+%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok
+%% Option = {addToSelected, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridselectcol">external documentation</a>.
+selectCol(#wx_ref{type=ThisT,ref=ThisRef},Col, Options)
+ when is_integer(Col),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({addToSelected, AddToSelected}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(AddToSelected)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SelectCol,
+ <<ThisRef:32/?UI,Col:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Row::integer()) -> ok
+%% @equiv selectRow(This,Row, [])
+selectRow(This,Row)
+ when is_record(This, wx_ref),is_integer(Row) ->
+ selectRow(This,Row, []).
+
+%% @spec (This::wxGrid(), Row::integer(), [Option]) -> ok
+%% Option = {addToSelected, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridselectrow">external documentation</a>.
+selectRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options)
+ when is_integer(Row),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({addToSelected, AddToSelected}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(AddToSelected)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SelectRow,
+ <<ThisRef:32/?UI,Row:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Align::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellalignment">external documentation</a>.
+setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align)
+ when is_integer(Align) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellAlignment_1,
+ <<ThisRef:32/?UI,Align:32/?UI>>).
+
+%% @spec (This::wxGrid(), Align::integer(), Row::integer(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellalignment">external documentation</a>.
+setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align,Row,Col)
+ when is_integer(Align),is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellAlignment_3,
+ <<ThisRef:32/?UI,Align:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Horiz::integer(), Vert::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellalignment">external documentation</a>.
+setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Horiz,Vert)
+ when is_integer(Row),is_integer(Col),is_integer(Horiz),is_integer(Vert) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellAlignment_4,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,Horiz:32/?UI,Vert:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellbackgroundcolour">external documentation</a>.
+setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellBackgroundColour_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellbackgroundcolour">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setCellBackgroundColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setCellBackgroundColour(This::wxGrid(), Colour::wx:colour(), Row::integer(), Col::integer()) -> ok </c>
+%% </p>
+setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Val)
+ when is_integer(Row),is_integer(Col),tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellBackgroundColour_3_0,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>);
+setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour,Row,Col)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4,is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellBackgroundColour_3_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcelleditor">external documentation</a>.
+setCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=EditorT,ref=EditorRef})
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(EditorT,wxGridCellEditor),
+ wxe_util:cast(?wxGrid_SetCellEditor,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,EditorRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Val::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellfont">external documentation</a>.
+setCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=ValT,ref=ValRef})
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(ValT,wxFont),
+ wxe_util:cast(?wxGrid_SetCellFont,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,ValRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellrenderer">external documentation</a>.
+setCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=RendererT,ref=RendererRef})
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(RendererT,wxGridCellRenderer),
+ wxe_util:cast(?wxGrid_SetCellRenderer,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,RendererRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcelltextcolour">external documentation</a>.
+setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellTextColour_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcelltextcolour">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setCellTextColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setCellTextColour(This::wxGrid(), Val::wx:colour(), Row::integer(), Col::integer()) -> ok </c>
+%% </p>
+setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Val)
+ when is_integer(Row),is_integer(Col),tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellTextColour_3_0,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>);
+setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val,Row,Col)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4,is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetCellTextColour_3_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}, S::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellvalue">external documentation</a>.
+setCellValue(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC},S)
+ when is_integer(CoordsR),is_integer(CoordsC),is_list(S) ->
+ ?CLASS(ThisT,wxGrid),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxGrid_SetCellValue_2,
+ <<ThisRef:32/?UI,CoordsR:32/?UI,CoordsC:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid(),X::integer()|string(),X::integer(),X::string()|integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcellvalue">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setCellValue(This::wxGrid(), Row::integer(), Col::integer(), S::string()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setCellValue(This::wxGrid(), Val::string(), Row::integer(), Col::integer()) -> ok </c>
+%% </p>
+setCellValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,S)
+ when is_integer(Row),is_integer(Col),is_list(S) ->
+ ?CLASS(ThisT,wxGrid),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxGrid_SetCellValue_3_0,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>);
+setCellValue(#wx_ref{type=ThisT,ref=ThisRef},Val,Row,Col)
+ when is_list(Val),is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ Val_UC = unicode:characters_to_binary([Val,0]),
+ wxe_util:cast(?wxGrid_SetCellValue_3_1,
+ <<ThisRef:32/?UI,(byte_size(Val_UC)):32/?UI,(Val_UC)/binary, 0:(((8- ((0+byte_size(Val_UC)) band 16#7)) band 16#7))/unit:8,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolattr">external documentation</a>.
+setColAttr(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=AttrT,ref=AttrRef})
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(AttrT,wxGridCellAttr),
+ wxe_util:cast(?wxGrid_SetColAttr,
+ <<ThisRef:32/?UI,Col:32/?UI,AttrRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolformatbool">external documentation</a>.
+setColFormatBool(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColFormatBool,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolformatnumber">external documentation</a>.
+setColFormatNumber(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColFormatNumber,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer()) -> ok
+%% @equiv setColFormatFloat(This,Col, [])
+setColFormatFloat(This,Col)
+ when is_record(This, wx_ref),is_integer(Col) ->
+ setColFormatFloat(This,Col, []).
+
+%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok
+%% Option = {width, integer()} | {precision, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolformatfloat">external documentation</a>.
+setColFormatFloat(#wx_ref{type=ThisT,ref=ThisRef},Col, Options)
+ when is_integer(Col),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({width, Width}, Acc) -> [<<1:32/?UI,Width:32/?UI>>|Acc];
+ ({precision, Precision}, Acc) -> [<<2:32/?UI,Precision:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SetColFormatFloat,
+ <<ThisRef:32/?UI,Col:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Col::integer(), TypeName::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolformatcustom">external documentation</a>.
+setColFormatCustom(#wx_ref{type=ThisT,ref=ThisRef},Col,TypeName)
+ when is_integer(Col),is_list(TypeName) ->
+ ?CLASS(ThisT,wxGrid),
+ TypeName_UC = unicode:characters_to_binary([TypeName,0]),
+ wxe_util:cast(?wxGrid_SetColFormatCustom,
+ <<ThisRef:32/?UI,Col:32/?UI,(byte_size(TypeName_UC)):32/?UI,(TypeName_UC)/binary, 0:(((8- ((4+byte_size(TypeName_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcollabelalignment">external documentation</a>.
+setColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert)
+ when is_integer(Horiz),is_integer(Vert) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColLabelAlignment,
+ <<ThisRef:32/?UI,Horiz:32/?UI,Vert:32/?UI>>).
+
+%% @spec (This::wxGrid(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcollabelsize">external documentation</a>.
+setColLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Height)
+ when is_integer(Height) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColLabelSize,
+ <<ThisRef:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer(), Val::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcollabelvalue">external documentation</a>.
+setColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col,Val)
+ when is_integer(Col),is_list(Val) ->
+ ?CLASS(ThisT,wxGrid),
+ Val_UC = unicode:characters_to_binary([Val,0]),
+ wxe_util:cast(?wxGrid_SetColLabelValue,
+ <<ThisRef:32/?UI,Col:32/?UI,(byte_size(Val_UC)):32/?UI,(Val_UC)/binary, 0:(((8- ((4+byte_size(Val_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolminimalwidth">external documentation</a>.
+setColMinimalWidth(#wx_ref{type=ThisT,ref=ThisRef},Col,Width)
+ when is_integer(Col),is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColMinimalWidth,
+ <<ThisRef:32/?UI,Col:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolminimalacceptablewidth">external documentation</a>.
+setColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColMinimalAcceptableWidth,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetcolsize">external documentation</a>.
+setColSize(#wx_ref{type=ThisT,ref=ThisRef},Col,Width)
+ when is_integer(Col),is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetColSize,
+ <<ThisRef:32/?UI,Col:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultcellalignment">external documentation</a>.
+setDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert)
+ when is_integer(Horiz),is_integer(Vert) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetDefaultCellAlignment,
+ <<ThisRef:32/?UI,Horiz:32/?UI,Vert:32/?UI>>).
+
+%% @spec (This::wxGrid(), Val::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultcellbackgroundcolour">external documentation</a>.
+setDefaultCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetDefaultCellBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>).
+
+%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultcellfont">external documentation</a>.
+setDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(ValT,wxFont),
+ wxe_util:cast(?wxGrid_SetDefaultCellFont,
+ <<ThisRef:32/?UI,ValRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Val::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultcelltextcolour">external documentation</a>.
+setDefaultCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetDefaultCellTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>).
+
+%% @spec (This::wxGrid(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaulteditor">external documentation</a>.
+setDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(EditorT,wxGridCellEditor),
+ wxe_util:cast(?wxGrid_SetDefaultEditor,
+ <<ThisRef:32/?UI,EditorRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultrenderer">external documentation</a>.
+setDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(RendererT,wxGridCellRenderer),
+ wxe_util:cast(?wxGrid_SetDefaultRenderer,
+ <<ThisRef:32/?UI,RendererRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Width::integer()) -> ok
+%% @equiv setDefaultColSize(This,Width, [])
+setDefaultColSize(This,Width)
+ when is_record(This, wx_ref),is_integer(Width) ->
+ setDefaultColSize(This,Width, []).
+
+%% @spec (This::wxGrid(), Width::integer(), [Option]) -> ok
+%% Option = {resizeExistingCols, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultcolsize">external documentation</a>.
+setDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef},Width, Options)
+ when is_integer(Width),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({resizeExistingCols, ResizeExistingCols}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(ResizeExistingCols)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SetDefaultColSize,
+ <<ThisRef:32/?UI,Width:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Height::integer()) -> ok
+%% @equiv setDefaultRowSize(This,Height, [])
+setDefaultRowSize(This,Height)
+ when is_record(This, wx_ref),is_integer(Height) ->
+ setDefaultRowSize(This,Height, []).
+
+%% @spec (This::wxGrid(), Height::integer(), [Option]) -> ok
+%% Option = {resizeExistingRows, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetdefaultrowsize">external documentation</a>.
+setDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef},Height, Options)
+ when is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({resizeExistingRows, ResizeExistingRows}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(ResizeExistingRows)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SetDefaultRowSize,
+ <<ThisRef:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetgridcursor">external documentation</a>.
+setGridCursor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetGridCursor,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGrid(), Val::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetgridlinecolour">external documentation</a>.
+setGridLineColour(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetGridLineColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>).
+
+%% @spec (This::wxGrid(), Val::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetlabelbackgroundcolour">external documentation</a>.
+setLabelBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetLabelBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>).
+
+%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetlabelfont">external documentation</a>.
+setLabelFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(ValT,wxFont),
+ wxe_util:cast(?wxGrid_SetLabelFont,
+ <<ThisRef:32/?UI,ValRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Val::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetlabeltextcolour">external documentation</a>.
+setLabelTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetLabelTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Val)):16/binary>>).
+
+%% @spec (This::wxGrid(), ExtraWidth::integer(), ExtraHeight::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetmargins">external documentation</a>.
+setMargins(#wx_ref{type=ThisT,ref=ThisRef},ExtraWidth,ExtraHeight)
+ when is_integer(ExtraWidth),is_integer(ExtraHeight) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetMargins,
+ <<ThisRef:32/?UI,ExtraWidth:32/?UI,ExtraHeight:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok
+%% @equiv setReadOnly(This,Row,Col, [])
+setReadOnly(This,Row,Col)
+ when is_record(This, wx_ref),is_integer(Row),is_integer(Col) ->
+ setReadOnly(This,Row,Col, []).
+
+%% @spec (This::wxGrid(), Row::integer(), Col::integer(), [Option]) -> ok
+%% Option = {isReadOnly, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetreadonly">external documentation</a>.
+setReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options)
+ when is_integer(Row),is_integer(Col),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({isReadOnly, IsReadOnly}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(IsReadOnly)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGrid_SetReadOnly,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowattr">external documentation</a>.
+setRowAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,#wx_ref{type=AttrT,ref=AttrRef})
+ when is_integer(Row) ->
+ ?CLASS(ThisT,wxGrid),
+ ?CLASS(AttrT,wxGridCellAttr),
+ wxe_util:cast(?wxGrid_SetRowAttr,
+ <<ThisRef:32/?UI,Row:32/?UI,AttrRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowlabelalignment">external documentation</a>.
+setRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert)
+ when is_integer(Horiz),is_integer(Vert) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetRowLabelAlignment,
+ <<ThisRef:32/?UI,Horiz:32/?UI,Vert:32/?UI>>).
+
+%% @spec (This::wxGrid(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowlabelsize">external documentation</a>.
+setRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetRowLabelSize,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Val::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowlabelvalue">external documentation</a>.
+setRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Val)
+ when is_integer(Row),is_list(Val) ->
+ ?CLASS(ThisT,wxGrid),
+ Val_UC = unicode:characters_to_binary([Val,0]),
+ wxe_util:cast(?wxGrid_SetRowLabelValue,
+ <<ThisRef:32/?UI,Row:32/?UI,(byte_size(Val_UC)):32/?UI,(Val_UC)/binary, 0:(((8- ((4+byte_size(Val_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowminimalheight">external documentation</a>.
+setRowMinimalHeight(#wx_ref{type=ThisT,ref=ThisRef},Row,Width)
+ when is_integer(Row),is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetRowMinimalHeight,
+ <<ThisRef:32/?UI,Row:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowminimalacceptableheight">external documentation</a>.
+setRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetRowMinimalAcceptableHeight,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGrid(), Row::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetrowsize">external documentation</a>.
+setRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row,Height)
+ when is_integer(Row),is_integer(Height) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetRowSize,
+ <<ThisRef:32/?UI,Row:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxGrid(), X::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetscrolllinex">external documentation</a>.
+setScrollLineX(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetScrollLineX,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxGrid(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetscrollliney">external documentation</a>.
+setScrollLineY(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetScrollLineY,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxGrid(), C::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetselectionbackground">external documentation</a>.
+setSelectionBackground(#wx_ref{type=ThisT,ref=ThisRef},C)
+ when tuple_size(C) =:= 3; tuple_size(C) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetSelectionBackground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(C)):16/binary>>).
+
+%% @spec (This::wxGrid(), C::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetselectionforeground">external documentation</a>.
+setSelectionForeground(#wx_ref{type=ThisT,ref=ThisRef},C)
+ when tuple_size(C) =:= 3; tuple_size(C) =:= 4 ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetSelectionForeground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(C)):16/binary>>).
+
+%% @spec (This::wxGrid(), Selmode::WxGridSelectionModes) -> ok
+%% WxGridSelectionModes = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridsetselectionmode">external documentation</a>.
+%%<br /> WxGridSelectionModes is one of ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns
+setSelectionMode(#wx_ref{type=ThisT,ref=ThisRef},Selmode)
+ when is_integer(Selmode) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_SetSelectionMode,
+ <<ThisRef:32/?UI,Selmode:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridshowcelleditcontrol">external documentation</a>.
+showCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:cast(?wxGrid_ShowCellEditControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGrid(), X::integer()) -> integer()
+%% @equiv xToCol(This,X, [])
+xToCol(This,X)
+ when is_record(This, wx_ref),is_integer(X) ->
+ xToCol(This,X, []).
+
+%% @spec (This::wxGrid(), X::integer(), [Option]) -> integer()
+%% Option = {clipToMinMax, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridxtocol">external documentation</a>.
+xToCol(#wx_ref{type=ThisT,ref=ThisRef},X, Options)
+ when is_integer(X),is_list(Options) ->
+ ?CLASS(ThisT,wxGrid),
+ MOpts = fun({clipToMinMax, ClipToMinMax}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(ClipToMinMax)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGrid_XToCol,
+ <<ThisRef:32/?UI,X:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGrid(), X::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridxtoedgeofcol">external documentation</a>.
+xToEdgeOfCol(#wx_ref{type=ThisT,ref=ThisRef},X)
+ when is_integer(X) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_XToEdgeOfCol,
+ <<ThisRef:32/?UI,X:32/?UI>>).
+
+%% @spec (This::wxGrid(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridytoedgeofrow">external documentation</a>.
+yToEdgeOfRow(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_YToEdgeOfRow,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxGrid(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html#wxgridytorow">external documentation</a>.
+yToRow(#wx_ref{type=ThisT,ref=ThisRef},Y)
+ when is_integer(Y) ->
+ ?CLASS(ThisT,wxGrid),
+ wxe_util:call(?wxGrid_YToRow,
+ <<ThisRef:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxGrid()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGrid),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxScrolledWindow
+%% @hidden
+setTargetWindow(This,Target) -> wxScrolledWindow:setTargetWindow(This,Target).
+%% @hidden
+setScrollRate(This,Xstep,Ystep) -> wxScrolledWindow:setScrollRate(This,Xstep,Ystep).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY).
+%% @hidden
+scroll(This,X,Y) -> wxScrolledWindow:scroll(This,X,Y).
+%% @hidden
+prepareDC(This,Dc) -> wxScrolledWindow:prepareDC(This,Dc).
+%% @hidden
+doPrepareDC(This,Dc) -> wxScrolledWindow:doPrepareDC(This,Dc).
+%% @hidden
+getViewStart(This) -> wxScrolledWindow:getViewStart(This).
+%% @hidden
+getScrollPixelsPerUnit(This) -> wxScrolledWindow:getScrollPixelsPerUnit(This).
+%% @hidden
+enableScrolling(This,X_scrolling,Y_scrolling) -> wxScrolledWindow:enableScrolling(This,X_scrolling,Y_scrolling).
+%% @hidden
+calcUnscrolledPosition(This,X,Y) -> wxScrolledWindow:calcUnscrolledPosition(This,X,Y).
+%% @hidden
+calcUnscrolledPosition(This,Pt) -> wxScrolledWindow:calcUnscrolledPosition(This,Pt).
+%% @hidden
+calcScrolledPosition(This,X,Y) -> wxScrolledWindow:calcScrolledPosition(This,X,Y).
+%% @hidden
+calcScrolledPosition(This,Pt) -> wxScrolledWindow:calcScrolledPosition(This,Pt).
+ %% From wxPanel
+%% @hidden
+initDialog(This) -> wxPanel:initDialog(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxGridBagSizer.erl b/lib/wx/src/gen/wxGridBagSizer.erl
new file mode 100644
index 0000000000..56dc6092ad
--- /dev/null
+++ b/lib/wx/src/gen/wxGridBagSizer.erl
@@ -0,0 +1,525 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html">wxGridBagSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFlexGridSizer}
+%% <br />{@link wxGridSizer}
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxGridBagSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridBagSizer).
+-include("wxe.hrl").
+-export([add/2,add/3,add/4,add/5,calcMin/1,checkForIntersection/2,checkForIntersection/3,
+ checkForIntersection/4,destroy/1,findItem/2,findItemAtPoint/2,findItemAtPosition/2,
+ findItemWithData/2,getCellSize/3,getEmptyCellSize/1,getItemPosition/2,
+ getItemSpan/2,new/0,new/1,setEmptyCellSize/2,setItemPosition/3,setItemSpan/3]).
+
+%% inherited exports
+-export([addGrowableCol/2,addGrowableCol/3,addGrowableRow/2,addGrowableRow/3,
+ addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,clear/1,clear/2,
+ detach/2,fit/2,fitInside/2,getChildren/1,getCols/1,getFlexibleDirection/1,
+ getHGap/1,getItem/2,getItem/3,getMinSize/1,getNonFlexibleGrowMode/1,
+ getPosition/1,getRows/1,getSize/1,getVGap/1,hide/2,hide/3,insert/3,insert/4,
+ insert/5,insertSpacer/3,insertStretchSpacer/2,insertStretchSpacer/3,
+ isShown/2,layout/1,parent_class/1,prepend/2,prepend/3,prepend/4,prependSpacer/2,
+ prependStretchSpacer/1,prependStretchSpacer/2,recalcSizes/1,remove/2,
+ removeGrowableCol/2,removeGrowableRow/2,replace/3,replace/4,setCols/2,
+ setDimension/5,setFlexibleDirection/2,setHGap/2,setItemMinSize/3,
+ setItemMinSize/4,setMinSize/2,setMinSize/3,setNonFlexibleGrowMode/2,
+ setRows/2,setSizeHints/2,setVGap/2,setVirtualSizeHints/2,show/2,show/3]).
+
+%% @hidden
+parent_class(wxFlexGridSizer) -> true;
+parent_class(wxGridSizer) -> true;
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridBagSizer()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxGridBagSizer()
+%% Option = {vgap, integer()} | {hgap, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizerwxgridbagsizer">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({vgap, Vgap}, Acc) -> [<<1:32/?UI,Vgap:32/?UI>>|Acc];
+ ({hgap, Hgap}, Acc) -> [<<2:32/?UI,Hgap:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridBagSizer_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer(), Item::wxSizerItem:wxSizerItem() | wxGBSizerItem:wxGBSizerItem()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizeradd">external documentation</a>.
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ ItemOP = case ?CLASS_T(ItemT,wxSizerItem) of
+ true ->
+ ?wxGridBagSizer_Add_1_1;
+ _ -> ?CLASS(ItemT,wxGBSizerItem),
+ ?wxGridBagSizer_Add_1_0
+ end,
+ wxe_util:call(ItemOP,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizeradd">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer()) -> add(This,Width,Height, []) </c></p>
+%% <p><c>
+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}) -> add(This,Window,Pos, []) </c></p>
+%% <p><c>
+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+
+add(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ add(This,Width,Height, []);
+
+add(This,Window,Pos={PosR,PosC})
+ when is_record(This, wx_ref),is_record(Window, wx_ref),is_integer(PosR),is_integer(PosC) ->
+ add(This,Window,Pos, []);
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_Add_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_Add_2_0
+ end,
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term(),X::integer()|term(),X::term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizeradd">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer(), Pos::{R::integer(),C::integer()}) -> add(This,Width,Height,Pos, []) </c></p>
+%% <p><c>
+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+%% <p><c>
+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}, [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {span, {RS::integer(),CS::integer()}} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+
+add(This,Width,Height,Pos={PosR,PosC})
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height),is_integer(PosR),is_integer(PosC) ->
+ add(This,Width,Height,Pos, []);
+add(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGridBagSizer_Add_3_0,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>);
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{PosR,PosC}, Options)
+ when is_integer(PosR),is_integer(PosC),is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_Add_3_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_Add_3_1
+ end,
+ MOpts = fun({span, {SpanRS,SpanCS}}, Acc) -> [<<1:32/?UI,SpanRS:32/?UI,SpanCS:32/?UI,0:32>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,PosR:32/?UI,PosC:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer(), Width::integer(), Height::integer(), Pos::{R::integer(),C::integer()}, [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {span, {RS::integer(),CS::integer()}} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizeradd">external documentation</a>.
+add(#wx_ref{type=ThisT,ref=ThisRef},Width,Height,{PosR,PosC}, Options)
+ when is_integer(Width),is_integer(Height),is_integer(PosR),is_integer(PosC),is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ MOpts = fun({span, {SpanRS,SpanCS}}, Acc) -> [<<1:32/?UI,SpanRS:32/?UI,SpanCS:32/?UI,0:32>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGridBagSizer_Add_4,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI,PosR:32/?UI,PosC:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizercalcmin">external documentation</a>.
+calcMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_CalcMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), Item::wxGBSizerItem:wxGBSizerItem()) -> bool()
+%% @equiv checkForIntersection(This,Item, [])
+checkForIntersection(This,Item)
+ when is_record(This, wx_ref),is_record(Item, wx_ref) ->
+ checkForIntersection(This,Item, []).
+
+%% @spec (This::wxGridBagSizer(),X::term(),X::term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizercheckforintersection">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% checkForIntersection(This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}, Span::{RS::integer(),CS::integer()}) -> checkForIntersection(This,Pos,Span, []) </c></p>
+%% <p><c>
+%% checkForIntersection(This::wxGridBagSizer(), Item::wxGBSizerItem:wxGBSizerItem(), [Option]) -> bool() </c>
+%%<br /> Option = {excludeItem, wxGBSizerItem:wxGBSizerItem()}
+%% </p>
+
+checkForIntersection(This,Pos={PosR,PosC},Span={SpanRS,SpanCS})
+ when is_record(This, wx_ref),is_integer(PosR),is_integer(PosC),is_integer(SpanRS),is_integer(SpanCS) ->
+ checkForIntersection(This,Pos,Span, []);
+checkForIntersection(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ ?CLASS(ItemT,wxGBSizerItem),
+ MOpts = fun({excludeItem, #wx_ref{type=ExcludeItemT,ref=ExcludeItemRef}}, Acc) -> ?CLASS(ExcludeItemT,wxGBSizerItem),[<<1:32/?UI,ExcludeItemRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGridBagSizer_CheckForIntersection_2,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}, Span::{RS::integer(),CS::integer()}, [Option]) -> bool()
+%% Option = {excludeItem, wxGBSizerItem:wxGBSizerItem()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizercheckforintersection">external documentation</a>.
+checkForIntersection(#wx_ref{type=ThisT,ref=ThisRef},{PosR,PosC},{SpanRS,SpanCS}, Options)
+ when is_integer(PosR),is_integer(PosC),is_integer(SpanRS),is_integer(SpanCS),is_list(Options) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ MOpts = fun({excludeItem, #wx_ref{type=ExcludeItemT,ref=ExcludeItemRef}}, Acc) -> ?CLASS(ExcludeItemT,wxGBSizerItem),[<<1:32/?UI,ExcludeItemRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxGridBagSizer_CheckForIntersection_3,
+ <<ThisRef:32/?UI,PosR:32/?UI,PosC:32/?UI,SpanRS:32/?UI,SpanCS:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> wxGBSizerItem:wxGBSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizerfinditem">external documentation</a>.
+findItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_FindItem_1_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_FindItem_1_0
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), Pt::{X::integer(),Y::integer()}) -> wxGBSizerItem:wxGBSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizerfinditematpoint">external documentation</a>.
+findItemAtPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_FindItemAtPoint,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}) -> wxGBSizerItem:wxGBSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizerfinditematposition">external documentation</a>.
+findItemAtPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosR,PosC})
+ when is_integer(PosR),is_integer(PosC) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_FindItemAtPosition,
+ <<ThisRef:32/?UI,PosR:32/?UI,PosC:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), UserData::wx:wx()) -> wxGBSizerItem:wxGBSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizerfinditemwithdata">external documentation</a>.
+findItemWithData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=UserDataT,ref=UserDataRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ ?CLASS(UserDataT,wx),
+ wxe_util:call(?wxGridBagSizer_FindItemWithData,
+ <<ThisRef:32/?UI,UserDataRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), Row::integer(), Col::integer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizergetcellsize">external documentation</a>.
+getCellSize(#wx_ref{type=ThisT,ref=ThisRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_GetCellSize,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizergetemptycellsize">external documentation</a>.
+getEmptyCellSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_GetEmptyCellSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term()) -> {R::integer(),C::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizergetitemposition">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% getItemPosition(This::wxGridBagSizer(), Index::integer()) -> {R::integer(),C::integer()} </c>
+%% </p>
+%% <p><c>
+%% getItemPosition(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> {R::integer(),C::integer()} </c>
+%% </p>
+getItemPosition(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_GetItemPosition_1_0,
+ <<ThisRef:32/?UI,Index:32/?UI>>);
+getItemPosition(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_GetItemPosition_1_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_GetItemPosition_1_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term()) -> {RS::integer(),CS::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizergetitemspan">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% getItemSpan(This::wxGridBagSizer(), Index::integer()) -> {RS::integer(),CS::integer()} </c>
+%% </p>
+%% <p><c>
+%% getItemSpan(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> {RS::integer(),CS::integer()} </c>
+%% </p>
+getItemSpan(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_GetItemSpan_1_0,
+ <<ThisRef:32/?UI,Index:32/?UI>>);
+getItemSpan(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_GetItemSpan_1_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_GetItemSpan_1_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(), Sz::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizersetemptycellsize">external documentation</a>.
+setEmptyCellSize(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH})
+ when is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:cast(?wxGridBagSizer_SetEmptyCellSize,
+ <<ThisRef:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term(),Pos::{R::integer(),C::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizersetitemposition">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setItemPosition(This::wxGridBagSizer(), Index::integer(), Pos::{R::integer(),C::integer()}) -> bool() </c>
+%% </p>
+%% <p><c>
+%% setItemPosition(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}) -> bool() </c>
+%% </p>
+setItemPosition(#wx_ref{type=ThisT,ref=ThisRef},Index,{PosR,PosC})
+ when is_integer(Index),is_integer(PosR),is_integer(PosC) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_SetItemPosition_2_0,
+ <<ThisRef:32/?UI,Index:32/?UI,PosR:32/?UI,PosC:32/?UI>>);
+setItemPosition(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{PosR,PosC})
+ when is_integer(PosR),is_integer(PosC) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_SetItemPosition_2_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_SetItemPosition_2_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,PosR:32/?UI,PosC:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer(),X::integer()|term(),Span::{RS::integer(),CS::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridbagsizer.html#wxgridbagsizersetitemspan">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setItemSpan(This::wxGridBagSizer(), Index::integer(), Span::{RS::integer(),CS::integer()}) -> bool() </c>
+%% </p>
+%% <p><c>
+%% setItemSpan(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Span::{RS::integer(),CS::integer()}) -> bool() </c>
+%% </p>
+setItemSpan(#wx_ref{type=ThisT,ref=ThisRef},Index,{SpanRS,SpanCS})
+ when is_integer(Index),is_integer(SpanRS),is_integer(SpanCS) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ wxe_util:call(?wxGridBagSizer_SetItemSpan_2_0,
+ <<ThisRef:32/?UI,Index:32/?UI,SpanRS:32/?UI,SpanCS:32/?UI>>);
+setItemSpan(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{SpanRS,SpanCS})
+ when is_integer(SpanRS),is_integer(SpanCS) ->
+ ?CLASS(ThisT,wxGridBagSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxGridBagSizer_SetItemSpan_2_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxGridBagSizer_SetItemSpan_2_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,SpanRS:32/?UI,SpanCS:32/?UI>>).
+
+%% @spec (This::wxGridBagSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridBagSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFlexGridSizer
+%% @hidden
+setNonFlexibleGrowMode(This,Mode) -> wxFlexGridSizer:setNonFlexibleGrowMode(This,Mode).
+%% @hidden
+setFlexibleDirection(This,Direction) -> wxFlexGridSizer:setFlexibleDirection(This,Direction).
+%% @hidden
+removeGrowableRow(This,Idx) -> wxFlexGridSizer:removeGrowableRow(This,Idx).
+%% @hidden
+removeGrowableCol(This,Idx) -> wxFlexGridSizer:removeGrowableCol(This,Idx).
+%% @hidden
+getNonFlexibleGrowMode(This) -> wxFlexGridSizer:getNonFlexibleGrowMode(This).
+%% @hidden
+getFlexibleDirection(This) -> wxFlexGridSizer:getFlexibleDirection(This).
+%% @hidden
+addGrowableRow(This,Idx, Options) -> wxFlexGridSizer:addGrowableRow(This,Idx, Options).
+%% @hidden
+addGrowableRow(This,Idx) -> wxFlexGridSizer:addGrowableRow(This,Idx).
+%% @hidden
+addGrowableCol(This,Idx, Options) -> wxFlexGridSizer:addGrowableCol(This,Idx, Options).
+%% @hidden
+addGrowableCol(This,Idx) -> wxFlexGridSizer:addGrowableCol(This,Idx).
+ %% From wxGridSizer
+%% @hidden
+setVGap(This,Gap) -> wxGridSizer:setVGap(This,Gap).
+%% @hidden
+setRows(This,Rows) -> wxGridSizer:setRows(This,Rows).
+%% @hidden
+setHGap(This,Gap) -> wxGridSizer:setHGap(This,Gap).
+%% @hidden
+setCols(This,Cols) -> wxGridSizer:setCols(This,Cols).
+%% @hidden
+getVGap(This) -> wxGridSizer:getVGap(This).
+%% @hidden
+getRows(This) -> wxGridSizer:getRows(This).
+%% @hidden
+getHGap(This) -> wxGridSizer:getHGap(This).
+%% @hidden
+getCols(This) -> wxGridSizer:getCols(This).
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
diff --git a/lib/wx/src/gen/wxGridCellAttr.erl b/lib/wx/src/gen/wxGridCellAttr.erl
new file mode 100644
index 0000000000..b9fd65304c
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellAttr.erl
@@ -0,0 +1,207 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html">wxGridCellAttr</a>.
+%% @type wxGridCellAttr(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellAttr).
+-include("wxe.hrl").
+-export([getAlignment/1,getBackgroundColour/1,getEditor/4,getFont/1,getRenderer/4,
+ getTextColour/1,hasAlignment/1,hasBackgroundColour/1,hasEditor/1,
+ hasFont/1,hasRenderer/1,hasTextColour/1,isReadOnly/1,setAlignment/3,
+ setBackgroundColour/2,setDefAttr/2,setEditor/2,setFont/2,setReadOnly/1,
+ setReadOnly/2,setRenderer/2,setTextColour/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGridCellAttr(), ColText::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsettextcolour">external documentation</a>.
+setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:cast(?wxGridCellAttr_SetTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColText)):16/binary>>).
+
+%% @spec (This::wxGridCellAttr(), ColBack::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack)
+ when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:cast(?wxGridCellAttr_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary>>).
+
+%% @spec (This::wxGridCellAttr(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxGridCellAttr_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr(), HAlign::integer(), VAlign::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetalignment">external documentation</a>.
+setAlignment(#wx_ref{type=ThisT,ref=ThisRef},HAlign,VAlign)
+ when is_integer(HAlign),is_integer(VAlign) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:cast(?wxGridCellAttr_SetAlignment,
+ <<ThisRef:32/?UI,HAlign:32/?UI,VAlign:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> ok
+%% @equiv setReadOnly(This, [])
+setReadOnly(This)
+ when is_record(This, wx_ref) ->
+ setReadOnly(This, []).
+
+%% @spec (This::wxGridCellAttr(), [Option]) -> ok
+%% Option = {isReadOnly, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetreadonly">external documentation</a>.
+setReadOnly(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ MOpts = fun({isReadOnly, IsReadOnly}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(IsReadOnly)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGridCellAttr_SetReadOnly,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxGridCellAttr(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetrenderer">external documentation</a>.
+setRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(RendererT,wxGridCellRenderer),
+ wxe_util:cast(?wxGridCellAttr_SetRenderer,
+ <<ThisRef:32/?UI,RendererRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrseteditor">external documentation</a>.
+setEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(EditorT,wxGridCellEditor),
+ wxe_util:cast(?wxGridCellAttr_SetEditor,
+ <<ThisRef:32/?UI,EditorRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhastextcolour">external documentation</a>.
+hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhasbackgroundcolour">external documentation</a>.
+hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhasfont">external documentation</a>.
+hasFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhasalignment">external documentation</a>.
+hasAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhasrenderer">external documentation</a>.
+hasRenderer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasRenderer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrhaseditor">external documentation</a>.
+hasEditor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_HasEditor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgettextcolour">external documentation</a>.
+getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_GetTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgetbackgroundcolour">external documentation</a>.
+getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_GetBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> {HAlign::integer(),VAlign::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgetalignment">external documentation</a>.
+getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_GetAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgetrenderer">external documentation</a>.
+getRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(GridT,wxGrid),
+ wxe_util:call(?wxGridCellAttr_GetRenderer,
+ <<ThisRef:32/?UI,GridRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrgeteditor">external documentation</a>.
+getEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(GridT,wxGrid),
+ wxe_util:call(?wxGridCellAttr_GetEditor,
+ <<ThisRef:32/?UI,GridRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrisreadonly">external documentation</a>.
+isReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ wxe_util:call(?wxGridCellAttr_IsReadOnly,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellAttr(), DefAttr::wxGridCellAttr()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellattr.html#wxgridcellattrsetdefattr">external documentation</a>.
+setDefAttr(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DefAttrT,ref=DefAttrRef}) ->
+ ?CLASS(ThisT,wxGridCellAttr),
+ ?CLASS(DefAttrT,wxGridCellAttr),
+ wxe_util:cast(?wxGridCellAttr_SetDefAttr,
+ <<ThisRef:32/?UI,DefAttrRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxGridCellBoolEditor.erl b/lib/wx/src/gen/wxGridCellBoolEditor.erl
new file mode 100644
index 0000000000..b5afaba68f
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellBoolEditor.erl
@@ -0,0 +1,99 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellbooleditor.html">wxGridCellBoolEditor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellEditor}
+%% </p>
+%% @type wxGridCellBoolEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellBoolEditor).
+-include("wxe.hrl").
+-export([destroy/1,isTrueValue/1,new/0,useStringValues/0,useStringValues/1]).
+
+%% inherited exports
+-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ parent_class/1,reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% @hidden
+parent_class(wxGridCellEditor) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellBoolEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellbooleditor.html#wxgridcellbooleditorwxgridcellbooleditor">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGridCellBoolEditor_new,
+ <<>>).
+
+%% @spec (Value::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellbooleditor.html#wxgridcellbooleditoristruevalue">external documentation</a>.
+isTrueValue(Value)
+ when is_list(Value) ->
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:call(?wxGridCellBoolEditor_IsTrueValue,
+ <<(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((4+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec () -> ok
+%% @equiv useStringValues([])
+useStringValues() ->
+ useStringValues([]).
+
+%% @spec ([Option]) -> ok
+%% Option = {valueTrue, string()} | {valueFalse, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellbooleditor.html#wxgridcellbooleditorusestringvalues">external documentation</a>.
+useStringValues(Options)
+ when is_list(Options) ->
+ MOpts = fun({valueTrue, ValueTrue}, Acc) -> ValueTrue_UC = unicode:characters_to_binary([ValueTrue,0]),[<<1:32/?UI,(byte_size(ValueTrue_UC)):32/?UI,(ValueTrue_UC)/binary, 0:(((8- ((0+byte_size(ValueTrue_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({valueFalse, ValueFalse}, Acc) -> ValueFalse_UC = unicode:characters_to_binary([ValueFalse,0]),[<<2:32/?UI,(byte_size(ValueFalse_UC)):32/?UI,(ValueFalse_UC)/binary, 0:(((8- ((0+byte_size(ValueFalse_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGridCellBoolEditor_UseStringValues,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxGridCellBoolEditor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellBoolEditor),
+ wxe_util:destroy(?wxGridCellBoolEditor_destroy,Obj),
+ ok.
+ %% From wxGridCellEditor
+%% @hidden
+handleReturn(This,Event) -> wxGridCellEditor:handleReturn(This,Event).
+%% @hidden
+startingClick(This) -> wxGridCellEditor:startingClick(This).
+%% @hidden
+startingKey(This,Event) -> wxGridCellEditor:startingKey(This,Event).
+%% @hidden
+reset(This) -> wxGridCellEditor:reset(This).
+%% @hidden
+endEdit(This,Row,Col,Grid) -> wxGridCellEditor:endEdit(This,Row,Col,Grid).
+%% @hidden
+beginEdit(This,Row,Col,Grid) -> wxGridCellEditor:beginEdit(This,Row,Col,Grid).
+%% @hidden
+paintBackground(This,RectCell,Attr) -> wxGridCellEditor:paintBackground(This,RectCell,Attr).
+%% @hidden
+show(This,Show, Options) -> wxGridCellEditor:show(This,Show, Options).
+%% @hidden
+show(This,Show) -> wxGridCellEditor:show(This,Show).
+%% @hidden
+setSize(This,Rect) -> wxGridCellEditor:setSize(This,Rect).
+%% @hidden
+isCreated(This) -> wxGridCellEditor:isCreated(This).
diff --git a/lib/wx/src/gen/wxGridCellBoolRenderer.erl b/lib/wx/src/gen/wxGridCellBoolRenderer.erl
new file mode 100644
index 0000000000..442c00df1c
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellBoolRenderer.erl
@@ -0,0 +1,55 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellboolrenderer.html">wxGridCellBoolRenderer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellRenderer}
+%% </p>
+%% @type wxGridCellBoolRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellBoolRenderer).
+-include("wxe.hrl").
+-export([destroy/1,new/0]).
+
+%% inherited exports
+-export([draw/8,getBestSize/6,parent_class/1]).
+
+%% @hidden
+parent_class(wxGridCellRenderer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellBoolRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellboolrenderer.html#wxgridcellboolrendererwxgridcellboolrenderer">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGridCellBoolRenderer_new,
+ <<>>).
+
+%% @spec (This::wxGridCellBoolRenderer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellBoolRenderer),
+ wxe_util:destroy(?wxGridCellBoolRenderer_destroy,Obj),
+ ok.
+ %% From wxGridCellRenderer
+%% @hidden
+getBestSize(This,Grid,Attr,Dc,Row,Col) -> wxGridCellRenderer:getBestSize(This,Grid,Attr,Dc,Row,Col).
+%% @hidden
+draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected) -> wxGridCellRenderer:draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected).
diff --git a/lib/wx/src/gen/wxGridCellChoiceEditor.erl b/lib/wx/src/gen/wxGridCellChoiceEditor.erl
new file mode 100644
index 0000000000..d62933fd07
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellChoiceEditor.erl
@@ -0,0 +1,96 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellchoiceeditor.html">wxGridCellChoiceEditor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellEditor}
+%% </p>
+%% @type wxGridCellChoiceEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellChoiceEditor).
+-include("wxe.hrl").
+-export([destroy/1,new/1,new/2,setParameters/2]).
+
+%% inherited exports
+-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ parent_class/1,reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% @hidden
+parent_class(wxGridCellEditor) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Choices::[[string()]]) -> wxGridCellChoiceEditor()
+%% @equiv new(Choices, [])
+new(Choices)
+ when is_list(Choices) ->
+ new(Choices, []).
+
+%% @spec (Choices::[[string()]], [Option]) -> wxGridCellChoiceEditor()
+%% Option = {allowOthers, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellchoiceeditor.html#wxgridcellchoiceeditorwxgridcellchoiceeditor">external documentation</a>.
+new(Choices, Options)
+ when is_list(Choices),is_list(Options) ->
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({allowOthers, AllowOthers}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(AllowOthers)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridCellChoiceEditor_new,
+ <<(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxGridCellChoiceEditor(), Params::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellchoiceeditor.html#wxgridcellchoiceeditorsetparameters">external documentation</a>.
+setParameters(#wx_ref{type=ThisT,ref=ThisRef},Params)
+ when is_list(Params) ->
+ ?CLASS(ThisT,wxGridCellChoiceEditor),
+ Params_UC = unicode:characters_to_binary([Params,0]),
+ wxe_util:cast(?wxGridCellChoiceEditor_SetParameters,
+ <<ThisRef:32/?UI,(byte_size(Params_UC)):32/?UI,(Params_UC)/binary, 0:(((8- ((0+byte_size(Params_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGridCellChoiceEditor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellChoiceEditor),
+ wxe_util:destroy(?wxGridCellChoiceEditor_destroy,Obj),
+ ok.
+ %% From wxGridCellEditor
+%% @hidden
+handleReturn(This,Event) -> wxGridCellEditor:handleReturn(This,Event).
+%% @hidden
+startingClick(This) -> wxGridCellEditor:startingClick(This).
+%% @hidden
+startingKey(This,Event) -> wxGridCellEditor:startingKey(This,Event).
+%% @hidden
+reset(This) -> wxGridCellEditor:reset(This).
+%% @hidden
+endEdit(This,Row,Col,Grid) -> wxGridCellEditor:endEdit(This,Row,Col,Grid).
+%% @hidden
+beginEdit(This,Row,Col,Grid) -> wxGridCellEditor:beginEdit(This,Row,Col,Grid).
+%% @hidden
+paintBackground(This,RectCell,Attr) -> wxGridCellEditor:paintBackground(This,RectCell,Attr).
+%% @hidden
+show(This,Show, Options) -> wxGridCellEditor:show(This,Show, Options).
+%% @hidden
+show(This,Show) -> wxGridCellEditor:show(This,Show).
+%% @hidden
+setSize(This,Rect) -> wxGridCellEditor:setSize(This,Rect).
+%% @hidden
+isCreated(This) -> wxGridCellEditor:isCreated(This).
diff --git a/lib/wx/src/gen/wxGridCellEditor.erl b/lib/wx/src/gen/wxGridCellEditor.erl
new file mode 100644
index 0000000000..c08027e040
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellEditor.erl
@@ -0,0 +1,135 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html">wxGridCellEditor</a>.
+%% @type wxGridCellEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellEditor).
+-include("wxe.hrl").
+-export([beginEdit/4,create/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGridCellEditor(), Parent::wxWindow:wxWindow(), Id::integer(), EvtHandler::wxEvtHandler:wxEvtHandler()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=EvtHandlerT,ref=EvtHandlerRef})
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(EvtHandlerT,wxEvtHandler),
+ wxe_util:cast(?wxGridCellEditor_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,EvtHandlerRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditoriscreated">external documentation</a>.
+isCreated(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ wxe_util:call(?wxGridCellEditor_IsCreated,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorsetsize">external documentation</a>.
+setSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ wxe_util:cast(?wxGridCellEditor_SetSize,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Show::bool()) -> ok
+%% @equiv show(This,Show, [])
+show(This,Show)
+ when is_record(This, wx_ref),is_boolean(Show) ->
+ show(This,Show, []).
+
+%% @spec (This::wxGridCellEditor(), Show::bool(), [Option]) -> ok
+%% Option = {attr, wxGridCellAttr:wxGridCellAttr()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef},Show, Options)
+ when is_boolean(Show),is_list(Options) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ MOpts = fun({attr, #wx_ref{type=AttrT,ref=AttrRef}}, Acc) -> ?CLASS(AttrT,wxGridCellAttr),[<<1:32/?UI,AttrRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxGridCellEditor_Show,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxGridCellEditor(), RectCell::{X::integer(),Y::integer(),W::integer(),H::integer()}, Attr::wxGridCellAttr:wxGridCellAttr()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorpaintbackground">external documentation</a>.
+paintBackground(#wx_ref{type=ThisT,ref=ThisRef},{RectCellX,RectCellY,RectCellW,RectCellH},#wx_ref{type=AttrT,ref=AttrRef})
+ when is_integer(RectCellX),is_integer(RectCellY),is_integer(RectCellW),is_integer(RectCellH) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(AttrT,wxGridCellAttr),
+ wxe_util:cast(?wxGridCellEditor_PaintBackground,
+ <<ThisRef:32/?UI,RectCellX:32/?UI,RectCellY:32/?UI,RectCellW:32/?UI,RectCellH:32/?UI,AttrRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorbeginedit">external documentation</a>.
+beginEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef})
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(GridT,wxGrid),
+ wxe_util:cast(?wxGridCellEditor_BeginEdit,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorendedit">external documentation</a>.
+endEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef})
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(GridT,wxGrid),
+ wxe_util:call(?wxGridCellEditor_EndEdit,
+ <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorreset">external documentation</a>.
+reset(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ wxe_util:cast(?wxGridCellEditor_Reset,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorstartingkey">external documentation</a>.
+startingKey(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(EventT,wxKeyEvent),
+ wxe_util:cast(?wxGridCellEditor_StartingKey,
+ <<ThisRef:32/?UI,EventRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorstartingclick">external documentation</a>.
+startingClick(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ wxe_util:cast(?wxGridCellEditor_StartingClick,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorhandlereturn">external documentation</a>.
+handleReturn(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
+ ?CLASS(ThisT,wxGridCellEditor),
+ ?CLASS(EventT,wxKeyEvent),
+ wxe_util:cast(?wxGridCellEditor_HandleReturn,
+ <<ThisRef:32/?UI,EventRef:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxGridCellFloatEditor.erl b/lib/wx/src/gen/wxGridCellFloatEditor.erl
new file mode 100644
index 0000000000..e924c8f9a5
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellFloatEditor.erl
@@ -0,0 +1,94 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloateditor.html">wxGridCellFloatEditor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellEditor}
+%% </p>
+%% @type wxGridCellFloatEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellFloatEditor).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1,setParameters/2]).
+
+%% inherited exports
+-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ parent_class/1,reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% @hidden
+parent_class(wxGridCellEditor) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellFloatEditor()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxGridCellFloatEditor()
+%% Option = {width, integer()} | {precision, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloateditor.html#wxgridcellfloateditorwxgridcellfloateditor">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({width, Width}, Acc) -> [<<1:32/?UI,Width:32/?UI>>|Acc];
+ ({precision, Precision}, Acc) -> [<<2:32/?UI,Precision:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridCellFloatEditor_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxGridCellFloatEditor(), Params::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloateditor.html#wxgridcellfloateditorsetparameters">external documentation</a>.
+setParameters(#wx_ref{type=ThisT,ref=ThisRef},Params)
+ when is_list(Params) ->
+ ?CLASS(ThisT,wxGridCellFloatEditor),
+ Params_UC = unicode:characters_to_binary([Params,0]),
+ wxe_util:cast(?wxGridCellFloatEditor_SetParameters,
+ <<ThisRef:32/?UI,(byte_size(Params_UC)):32/?UI,(Params_UC)/binary, 0:(((8- ((0+byte_size(Params_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGridCellFloatEditor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellFloatEditor),
+ wxe_util:destroy(?wxGridCellFloatEditor_destroy,Obj),
+ ok.
+ %% From wxGridCellEditor
+%% @hidden
+handleReturn(This,Event) -> wxGridCellEditor:handleReturn(This,Event).
+%% @hidden
+startingClick(This) -> wxGridCellEditor:startingClick(This).
+%% @hidden
+startingKey(This,Event) -> wxGridCellEditor:startingKey(This,Event).
+%% @hidden
+reset(This) -> wxGridCellEditor:reset(This).
+%% @hidden
+endEdit(This,Row,Col,Grid) -> wxGridCellEditor:endEdit(This,Row,Col,Grid).
+%% @hidden
+beginEdit(This,Row,Col,Grid) -> wxGridCellEditor:beginEdit(This,Row,Col,Grid).
+%% @hidden
+paintBackground(This,RectCell,Attr) -> wxGridCellEditor:paintBackground(This,RectCell,Attr).
+%% @hidden
+show(This,Show, Options) -> wxGridCellEditor:show(This,Show, Options).
+%% @hidden
+show(This,Show) -> wxGridCellEditor:show(This,Show).
+%% @hidden
+setSize(This,Rect) -> wxGridCellEditor:setSize(This,Rect).
+%% @hidden
+isCreated(This) -> wxGridCellEditor:isCreated(This).
diff --git a/lib/wx/src/gen/wxGridCellFloatRenderer.erl b/lib/wx/src/gen/wxGridCellFloatRenderer.erl
new file mode 100644
index 0000000000..1d207ae4e0
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellFloatRenderer.erl
@@ -0,0 +1,109 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html">wxGridCellFloatRenderer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellStringRenderer}
+%% <br />{@link wxGridCellRenderer}
+%% </p>
+%% @type wxGridCellFloatRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellFloatRenderer).
+-include("wxe.hrl").
+-export([destroy/1,getPrecision/1,getWidth/1,new/0,new/1,setParameters/2,setPrecision/2,
+ setWidth/2]).
+
+%% inherited exports
+-export([draw/8,getBestSize/6,parent_class/1]).
+
+%% @hidden
+parent_class(wxGridCellStringRenderer) -> true;
+parent_class(wxGridCellRenderer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellFloatRenderer()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxGridCellFloatRenderer()
+%% Option = {width, integer()} | {precision, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrendererwxgridcellfloatrenderer">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({width, Width}, Acc) -> [<<1:32/?UI,Width:32/?UI>>|Acc];
+ ({precision, Precision}, Acc) -> [<<2:32/?UI,Precision:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridCellFloatRenderer_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxGridCellFloatRenderer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrenderergetprecision">external documentation</a>.
+getPrecision(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellFloatRenderer),
+ wxe_util:call(?wxGridCellFloatRenderer_GetPrecision,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellFloatRenderer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrenderergetwidth">external documentation</a>.
+getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellFloatRenderer),
+ wxe_util:call(?wxGridCellFloatRenderer_GetWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellFloatRenderer(), Params::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrenderersetparameters">external documentation</a>.
+setParameters(#wx_ref{type=ThisT,ref=ThisRef},Params)
+ when is_list(Params) ->
+ ?CLASS(ThisT,wxGridCellFloatRenderer),
+ Params_UC = unicode:characters_to_binary([Params,0]),
+ wxe_util:cast(?wxGridCellFloatRenderer_SetParameters,
+ <<ThisRef:32/?UI,(byte_size(Params_UC)):32/?UI,(Params_UC)/binary, 0:(((8- ((0+byte_size(Params_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGridCellFloatRenderer(), Precision::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrenderersetprecision">external documentation</a>.
+setPrecision(#wx_ref{type=ThisT,ref=ThisRef},Precision)
+ when is_integer(Precision) ->
+ ?CLASS(ThisT,wxGridCellFloatRenderer),
+ wxe_util:cast(?wxGridCellFloatRenderer_SetPrecision,
+ <<ThisRef:32/?UI,Precision:32/?UI>>).
+
+%% @spec (This::wxGridCellFloatRenderer(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellfloatrenderer.html#wxgridcellfloatrenderersetwidth">external documentation</a>.
+setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxGridCellFloatRenderer),
+ wxe_util:cast(?wxGridCellFloatRenderer_SetWidth,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxGridCellFloatRenderer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellFloatRenderer),
+ wxe_util:destroy(?wxGridCellFloatRenderer_destroy,Obj),
+ ok.
+ %% From wxGridCellStringRenderer
+ %% From wxGridCellRenderer
+%% @hidden
+getBestSize(This,Grid,Attr,Dc,Row,Col) -> wxGridCellRenderer:getBestSize(This,Grid,Attr,Dc,Row,Col).
+%% @hidden
+draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected) -> wxGridCellRenderer:draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected).
diff --git a/lib/wx/src/gen/wxGridCellNumberEditor.erl b/lib/wx/src/gen/wxGridCellNumberEditor.erl
new file mode 100644
index 0000000000..347c03c377
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellNumberEditor.erl
@@ -0,0 +1,104 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumbereditor.html">wxGridCellNumberEditor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellTextEditor}
+%% <br />{@link wxGridCellEditor}
+%% </p>
+%% @type wxGridCellNumberEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellNumberEditor).
+-include("wxe.hrl").
+-export([destroy/1,getValue/1,new/0,new/1,setParameters/2]).
+
+%% inherited exports
+-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ parent_class/1,reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% @hidden
+parent_class(wxGridCellTextEditor) -> true;
+parent_class(wxGridCellEditor) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellNumberEditor()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxGridCellNumberEditor()
+%% Option = {min, integer()} | {max, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumbereditor.html#wxgridcellnumbereditorwxgridcellnumbereditor">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({min, Min}, Acc) -> [<<1:32/?UI,Min:32/?UI>>|Acc];
+ ({max, Max}, Acc) -> [<<2:32/?UI,Max:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridCellNumberEditor_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxGridCellNumberEditor()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumbereditor.html#wxgridcellnumbereditorgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridCellNumberEditor),
+ wxe_util:call(?wxGridCellNumberEditor_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridCellNumberEditor(), Params::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumbereditor.html#wxgridcellnumbereditorsetparameters">external documentation</a>.
+setParameters(#wx_ref{type=ThisT,ref=ThisRef},Params)
+ when is_list(Params) ->
+ ?CLASS(ThisT,wxGridCellNumberEditor),
+ Params_UC = unicode:characters_to_binary([Params,0]),
+ wxe_util:cast(?wxGridCellNumberEditor_SetParameters,
+ <<ThisRef:32/?UI,(byte_size(Params_UC)):32/?UI,(Params_UC)/binary, 0:(((8- ((0+byte_size(Params_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGridCellNumberEditor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellNumberEditor),
+ wxe_util:destroy(?wxGridCellNumberEditor_destroy,Obj),
+ ok.
+ %% From wxGridCellTextEditor
+ %% From wxGridCellEditor
+%% @hidden
+handleReturn(This,Event) -> wxGridCellEditor:handleReturn(This,Event).
+%% @hidden
+startingClick(This) -> wxGridCellEditor:startingClick(This).
+%% @hidden
+startingKey(This,Event) -> wxGridCellEditor:startingKey(This,Event).
+%% @hidden
+reset(This) -> wxGridCellEditor:reset(This).
+%% @hidden
+endEdit(This,Row,Col,Grid) -> wxGridCellEditor:endEdit(This,Row,Col,Grid).
+%% @hidden
+beginEdit(This,Row,Col,Grid) -> wxGridCellEditor:beginEdit(This,Row,Col,Grid).
+%% @hidden
+paintBackground(This,RectCell,Attr) -> wxGridCellEditor:paintBackground(This,RectCell,Attr).
+%% @hidden
+show(This,Show, Options) -> wxGridCellEditor:show(This,Show, Options).
+%% @hidden
+show(This,Show) -> wxGridCellEditor:show(This,Show).
+%% @hidden
+setSize(This,Rect) -> wxGridCellEditor:setSize(This,Rect).
+%% @hidden
+isCreated(This) -> wxGridCellEditor:isCreated(This).
diff --git a/lib/wx/src/gen/wxGridCellNumberRenderer.erl b/lib/wx/src/gen/wxGridCellNumberRenderer.erl
new file mode 100644
index 0000000000..cf90987dc9
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellNumberRenderer.erl
@@ -0,0 +1,58 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumberrenderer.html">wxGridCellNumberRenderer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellStringRenderer}
+%% <br />{@link wxGridCellRenderer}
+%% </p>
+%% @type wxGridCellNumberRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellNumberRenderer).
+-include("wxe.hrl").
+-export([destroy/1,new/0]).
+
+%% inherited exports
+-export([draw/8,getBestSize/6,parent_class/1]).
+
+%% @hidden
+parent_class(wxGridCellStringRenderer) -> true;
+parent_class(wxGridCellRenderer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellNumberRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellnumberrenderer.html#wxgridcellnumberrendererwxgridcellnumberrenderer">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGridCellNumberRenderer_new,
+ <<>>).
+
+%% @spec (This::wxGridCellNumberRenderer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellNumberRenderer),
+ wxe_util:destroy(?wxGridCellNumberRenderer_destroy,Obj),
+ ok.
+ %% From wxGridCellStringRenderer
+ %% From wxGridCellRenderer
+%% @hidden
+getBestSize(This,Grid,Attr,Dc,Row,Col) -> wxGridCellRenderer:getBestSize(This,Grid,Attr,Dc,Row,Col).
+%% @hidden
+draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected) -> wxGridCellRenderer:draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected).
diff --git a/lib/wx/src/gen/wxGridCellRenderer.erl b/lib/wx/src/gen/wxGridCellRenderer.erl
new file mode 100644
index 0000000000..c7040049a4
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellRenderer.erl
@@ -0,0 +1,56 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellrenderer.html">wxGridCellRenderer</a>.
+%% @type wxGridCellRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellRenderer).
+-include("wxe.hrl").
+-export([draw/8,getBestSize/6]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGridCellRenderer(), Grid::wxGrid:wxGrid(), Attr::wxGridCellAttr:wxGridCellAttr(), Dc::wxDC:wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, Row::integer(), Col::integer(), IsSelected::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellrenderer.html#wxgridcellrendererdraw">external documentation</a>.
+draw(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},#wx_ref{type=AttrT,ref=AttrRef},#wx_ref{type=DcT,ref=DcRef},{RectX,RectY,RectW,RectH},Row,Col,IsSelected)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_integer(Row),is_integer(Col),is_boolean(IsSelected) ->
+ ?CLASS(ThisT,wxGridCellRenderer),
+ ?CLASS(GridT,wxGrid),
+ ?CLASS(AttrT,wxGridCellAttr),
+ ?CLASS(DcT,wxDC),
+ wxe_util:cast(?wxGridCellRenderer_Draw,
+ <<ThisRef:32/?UI,GridRef:32/?UI,AttrRef:32/?UI,DcRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,Row:32/?UI,Col:32/?UI,(wxe_util:from_bool(IsSelected)):32/?UI>>).
+
+%% @spec (This::wxGridCellRenderer(), Grid::wxGrid:wxGrid(), Attr::wxGridCellAttr:wxGridCellAttr(), Dc::wxDC:wxDC(), Row::integer(), Col::integer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellrenderer.html#wxgridcellrenderergetbestsize">external documentation</a>.
+getBestSize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},#wx_ref{type=AttrT,ref=AttrRef},#wx_ref{type=DcT,ref=DcRef},Row,Col)
+ when is_integer(Row),is_integer(Col) ->
+ ?CLASS(ThisT,wxGridCellRenderer),
+ ?CLASS(GridT,wxGrid),
+ ?CLASS(AttrT,wxGridCellAttr),
+ ?CLASS(DcT,wxDC),
+ wxe_util:call(?wxGridCellRenderer_GetBestSize,
+ <<ThisRef:32/?UI,GridRef:32/?UI,AttrRef:32/?UI,DcRef:32/?UI,Row:32/?UI,Col:32/?UI>>).
+
diff --git a/lib/wx/src/gen/wxGridCellStringRenderer.erl b/lib/wx/src/gen/wxGridCellStringRenderer.erl
new file mode 100644
index 0000000000..1c37cf4d6c
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellStringRenderer.erl
@@ -0,0 +1,55 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellstringrenderer.html">wxGridCellStringRenderer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellRenderer}
+%% </p>
+%% @type wxGridCellStringRenderer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellStringRenderer).
+-include("wxe.hrl").
+-export([destroy/1,new/0]).
+
+%% inherited exports
+-export([draw/8,getBestSize/6,parent_class/1]).
+
+%% @hidden
+parent_class(wxGridCellRenderer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellStringRenderer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcellstringrenderer.html#wxgridcellstringrendererwxgridcellstringrenderer">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGridCellStringRenderer_new,
+ <<>>).
+
+%% @spec (This::wxGridCellStringRenderer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellStringRenderer),
+ wxe_util:destroy(?wxGridCellStringRenderer_destroy,Obj),
+ ok.
+ %% From wxGridCellRenderer
+%% @hidden
+getBestSize(This,Grid,Attr,Dc,Row,Col) -> wxGridCellRenderer:getBestSize(This,Grid,Attr,Dc,Row,Col).
+%% @hidden
+draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected) -> wxGridCellRenderer:draw(This,Grid,Attr,Dc,Rect,Row,Col,IsSelected).
diff --git a/lib/wx/src/gen/wxGridCellTextEditor.erl b/lib/wx/src/gen/wxGridCellTextEditor.erl
new file mode 100644
index 0000000000..f785d736f0
--- /dev/null
+++ b/lib/wx/src/gen/wxGridCellTextEditor.erl
@@ -0,0 +1,83 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelltexteditor.html">wxGridCellTextEditor</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxGridCellEditor}
+%% </p>
+%% @type wxGridCellTextEditor(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridCellTextEditor).
+-include("wxe.hrl").
+-export([destroy/1,new/0,setParameters/2]).
+
+%% inherited exports
+-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
+ parent_class/1,reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
+
+%% @hidden
+parent_class(wxGridCellEditor) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxGridCellTextEditor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelltexteditor.html#wxgridcelltexteditorwxgridcelltexteditor">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxGridCellTextEditor_new,
+ <<>>).
+
+%% @spec (This::wxGridCellTextEditor(), Params::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelltexteditor.html#wxgridcelltexteditorsetparameters">external documentation</a>.
+setParameters(#wx_ref{type=ThisT,ref=ThisRef},Params)
+ when is_list(Params) ->
+ ?CLASS(ThisT,wxGridCellTextEditor),
+ Params_UC = unicode:characters_to_binary([Params,0]),
+ wxe_util:cast(?wxGridCellTextEditor_SetParameters,
+ <<ThisRef:32/?UI,(byte_size(Params_UC)):32/?UI,(Params_UC)/binary, 0:(((8- ((0+byte_size(Params_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxGridCellTextEditor()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridCellTextEditor),
+ wxe_util:destroy(?wxGridCellTextEditor_destroy,Obj),
+ ok.
+ %% From wxGridCellEditor
+%% @hidden
+handleReturn(This,Event) -> wxGridCellEditor:handleReturn(This,Event).
+%% @hidden
+startingClick(This) -> wxGridCellEditor:startingClick(This).
+%% @hidden
+startingKey(This,Event) -> wxGridCellEditor:startingKey(This,Event).
+%% @hidden
+reset(This) -> wxGridCellEditor:reset(This).
+%% @hidden
+endEdit(This,Row,Col,Grid) -> wxGridCellEditor:endEdit(This,Row,Col,Grid).
+%% @hidden
+beginEdit(This,Row,Col,Grid) -> wxGridCellEditor:beginEdit(This,Row,Col,Grid).
+%% @hidden
+paintBackground(This,RectCell,Attr) -> wxGridCellEditor:paintBackground(This,RectCell,Attr).
+%% @hidden
+show(This,Show, Options) -> wxGridCellEditor:show(This,Show, Options).
+%% @hidden
+show(This,Show) -> wxGridCellEditor:show(This,Show).
+%% @hidden
+setSize(This,Rect) -> wxGridCellEditor:setSize(This,Rect).
+%% @hidden
+isCreated(This) -> wxGridCellEditor:isCreated(This).
diff --git a/lib/wx/src/gen/wxGridEvent.erl b/lib/wx/src/gen/wxGridEvent.erl
new file mode 100644
index 0000000000..4d89408c98
--- /dev/null
+++ b/lib/wx/src/gen/wxGridEvent.erl
@@ -0,0 +1,151 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html">wxGridEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>grid_cell_left_click</em>, <em>grid_cell_right_click</em>, <em>grid_cell_left_dclick</em>, <em>grid_cell_right_dclick</em>, <em>grid_label_left_click</em>, <em>grid_label_right_click</em>, <em>grid_label_left_dclick</em>, <em>grid_label_right_dclick</em>, <em>grid_row_size</em>, <em>grid_col_size</em>, <em>grid_range_select</em>, <em>grid_cell_change</em>, <em>grid_select_cell</em>, <em>grid_editor_shown</em>, <em>grid_editor_hidden</em>, <em>grid_editor_created</em>, <em>grid_cell_begin_drag</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxGrid(). #wxGrid{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxGridEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridEvent).
+-include("wxe.hrl").
+-export([altDown/1,controlDown/1,getCol/1,getPosition/1,getRow/1,metaDown/1,
+ selecting/1,shiftDown/1]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxGridEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventaltdown">external documentation</a>.
+altDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_AltDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventcontroldown">external documentation</a>.
+controlDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_ControlDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventgetcol">external documentation</a>.
+getCol(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_GetCol,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventgetrow">external documentation</a>.
+getRow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_GetRow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventmetadown">external documentation</a>.
+metaDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_MetaDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventselecting">external documentation</a>.
+selecting(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_Selecting,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridevent.html#wxgrideventshiftdown">external documentation</a>.
+shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridEvent),
+ wxe_util:call(?wxGridEvent_ShiftDown,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxGridSizer.erl b/lib/wx/src/gen/wxGridSizer.erl
new file mode 100644
index 0000000000..bcc62be429
--- /dev/null
+++ b/lib/wx/src/gen/wxGridSizer.erl
@@ -0,0 +1,233 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html">wxGridSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxGridSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxGridSizer).
+-include("wxe.hrl").
+-export([destroy/1,getCols/1,getHGap/1,getRows/1,getVGap/1,new/1,new/2,new/4,setCols/2,
+ setHGap/2,setRows/2,setVGap/2]).
+
+%% inherited exports
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
+ getItem/3,getMinSize/1,getPosition/1,getSize/1,hide/2,hide/3,insert/3,
+ insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,insertStretchSpacer/3,
+ isShown/2,layout/1,parent_class/1,prepend/2,prepend/3,prepend/4,prependSpacer/2,
+ prependStretchSpacer/1,prependStretchSpacer/2,recalcSizes/1,remove/2,
+ replace/3,replace/4,setDimension/5,setItemMinSize/3,setItemMinSize/4,
+ setMinSize/2,setMinSize/3,setSizeHints/2,setVirtualSizeHints/2,show/2,
+ show/3]).
+
+%% @hidden
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Cols::integer()) -> wxGridSizer()
+%% @equiv new(Cols, [])
+new(Cols)
+ when is_integer(Cols) ->
+ new(Cols, []).
+
+%% @spec (Cols::integer(), [Option]) -> wxGridSizer()
+%% Option = {vgap, integer()} | {hgap, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizerwxgridsizer">external documentation</a>.
+new(Cols, Options)
+ when is_integer(Cols),is_list(Options) ->
+ MOpts = fun({vgap, Vgap}, Acc) -> [<<1:32/?UI,Vgap:32/?UI>>|Acc];
+ ({hgap, Hgap}, Acc) -> [<<2:32/?UI,Hgap:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxGridSizer_new_2,
+ <<Cols:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Rows::integer(), Cols::integer(), Vgap::integer(), Hgap::integer()) -> wxGridSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizerwxgridsizer">external documentation</a>.
+new(Rows,Cols,Vgap,Hgap)
+ when is_integer(Rows),is_integer(Cols),is_integer(Vgap),is_integer(Hgap) ->
+ wxe_util:construct(?wxGridSizer_new_4,
+ <<Rows:32/?UI,Cols:32/?UI,Vgap:32/?UI,Hgap:32/?UI>>).
+
+%% @spec (This::wxGridSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizergetcols">external documentation</a>.
+getCols(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:call(?wxGridSizer_GetCols,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizergethgap">external documentation</a>.
+getHGap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:call(?wxGridSizer_GetHGap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizergetrows">external documentation</a>.
+getRows(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:call(?wxGridSizer_GetRows,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridSizer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizergetvgap">external documentation</a>.
+getVGap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:call(?wxGridSizer_GetVGap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxGridSizer(), Cols::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizersetcols">external documentation</a>.
+setCols(#wx_ref{type=ThisT,ref=ThisRef},Cols)
+ when is_integer(Cols) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:cast(?wxGridSizer_SetCols,
+ <<ThisRef:32/?UI,Cols:32/?UI>>).
+
+%% @spec (This::wxGridSizer(), Gap::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizersethgap">external documentation</a>.
+setHGap(#wx_ref{type=ThisT,ref=ThisRef},Gap)
+ when is_integer(Gap) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:cast(?wxGridSizer_SetHGap,
+ <<ThisRef:32/?UI,Gap:32/?UI>>).
+
+%% @spec (This::wxGridSizer(), Rows::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizersetrows">external documentation</a>.
+setRows(#wx_ref{type=ThisT,ref=ThisRef},Rows)
+ when is_integer(Rows) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:cast(?wxGridSizer_SetRows,
+ <<ThisRef:32/?UI,Rows:32/?UI>>).
+
+%% @spec (This::wxGridSizer(), Gap::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridsizer.html#wxgridsizersetvgap">external documentation</a>.
+setVGap(#wx_ref{type=ThisT,ref=ThisRef},Gap)
+ when is_integer(Gap) ->
+ ?CLASS(ThisT,wxGridSizer),
+ wxe_util:cast(?wxGridSizer_SetVGap,
+ <<ThisRef:32/?UI,Gap:32/?UI>>).
+
+%% @spec (This::wxGridSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxGridSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+calcMin(This) -> wxSizer:calcMin(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
+%% @hidden
+add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
+%% @hidden
+add(This,Width,Height) -> wxSizer:add(This,Width,Height).
+%% @hidden
+add(This,Window) -> wxSizer:add(This,Window).
diff --git a/lib/wx/src/gen/wxHelpEvent.erl b/lib/wx/src/gen/wxHelpEvent.erl
new file mode 100644
index 0000000000..4785ff10de
--- /dev/null
+++ b/lib/wx/src/gen/wxHelpEvent.erl
@@ -0,0 +1,96 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhelpevent.html">wxHelpEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>help</em>, <em>detailed_help</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxHelp(). #wxHelp{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxHelpEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxHelpEvent).
+-include("wxe.hrl").
+-export([getOrigin/1,getPosition/1,setOrigin/2,setPosition/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxHelpEvent()) -> Origin
+%% Origin = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhelpevent.html#wxhelpeventgetorigin">external documentation</a>.
+%%<br /> Origin is one of ?wxHelpEvent_Origin_Unknown | ?wxHelpEvent_Origin_Keyboard | ?wxHelpEvent_Origin_HelpButton
+getOrigin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHelpEvent),
+ wxe_util:call(?wxHelpEvent_GetOrigin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHelpEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhelpevent.html#wxhelpeventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHelpEvent),
+ wxe_util:call(?wxHelpEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHelpEvent(), Origin::Origin) -> ok
+%% Origin = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhelpevent.html#wxhelpeventsetorigin">external documentation</a>.
+%%<br /> Origin is one of ?wxHelpEvent_Origin_Unknown | ?wxHelpEvent_Origin_Keyboard | ?wxHelpEvent_Origin_HelpButton
+setOrigin(#wx_ref{type=ThisT,ref=ThisRef},Origin)
+ when is_integer(Origin) ->
+ ?CLASS(ThisT,wxHelpEvent),
+ wxe_util:cast(?wxHelpEvent_SetOrigin,
+ <<ThisRef:32/?UI,Origin:32/?UI>>).
+
+%% @spec (This::wxHelpEvent(), Pos::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhelpevent.html#wxhelpeventsetposition">external documentation</a>.
+setPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxHelpEvent),
+ wxe_util:cast(?wxHelpEvent_SetPosition,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxHtmlEasyPrinting.erl b/lib/wx/src/gen/wxHtmlEasyPrinting.erl
new file mode 100644
index 0000000000..a782bd71c3
--- /dev/null
+++ b/lib/wx/src/gen/wxHtmlEasyPrinting.erl
@@ -0,0 +1,196 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html">wxHtmlEasyPrinting</a>.
+%% @type wxHtmlEasyPrinting(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxHtmlEasyPrinting).
+-include("wxe.hrl").
+-export([destroy/1,getPageSetupData/1,getPrintData/1,new/0,new/1,pageSetup/1,
+ previewFile/2,previewText/2,previewText/3,printFile/2,printText/2,
+ printText/3,setFonts/3,setFonts/4,setFooter/2,setFooter/3,setHeader/2,
+ setHeader/3]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxHtmlEasyPrinting()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxHtmlEasyPrinting()
+%% Option = {name, string()} | {parentWindow, wxWindow:wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingwxhtmleasyprinting">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({name, Name}, Acc) -> Name_UC = unicode:characters_to_binary([Name,0]),[<<1:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({parentWindow, #wx_ref{type=ParentWindowT,ref=ParentWindowRef}}, Acc) -> ?CLASS(ParentWindowT,wxWindow),[<<2:32/?UI,ParentWindowRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxHtmlEasyPrinting_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting()) -> wxPrintData:wxPrintData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintinggetprintdata">external documentation</a>.
+getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ wxe_util:call(?wxHtmlEasyPrinting_GetPrintData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlEasyPrinting()) -> wxPageSetupDialogData:wxPageSetupDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintinggetpagesetupdata">external documentation</a>.
+getPageSetupData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ wxe_util:call(?wxHtmlEasyPrinting_GetPageSetupData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmlfile::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingpreviewfile">external documentation</a>.
+previewFile(#wx_ref{type=ThisT,ref=ThisRef},Htmlfile)
+ when is_list(Htmlfile) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Htmlfile_UC = unicode:characters_to_binary([Htmlfile,0]),
+ wxe_util:call(?wxHtmlEasyPrinting_PreviewFile,
+ <<ThisRef:32/?UI,(byte_size(Htmlfile_UC)):32/?UI,(Htmlfile_UC)/binary, 0:(((8- ((0+byte_size(Htmlfile_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmltext::string()) -> bool()
+%% @equiv previewText(This,Htmltext, [])
+previewText(This,Htmltext)
+ when is_record(This, wx_ref),is_list(Htmltext) ->
+ previewText(This,Htmltext, []).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmltext::string(), [Option]) -> bool()
+%% Option = {basepath, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingpreviewtext">external documentation</a>.
+previewText(#wx_ref{type=ThisT,ref=ThisRef},Htmltext, Options)
+ when is_list(Htmltext),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Htmltext_UC = unicode:characters_to_binary([Htmltext,0]),
+ MOpts = fun({basepath, Basepath}, Acc) -> Basepath_UC = unicode:characters_to_binary([Basepath,0]),[<<1:32/?UI,(byte_size(Basepath_UC)):32/?UI,(Basepath_UC)/binary, 0:(((8- ((0+byte_size(Basepath_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxHtmlEasyPrinting_PreviewText,
+ <<ThisRef:32/?UI,(byte_size(Htmltext_UC)):32/?UI,(Htmltext_UC)/binary, 0:(((8- ((0+byte_size(Htmltext_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmlfile::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingprintfile">external documentation</a>.
+printFile(#wx_ref{type=ThisT,ref=ThisRef},Htmlfile)
+ when is_list(Htmlfile) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Htmlfile_UC = unicode:characters_to_binary([Htmlfile,0]),
+ wxe_util:call(?wxHtmlEasyPrinting_PrintFile,
+ <<ThisRef:32/?UI,(byte_size(Htmlfile_UC)):32/?UI,(Htmlfile_UC)/binary, 0:(((8- ((0+byte_size(Htmlfile_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmltext::string()) -> bool()
+%% @equiv printText(This,Htmltext, [])
+printText(This,Htmltext)
+ when is_record(This, wx_ref),is_list(Htmltext) ->
+ printText(This,Htmltext, []).
+
+%% @spec (This::wxHtmlEasyPrinting(), Htmltext::string(), [Option]) -> bool()
+%% Option = {basepath, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingprinttext">external documentation</a>.
+printText(#wx_ref{type=ThisT,ref=ThisRef},Htmltext, Options)
+ when is_list(Htmltext),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Htmltext_UC = unicode:characters_to_binary([Htmltext,0]),
+ MOpts = fun({basepath, Basepath}, Acc) -> Basepath_UC = unicode:characters_to_binary([Basepath,0]),[<<1:32/?UI,(byte_size(Basepath_UC)):32/?UI,(Basepath_UC)/binary, 0:(((8- ((0+byte_size(Basepath_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxHtmlEasyPrinting_PrintText,
+ <<ThisRef:32/?UI,(byte_size(Htmltext_UC)):32/?UI,(Htmltext_UC)/binary, 0:(((8- ((0+byte_size(Htmltext_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingpagesetup">external documentation</a>.
+pageSetup(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ wxe_util:cast(?wxHtmlEasyPrinting_PageSetup,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Normal_face::string(), Fixed_face::string()) -> ok
+%% @equiv setFonts(This,Normal_face,Fixed_face, [])
+setFonts(This,Normal_face,Fixed_face)
+ when is_record(This, wx_ref),is_list(Normal_face),is_list(Fixed_face) ->
+ setFonts(This,Normal_face,Fixed_face, []).
+
+%% @spec (This::wxHtmlEasyPrinting(), Normal_face::string(), Fixed_face::string(), [Option]) -> ok
+%% Option = {sizes, [integer()]}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingsetfonts">external documentation</a>.
+setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options)
+ when is_list(Normal_face),is_list(Fixed_face),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Normal_face_UC = unicode:characters_to_binary([Normal_face,0]),
+ Fixed_face_UC = unicode:characters_to_binary([Fixed_face,0]),
+ MOpts = fun({sizes, Sizes}, Acc) -> [<<1:32/?UI,(length(Sizes)):32/?UI,
+ (<< <<C:32/?I>> || C <- Sizes>>)/binary, 0:(((0+length(Sizes)) rem 2)*32)>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxHtmlEasyPrinting_SetFonts,
+ <<ThisRef:32/?UI,(byte_size(Normal_face_UC)):32/?UI,(Normal_face_UC)/binary, 0:(((8- ((0+byte_size(Normal_face_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Fixed_face_UC)):32/?UI,(Fixed_face_UC)/binary, 0:(((8- ((4+byte_size(Fixed_face_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Header::string()) -> ok
+%% @equiv setHeader(This,Header, [])
+setHeader(This,Header)
+ when is_record(This, wx_ref),is_list(Header) ->
+ setHeader(This,Header, []).
+
+%% @spec (This::wxHtmlEasyPrinting(), Header::string(), [Option]) -> ok
+%% Option = {pg, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingsetheader">external documentation</a>.
+setHeader(#wx_ref{type=ThisT,ref=ThisRef},Header, Options)
+ when is_list(Header),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Header_UC = unicode:characters_to_binary([Header,0]),
+ MOpts = fun({pg, Pg}, Acc) -> [<<1:32/?UI,Pg:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxHtmlEasyPrinting_SetHeader,
+ <<ThisRef:32/?UI,(byte_size(Header_UC)):32/?UI,(Header_UC)/binary, 0:(((8- ((0+byte_size(Header_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting(), Footer::string()) -> ok
+%% @equiv setFooter(This,Footer, [])
+setFooter(This,Footer)
+ when is_record(This, wx_ref),is_list(Footer) ->
+ setFooter(This,Footer, []).
+
+%% @spec (This::wxHtmlEasyPrinting(), Footer::string(), [Option]) -> ok
+%% Option = {pg, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmleasyprinting.html#wxhtmleasyprintingsetfooter">external documentation</a>.
+setFooter(#wx_ref{type=ThisT,ref=ThisRef},Footer, Options)
+ when is_list(Footer),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlEasyPrinting),
+ Footer_UC = unicode:characters_to_binary([Footer,0]),
+ MOpts = fun({pg, Pg}, Acc) -> [<<1:32/?UI,Pg:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxHtmlEasyPrinting_SetFooter,
+ <<ThisRef:32/?UI,(byte_size(Footer_UC)):32/?UI,(Footer_UC)/binary, 0:(((8- ((0+byte_size(Footer_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlEasyPrinting()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxHtmlEasyPrinting),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxHtmlLinkEvent.erl b/lib/wx/src/gen/wxHtmlLinkEvent.erl
new file mode 100644
index 0000000000..04eccad939
--- /dev/null
+++ b/lib/wx/src/gen/wxHtmlLinkEvent.erl
@@ -0,0 +1,92 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmllinkevent.html">wxHtmlLinkEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_html_link_clicked</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxHtmlLink(). #wxHtmlLink{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxHtmlLinkEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxHtmlLinkEvent).
+-include("wxe.hrl").
+-export([getLinkInfo/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxHtmlLinkEvent()) -> wx:wxHtmlLinkInfo()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmllinkevent.html#wxhtmllinkeventgetlinkinfo">external documentation</a>.
+getLinkInfo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlLinkEvent),
+ wxe_util:call(?wxHtmlLinkEvent_GetLinkInfo,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxHtmlWindow.erl b/lib/wx/src/gen/wxHtmlWindow.erl
new file mode 100644
index 0000000000..6f43c17890
--- /dev/null
+++ b/lib/wx/src/gen/wxHtmlWindow.erl
@@ -0,0 +1,695 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html">wxHtmlWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxScrolledWindow}
+%% <br />{@link wxPanel}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxHtmlWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxHtmlWindow).
+-include("wxe.hrl").
+-export([appendToPage/2,destroy/1,getOpenedAnchor/1,getOpenedPage/1,getOpenedPageTitle/1,
+ getRelatedFrame/1,historyBack/1,historyCanBack/1,historyCanForward/1,
+ historyClear/1,historyForward/1,loadFile/2,loadPage/2,new/0,new/1,new/2,
+ selectAll/1,selectLine/2,selectWord/2,selectionToText/1,setBorders/2,
+ setFonts/3,setFonts/4,setPage/2,setRelatedFrame/3,setRelatedStatusBar/2,
+ toText/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,calcScrolledPosition/2,calcScrolledPosition/3,calcUnscrolledPosition/2,
+ calcUnscrolledPosition/3,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ doPrepareDC/2,enable/1,enable/2,enableScrolling/3,findWindow/2,fit/1,
+ fitInside/1,freeze/1,getAcceleratorTable/1,getBackgroundColour/1,
+ getBackgroundStyle/1,getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,
+ getChildren/1,getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPixelsPerUnit/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getToolTip/1,getUpdateRegion/1,getViewStart/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,prepareDC/2,raise/1,refresh/1,refresh/2,
+ refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,
+ screenToClient/1,screenToClient/2,scroll/3,scrollLines/2,scrollPages/2,
+ scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollRate/3,setScrollbar/5,setScrollbar/6,
+ setScrollbars/5,setScrollbars/6,setSize/2,setSize/3,setSize/5,setSize/6,
+ setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,
+ setSizerAndFit/2,setSizerAndFit/3,setTargetWindow/2,setThemeEnabled/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxScrolledWindow) -> true;
+parent_class(wxPanel) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxHtmlWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowwxhtmlwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxHtmlWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxHtmlWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxHtmlWindow()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowwxhtmlwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxHtmlWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxHtmlWindow(), Source::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowappendtopage">external documentation</a>.
+appendToPage(#wx_ref{type=ThisT,ref=ThisRef},Source)
+ when is_list(Source) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ Source_UC = unicode:characters_to_binary([Source,0]),
+ wxe_util:call(?wxHtmlWindow_AppendToPage,
+ <<ThisRef:32/?UI,(byte_size(Source_UC)):32/?UI,(Source_UC)/binary, 0:(((8- ((0+byte_size(Source_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowgetopenedanchor">external documentation</a>.
+getOpenedAnchor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_GetOpenedAnchor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowgetopenedpage">external documentation</a>.
+getOpenedPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_GetOpenedPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowgetopenedpagetitle">external documentation</a>.
+getOpenedPageTitle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_GetOpenedPageTitle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> wxFrame:wxFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowgetrelatedframe">external documentation</a>.
+getRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_GetRelatedFrame,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowhistoryback">external documentation</a>.
+historyBack(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_HistoryBack,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowhistorycanback">external documentation</a>.
+historyCanBack(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_HistoryCanBack,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowhistorycanforward">external documentation</a>.
+historyCanForward(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_HistoryCanForward,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowhistoryclear">external documentation</a>.
+historyClear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_HistoryClear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowhistoryforward">external documentation</a>.
+historyForward(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_HistoryForward,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow(), Filename::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowloadfile">external documentation</a>.
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename)
+ when is_list(Filename) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ wxe_util:call(?wxHtmlWindow_LoadFile,
+ <<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlWindow(), Location::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowloadpage">external documentation</a>.
+loadPage(#wx_ref{type=ThisT,ref=ThisRef},Location)
+ when is_list(Location) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ Location_UC = unicode:characters_to_binary([Location,0]),
+ wxe_util:call(?wxHtmlWindow_LoadPage,
+ <<ThisRef:32/?UI,(byte_size(Location_UC)):32/?UI,(Location_UC)/binary, 0:(((8- ((0+byte_size(Location_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowselectall">external documentation</a>.
+selectAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_SelectAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowselectiontotext">external documentation</a>.
+selectionToText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_SelectionToText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow(), Pos::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowselectline">external documentation</a>.
+selectLine(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_SelectLine,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow(), Pos::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowselectword">external documentation</a>.
+selectWord(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY})
+ when is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_SelectWord,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowsetborders">external documentation</a>.
+setBorders(#wx_ref{type=ThisT,ref=ThisRef},B)
+ when is_integer(B) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_SetBorders,
+ <<ThisRef:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string()) -> ok
+%% @equiv setFonts(This,Normal_face,Fixed_face, [])
+setFonts(This,Normal_face,Fixed_face)
+ when is_record(This, wx_ref),is_list(Normal_face),is_list(Fixed_face) ->
+ setFonts(This,Normal_face,Fixed_face, []).
+
+%% @spec (This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(), [Option]) -> ok
+%% Option = {sizes, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowsetfonts">external documentation</a>.
+setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options)
+ when is_list(Normal_face),is_list(Fixed_face),is_list(Options) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ Normal_face_UC = unicode:characters_to_binary([Normal_face,0]),
+ Fixed_face_UC = unicode:characters_to_binary([Fixed_face,0]),
+ MOpts = fun({sizes, Sizes}, Acc) -> [<<1:32/?UI,Sizes:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxHtmlWindow_SetFonts,
+ <<ThisRef:32/?UI,(byte_size(Normal_face_UC)):32/?UI,(Normal_face_UC)/binary, 0:(((8- ((0+byte_size(Normal_face_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Fixed_face_UC)):32/?UI,(Fixed_face_UC)/binary, 0:(((8- ((4+byte_size(Fixed_face_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxHtmlWindow(), Source::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowsetpage">external documentation</a>.
+setPage(#wx_ref{type=ThisT,ref=ThisRef},Source)
+ when is_list(Source) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ Source_UC = unicode:characters_to_binary([Source,0]),
+ wxe_util:call(?wxHtmlWindow_SetPage,
+ <<ThisRef:32/?UI,(byte_size(Source_UC)):32/?UI,(Source_UC)/binary, 0:(((8- ((0+byte_size(Source_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowsetrelatedframe">external documentation</a>.
+setRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef},Format)
+ when is_list(Format) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ ?CLASS(FrameT,wxFrame),
+ Format_UC = unicode:characters_to_binary([Format,0]),
+ wxe_util:cast(?wxHtmlWindow_SetRelatedFrame,
+ <<ThisRef:32/?UI,FrameRef:32/?UI,(byte_size(Format_UC)):32/?UI,(Format_UC)/binary, 0:(((8- ((4+byte_size(Format_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxHtmlWindow(), Bar::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowsetrelatedstatusbar">external documentation</a>.
+setRelatedStatusBar(#wx_ref{type=ThisT,ref=ThisRef},Bar)
+ when is_integer(Bar) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:cast(?wxHtmlWindow_SetRelatedStatusBar,
+ <<ThisRef:32/?UI,Bar:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxhtmlwindow.html#wxhtmlwindowtotext">external documentation</a>.
+toText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxHtmlWindow),
+ wxe_util:call(?wxHtmlWindow_ToText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxHtmlWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxHtmlWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxScrolledWindow
+%% @hidden
+setTargetWindow(This,Target) -> wxScrolledWindow:setTargetWindow(This,Target).
+%% @hidden
+setScrollRate(This,Xstep,Ystep) -> wxScrolledWindow:setScrollRate(This,Xstep,Ystep).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY).
+%% @hidden
+scroll(This,X,Y) -> wxScrolledWindow:scroll(This,X,Y).
+%% @hidden
+prepareDC(This,Dc) -> wxScrolledWindow:prepareDC(This,Dc).
+%% @hidden
+doPrepareDC(This,Dc) -> wxScrolledWindow:doPrepareDC(This,Dc).
+%% @hidden
+getViewStart(This) -> wxScrolledWindow:getViewStart(This).
+%% @hidden
+getScrollPixelsPerUnit(This) -> wxScrolledWindow:getScrollPixelsPerUnit(This).
+%% @hidden
+enableScrolling(This,X_scrolling,Y_scrolling) -> wxScrolledWindow:enableScrolling(This,X_scrolling,Y_scrolling).
+%% @hidden
+calcUnscrolledPosition(This,X,Y) -> wxScrolledWindow:calcUnscrolledPosition(This,X,Y).
+%% @hidden
+calcUnscrolledPosition(This,Pt) -> wxScrolledWindow:calcUnscrolledPosition(This,Pt).
+%% @hidden
+calcScrolledPosition(This,X,Y) -> wxScrolledWindow:calcScrolledPosition(This,X,Y).
+%% @hidden
+calcScrolledPosition(This,Pt) -> wxScrolledWindow:calcScrolledPosition(This,Pt).
+ %% From wxPanel
+%% @hidden
+initDialog(This) -> wxPanel:initDialog(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxIcon.erl b/lib/wx/src/gen/wxIcon.erl
new file mode 100644
index 0000000000..d95fad1458
--- /dev/null
+++ b/lib/wx/src/gen/wxIcon.erl
@@ -0,0 +1,131 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxicon.html">wxIcon</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxBitmap}
+%% </p>
+%% @type wxIcon(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxIcon).
+-include("wxe.hrl").
+-export([copyFromBitmap/2,destroy/1,new/0,new/1,new/2]).
+
+%% inherited exports
+-export([convertToImage/1,copyFromIcon/2,getDepth/1,getHeight/1,getMask/1,getPalette/1,
+ getSubBitmap/2,getWidth/1,loadFile/2,loadFile/3,ok/1,parent_class/1,
+ saveFile/3,saveFile/4,setDepth/2,setHeight/2,setMask/2,setPalette/2,
+ setWidth/2]).
+
+%% @hidden
+parent_class(wxBitmap) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxicon.html#wxiconwxicon">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxIcon_new_0,
+ <<>>).
+
+%% @spec (X::string()|term()) -> wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxicon.html#wxiconwxicon">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Filename::string()) -> new(Filename, []) </c></p>
+%% <p><c>
+%% new(Loc::wx:wx()) -> wxIcon() </c>
+%% </p>
+
+new(Filename)
+ when is_list(Filename) ->
+ new(Filename, []);
+new(#wx_ref{type=LocT,ref=LocRef}) ->
+ ?CLASS(LocT,wx),
+ wxe_util:construct(?wxIcon_new_1,
+ <<LocRef:32/?UI>>).
+
+%% @spec (Filename::string(), [Option]) -> wxIcon()
+%% Option = {type, WxBitmapType} | {desiredWidth, integer()} | {desiredHeight, integer()}
+%% WxBitmapType = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxicon.html#wxiconwxicon">external documentation</a>.
+%%<br /> WxBitmapType is one of ?wxBITMAP_TYPE_INVALID | ?wxBITMAP_TYPE_BMP | ?wxBITMAP_TYPE_BMP_RESOURCE | ?wxBITMAP_TYPE_RESOURCE | ?wxBITMAP_TYPE_ICO | ?wxBITMAP_TYPE_ICO_RESOURCE | ?wxBITMAP_TYPE_CUR | ?wxBITMAP_TYPE_CUR_RESOURCE | ?wxBITMAP_TYPE_XBM | ?wxBITMAP_TYPE_XBM_DATA | ?wxBITMAP_TYPE_XPM | ?wxBITMAP_TYPE_XPM_DATA | ?wxBITMAP_TYPE_TIF | ?wxBITMAP_TYPE_TIF_RESOURCE | ?wxBITMAP_TYPE_GIF | ?wxBITMAP_TYPE_GIF_RESOURCE | ?wxBITMAP_TYPE_PNG | ?wxBITMAP_TYPE_PNG_RESOURCE | ?wxBITMAP_TYPE_JPEG | ?wxBITMAP_TYPE_JPEG_RESOURCE | ?wxBITMAP_TYPE_PNM | ?wxBITMAP_TYPE_PNM_RESOURCE | ?wxBITMAP_TYPE_PCX | ?wxBITMAP_TYPE_PCX_RESOURCE | ?wxBITMAP_TYPE_PICT | ?wxBITMAP_TYPE_PICT_RESOURCE | ?wxBITMAP_TYPE_ICON | ?wxBITMAP_TYPE_ICON_RESOURCE | ?wxBITMAP_TYPE_ANI | ?wxBITMAP_TYPE_IFF | ?wxBITMAP_TYPE_TGA | ?wxBITMAP_TYPE_MACCURSOR | ?wxBITMAP_TYPE_MACCURSOR_RESOURCE | ?wxBITMAP_TYPE_ANY
+new(Filename, Options)
+ when is_list(Filename),is_list(Options) ->
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ ({desiredWidth, DesiredWidth}, Acc) -> [<<2:32/?UI,DesiredWidth:32/?UI>>|Acc];
+ ({desiredHeight, DesiredHeight}, Acc) -> [<<3:32/?UI,DesiredHeight:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxIcon_new_2,
+ <<(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((4+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxIcon(), Bmp::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxicon.html#wxiconcopyfrombitmap">external documentation</a>.
+copyFromBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) ->
+ ?CLASS(ThisT,wxIcon),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxIcon_CopyFromBitmap,
+ <<ThisRef:32/?UI,BmpRef:32/?UI>>).
+
+%% @spec (This::wxIcon()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxIcon),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxBitmap
+%% @hidden
+setWidth(This,Width) -> wxBitmap:setWidth(This,Width).
+%% @hidden
+setPalette(This,Palette) -> wxBitmap:setPalette(This,Palette).
+%% @hidden
+setMask(This,Mask) -> wxBitmap:setMask(This,Mask).
+%% @hidden
+setHeight(This,Height) -> wxBitmap:setHeight(This,Height).
+%% @hidden
+setDepth(This,Depth) -> wxBitmap:setDepth(This,Depth).
+%% @hidden
+saveFile(This,Name,Type, Options) -> wxBitmap:saveFile(This,Name,Type, Options).
+%% @hidden
+saveFile(This,Name,Type) -> wxBitmap:saveFile(This,Name,Type).
+%% @hidden
+ok(This) -> wxBitmap:ok(This).
+%% @hidden
+loadFile(This,Name, Options) -> wxBitmap:loadFile(This,Name, Options).
+%% @hidden
+loadFile(This,Name) -> wxBitmap:loadFile(This,Name).
+%% @hidden
+getSubBitmap(This,Rect) -> wxBitmap:getSubBitmap(This,Rect).
+%% @hidden
+getWidth(This) -> wxBitmap:getWidth(This).
+%% @hidden
+getMask(This) -> wxBitmap:getMask(This).
+%% @hidden
+getPalette(This) -> wxBitmap:getPalette(This).
+%% @hidden
+getHeight(This) -> wxBitmap:getHeight(This).
+%% @hidden
+getDepth(This) -> wxBitmap:getDepth(This).
+%% @hidden
+copyFromIcon(This,Icon) -> wxBitmap:copyFromIcon(This,Icon).
+%% @hidden
+convertToImage(This) -> wxBitmap:convertToImage(This).
diff --git a/lib/wx/src/gen/wxIconBundle.erl b/lib/wx/src/gen/wxIconBundle.erl
new file mode 100644
index 0000000000..be600c69da
--- /dev/null
+++ b/lib/wx/src/gen/wxIconBundle.erl
@@ -0,0 +1,113 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html">wxIconBundle</a>.
+%% @type wxIconBundle(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxIconBundle).
+-include("wxe.hrl").
+-export([addIcon/2,addIcon/3,destroy/1,getIcon/1,getIcon/2,new/0,new/1,new/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxIconBundle()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundlewxiconbundle">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxIconBundle_new_0,
+ <<>>).
+
+%% @spec (Ic::wxIconBundle() | wxIcon:wxIcon()) -> wxIconBundle()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundlewxiconbundle">external documentation</a>.
+new(#wx_ref{type=IcT,ref=IcRef}) ->
+ IcOP = case ?CLASS_T(IcT,wxIconBundle) of
+ true ->
+ ?wxIconBundle_new_1_1;
+ _ -> ?CLASS(IcT,wxIcon),
+ ?wxIconBundle_new_1_0
+ end,
+ wxe_util:construct(IcOP,
+ <<IcRef:32/?UI>>).
+
+%% @spec (File::string(), Type::integer()) -> wxIconBundle()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundlewxiconbundle">external documentation</a>.
+new(File,Type)
+ when is_list(File),is_integer(Type) ->
+ File_UC = unicode:characters_to_binary([File,0]),
+ wxe_util:construct(?wxIconBundle_new_2,
+ <<(byte_size(File_UC)):32/?UI,(File_UC)/binary, 0:(((8- ((4+byte_size(File_UC)) band 16#7)) band 16#7))/unit:8,Type:32/?UI>>).
+
+%% @spec (This::wxIconBundle(), Icon::wxIcon:wxIcon()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundleaddicon">external documentation</a>.
+addIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef}) ->
+ ?CLASS(ThisT,wxIconBundle),
+ ?CLASS(IconT,wxIcon),
+ wxe_util:cast(?wxIconBundle_AddIcon_1,
+ <<ThisRef:32/?UI,IconRef:32/?UI>>).
+
+%% @spec (This::wxIconBundle(), File::string(), Type::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundleaddicon">external documentation</a>.
+addIcon(#wx_ref{type=ThisT,ref=ThisRef},File,Type)
+ when is_list(File),is_integer(Type) ->
+ ?CLASS(ThisT,wxIconBundle),
+ File_UC = unicode:characters_to_binary([File,0]),
+ wxe_util:cast(?wxIconBundle_AddIcon_2,
+ <<ThisRef:32/?UI,(byte_size(File_UC)):32/?UI,(File_UC)/binary, 0:(((8- ((0+byte_size(File_UC)) band 16#7)) band 16#7))/unit:8,Type:32/?UI>>).
+
+%% @spec (This::wxIconBundle()) -> wxIcon:wxIcon()
+%% @equiv getIcon(This, [])
+getIcon(This)
+ when is_record(This, wx_ref) ->
+ getIcon(This, []).
+
+%% @spec (This::wxIconBundle(),X::term()) -> wxIcon:wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconbundle.html#wxiconbundlegeticon">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% getIcon(This::wxIconBundle(), [Option]) -> wxIcon:wxIcon() </c>
+%%<br /> Option = {size, integer()}
+%% </p>
+%% <p><c>
+%% getIcon(This::wxIconBundle(), Size::{W::integer(),H::integer()}) -> wxIcon:wxIcon() </c>
+%% </p>
+getIcon(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxIconBundle),
+ MOpts = fun({size, Size}, Acc) -> [<<1:32/?UI,Size:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxIconBundle_GetIcon_1_0,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>);
+getIcon(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxIconBundle),
+ wxe_util:call(?wxIconBundle_GetIcon_1_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxIconBundle()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxIconBundle),
+ wxe_util:destroy(?wxIconBundle_destruct,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxIconizeEvent.erl b/lib/wx/src/gen/wxIconizeEvent.erl
new file mode 100644
index 0000000000..09f8843b74
--- /dev/null
+++ b/lib/wx/src/gen/wxIconizeEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconizeevent.html">wxIconizeEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>iconize</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxIconize(). #wxIconize{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxIconizeEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxIconizeEvent).
+-include("wxe.hrl").
+-export([iconized/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxIconizeEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxiconizeevent.html#wxiconizeeventiconized">external documentation</a>.
+iconized(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxIconizeEvent),
+ wxe_util:call(?wxIconizeEvent_Iconized,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxIdleEvent.erl b/lib/wx/src/gen/wxIdleEvent.erl
new file mode 100644
index 0000000000..e205eff522
--- /dev/null
+++ b/lib/wx/src/gen/wxIdleEvent.erl
@@ -0,0 +1,111 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html">wxIdleEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>idle</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxIdle(). #wxIdle{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxIdleEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxIdleEvent).
+-include("wxe.hrl").
+-export([canSend/1,getMode/0,moreRequested/1,requestMore/1,requestMore/2,setMode/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Win::wxWindow:wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html#wxidleeventcansend">external documentation</a>.
+canSend(#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(WinT,wxWindow),
+ wxe_util:call(?wxIdleEvent_CanSend,
+ <<WinRef:32/?UI>>).
+
+%% @spec () -> WxIdleMode
+%% WxIdleMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html#wxidleeventgetmode">external documentation</a>.
+%%<br /> WxIdleMode is one of ?wxIDLE_PROCESS_ALL | ?wxIDLE_PROCESS_SPECIFIED
+getMode() ->
+ wxe_util:call(?wxIdleEvent_GetMode,
+ <<>>).
+
+%% @spec (This::wxIdleEvent()) -> ok
+%% @equiv requestMore(This, [])
+requestMore(This)
+ when is_record(This, wx_ref) ->
+ requestMore(This, []).
+
+%% @spec (This::wxIdleEvent(), [Option]) -> ok
+%% Option = {needMore, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html#wxidleeventrequestmore">external documentation</a>.
+requestMore(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxIdleEvent),
+ MOpts = fun({needMore, NeedMore}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(NeedMore)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxIdleEvent_RequestMore,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxIdleEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html#wxidleeventmorerequested">external documentation</a>.
+moreRequested(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxIdleEvent),
+ wxe_util:call(?wxIdleEvent_MoreRequested,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Mode::WxIdleMode) -> ok
+%% WxIdleMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxidleevent.html#wxidleeventsetmode">external documentation</a>.
+%%<br /> WxIdleMode is one of ?wxIDLE_PROCESS_ALL | ?wxIDLE_PROCESS_SPECIFIED
+setMode(Mode)
+ when is_integer(Mode) ->
+ wxe_util:cast(?wxIdleEvent_SetMode,
+ <<Mode:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxImage.erl b/lib/wx/src/gen/wxImage.erl
new file mode 100644
index 0000000000..f90ae09707
--- /dev/null
+++ b/lib/wx/src/gen/wxImage.erl
@@ -0,0 +1,905 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html">wxImage</a>.
+%%
+%% All (default) image handlers are initialized.
+
+%%
+%% @type wxImage(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxImage).
+-include("wxe.hrl").
+-export(['Destroy'/1,blur/2,blurHorizontal/2,blurVertical/2,convertAlphaToMask/1,
+ convertAlphaToMask/2,convertToGreyscale/1,convertToGreyscale/2,convertToMono/4,
+ copy/1,create/3,create/4,create/5,create/6,destroy/1,findFirstUnusedColour/1,
+ findFirstUnusedColour/2,getAlpha/1,getAlpha/3,getBlue/3,getData/1,
+ getGreen/3,getHeight/1,getImageCount/1,getImageCount/2,getImageExtWildcard/0,
+ getMaskBlue/1,getMaskGreen/1,getMaskRed/1,getOption/2,getOptionInt/2,
+ getOrFindMaskColour/1,getPalette/1,getRed/3,getSubImage/2,getWidth/1,
+ hasAlpha/1,hasMask/1,hasOption/2,initAlpha/1,initStandardHandlers/0,
+ isTransparent/3,isTransparent/4,loadFile/2,loadFile/3,loadFile/4,mirror/1,
+ mirror/2,new/0,new/1,new/2,new/3,new/4,new/5,ok/1,removeHandler/1,replace/7,
+ rescale/3,rescale/4,resize/3,resize/4,rotate/3,rotate/4,rotate90/1,rotate90/2,
+ rotateHue/2,saveFile/2,saveFile/3,scale/3,scale/4,setAlpha/2,setAlpha/3,
+ setAlpha/4,setData/2,setData/3,setData/4,setData/5,setMask/1,setMask/2,
+ setMaskColour/4,setMaskFromImage/5,setOption/3,setPalette/2,setRGB/5,
+ setRGB/6,size/3,size/4]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagewximage">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxImage_new_0,
+ <<>>).
+
+%% @spec (Name::string()) -> wxImage()
+%% @equiv new(Name, [])
+new(Name)
+ when is_list(Name) ->
+ new(Name, []).
+
+%% @spec (X::integer()|string(),X::integer()|term()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagewximage">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Width::integer(), Height::integer()) -> new(Width,Height, []) </c></p>
+%% <p><c>
+%% new(Name::string(), [Option]) -> wxImage() </c>
+%%<br /> Option = {type, integer()} | {index, integer()}
+%% </p>
+
+new(Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ new(Width,Height, []);
+new(Name, Options)
+ when is_list(Name),is_list(Options) ->
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ ({index, Index}, Acc) -> [<<2:32/?UI,Index:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImage_new_2,
+ <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (X::integer()|string(),X::integer()|string(),X::binary()|term()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagewximage">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Width::integer(), Height::integer(), Data::binary()) -> new(Width,Height,Data, []) </c></p>
+%% <p><c>
+%% new(Width::integer(), Height::integer(), [Option]) -> wxImage() </c>
+%%<br /> Option = {clear, bool()}
+%% </p>
+%% <p><c>
+%% new(Name::string(), Mimetype::string(), [Option]) -> wxImage() </c>
+%%<br /> Option = {index, integer()}
+%% </p>
+
+new(Width,Height,Data)
+ when is_integer(Width),is_integer(Height),is_binary(Data) ->
+ new(Width,Height,Data, []);
+new(Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ MOpts = fun({clear, Clear}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Clear)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImage_new_3_0,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>);
+new(Name,Mimetype, Options)
+ when is_list(Name),is_list(Mimetype),is_list(Options) ->
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ Mimetype_UC = unicode:characters_to_binary([Mimetype,0]),
+ MOpts = fun({index, Index}, Acc) -> [<<1:32/?UI,Index:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImage_new_3_1,
+ <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Mimetype_UC)):32/?UI,(Mimetype_UC)/binary, 0:(((8- ((4+byte_size(Mimetype_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (Width::integer(),Height::integer(),Data::binary(),X::binary()|term()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagewximage">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Width::integer(), Height::integer(), Data::binary(), Alpha::binary()) -> new(Width,Height,Data,Alpha, []) </c></p>
+%% <p><c>
+%% new(Width::integer(), Height::integer(), Data::binary(), [Option]) -> wxImage() </c>
+%%<br /> Option = {static_data, bool()}
+%% </p>
+
+new(Width,Height,Data,Alpha)
+ when is_integer(Width),is_integer(Height),is_binary(Data),is_binary(Alpha) ->
+ new(Width,Height,Data,Alpha, []);
+new(Width,Height,Data, Options)
+ when is_integer(Width),is_integer(Height),is_binary(Data),is_list(Options) ->
+ wxe_util:send_bin(Data),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImage_new_4,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), [Option]) -> wxImage()
+%% Option = {static_data, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagewximage">external documentation</a>.
+new(Width,Height,Data,Alpha, Options)
+ when is_integer(Width),is_integer(Height),is_binary(Data),is_binary(Alpha),is_list(Options) ->
+ wxe_util:send_bin(Data),
+ wxe_util:send_bin(Alpha),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImage_new_5,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Radius::integer()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageblur">external documentation</a>.
+blur(#wx_ref{type=ThisT,ref=ThisRef},Radius)
+ when is_integer(Radius) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_Blur,
+ <<ThisRef:32/?UI,Radius:32/?UI>>).
+
+%% @spec (This::wxImage(), Radius::integer()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageblurhorizontal">external documentation</a>.
+blurHorizontal(#wx_ref{type=ThisT,ref=ThisRef},Radius)
+ when is_integer(Radius) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_BlurHorizontal,
+ <<ThisRef:32/?UI,Radius:32/?UI>>).
+
+%% @spec (This::wxImage(), Radius::integer()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageblurvertical">external documentation</a>.
+blurVertical(#wx_ref{type=ThisT,ref=ThisRef},Radius)
+ when is_integer(Radius) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_BlurVertical,
+ <<ThisRef:32/?UI,Radius:32/?UI>>).
+
+%% @spec (This::wxImage()) -> bool()
+%% @equiv convertAlphaToMask(This, [])
+convertAlphaToMask(This)
+ when is_record(This, wx_ref) ->
+ convertAlphaToMask(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> bool()
+%% Option = {threshold, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageconvertalphatomask">external documentation</a>.
+convertAlphaToMask(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({threshold, Threshold}, Acc) -> [<<1:32/?UI,Threshold:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_ConvertAlphaToMask,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage()) -> wxImage()
+%% @equiv convertToGreyscale(This, [])
+convertToGreyscale(This)
+ when is_record(This, wx_ref) ->
+ convertToGreyscale(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> wxImage()
+%% Option = {lr, float()} | {lg, float()} | {lb, float()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageconverttogreyscale">external documentation</a>.
+convertToGreyscale(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({lr, Lr}, Acc) -> [<<1:32/?UI,0:32,Lr:64/?F>>|Acc];
+ ({lg, Lg}, Acc) -> [<<2:32/?UI,0:32,Lg:64/?F>>|Acc];
+ ({lb, Lb}, Acc) -> [<<3:32/?UI,0:32,Lb:64/?F>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_ConvertToGreyscale,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), R::integer(), G::integer(), B::integer()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageconverttomono">external documentation</a>.
+convertToMono(#wx_ref{type=ThisT,ref=ThisRef},R,G,B)
+ when is_integer(R),is_integer(G),is_integer(B) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_ConvertToMono,
+ <<ThisRef:32/?UI,R:32/?UI,G:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxImage()) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagecopy">external documentation</a>.
+copy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_Copy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer()) -> bool()
+%% @equiv create(This,Width,Height, [])
+create(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ create(This,Width,Height, []).
+
+%% @spec (This::wxImage(),Width::integer(),Height::integer(),X::binary()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagecreate">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary()) -> create(This,Width,Height,Data, []) </c></p>
+%% <p><c>
+%% create(This::wxImage(), Width::integer(), Height::integer(), [Option]) -> bool() </c>
+%%<br /> Option = {clear, bool()}
+%% </p>
+
+create(This,Width,Height,Data)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height),is_binary(Data) ->
+ create(This,Width,Height,Data, []);
+create(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({clear, Clear}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Clear)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Create_3,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(),Width::integer(),Height::integer(),Data::binary(),X::binary()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagecreate">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary()) -> create(This,Width,Height,Data,Alpha, []) </c></p>
+%% <p><c>
+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), [Option]) -> bool() </c>
+%%<br /> Option = {static_data, bool()}
+%% </p>
+
+create(This,Width,Height,Data,Alpha)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height),is_binary(Data),is_binary(Alpha) ->
+ create(This,Width,Height,Data,Alpha, []);
+create(#wx_ref{type=ThisT,ref=ThisRef},Width,Height,Data, Options)
+ when is_integer(Width),is_integer(Height),is_binary(Data),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:send_bin(Data),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Create_4,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), [Option]) -> bool()
+%% Option = {static_data, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},Width,Height,Data,Alpha, Options)
+ when is_integer(Width),is_integer(Height),is_binary(Data),is_binary(Alpha),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:send_bin(Data),
+ wxe_util:send_bin(Alpha),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Create_5,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagedestroy">external documentation</a>.
+'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_Destroy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> {bool(),R::integer(),G::integer(),B::integer()}
+%% @equiv findFirstUnusedColour(This, [])
+findFirstUnusedColour(This)
+ when is_record(This, wx_ref) ->
+ findFirstUnusedColour(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> {bool(),R::integer(),G::integer(),B::integer()}
+%% Option = {startR, integer()} | {startG, integer()} | {startB, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagefindfirstunusedcolour">external documentation</a>.
+findFirstUnusedColour(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({startR, StartR}, Acc) -> [<<1:32/?UI,StartR:32/?UI>>|Acc];
+ ({startG, StartG}, Acc) -> [<<2:32/?UI,StartG:32/?UI>>|Acc];
+ ({startB, StartB}, Acc) -> [<<3:32/?UI,StartB:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_FindFirstUnusedColour,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec () -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetimageextwildcard">external documentation</a>.
+getImageExtWildcard() ->
+ wxe_util:call(?wxImage_GetImageExtWildcard,
+ <<>>).
+
+%% @spec (This::wxImage()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetalpha">external documentation</a>.
+getAlpha(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetAlpha_0,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetalpha">external documentation</a>.
+getAlpha(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetAlpha_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetblue">external documentation</a>.
+getBlue(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetBlue,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxImage()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetdata">external documentation</a>.
+getData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetgreen">external documentation</a>.
+getGreen(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetGreen,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (Name::string()) -> integer()
+%% @equiv getImageCount(Name, [])
+getImageCount(Name)
+ when is_list(Name) ->
+ getImageCount(Name, []).
+
+%% @spec (Name::string(), [Option]) -> integer()
+%% Option = {type, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetimagecount">external documentation</a>.
+getImageCount(Name, Options)
+ when is_list(Name),is_list(Options) ->
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_GetImageCount,
+ <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxImage()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetheight">external documentation</a>.
+getHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetmaskblue">external documentation</a>.
+getMaskBlue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetMaskBlue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetmaskgreen">external documentation</a>.
+getMaskGreen(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetMaskGreen,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetmaskred">external documentation</a>.
+getMaskRed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetMaskRed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> {bool(),R::integer(),G::integer(),B::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetorfindmaskcolour">external documentation</a>.
+getOrFindMaskColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetOrFindMaskColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> wxPalette:wxPalette()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetpalette">external documentation</a>.
+getPalette(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetPalette,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetred">external documentation</a>.
+getRed(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetRed,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxImage(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxImage()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetsubimage">external documentation</a>.
+getSubImage(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetSubImage,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxImage()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetwidth">external documentation</a>.
+getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_GetWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagehasalpha">external documentation</a>.
+hasAlpha(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_HasAlpha,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagehasmask">external documentation</a>.
+hasMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_HasMask,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImage(), Name::string()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetoption">external documentation</a>.
+getOption(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_GetOption,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage(), Name::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagegetoptionint">external documentation</a>.
+getOptionInt(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_GetOptionInt,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage(), Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagehasoption">external documentation</a>.
+hasOption(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_HasOption,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageinitalpha">external documentation</a>.
+initAlpha(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_InitAlpha,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageinitstandardhandlers">external documentation</a>.
+initStandardHandlers() ->
+ wxe_util:cast(?wxImage_InitStandardHandlers,
+ <<>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer()) -> bool()
+%% @equiv isTransparent(This,X,Y, [])
+isTransparent(This,X,Y)
+ when is_record(This, wx_ref),is_integer(X),is_integer(Y) ->
+ isTransparent(This,X,Y, []).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer(), [Option]) -> bool()
+%% Option = {threshold, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageistransparent">external documentation</a>.
+isTransparent(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options)
+ when is_integer(X),is_integer(Y),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({threshold, Threshold}, Acc) -> [<<1:32/?UI,Threshold:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_IsTransparent,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Name::string()) -> bool()
+%% @equiv loadFile(This,Name, [])
+loadFile(This,Name)
+ when is_record(This, wx_ref),is_list(Name) ->
+ loadFile(This,Name, []).
+
+%% @spec (This::wxImage(), Name::string(), [Option]) -> bool()
+%% Option = {type, integer()} | {index, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageloadfile">external documentation</a>.
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},Name, Options)
+ when is_list(Name),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({type, Type}, Acc) -> [<<1:32/?UI,Type:32/?UI>>|Acc];
+ ({index, Index}, Acc) -> [<<2:32/?UI,Index:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_LoadFile_2,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Name::string(), Mimetype::string(), [Option]) -> bool()
+%% Option = {index, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageloadfile">external documentation</a>.
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},Name,Mimetype, Options)
+ when is_list(Name),is_list(Mimetype),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ Mimetype_UC = unicode:characters_to_binary([Mimetype,0]),
+ MOpts = fun({index, Index}, Acc) -> [<<1:32/?UI,Index:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_LoadFile_3,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Mimetype_UC)):32/?UI,(Mimetype_UC)/binary, 0:(((8- ((4+byte_size(Mimetype_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxImage()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageok">external documentation</a>.
+ok(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:call(?wxImage_Ok,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageremovehandler">external documentation</a>.
+removeHandler(Name)
+ when is_list(Name) ->
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_RemoveHandler,
+ <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage()) -> wxImage()
+%% @equiv mirror(This, [])
+mirror(This)
+ when is_record(This, wx_ref) ->
+ mirror(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> wxImage()
+%% Option = {horizontally, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagemirror">external documentation</a>.
+mirror(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({horizontally, Horizontally}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Horizontally)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Mirror,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), R1::integer(), G1::integer(), B1::integer(), R2::integer(), G2::integer(), B2::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagereplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},R1,G1,B1,R2,G2,B2)
+ when is_integer(R1),is_integer(G1),is_integer(B1),is_integer(R2),is_integer(G2),is_integer(B2) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_Replace,
+ <<ThisRef:32/?UI,R1:32/?UI,G1:32/?UI,B1:32/?UI,R2:32/?UI,G2:32/?UI,B2:32/?UI>>).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer()) -> wxImage()
+%% @equiv rescale(This,Width,Height, [])
+rescale(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ rescale(This,Width,Height, []).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer(), [Option]) -> wxImage()
+%% Option = {quality, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagerescale">external documentation</a>.
+rescale(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({quality, Quality}, Acc) -> [<<1:32/?UI,Quality:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Rescale,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Size::{W::integer(),H::integer()}, Pos::{X::integer(),Y::integer()}) -> wxImage()
+%% @equiv resize(This,Size,Pos, [])
+resize(This,Size={SizeW,SizeH},Pos={PosX,PosY})
+ when is_record(This, wx_ref),is_integer(SizeW),is_integer(SizeH),is_integer(PosX),is_integer(PosY) ->
+ resize(This,Size,Pos, []).
+
+%% @spec (This::wxImage(), Size::{W::integer(),H::integer()}, Pos::{X::integer(),Y::integer()}, [Option]) -> wxImage()
+%% Option = {r, integer()} | {g, integer()} | {b, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximageresize">external documentation</a>.
+resize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH},{PosX,PosY}, Options)
+ when is_integer(SizeW),is_integer(SizeH),is_integer(PosX),is_integer(PosY),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({r, R}, Acc) -> [<<1:32/?UI,R:32/?UI>>|Acc];
+ ({g, G}, Acc) -> [<<2:32/?UI,G:32/?UI>>|Acc];
+ ({b, B}, Acc) -> [<<3:32/?UI,B:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Resize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI,PosX:32/?UI,PosY:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Angle::float(), Centre_of_rotation::{X::integer(),Y::integer()}) -> wxImage()
+%% @equiv rotate(This,Angle,Centre_of_rotation, [])
+rotate(This,Angle,Centre_of_rotation={Centre_of_rotationX,Centre_of_rotationY})
+ when is_record(This, wx_ref),is_float(Angle),is_integer(Centre_of_rotationX),is_integer(Centre_of_rotationY) ->
+ rotate(This,Angle,Centre_of_rotation, []).
+
+%% @spec (This::wxImage(), Angle::float(), Centre_of_rotation::{X::integer(),Y::integer()}, [Option]) -> wxImage()
+%% Option = {interpolating, bool()} | {offset_after_rotation, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagerotate">external documentation</a>.
+rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle,{Centre_of_rotationX,Centre_of_rotationY}, Options)
+ when is_float(Angle),is_integer(Centre_of_rotationX),is_integer(Centre_of_rotationY),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({interpolating, Interpolating}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Interpolating)):32/?UI>>|Acc];
+ ({offset_after_rotation, {Offset_after_rotationX,Offset_after_rotationY}}, Acc) -> [<<2:32/?UI,Offset_after_rotationX:32/?UI,Offset_after_rotationY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Rotate,
+ <<ThisRef:32/?UI,0:32,Angle:64/?F,Centre_of_rotationX:32/?UI,Centre_of_rotationY:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Angle::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagerotatehue">external documentation</a>.
+rotateHue(#wx_ref{type=ThisT,ref=ThisRef},Angle)
+ when is_float(Angle) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_RotateHue,
+ <<ThisRef:32/?UI,0:32,Angle:64/?F>>).
+
+%% @spec (This::wxImage()) -> wxImage()
+%% @equiv rotate90(This, [])
+rotate90(This)
+ when is_record(This, wx_ref) ->
+ rotate90(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> wxImage()
+%% Option = {clockwise, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagerotate90">external documentation</a>.
+rotate90(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({clockwise, Clockwise}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Clockwise)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Rotate90,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesavefile">external documentation</a>.
+saveFile(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_SaveFile_1,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage(),Name::string(),X::integer()|string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesavefile">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% saveFile(This::wxImage(), Name::string(), Type::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% saveFile(This::wxImage(), Name::string(), Mimetype::string()) -> bool() </c>
+%% </p>
+saveFile(#wx_ref{type=ThisT,ref=ThisRef},Name,Type)
+ when is_list(Name),is_integer(Type) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxImage_SaveFile_2_0,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,Type:32/?UI>>);
+saveFile(#wx_ref{type=ThisT,ref=ThisRef},Name,Mimetype)
+ when is_list(Name),is_list(Mimetype) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ Mimetype_UC = unicode:characters_to_binary([Mimetype,0]),
+ wxe_util:call(?wxImage_SaveFile_2_1,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Mimetype_UC)):32/?UI,(Mimetype_UC)/binary, 0:(((8- ((4+byte_size(Mimetype_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer()) -> wxImage()
+%% @equiv scale(This,Width,Height, [])
+scale(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ scale(This,Width,Height, []).
+
+%% @spec (This::wxImage(), Width::integer(), Height::integer(), [Option]) -> wxImage()
+%% Option = {quality, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagescale">external documentation</a>.
+scale(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({quality, Quality}, Acc) -> [<<1:32/?UI,Quality:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Scale,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Size::{W::integer(),H::integer()}, Pos::{X::integer(),Y::integer()}) -> wxImage()
+%% @equiv size(This,Size,Pos, [])
+size(This,Size={SizeW,SizeH},Pos={PosX,PosY})
+ when is_record(This, wx_ref),is_integer(SizeW),is_integer(SizeH),is_integer(PosX),is_integer(PosY) ->
+ size(This,Size,Pos, []).
+
+%% @spec (This::wxImage(), Size::{W::integer(),H::integer()}, Pos::{X::integer(),Y::integer()}, [Option]) -> wxImage()
+%% Option = {r, integer()} | {g, integer()} | {b, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesize">external documentation</a>.
+size(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH},{PosX,PosY}, Options)
+ when is_integer(SizeW),is_integer(SizeH),is_integer(PosX),is_integer(PosY),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({r, R}, Acc) -> [<<1:32/?UI,R:32/?UI>>|Acc];
+ ({g, G}, Acc) -> [<<2:32/?UI,G:32/?UI>>|Acc];
+ ({b, B}, Acc) -> [<<3:32/?UI,B:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImage_Size,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI,PosX:32/?UI,PosY:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Alpha::binary()) -> ok
+%% @equiv setAlpha(This,Alpha, [])
+setAlpha(This,Alpha)
+ when is_record(This, wx_ref),is_binary(Alpha) ->
+ setAlpha(This,Alpha, []).
+
+%% @spec (This::wxImage(), Alpha::binary(), [Option]) -> ok
+%% Option = {static_data, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetalpha">external documentation</a>.
+setAlpha(#wx_ref{type=ThisT,ref=ThisRef},Alpha, Options)
+ when is_binary(Alpha),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:send_bin(Alpha),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxImage_SetAlpha_2,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer(), Alpha::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetalpha">external documentation</a>.
+setAlpha(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Alpha)
+ when is_integer(X),is_integer(Y),is_integer(Alpha) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_SetAlpha_3,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,Alpha:32/?UI>>).
+
+%% @spec (This::wxImage(), Data::binary()) -> ok
+%% @equiv setData(This,Data, [])
+setData(This,Data)
+ when is_record(This, wx_ref),is_binary(Data) ->
+ setData(This,Data, []).
+
+%% @spec (This::wxImage(), Data::binary(), [Option]) -> ok
+%% Option = {static_data, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetdata">external documentation</a>.
+setData(#wx_ref{type=ThisT,ref=ThisRef},Data, Options)
+ when is_binary(Data),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:send_bin(Data),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxImage_SetData_2,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), Data::binary(), New_width::integer(), New_height::integer()) -> ok
+%% @equiv setData(This,Data,New_width,New_height, [])
+setData(This,Data,New_width,New_height)
+ when is_record(This, wx_ref),is_binary(Data),is_integer(New_width),is_integer(New_height) ->
+ setData(This,Data,New_width,New_height, []).
+
+%% @spec (This::wxImage(), Data::binary(), New_width::integer(), New_height::integer(), [Option]) -> ok
+%% Option = {static_data, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetdata">external documentation</a>.
+setData(#wx_ref{type=ThisT,ref=ThisRef},Data,New_width,New_height, Options)
+ when is_binary(Data),is_integer(New_width),is_integer(New_height),is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:send_bin(Data),
+ MOpts = fun({static_data, Static_data}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Static_data)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxImage_SetData_4,
+ <<ThisRef:32/?UI,New_width:32/?UI,New_height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage()) -> ok
+%% @equiv setMask(This, [])
+setMask(This)
+ when is_record(This, wx_ref) ->
+ setMask(This, []).
+
+%% @spec (This::wxImage(), [Option]) -> ok
+%% Option = {mask, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetmask">external documentation</a>.
+setMask(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxImage),
+ MOpts = fun({mask, Mask}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Mask)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxImage_SetMask,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImage(), R::integer(), G::integer(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetmaskcolour">external documentation</a>.
+setMaskColour(#wx_ref{type=ThisT,ref=ThisRef},R,G,B)
+ when is_integer(R),is_integer(G),is_integer(B) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_SetMaskColour,
+ <<ThisRef:32/?UI,R:32/?UI,G:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxImage(), Mask::wxImage(), Mr::integer(), Mg::integer(), Mb::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetmaskfromimage">external documentation</a>.
+setMaskFromImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MaskT,ref=MaskRef},Mr,Mg,Mb)
+ when is_integer(Mr),is_integer(Mg),is_integer(Mb) ->
+ ?CLASS(ThisT,wxImage),
+ ?CLASS(MaskT,wxImage),
+ wxe_util:call(?wxImage_SetMaskFromImage,
+ <<ThisRef:32/?UI,MaskRef:32/?UI,Mr:32/?UI,Mg:32/?UI,Mb:32/?UI>>).
+
+%% @spec (This::wxImage(),Name::string(),X::integer()|string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetoption">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setOption(This::wxImage(), Name::string(), Value::integer()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setOption(This::wxImage(), Name::string(), Value::string()) -> ok </c>
+%% </p>
+setOption(#wx_ref{type=ThisT,ref=ThisRef},Name,Value)
+ when is_list(Name),is_integer(Value) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:cast(?wxImage_SetOption_2_0,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,Value:32/?UI>>);
+setOption(#wx_ref{type=ThisT,ref=ThisRef},Name,Value)
+ when is_list(Name),is_list(Value) ->
+ ?CLASS(ThisT,wxImage),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxImage_SetOption_2_1,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((4+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxImage(), Palette::wxPalette:wxPalette()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetpalette">external documentation</a>.
+setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) ->
+ ?CLASS(ThisT,wxImage),
+ ?CLASS(PaletteT,wxPalette),
+ wxe_util:cast(?wxImage_SetPalette,
+ <<ThisRef:32/?UI,PaletteRef:32/?UI>>).
+
+%% @spec (This::wxImage(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, R::integer(), G::integer(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetrgb">external documentation</a>.
+setRGB(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH},R,G,B)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_integer(R),is_integer(G),is_integer(B) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_SetRGB_4,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,R:32/?UI,G:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxImage(), X::integer(), Y::integer(), R::integer(), G::integer(), B::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximage.html#wximagesetrgb">external documentation</a>.
+setRGB(#wx_ref{type=ThisT,ref=ThisRef},X,Y,R,G,B)
+ when is_integer(X),is_integer(Y),is_integer(R),is_integer(G),is_integer(B) ->
+ ?CLASS(ThisT,wxImage),
+ wxe_util:cast(?wxImage_SetRGB_5,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,R:32/?UI,G:32/?UI,B:32/?UI>>).
+
+%% @spec (This::wxImage()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxImage),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxImageList.erl b/lib/wx/src/gen/wxImageList.erl
new file mode 100644
index 0000000000..b20dfda315
--- /dev/null
+++ b/lib/wx/src/gen/wxImageList.erl
@@ -0,0 +1,200 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html">wxImageList</a>.
+%% @type wxImageList(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxImageList).
+-include("wxe.hrl").
+-export([add/2,add/3,create/3,create/4,destroy/1,draw/5,draw/6,getBitmap/2,getIcon/2,
+ getImageCount/1,getSize/2,new/0,new/2,new/3,remove/2,removeAll/1,replace/3,
+ replace/4]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistwximagelist">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxImageList_new_0,
+ <<>>).
+
+%% @spec (Width::integer(), Height::integer()) -> wxImageList()
+%% @equiv new(Width,Height, [])
+new(Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ new(Width,Height, []).
+
+%% @spec (Width::integer(), Height::integer(), [Option]) -> wxImageList()
+%% Option = {mask, bool()} | {initialCount, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistwximagelist">external documentation</a>.
+new(Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ MOpts = fun({mask, Mask}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Mask)):32/?UI>>|Acc];
+ ({initialCount, InitialCount}, Acc) -> [<<2:32/?UI,InitialCount:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxImageList_new_3,
+ <<Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxImageList(), Bitmap::wxBitmap:wxBitmap()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistadd">external documentation</a>.
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxImageList_Add_1,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxImageList(),Bitmap::wxBitmap:wxBitmap(),X::term()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistadd">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% add(This::wxImageList(), Bitmap::wxBitmap:wxBitmap(), Mask::wxBitmap:wxBitmap()) -> integer() </c>
+%% </p>
+%% <p><c>
+%% add(This::wxImageList(), Bitmap::wxBitmap:wxBitmap(), MaskColour::wx:colour()) -> integer() </c>
+%% </p>
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef},#wx_ref{type=MaskT,ref=MaskRef}) ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(MaskT,wxBitmap),
+ wxe_util:call(?wxImageList_Add_2_0,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI,MaskRef:32/?UI>>);
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef},MaskColour)
+ when tuple_size(MaskColour) =:= 3; tuple_size(MaskColour) =:= 4 ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxImageList_Add_2_1,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI,(wxe_util:colour_bin(MaskColour)):16/binary>>).
+
+%% @spec (This::wxImageList(), Width::integer(), Height::integer()) -> bool()
+%% @equiv create(This,Width,Height, [])
+create(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ create(This,Width,Height, []).
+
+%% @spec (This::wxImageList(), Width::integer(), Height::integer(), [Option]) -> bool()
+%% Option = {mask, bool()} | {initialCount, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxImageList),
+ MOpts = fun({mask, Mask}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Mask)):32/?UI>>|Acc];
+ ({initialCount, InitialCount}, Acc) -> [<<2:32/?UI,InitialCount:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImageList_Create,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImageList(), Index::integer(), Dc::wxDC:wxDC(), X::integer(), Y::integer()) -> bool()
+%% @equiv draw(This,Index,Dc,X,Y, [])
+draw(This,Index,Dc,X,Y)
+ when is_record(This, wx_ref),is_integer(Index),is_record(Dc, wx_ref),is_integer(X),is_integer(Y) ->
+ draw(This,Index,Dc,X,Y, []).
+
+%% @spec (This::wxImageList(), Index::integer(), Dc::wxDC:wxDC(), X::integer(), Y::integer(), [Option]) -> bool()
+%% Option = {flags, integer()} | {solidBackground, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistdraw">external documentation</a>.
+draw(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=DcT,ref=DcRef},X,Y, Options)
+ when is_integer(Index),is_integer(X),is_integer(Y),is_list(Options) ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(DcT,wxDC),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ ({solidBackground, SolidBackground}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(SolidBackground)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxImageList_Draw,
+ <<ThisRef:32/?UI,Index:32/?UI,DcRef:32/?UI,X:32/?UI,Y:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxImageList(), Index::integer()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistgetbitmap">external documentation</a>.
+getBitmap(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_GetBitmap,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxImageList(), Index::integer()) -> wxIcon:wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistgeticon">external documentation</a>.
+getIcon(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_GetIcon,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxImageList()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistgetimagecount">external documentation</a>.
+getImageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_GetImageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImageList(), Index::integer()) -> {bool(),Width::integer(),Height::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_GetSize,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxImageList(), Index::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistremove">external documentation</a>.
+remove(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_Remove,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxImageList()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistremoveall">external documentation</a>.
+removeAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxImageList),
+ wxe_util:call(?wxImageList_RemoveAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxImageList(), Index::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=BitmapT,ref=BitmapRef})
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxImageList_Replace_2,
+ <<ThisRef:32/?UI,Index:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxImageList(), Index::integer(), Bitmap::wxBitmap:wxBitmap(), Mask::wxBitmap:wxBitmap()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wximagelist.html#wximagelistreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=BitmapT,ref=BitmapRef},#wx_ref{type=MaskT,ref=MaskRef})
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxImageList),
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(MaskT,wxBitmap),
+ wxe_util:call(?wxImageList_Replace_3,
+ <<ThisRef:32/?UI,Index:32/?UI,BitmapRef:32/?UI,MaskRef:32/?UI>>).
+
+%% @spec (This::wxImageList()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxImageList),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxJoystickEvent.erl b/lib/wx/src/gen/wxJoystickEvent.erl
new file mode 100644
index 0000000000..b07cbd6d9a
--- /dev/null
+++ b/lib/wx/src/gen/wxJoystickEvent.erl
@@ -0,0 +1,174 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html">wxJoystickEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>joy_button_down</em>, <em>joy_button_up</em>, <em>joy_move</em>, <em>joy_zmove</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxJoystick(). #wxJoystick{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxJoystickEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxJoystickEvent).
+-include("wxe.hrl").
+-export([buttonDown/1,buttonDown/2,buttonIsDown/1,buttonIsDown/2,buttonUp/1,
+ buttonUp/2,getButtonChange/1,getButtonState/1,getJoystick/1,getPosition/1,
+ getZPosition/1,isButton/1,isMove/1,isZMove/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @equiv buttonDown(This, [])
+buttonDown(This)
+ when is_record(This, wx_ref) ->
+ buttonDown(This, []).
+
+%% @spec (This::wxJoystickEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventbuttondown">external documentation</a>.
+buttonDown(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxJoystickEvent_ButtonDown,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @equiv buttonIsDown(This, [])
+buttonIsDown(This)
+ when is_record(This, wx_ref) ->
+ buttonIsDown(This, []).
+
+%% @spec (This::wxJoystickEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventbuttonisdown">external documentation</a>.
+buttonIsDown(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxJoystickEvent_ButtonIsDown,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @equiv buttonUp(This, [])
+buttonUp(This)
+ when is_record(This, wx_ref) ->
+ buttonUp(This, []).
+
+%% @spec (This::wxJoystickEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventbuttonup">external documentation</a>.
+buttonUp(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxJoystickEvent_ButtonUp,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxJoystickEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventgetbuttonchange">external documentation</a>.
+getButtonChange(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_GetButtonChange,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventgetbuttonstate">external documentation</a>.
+getButtonState(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_GetButtonState,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventgetjoystick">external documentation</a>.
+getJoystick(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_GetJoystick,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventgetzposition">external documentation</a>.
+getZPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_GetZPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventisbutton">external documentation</a>.
+isButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_IsButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventismove">external documentation</a>.
+isMove(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_IsMove,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxJoystickEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxjoystickevent.html#wxjoystickeventiszmove">external documentation</a>.
+isZMove(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxJoystickEvent),
+ wxe_util:call(?wxJoystickEvent_IsZMove,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxKeyEvent.erl b/lib/wx/src/gen/wxKeyEvent.erl
new file mode 100644
index 0000000000..0e92402435
--- /dev/null
+++ b/lib/wx/src/gen/wxKeyEvent.erl
@@ -0,0 +1,162 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html">wxKeyEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>char</em>, <em>char_hook</em>, <em>key_down</em>, <em>key_up</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxKey(). #wxKey{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxKeyEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxKeyEvent).
+-include("wxe.hrl").
+-export([altDown/1,cmdDown/1,controlDown/1,getKeyCode/1,getModifiers/1,getPosition/1,
+ getRawKeyCode/1,getRawKeyFlags/1,getUnicodeKey/1,getX/1,getY/1,hasModifiers/1,
+ metaDown/1,shiftDown/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventaltdown">external documentation</a>.
+altDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_AltDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventcmddown">external documentation</a>.
+cmdDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_CmdDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventcontroldown">external documentation</a>.
+controlDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_ControlDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetkeycode">external documentation</a>.
+getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetKeyCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetmodifiers">external documentation</a>.
+getModifiers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetModifiers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetrawkeycode">external documentation</a>.
+getRawKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetRawKeyCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetrawkeyflags">external documentation</a>.
+getRawKeyFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetRawKeyFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetunicodekey">external documentation</a>.
+getUnicodeKey(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetUnicodeKey,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgetx">external documentation</a>.
+getX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventgety">external documentation</a>.
+getY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_GetY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventhasmodifiers">external documentation</a>.
+hasModifiers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_HasModifiers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventmetadown">external documentation</a>.
+metaDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_MetaDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxkeyevent.html#wxkeyeventshiftdown">external documentation</a>.
+shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxKeyEvent),
+ wxe_util:call(?wxKeyEvent_ShiftDown,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxLayoutAlgorithm.erl b/lib/wx/src/gen/wxLayoutAlgorithm.erl
new file mode 100644
index 0000000000..8ea920d80b
--- /dev/null
+++ b/lib/wx/src/gen/wxLayoutAlgorithm.erl
@@ -0,0 +1,104 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlayoutalgorithm.html">wxLayoutAlgorithm</a>.
+%% @type wxLayoutAlgorithm(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxLayoutAlgorithm).
+-include("wxe.hrl").
+-export([destroy/1,layoutFrame/2,layoutFrame/3,layoutMDIFrame/2,layoutMDIFrame/3,
+ layoutWindow/2,layoutWindow/3,new/0]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxLayoutAlgorithm()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlayoutalgorithm.html#wxlayoutalgorithmwxlayoutalgorithm">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxLayoutAlgorithm_new,
+ <<>>).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxFrame:wxFrame()) -> bool()
+%% @equiv layoutFrame(This,Frame, [])
+layoutFrame(This,Frame)
+ when is_record(This, wx_ref),is_record(Frame, wx_ref) ->
+ layoutFrame(This,Frame, []).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxFrame:wxFrame(), [Option]) -> bool()
+%% Option = {mainWindow, wxWindow:wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlayoutalgorithm.html#wxlayoutalgorithmlayoutframe">external documentation</a>.
+layoutFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxLayoutAlgorithm),
+ ?CLASS(FrameT,wxFrame),
+ MOpts = fun({mainWindow, #wx_ref{type=MainWindowT,ref=MainWindowRef}}, Acc) -> ?CLASS(MainWindowT,wxWindow),[<<1:32/?UI,MainWindowRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxLayoutAlgorithm_LayoutFrame,
+ <<ThisRef:32/?UI,FrameRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxMDIParentFrame:wxMDIParentFrame()) -> bool()
+%% @equiv layoutMDIFrame(This,Frame, [])
+layoutMDIFrame(This,Frame)
+ when is_record(This, wx_ref),is_record(Frame, wx_ref) ->
+ layoutMDIFrame(This,Frame, []).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxMDIParentFrame:wxMDIParentFrame(), [Option]) -> bool()
+%% Option = {rect, {X::integer(),Y::integer(),W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlayoutalgorithm.html#wxlayoutalgorithmlayoutmdiframe">external documentation</a>.
+layoutMDIFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxLayoutAlgorithm),
+ ?CLASS(FrameT,wxMDIParentFrame),
+ MOpts = fun({rect, {RectX,RectY,RectW,RectH}}, Acc) -> [<<1:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxLayoutAlgorithm_LayoutMDIFrame,
+ <<ThisRef:32/?UI,FrameRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxWindow:wxWindow()) -> bool()
+%% @equiv layoutWindow(This,Frame, [])
+layoutWindow(This,Frame)
+ when is_record(This, wx_ref),is_record(Frame, wx_ref) ->
+ layoutWindow(This,Frame, []).
+
+%% @spec (This::wxLayoutAlgorithm(), Frame::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {mainWindow, wxWindow:wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlayoutalgorithm.html#wxlayoutalgorithmlayoutwindow">external documentation</a>.
+layoutWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxLayoutAlgorithm),
+ ?CLASS(FrameT,wxWindow),
+ MOpts = fun({mainWindow, #wx_ref{type=MainWindowT,ref=MainWindowRef}}, Acc) -> ?CLASS(MainWindowT,wxWindow),[<<1:32/?UI,MainWindowRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxLayoutAlgorithm_LayoutWindow,
+ <<ThisRef:32/?UI,FrameRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxLayoutAlgorithm()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxLayoutAlgorithm),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxListBox.erl b/lib/wx/src/gen/wxListBox.erl
new file mode 100644
index 0000000000..5fd9f329d0
--- /dev/null
+++ b/lib/wx/src/gen/wxListBox.erl
@@ -0,0 +1,615 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html">wxListBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControlWithItems}
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxListBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListBox).
+-include("wxe.hrl").
+-export([create/6,create/7,deselect/2,destroy/1,getSelections/1,hitTest/2,insertItems/3,
+ isSelected/2,new/0,new/2,new/3,set/2,setFirstItem/2]).
+
+%% inherited exports
+-export([append/2,append/3,appendStrings/2,cacheBestSize/2,captureMouse/1,center/1,
+ center/2,centerOnParent/1,centerOnParent/2,centre/1,centre/2,centreOnParent/1,
+ centreOnParent/2,clear/1,clearBackground/1,clientToScreen/2,clientToScreen/3,
+ close/1,close/2,connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ delete/2,destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findString/2,findString/3,findWindow/2,fit/1,fitInside/1,
+ freeze/1,getAcceleratorTable/1,getBackgroundColour/1,getBackgroundStyle/1,
+ getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,
+ getClientData/2,getClientSize/1,getContainingSizer/1,getCount/1,getCursor/1,
+ getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSelection/1,getSize/1,getSizer/1,getString/2,getStringSelection/1,
+ getTextExtent/2,getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,
+ getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,hasScrollbar/2,
+ hasTransparentBackground/1,hide/1,inheritAttributes/1,initDialog/1,
+ insert/3,insert/4,invalidateBestSize/1,isEmpty/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,
+ moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ select/2,setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientData/3,setClientSize/2,setClientSize/3,
+ setContainingSizer/2,setCursor/2,setDropTarget/2,setExtraStyle/2,
+ setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,setHelpText/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setScrollPos/3,
+ setScrollPos/4,setScrollbar/5,setScrollbar/6,setSelection/2,setSize/2,
+ setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,
+ setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setString/3,
+ setStringSelection/2,setThemeEnabled/2,setToolTip/2,setVirtualSize/2,
+ setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControlWithItems) -> true;
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxListBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxwxlistbox">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxListBox_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxListBox()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxListBox()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {choices, [[string()]]} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxwxlistbox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({choices, Choices}, Acc) -> Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) || ChoicesTemp <- Choices],[<<3:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxListBox_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListBox(), Parent::wxWindow:wxWindow(), Id::integer(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]]) -> bool()
+%% @equiv create(This,Parent,Id,Pos,Size,Choices, [])
+create(This,Parent,Id,Pos={PosX,PosY},Size={SizeW,SizeH},Choices)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices) ->
+ create(This,Parent,Id,Pos,Size,Choices, []).
+
+%% @spec (This::wxListBox(), Parent::wxWindow:wxWindow(), Id::integer(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]], [Option]) -> bool()
+%% Option = {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,{PosX,PosY},{SizeW,SizeH},Choices, Options)
+ when is_integer(Id),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices),is_list(Options) ->
+ ?CLASS(ThisT,wxListBox),
+ ?CLASS(ParentT,wxWindow),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<2:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListBox_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxListBox(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxdeselect">external documentation</a>.
+deselect(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListBox),
+ wxe_util:cast(?wxListBox_Deselect,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListBox()) -> {integer(),ASelections::[integer()]}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxgetselections">external documentation</a>.
+getSelections(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListBox),
+ wxe_util:call(?wxListBox_GetSelections,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListBox(), Items::[[string()]], Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxinsertitems">external documentation</a>.
+insertItems(#wx_ref{type=ThisT,ref=ThisRef},Items,Pos)
+ when is_list(Items),is_integer(Pos) ->
+ ?CLASS(ThisT,wxListBox),
+ Items_UCA = [unicode:characters_to_binary([ItemsTemp,0]) ||
+ ItemsTemp <- Items],
+ wxe_util:cast(?wxListBox_InsertItems,
+ <<ThisRef:32/?UI,(length(Items_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Items_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Items_UCA])) band 16#7)) band 16#7))/unit:8,Pos:32/?UI>>).
+
+%% @spec (This::wxListBox(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxisselected">external documentation</a>.
+isSelected(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListBox),
+ wxe_util:call(?wxListBox_IsSelected,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListBox(), Items::[[string()]]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxset">external documentation</a>.
+set(#wx_ref{type=ThisT,ref=ThisRef},Items)
+ when is_list(Items) ->
+ ?CLASS(ThisT,wxListBox),
+ Items_UCA = [unicode:characters_to_binary([ItemsTemp,0]) ||
+ ItemsTemp <- Items],
+ wxe_util:cast(?wxListBox_Set,
+ <<ThisRef:32/?UI,(length(Items_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Items_UCA>>)/binary, 0:(((8- ((0 + lists:sum([byte_size(S)+4||S<-Items_UCA])) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListBox(), Point::{X::integer(),Y::integer()}) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY})
+ when is_integer(PointX),is_integer(PointY) ->
+ ?CLASS(ThisT,wxListBox),
+ wxe_util:call(?wxListBox_HitTest,
+ <<ThisRef:32/?UI,PointX:32/?UI,PointY:32/?UI>>).
+
+%% @spec (This::wxListBox(),X::integer()|string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbox.html#wxlistboxsetfirstitem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setFirstItem(This::wxListBox(), N::integer()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setFirstItem(This::wxListBox(), S::string()) -> ok </c>
+%% </p>
+setFirstItem(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListBox),
+ wxe_util:cast(?wxListBox_SetFirstItem_1_0,
+ <<ThisRef:32/?UI,N:32/?UI>>);
+setFirstItem(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_list(S) ->
+ ?CLASS(ThisT,wxListBox),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxListBox_SetFirstItem_1_1,
+ <<ThisRef:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxListBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControlWithItems
+%% @hidden
+setStringSelection(This,S) -> wxControlWithItems:setStringSelection(This,S).
+%% @hidden
+setString(This,N,S) -> wxControlWithItems:setString(This,N,S).
+%% @hidden
+setSelection(This,N) -> wxControlWithItems:setSelection(This,N).
+%% @hidden
+select(This,N) -> wxControlWithItems:select(This,N).
+%% @hidden
+isEmpty(This) -> wxControlWithItems:isEmpty(This).
+%% @hidden
+insert(This,Item,Pos,ClientData) -> wxControlWithItems:insert(This,Item,Pos,ClientData).
+%% @hidden
+insert(This,Item,Pos) -> wxControlWithItems:insert(This,Item,Pos).
+%% @hidden
+getStringSelection(This) -> wxControlWithItems:getStringSelection(This).
+%% @hidden
+getString(This,N) -> wxControlWithItems:getString(This,N).
+%% @hidden
+getSelection(This) -> wxControlWithItems:getSelection(This).
+%% @hidden
+getCount(This) -> wxControlWithItems:getCount(This).
+%% @hidden
+setClientData(This,N,ClientData) -> wxControlWithItems:setClientData(This,N,ClientData).
+%% @hidden
+getClientData(This,N) -> wxControlWithItems:getClientData(This,N).
+%% @hidden
+findString(This,S, Options) -> wxControlWithItems:findString(This,S, Options).
+%% @hidden
+findString(This,S) -> wxControlWithItems:findString(This,S).
+%% @hidden
+delete(This,N) -> wxControlWithItems:delete(This,N).
+%% @hidden
+clear(This) -> wxControlWithItems:clear(This).
+%% @hidden
+appendStrings(This,Strings) -> wxControlWithItems:appendStrings(This,Strings).
+%% @hidden
+append(This,Item,ClientData) -> wxControlWithItems:append(This,Item,ClientData).
+%% @hidden
+append(This,Item) -> wxControlWithItems:append(This,Item).
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxListCtrl.erl b/lib/wx/src/gen/wxListCtrl.erl
new file mode 100644
index 0000000000..980415f577
--- /dev/null
+++ b/lib/wx/src/gen/wxListCtrl.erl
@@ -0,0 +1,1100 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html">wxListCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxListCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListCtrl).
+-include("wxe.hrl").
+-export([ sortItems/2 ,arrange/1,arrange/2,assignImageList/3,clearAll/1,create/2,
+ create/3,deleteAllItems/1,deleteColumn/2,deleteItem/2,destroy/1,editLabel/2,
+ ensureVisible/2,findItem/3,findItem/4,getColumn/3,getColumnCount/1,
+ getColumnWidth/2,getCountPerPage/1,getImageList/2,getItem/2,getItemBackgroundColour/2,
+ getItemCount/1,getItemData/2,getItemFont/2,getItemPosition/3,getItemRect/3,
+ getItemRect/4,getItemSpacing/1,getItemState/3,getItemText/2,getItemTextColour/2,
+ getNextItem/2,getNextItem/3,getSelectedItemCount/1,getTextColour/1,
+ getTopItem/1,getViewRect/1,hitTest/2,insertColumn/3,insertColumn/4,
+ insertItem/2,insertItem/3,insertItem/4,new/0,new/1,new/2,refreshItem/2,
+ refreshItems/3,scrollList/3,setBackgroundColour/2,setColumn/3,setColumnWidth/3,
+ setImageList/3,setItem/2,setItem/4,setItem/5,setItemBackgroundColour/3,
+ setItemColumnImage/4,setItemCount/2,setItemData/3,setItemFont/3,setItemImage/3,
+ setItemImage/4,setItemPosition/3,setItemState/4,setItemText/3,setItemTextColour/3,
+ setSingleStyle/2,setSingleStyle/3,setTextColour/2,setWindowStyleFlag/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowVariant/2,shouldInheritColours/1,show/1,
+ show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,update/1,
+ updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxListCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlwxlistctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxListCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxListCtrl()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxListCtrl()
+%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlwxlistctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxListCtrl_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl()) -> bool()
+%% @equiv arrange(This, [])
+arrange(This)
+ when is_record(This, wx_ref) ->
+ arrange(This, []).
+
+%% @spec (This::wxListCtrl(), [Option]) -> bool()
+%% Option = {flag, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlarrange">external documentation</a>.
+arrange(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ MOpts = fun({flag, Flag}, Acc) -> [<<1:32/?UI,Flag:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_Arrange,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl(), ImageList::wxImageList:wxImageList(), Which::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef},Which)
+ when is_integer(Which) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxListCtrl_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI,Which:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlclearall">external documentation</a>.
+clearAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_ClearAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrldeleteallitems">external documentation</a>.
+deleteAllItems(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_DeleteAllItems,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Col::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrldeletecolumn">external documentation</a>.
+deleteColumn(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_DeleteColumn,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrldeleteitem">external documentation</a>.
+deleteItem(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_DeleteItem,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> wxTextCtrl:wxTextCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrleditlabel">external documentation</a>.
+editLabel(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_EditLabel,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlensurevisible">external documentation</a>.
+ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_EnsureVisible,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Start::integer(), Str::string()) -> integer()
+%% @equiv findItem(This,Start,Str, [])
+findItem(This,Start,Str)
+ when is_record(This, wx_ref),is_integer(Start),is_list(Str) ->
+ findItem(This,Start,Str, []).
+
+%% @spec (This::wxListCtrl(),Start::integer(),X::string()|term(),X::term()|integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlfinditem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% findItem(This::wxListCtrl(), Start::integer(), Str::string(), [Option]) -> integer() </c>
+%%<br /> Option = {partial, bool()}
+%% </p>
+%% <p><c>
+%% findItem(This::wxListCtrl(), Start::integer(), Pt::{X::integer(),Y::integer()}, Direction::integer()) -> integer() </c>
+%% </p>
+findItem(#wx_ref{type=ThisT,ref=ThisRef},Start,Str, Options)
+ when is_integer(Start),is_list(Str),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ MOpts = fun({partial, Partial}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Partial)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_FindItem_3_0,
+ <<ThisRef:32/?UI,Start:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((4+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>);
+findItem(#wx_ref{type=ThisT,ref=ThisRef},Start,{PtX,PtY},Direction)
+ when is_integer(Start),is_integer(PtX),is_integer(PtY),is_integer(Direction) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_FindItem_3_1,
+ <<ThisRef:32/?UI,Start:32/?UI,PtX:32/?UI,PtY:32/?UI,Direction:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Col::integer(), Item::wxListItem:wxListItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetcolumn">external documentation</a>.
+getColumn(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=ItemT,ref=ItemRef})
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(ItemT,wxListItem),
+ wxe_util:call(?wxListCtrl_GetColumn,
+ <<ThisRef:32/?UI,Col:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetcolumncount">external documentation</a>.
+getColumnCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetColumnCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Col::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetcolumnwidth">external documentation</a>.
+getColumnWidth(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetColumnWidth,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetcountperpage">external documentation</a>.
+getCountPerPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetCountPerPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Which::integer()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef},Which)
+ when is_integer(Which) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetImageList,
+ <<ThisRef:32/?UI,Which:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitem">external documentation</a>.
+getItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=InfoT,ref=InfoRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(InfoT,wxListItem),
+ wxe_util:call(?wxListCtrl_GetItem,
+ <<ThisRef:32/?UI,InfoRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitembackgroundcolour">external documentation</a>.
+getItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemBackgroundColour,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemcount">external documentation</a>.
+getItemCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemdata">external documentation</a>.
+getItemData(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemData,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemfont">external documentation</a>.
+getItemFont(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemFont,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Pos::{X::integer(),Y::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemposition">external documentation</a>.
+getItemPosition(#wx_ref{type=ThisT,ref=ThisRef},Item,{PosX,PosY})
+ when is_integer(Item),is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemPosition,
+ <<ThisRef:32/?UI,Item:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool()
+%% @equiv getItemRect(This,Item,Rect, [])
+getItemRect(This,Item,Rect={RectX,RectY,RectW,RectH})
+ when is_record(This, wx_ref),is_integer(Item),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ getItemRect(This,Item,Rect, []).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> bool()
+%% Option = {code, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemrect">external documentation</a>.
+getItemRect(#wx_ref{type=ThisT,ref=ThisRef},Item,{RectX,RectY,RectW,RectH}, Options)
+ when is_integer(Item),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ MOpts = fun({code, Code}, Acc) -> [<<1:32/?UI,Code:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_GetItemRect,
+ <<ThisRef:32/?UI,Item:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemspacing">external documentation</a>.
+getItemSpacing(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemSpacing,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), StateMask::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemstate">external documentation</a>.
+getItemState(#wx_ref{type=ThisT,ref=ThisRef},Item,StateMask)
+ when is_integer(Item),is_integer(StateMask) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemState,
+ <<ThisRef:32/?UI,Item:32/?UI,StateMask:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemtext">external documentation</a>.
+getItemText(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemText,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetitemtextcolour">external documentation</a>.
+getItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetItemTextColour,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> integer()
+%% @equiv getNextItem(This,Item, [])
+getNextItem(This,Item)
+ when is_record(This, wx_ref),is_integer(Item) ->
+ getNextItem(This,Item, []).
+
+%% @spec (This::wxListCtrl(), Item::integer(), [Option]) -> integer()
+%% Option = {geometry, integer()} | {state, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetnextitem">external documentation</a>.
+getNextItem(#wx_ref{type=ThisT,ref=ThisRef},Item, Options)
+ when is_integer(Item),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ MOpts = fun({geometry, Geometry}, Acc) -> [<<1:32/?UI,Geometry:32/?UI>>|Acc];
+ ({state, State}, Acc) -> [<<2:32/?UI,State:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_GetNextItem,
+ <<ThisRef:32/?UI,Item:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetselecteditemcount">external documentation</a>.
+getSelectedItemCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetSelectedItemCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgettextcolour">external documentation</a>.
+getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgettopitem">external documentation</a>.
+getTopItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetTopItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlgetviewrect">external documentation</a>.
+getViewRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_GetViewRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Point::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY})
+ when is_integer(PointX),is_integer(PointY) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_HitTest,
+ <<ThisRef:32/?UI,PointX:32/?UI,PointY:32/?UI>>).
+
+%% @spec (This::wxListCtrl(),Col::integer(),X::string()|term()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlinsertcolumn">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insertColumn(This::wxListCtrl(), Col::integer(), Heading::string()) -> insertColumn(This,Col,Heading, []) </c></p>
+%% <p><c>
+%% insertColumn(This::wxListCtrl(), Col::integer(), Info::wxListItem:wxListItem()) -> integer() </c>
+%% </p>
+
+insertColumn(This,Col,Heading)
+ when is_record(This, wx_ref),is_integer(Col),is_list(Heading) ->
+ insertColumn(This,Col,Heading, []);
+insertColumn(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=InfoT,ref=InfoRef})
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(InfoT,wxListItem),
+ wxe_util:call(?wxListCtrl_InsertColumn_2,
+ <<ThisRef:32/?UI,Col:32/?UI,InfoRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Col::integer(), Heading::string(), [Option]) -> integer()
+%% Option = {format, integer()} | {width, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlinsertcolumn">external documentation</a>.
+insertColumn(#wx_ref{type=ThisT,ref=ThisRef},Col,Heading, Options)
+ when is_integer(Col),is_list(Heading),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Heading_UC = unicode:characters_to_binary([Heading,0]),
+ MOpts = fun({format, Format}, Acc) -> [<<1:32/?UI,Format:32/?UI>>|Acc];
+ ({width, Width}, Acc) -> [<<2:32/?UI,Width:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_InsertColumn_3,
+ <<ThisRef:32/?UI,Col:32/?UI,(byte_size(Heading_UC)):32/?UI,(Heading_UC)/binary, 0:(((8- ((4+byte_size(Heading_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlinsertitem">external documentation</a>.
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=InfoT,ref=InfoRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(InfoT,wxListItem),
+ wxe_util:call(?wxListCtrl_InsertItem_1,
+ <<ThisRef:32/?UI,InfoRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(),Index::integer(),X::integer()|string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlinsertitem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insertItem(This::wxListCtrl(), Index::integer(), ImageIndex::integer()) -> integer() </c>
+%% </p>
+%% <p><c>
+%% insertItem(This::wxListCtrl(), Index::integer(), Label::string()) -> integer() </c>
+%% </p>
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},Index,ImageIndex)
+ when is_integer(Index),is_integer(ImageIndex) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_InsertItem_2_0,
+ <<ThisRef:32/?UI,Index:32/?UI,ImageIndex:32/?UI>>);
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},Index,Label)
+ when is_integer(Index),is_list(Label) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:call(?wxListCtrl_InsertItem_2_1,
+ <<ThisRef:32/?UI,Index:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListCtrl(), Index::integer(), Label::string(), ImageIndex::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlinsertitem">external documentation</a>.
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},Index,Label,ImageIndex)
+ when is_integer(Index),is_list(Label),is_integer(ImageIndex) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:call(?wxListCtrl_InsertItem_3,
+ <<ThisRef:32/?UI,Index:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,ImageIndex:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlrefreshitem">external documentation</a>.
+refreshItem(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_RefreshItem,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), ItemFrom::integer(), ItemTo::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlrefreshitems">external documentation</a>.
+refreshItems(#wx_ref{type=ThisT,ref=ThisRef},ItemFrom,ItemTo)
+ when is_integer(ItemFrom),is_integer(ItemTo) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_RefreshItems,
+ <<ThisRef:32/?UI,ItemFrom:32/?UI,ItemTo:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Dx::integer(), Dy::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlscrolllist">external documentation</a>.
+scrollList(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy)
+ when is_integer(Dx),is_integer(Dy) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_ScrollList,
+ <<ThisRef:32/?UI,Dx:32/?UI,Dy:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Colour::wx:colour()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxListCtrl(), Col::integer(), Item::wxListItem:wxListItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetcolumn">external documentation</a>.
+setColumn(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=ItemT,ref=ItemRef})
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(ItemT,wxListItem),
+ wxe_util:call(?wxListCtrl_SetColumn,
+ <<ThisRef:32/?UI,Col:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Col::integer(), Width::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetcolumnwidth">external documentation</a>.
+setColumnWidth(#wx_ref{type=ThisT,ref=ThisRef},Col,Width)
+ when is_integer(Col),is_integer(Width) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetColumnWidth,
+ <<ThisRef:32/?UI,Col:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), ImageList::wxImageList:wxImageList(), Which::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef},Which)
+ when is_integer(Which) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxListCtrl_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI,Which:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitem">external documentation</a>.
+setItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=InfoT,ref=InfoRef}) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(InfoT,wxListItem),
+ wxe_util:call(?wxListCtrl_SetItem_1,
+ <<ThisRef:32/?UI,InfoRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Index::integer(), Col::integer(), Label::string()) -> integer()
+%% @equiv setItem(This,Index,Col,Label, [])
+setItem(This,Index,Col,Label)
+ when is_record(This, wx_ref),is_integer(Index),is_integer(Col),is_list(Label) ->
+ setItem(This,Index,Col,Label, []).
+
+%% @spec (This::wxListCtrl(), Index::integer(), Col::integer(), Label::string(), [Option]) -> integer()
+%% Option = {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitem">external documentation</a>.
+setItem(#wx_ref{type=ThisT,ref=ThisRef},Index,Col,Label, Options)
+ when is_integer(Index),is_integer(Col),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({imageId, ImageId}, Acc) -> [<<1:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_SetItem_4,
+ <<ThisRef:32/?UI,Index:32/?UI,Col:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitembackgroundcolour">external documentation</a>.
+setItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Item,Col)
+ when is_integer(Item),tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_SetItemBackgroundColour,
+ <<ThisRef:32/?UI,Item:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxListCtrl(), Count::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemcount">external documentation</a>.
+setItemCount(#wx_ref{type=ThisT,ref=ThisRef},Count)
+ when is_integer(Count) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_SetItemCount,
+ <<ThisRef:32/?UI,Count:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Data::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemdata">external documentation</a>.
+setItemData(#wx_ref{type=ThisT,ref=ThisRef},Item,Data)
+ when is_integer(Item),is_integer(Data) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetItemData,
+ <<ThisRef:32/?UI,Item:32/?UI,Data:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), F::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemfont">external documentation</a>.
+setItemFont(#wx_ref{type=ThisT,ref=ThisRef},Item,#wx_ref{type=FT,ref=FRef})
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListCtrl),
+ ?CLASS(FT,wxFont),
+ wxe_util:cast(?wxListCtrl_SetItemFont,
+ <<ThisRef:32/?UI,Item:32/?UI,FRef:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Image::integer()) -> bool()
+%% @equiv setItemImage(This,Item,Image, [])
+setItemImage(This,Item,Image)
+ when is_record(This, wx_ref),is_integer(Item),is_integer(Image) ->
+ setItemImage(This,Item,Image, []).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Image::integer(), [Option]) -> bool()
+%% Option = {selImage, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemimage">external documentation</a>.
+setItemImage(#wx_ref{type=ThisT,ref=ThisRef},Item,Image, Options)
+ when is_integer(Item),is_integer(Image),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ MOpts = fun({selImage, SelImage}, Acc) -> [<<1:32/?UI,SelImage:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListCtrl_SetItemImage,
+ <<ThisRef:32/?UI,Item:32/?UI,Image:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Column::integer(), Image::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemcolumnimage">external documentation</a>.
+setItemColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Item,Column,Image)
+ when is_integer(Item),is_integer(Column),is_integer(Image) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetItemColumnImage,
+ <<ThisRef:32/?UI,Item:32/?UI,Column:32/?UI,Image:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Pos::{X::integer(),Y::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemposition">external documentation</a>.
+setItemPosition(#wx_ref{type=ThisT,ref=ThisRef},Item,{PosX,PosY})
+ when is_integer(Item),is_integer(PosX),is_integer(PosY) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetItemPosition,
+ <<ThisRef:32/?UI,Item:32/?UI,PosX:32/?UI,PosY:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), State::integer(), StateMask::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemstate">external documentation</a>.
+setItemState(#wx_ref{type=ThisT,ref=ThisRef},Item,State,StateMask)
+ when is_integer(Item),is_integer(State),is_integer(StateMask) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:call(?wxListCtrl_SetItemState,
+ <<ThisRef:32/?UI,Item:32/?UI,State:32/?UI,StateMask:32/?UI>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemtext">external documentation</a>.
+setItemText(#wx_ref{type=ThisT,ref=ThisRef},Item,Str)
+ when is_integer(Item),is_list(Str) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxListCtrl_SetItemText,
+ <<ThisRef:32/?UI,Item:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((4+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListCtrl(), Item::integer(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitemtextcolour">external documentation</a>.
+setItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},Item,Col)
+ when is_integer(Item),tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_SetItemTextColour,
+ <<ThisRef:32/?UI,Item:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxListCtrl(), Style::integer()) -> ok
+%% @equiv setSingleStyle(This,Style, [])
+setSingleStyle(This,Style)
+ when is_record(This, wx_ref),is_integer(Style) ->
+ setSingleStyle(This,Style, []).
+
+%% @spec (This::wxListCtrl(), Style::integer(), [Option]) -> ok
+%% Option = {add, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetsinglestyle">external documentation</a>.
+setSingleStyle(#wx_ref{type=ThisT,ref=ThisRef},Style, Options)
+ when is_integer(Style),is_list(Options) ->
+ ?CLASS(ThisT,wxListCtrl),
+ MOpts = fun({add, Add}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Add)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxListCtrl_SetSingleStyle,
+ <<ThisRef:32/?UI,Style:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListCtrl(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsettextcolour">external documentation</a>.
+setTextColour(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_SetTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxListCtrl(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetwindowstyleflag">external documentation</a>.
+setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxListCtrl),
+ wxe_util:cast(?wxListCtrl_SetWindowStyleFlag,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+
+%% @spec (This::wxListCtrl(), SortCallBack::function()) -> boolean()
+%% @doc Sort the items in the list control<br />
+%% <pre>SortCalBack(Item1,Item2) -> integer()</pre>
+%% <br /> SortCallBack receives the client data associated with two items
+%% to compare, and should return 0 if the items are equal, a negative
+%% value if the first item is less than the second one and a positive
+%% value if the first item is greater than the second one.
+%% <br /> NOTE: The callback may not call other processes.
+sortItems(#wx_ref{type=ThisT,ref=ThisRef}, SortCallBack)
+ when is_function(SortCallBack, 2) ->
+ ?CLASS(ThisT,wxListCtrl),
+ Sort = fun([Item1,Item2]) ->
+ Result = SortCallBack(Item1,Item2),
+ <<Result:32/?UI>>
+ end,
+ SortId = wxe_util:get_cbId(Sort),
+ wxe_util:call(?wxListCtrl_SortItems, <<ThisRef:32/?UI,SortId:32/?UI>>).
+%% @spec (This::wxListCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxListCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxListEvent.erl b/lib/wx/src/gen/wxListEvent.erl
new file mode 100644
index 0000000000..fd1cc381ed
--- /dev/null
+++ b/lib/wx/src/gen/wxListEvent.erl
@@ -0,0 +1,186 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html">wxListEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_list_begin_drag</em>, <em>command_list_begin_rdrag</em>, <em>command_list_begin_label_edit</em>, <em>command_list_end_label_edit</em>, <em>command_list_delete_item</em>, <em>command_list_delete_all_items</em>, <em>command_list_key_down</em>, <em>command_list_insert_item</em>, <em>command_list_col_click</em>, <em>command_list_col_right_click</em>, <em>command_list_col_begin_drag</em>, <em>command_list_col_dragging</em>, <em>command_list_col_end_drag</em>, <em>command_list_item_selected</em>, <em>command_list_item_deselected</em>, <em>command_list_item_right_click</em>, <em>command_list_item_middle_click</em>, <em>command_list_item_activated</em>, <em>command_list_item_focused</em>, <em>command_list_cache_hint</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxList(). #wxList{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxListEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListEvent).
+-include("wxe.hrl").
+-export([getCacheFrom/1,getCacheTo/1,getColumn/1,getData/1,getImage/1,getIndex/1,
+ getItem/1,getKeyCode/1,getLabel/1,getMask/1,getPoint/1,getText/1,isEditCancelled/1]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetcachefrom">external documentation</a>.
+getCacheFrom(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetCacheFrom,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetcacheto">external documentation</a>.
+getCacheTo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetCacheTo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetkeycode">external documentation</a>.
+getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetKeyCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetindex">external documentation</a>.
+getIndex(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetIndex,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetcolumn">external documentation</a>.
+getColumn(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetColumn,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetpoint">external documentation</a>.
+getPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetimage">external documentation</a>.
+getImage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetImage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetdata">external documentation</a>.
+getData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetmask">external documentation</a>.
+getMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetMask,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> wxListItem:wxListItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventgetitem">external documentation</a>.
+getItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_GetItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistevent.html#wxlisteventiseditcancelled">external documentation</a>.
+isEditCancelled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListEvent),
+ wxe_util:call(?wxListEvent_IsEditCancelled,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxListItem.erl b/lib/wx/src/gen/wxListItem.erl
new file mode 100644
index 0000000000..31d44b9601
--- /dev/null
+++ b/lib/wx/src/gen/wxListItem.erl
@@ -0,0 +1,242 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html">wxListItem</a>.
+%% @type wxListItem(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListItem).
+-include("wxe.hrl").
+-export([clear/1,destroy/1,getAlign/1,getBackgroundColour/1,getColumn/1,getFont/1,
+ getId/1,getImage/1,getMask/1,getState/1,getText/1,getTextColour/1,getWidth/1,
+ new/0,new/1,setAlign/2,setBackgroundColour/2,setColumn/2,setFont/2,
+ setId/2,setImage/2,setMask/2,setState/2,setStateMask/2,setText/2,setTextColour/2,
+ setWidth/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxListItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemwxlistitem">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxListItem_new_0,
+ <<>>).
+
+%% @spec (Item::wxListItem()) -> wxListItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemwxlistitem">external documentation</a>.
+new(#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ItemT,wxListItem),
+ wxe_util:construct(?wxListItem_new_1,
+ <<ItemRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> WxListColumnFormat
+%% WxListColumnFormat = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetalign">external documentation</a>.
+%%<br /> WxListColumnFormat is one of ?wxLIST_FORMAT_LEFT | ?wxLIST_FORMAT_RIGHT | ?wxLIST_FORMAT_CENTRE | ?wxLIST_FORMAT_CENTER
+getAlign(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetAlign,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetbackgroundcolour">external documentation</a>.
+getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetcolumn">external documentation</a>.
+getColumn(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetColumn,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetid">external documentation</a>.
+getId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetimage">external documentation</a>.
+getImage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetImage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetmask">external documentation</a>.
+getMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetMask,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetstate">external documentation</a>.
+getState(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetState,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgettextcolour">external documentation</a>.
+getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemgetwidth">external documentation</a>.
+getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:call(?wxListItem_GetWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListItem(), Align::WxListColumnFormat) -> ok
+%% WxListColumnFormat = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetalign">external documentation</a>.
+%%<br /> WxListColumnFormat is one of ?wxLIST_FORMAT_LEFT | ?wxLIST_FORMAT_RIGHT | ?wxLIST_FORMAT_CENTRE | ?wxLIST_FORMAT_CENTER
+setAlign(#wx_ref{type=ThisT,ref=ThisRef},Align)
+ when is_integer(Align) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetAlign,
+ <<ThisRef:32/?UI,Align:32/?UI>>).
+
+%% @spec (This::wxListItem(), ColBack::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack)
+ when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary>>).
+
+%% @spec (This::wxListItem(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetcolumn">external documentation</a>.
+setColumn(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetColumn,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxListItem(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxListItem),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxListItem_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxListItem(), Id::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetid">external documentation</a>.
+setId(#wx_ref{type=ThisT,ref=ThisRef},Id)
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetId,
+ <<ThisRef:32/?UI,Id:32/?UI>>).
+
+%% @spec (This::wxListItem(), Image::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetimage">external documentation</a>.
+setImage(#wx_ref{type=ThisT,ref=ThisRef},Image)
+ when is_integer(Image) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetImage,
+ <<ThisRef:32/?UI,Image:32/?UI>>).
+
+%% @spec (This::wxListItem(), Mask::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetmask">external documentation</a>.
+setMask(#wx_ref{type=ThisT,ref=ThisRef},Mask)
+ when is_integer(Mask) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetMask,
+ <<ThisRef:32/?UI,Mask:32/?UI>>).
+
+%% @spec (This::wxListItem(), State::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetstate">external documentation</a>.
+setState(#wx_ref{type=ThisT,ref=ThisRef},State)
+ when is_integer(State) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetState,
+ <<ThisRef:32/?UI,State:32/?UI>>).
+
+%% @spec (This::wxListItem(), StateMask::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetstatemask">external documentation</a>.
+setStateMask(#wx_ref{type=ThisT,ref=ThisRef},StateMask)
+ when is_integer(StateMask) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetStateMask,
+ <<ThisRef:32/?UI,StateMask:32/?UI>>).
+
+%% @spec (This::wxListItem(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsettext">external documentation</a>.
+setText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxListItem),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxListItem_SetText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListItem(), ColText::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsettextcolour">external documentation</a>.
+setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColText)):16/binary>>).
+
+%% @spec (This::wxListItem(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitemsetwidth">external documentation</a>.
+setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxListItem),
+ wxe_util:cast(?wxListItem_SetWidth,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxListItem()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxListItem),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxListView.erl b/lib/wx/src/gen/wxListView.erl
new file mode 100644
index 0000000000..a39a594a6a
--- /dev/null
+++ b/lib/wx/src/gen/wxListView.erl
@@ -0,0 +1,513 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html">wxListView</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxListView(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListView).
+-include("wxe.hrl").
+-export([clearColumnImage/2,focus/2,getFirstSelected/1,getFocusedItem/1,getNextSelected/2,
+ isSelected/2,select/2,select/3,setColumnImage/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxListView(), Col::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewclearcolumnimage">external documentation</a>.
+clearColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col)
+ when is_integer(Col) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:cast(?wxListView_ClearColumnImage,
+ <<ThisRef:32/?UI,Col:32/?UI>>).
+
+%% @spec (This::wxListView(), Index::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewfocus">external documentation</a>.
+focus(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:cast(?wxListView_Focus,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxListView()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetfirstselected">external documentation</a>.
+getFirstSelected(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:call(?wxListView_GetFirstSelected,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListView()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetfocuseditem">external documentation</a>.
+getFocusedItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:call(?wxListView_GetFocusedItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListView(), Item::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetnextselected">external documentation</a>.
+getNextSelected(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:call(?wxListView_GetNextSelected,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxListView(), Index::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewisselected">external documentation</a>.
+isSelected(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:call(?wxListView_IsSelected,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxListView(), N::integer()) -> ok
+%% @equiv select(This,N, [])
+select(This,N)
+ when is_record(This, wx_ref),is_integer(N) ->
+ select(This,N, []).
+
+%% @spec (This::wxListView(), N::integer(), [Option]) -> ok
+%% Option = {on, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewselect">external documentation</a>.
+select(#wx_ref{type=ThisT,ref=ThisRef},N, Options)
+ when is_integer(N),is_list(Options) ->
+ ?CLASS(ThisT,wxListView),
+ MOpts = fun({on, On}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(On)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxListView_Select,
+ <<ThisRef:32/?UI,N:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListView(), Col::integer(), Image::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewsetcolumnimage">external documentation</a>.
+setColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col,Image)
+ when is_integer(Col),is_integer(Image) ->
+ ?CLASS(ThisT,wxListView),
+ wxe_util:cast(?wxListView_SetColumnImage,
+ <<ThisRef:32/?UI,Col:32/?UI,Image:32/?UI>>).
+
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxListbook.erl b/lib/wx/src/gen/wxListbook.erl
new file mode 100644
index 0000000000..385c50c316
--- /dev/null
+++ b/lib/wx/src/gen/wxListbook.erl
@@ -0,0 +1,698 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html">wxListbook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxListbook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxListbook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
+ changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
+ destroy/1,getCurrentPage/1,getImageList/1,getPage/2,getPageCount/1,
+ getPageImage/2,getPageText/2,getSelection/1,hitTest/2,insertPage/4,
+ insertPage/5,new/0,new/2,new/3,removePage/2,setImageList/2,setPageImage/3,
+ setPageSize/2,setPageText/3,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxListbook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookwxlistbook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxListbook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxListbook()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxListbook()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookwxlistbook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxListbook_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxListbook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv addPage(This,Page,Text, [])
+addPage(This,Page,Text)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
+ addPage(This,Page,Text, []).
+
+%% @spec (This::wxListbook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxListbook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListbook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxListbook()) -> ok
+%% @equiv advanceSelection(This, [])
+advanceSelection(This)
+ when is_record(This, wx_ref) ->
+ advanceSelection(This, []).
+
+%% @spec (This::wxListbook(), [Option]) -> ok
+%% Option = {forward, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookadvanceselection">external documentation</a>.
+advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxListbook),
+ MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxListbook_AdvanceSelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxListbook_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxListbook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxListbook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListbook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxListbook()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookdeleteallpages">external documentation</a>.
+deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_DeleteAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_DeletePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_RemovePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListbook()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetPage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpageimage">external documentation</a>.
+getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetPageText,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_HitTest,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv insertPage(This,N,Page,Text, [])
+insertPage(This,N,Page,Text)
+ when is_record(This, wx_ref),is_integer(N),is_record(Page, wx_ref),is_list(Text) ->
+ insertPage(This,N,Page,Text, []).
+
+%% @spec (This::wxListbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},N,#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_integer(N),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxListbook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxListbook_InsertPage,
+ <<ThisRef:32/?UI,N:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxListbook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxListbook_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxListbook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:cast(?wxListbook_SetPageSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer(), ImageId::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpageimage">external documentation</a>.
+setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId)
+ when is_integer(N),is_integer(ImageId) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_SetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI,ImageId:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer(), StrText::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},N,StrText)
+ when is_integer(N),is_list(StrText) ->
+ ?CLASS(ThisT,wxListbook),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ wxe_util:call(?wxListbook_SetPageText,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookchangeselection">external documentation</a>.
+changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxListbook),
+ wxe_util:call(?wxListbook_ChangeSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxListbook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxListbook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxLogNull.erl b/lib/wx/src/gen/wxLogNull.erl
new file mode 100644
index 0000000000..f33070b197
--- /dev/null
+++ b/lib/wx/src/gen/wxLogNull.erl
@@ -0,0 +1,46 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlognull.html">wxLogNull</a>.
+%% @type wxLogNull(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxLogNull).
+-include("wxe.hrl").
+-export([destroy/1,new/0]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxLogNull()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlognull.html#wxlognullwxlognull">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxLogNull_new,
+ <<>>).
+
+%% @spec (This::wxLogNull()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxLogNull),
+ wxe_util:destroy(?wxLogNull_destroy,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxMDIChildFrame.erl b/lib/wx/src/gen/wxMDIChildFrame.erl
new file mode 100644
index 0000000000..3403ab6c9c
--- /dev/null
+++ b/lib/wx/src/gen/wxMDIChildFrame.erl
@@ -0,0 +1,618 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html">wxMDIChildFrame</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFrame}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMDIChildFrame(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMDIChildFrame).
+-include("wxe.hrl").
+-export([activate/1,create/4,create/5,destroy/1,maximize/1,maximize/2,new/0,new/3,
+ new/4,restore/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createStatusBar/1,createStatusBar/2,createToolBar/1,createToolBar/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientAreaOrigin/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,
+ getLabel/1,getMaxSize/1,getMenuBar/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getStatusBar/1,
+ getStatusBarPane/1,getTextExtent/2,getTextExtent/3,getTitle/1,getToolBar/1,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,
+ moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,processCommand/2,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ sendSizeEvent/1,setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMenuBar/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setStatusBar/2,setStatusBarPane/2,setStatusText/2,setStatusText/3,
+ setStatusWidths/2,setThemeEnabled/2,setTitle/2,setToolBar/2,setToolTip/2,
+ setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,
+ setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,
+ shouldInheritColours/1,show/1,show/2,showFullScreen/2,showFullScreen/3,
+ thaw/1,transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxFrame) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMDIChildFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframewxmdichildframe">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMDIChildFrame_new_0,
+ <<>>).
+
+%% @spec (Parent::wxMDIParentFrame:wxMDIParentFrame(), Id::integer(), Title::string()) -> wxMDIChildFrame()
+%% @equiv new(Parent,Id,Title, [])
+new(Parent,Id,Title)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ new(Parent,Id,Title, []).
+
+%% @spec (Parent::wxMDIParentFrame:wxMDIParentFrame(), Id::integer(), Title::string(), [Option]) -> wxMDIChildFrame()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframewxmdichildframe">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxMDIParentFrame),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMDIChildFrame_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMDIChildFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframeactivate">external documentation</a>.
+activate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIChildFrame),
+ wxe_util:cast(?wxMDIChildFrame_Activate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIChildFrame(), Parent::wxMDIParentFrame:wxMDIParentFrame(), Id::integer(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Id,Title, [])
+create(This,Parent,Id,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ create(This,Parent,Id,Title, []).
+
+%% @spec (This::wxMDIChildFrame(), Parent::wxMDIParentFrame:wxMDIParentFrame(), Id::integer(), Title::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxMDIChildFrame),
+ ?CLASS(ParentT,wxMDIParentFrame),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMDIChildFrame_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMDIChildFrame()) -> ok
+%% @equiv maximize(This, [])
+maximize(This)
+ when is_record(This, wx_ref) ->
+ maximize(This, []).
+
+%% @spec (This::wxMDIChildFrame(), [Option]) -> ok
+%% Option = {maximize, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframemaximize">external documentation</a>.
+maximize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMDIChildFrame),
+ MOpts = fun({maximize, Maximize}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Maximize)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxMDIChildFrame_Maximize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMDIChildFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdichildframe.html#wxmdichildframerestore">external documentation</a>.
+restore(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIChildFrame),
+ wxe_util:cast(?wxMDIChildFrame_Restore,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIChildFrame()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMDIChildFrame),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFrame
+%% @hidden
+setToolBar(This,Toolbar) -> wxFrame:setToolBar(This,Toolbar).
+%% @hidden
+setStatusWidths(This,Widths_field) -> wxFrame:setStatusWidths(This,Widths_field).
+%% @hidden
+setStatusText(This,Text, Options) -> wxFrame:setStatusText(This,Text, Options).
+%% @hidden
+setStatusText(This,Text) -> wxFrame:setStatusText(This,Text).
+%% @hidden
+setStatusBarPane(This,N) -> wxFrame:setStatusBarPane(This,N).
+%% @hidden
+setStatusBar(This,Statbar) -> wxFrame:setStatusBar(This,Statbar).
+%% @hidden
+setMenuBar(This,Menubar) -> wxFrame:setMenuBar(This,Menubar).
+%% @hidden
+sendSizeEvent(This) -> wxFrame:sendSizeEvent(This).
+%% @hidden
+processCommand(This,Winid) -> wxFrame:processCommand(This,Winid).
+%% @hidden
+getToolBar(This) -> wxFrame:getToolBar(This).
+%% @hidden
+getStatusBarPane(This) -> wxFrame:getStatusBarPane(This).
+%% @hidden
+getStatusBar(This) -> wxFrame:getStatusBar(This).
+%% @hidden
+getMenuBar(This) -> wxFrame:getMenuBar(This).
+%% @hidden
+getClientAreaOrigin(This) -> wxFrame:getClientAreaOrigin(This).
+%% @hidden
+createToolBar(This, Options) -> wxFrame:createToolBar(This, Options).
+%% @hidden
+createToolBar(This) -> wxFrame:createToolBar(This).
+%% @hidden
+createStatusBar(This, Options) -> wxFrame:createStatusBar(This, Options).
+%% @hidden
+createStatusBar(This) -> wxFrame:createStatusBar(This).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMDIClientWindow.erl b/lib/wx/src/gen/wxMDIClientWindow.erl
new file mode 100644
index 0000000000..6a6fbab4a7
--- /dev/null
+++ b/lib/wx/src/gen/wxMDIClientWindow.erl
@@ -0,0 +1,486 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiclientwindow.html">wxMDIClientWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMDIClientWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMDIClientWindow).
+-include("wxe.hrl").
+-export([createClient/2,createClient/3,destroy/1,new/0,new/1,new/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMDIClientWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiclientwindow.html#wxmdiclientwindowwxmdiclientwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMDIClientWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxMDIParentFrame:wxMDIParentFrame()) -> wxMDIClientWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxMDIParentFrame:wxMDIParentFrame(), [Option]) -> wxMDIClientWindow()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiclientwindow.html#wxmdiclientwindowwxmdiclientwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxMDIParentFrame),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMDIClientWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMDIClientWindow(), Parent::wxMDIParentFrame:wxMDIParentFrame()) -> bool()
+%% @equiv createClient(This,Parent, [])
+createClient(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ createClient(This,Parent, []).
+
+%% @spec (This::wxMDIClientWindow(), Parent::wxMDIParentFrame:wxMDIParentFrame(), [Option]) -> bool()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiclientwindow.html#wxmdiclientwindowcreateclient">external documentation</a>.
+createClient(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMDIClientWindow),
+ ?CLASS(ParentT,wxMDIParentFrame),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMDIClientWindow_CreateClient,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxMDIClientWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMDIClientWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMDIParentFrame.erl b/lib/wx/src/gen/wxMDIParentFrame.erl
new file mode 100644
index 0000000000..2638309ce7
--- /dev/null
+++ b/lib/wx/src/gen/wxMDIParentFrame.erl
@@ -0,0 +1,654 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html">wxMDIParentFrame</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFrame}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMDIParentFrame(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMDIParentFrame).
+-include("wxe.hrl").
+-export([activateNext/1,activatePrevious/1,arrangeIcons/1,cascade/1,create/4,
+ create/5,destroy/1,getActiveChild/1,getClientWindow/1,new/0,new/3,new/4,
+ tile/1,tile/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createStatusBar/1,createStatusBar/2,createToolBar/1,createToolBar/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientAreaOrigin/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,
+ getLabel/1,getMaxSize/1,getMenuBar/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getStatusBar/1,
+ getStatusBarPane/1,getTextExtent/2,getTextExtent/3,getTitle/1,getToolBar/1,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,
+ move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,processCommand/2,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,requestUserAttention/1,requestUserAttention/2,
+ screenToClient/1,screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,
+ scrollWindow/4,sendSizeEvent/1,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,setMaxSize/2,
+ setMenuBar/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setStatusBar/2,setStatusBarPane/2,
+ setStatusText/2,setStatusText/3,setStatusWidths/2,setThemeEnabled/2,
+ setTitle/2,setToolBar/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxFrame) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMDIParentFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframewxmdiparentframe">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMDIParentFrame_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> wxMDIParentFrame()
+%% @equiv new(Parent,Id,Title, [])
+new(Parent,Id,Title)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ new(Parent,Id,Title, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> wxMDIParentFrame()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframewxmdiparentframe">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMDIParentFrame_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframeactivatenext">external documentation</a>.
+activateNext(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:cast(?wxMDIParentFrame_ActivateNext,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframeactivateprevious">external documentation</a>.
+activatePrevious(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:cast(?wxMDIParentFrame_ActivatePrevious,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframearrangeicons">external documentation</a>.
+arrangeIcons(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:cast(?wxMDIParentFrame_ArrangeIcons,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframecascade">external documentation</a>.
+cascade(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:cast(?wxMDIParentFrame_Cascade,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Id,Title, [])
+create(This,Parent,Id,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ create(This,Parent,Id,Title, []).
+
+%% @spec (This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMDIParentFrame_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMDIParentFrame()) -> wxMDIChildFrame:wxMDIChildFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframegetactivechild">external documentation</a>.
+getActiveChild(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:call(?wxMDIParentFrame_GetActiveChild,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame()) -> wxMDIClientWindow:wxMDIClientWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframegetclientwindow">external documentation</a>.
+getClientWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ wxe_util:call(?wxMDIParentFrame_GetClientWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @equiv tile(This, [])
+tile(This)
+ when is_record(This, wx_ref) ->
+ tile(This, []).
+
+%% @spec (This::wxMDIParentFrame(), [Option]) -> ok
+%% Option = {orient, WxOrientation}
+%% WxOrientation = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmdiparentframe.html#wxmdiparentframetile">external documentation</a>.
+%%<br /> WxOrientation is one of ?wxHORIZONTAL | ?wxVERTICAL | ?wxBOTH
+tile(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMDIParentFrame),
+ MOpts = fun({orient, Orient}, Acc) -> [<<1:32/?UI,Orient:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxMDIParentFrame_Tile,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMDIParentFrame()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMDIParentFrame),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFrame
+%% @hidden
+setToolBar(This,Toolbar) -> wxFrame:setToolBar(This,Toolbar).
+%% @hidden
+setStatusWidths(This,Widths_field) -> wxFrame:setStatusWidths(This,Widths_field).
+%% @hidden
+setStatusText(This,Text, Options) -> wxFrame:setStatusText(This,Text, Options).
+%% @hidden
+setStatusText(This,Text) -> wxFrame:setStatusText(This,Text).
+%% @hidden
+setStatusBarPane(This,N) -> wxFrame:setStatusBarPane(This,N).
+%% @hidden
+setStatusBar(This,Statbar) -> wxFrame:setStatusBar(This,Statbar).
+%% @hidden
+setMenuBar(This,Menubar) -> wxFrame:setMenuBar(This,Menubar).
+%% @hidden
+sendSizeEvent(This) -> wxFrame:sendSizeEvent(This).
+%% @hidden
+processCommand(This,Winid) -> wxFrame:processCommand(This,Winid).
+%% @hidden
+getToolBar(This) -> wxFrame:getToolBar(This).
+%% @hidden
+getStatusBarPane(This) -> wxFrame:getStatusBarPane(This).
+%% @hidden
+getStatusBar(This) -> wxFrame:getStatusBar(This).
+%% @hidden
+getMenuBar(This) -> wxFrame:getMenuBar(This).
+%% @hidden
+getClientAreaOrigin(This) -> wxFrame:getClientAreaOrigin(This).
+%% @hidden
+createToolBar(This, Options) -> wxFrame:createToolBar(This, Options).
+%% @hidden
+createToolBar(This) -> wxFrame:createToolBar(This).
+%% @hidden
+createStatusBar(This, Options) -> wxFrame:createStatusBar(This, Options).
+%% @hidden
+createStatusBar(This) -> wxFrame:createStatusBar(This).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMask.erl b/lib/wx/src/gen/wxMask.erl
new file mode 100644
index 0000000000..881f8ba183
--- /dev/null
+++ b/lib/wx/src/gen/wxMask.erl
@@ -0,0 +1,103 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html">wxMask</a>.
+%% @type wxMask(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMask).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,new/0,new/1,new/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMask()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMask_new_0,
+ <<>>).
+
+%% @spec (Bitmap::wxBitmap:wxBitmap()) -> wxMask()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
+new(#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:construct(?wxMask_new_1,
+ <<BitmapRef:32/?UI>>).
+
+%% @spec (Bitmap::wxBitmap:wxBitmap(),X::integer()|term()) -> wxMask()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Bitmap::wxBitmap:wxBitmap(), PaletteIndex::integer()) -> wxMask() </c>
+%% </p>
+%% <p><c>
+%% new(Bitmap::wxBitmap:wxBitmap(), Colour::wx:colour()) -> wxMask() </c>
+%% </p>
+new(#wx_ref{type=BitmapT,ref=BitmapRef},PaletteIndex)
+ when is_integer(PaletteIndex) ->
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:construct(?wxMask_new_2_0,
+ <<BitmapRef:32/?UI,PaletteIndex:32/?UI>>);
+new(#wx_ref{type=BitmapT,ref=BitmapRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:construct(?wxMask_new_2_1,
+ <<BitmapRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxMask(), Bitmap::wxBitmap:wxBitmap()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html#wxmaskcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxMask),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxMask_Create_1,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxMask(),Bitmap::wxBitmap:wxBitmap(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmask.html#wxmaskcreate">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% create(This::wxMask(), Bitmap::wxBitmap:wxBitmap(), PaletteIndex::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% create(This::wxMask(), Bitmap::wxBitmap:wxBitmap(), Colour::wx:colour()) -> bool() </c>
+%% </p>
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef},PaletteIndex)
+ when is_integer(PaletteIndex) ->
+ ?CLASS(ThisT,wxMask),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxMask_Create_2_0,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI,PaletteIndex:32/?UI>>);
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxMask),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:call(?wxMask_Create_2_1,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxMask()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMask),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxMaximizeEvent.erl b/lib/wx/src/gen/wxMaximizeEvent.erl
new file mode 100644
index 0000000000..4ad1be3de0
--- /dev/null
+++ b/lib/wx/src/gen/wxMaximizeEvent.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmaximizeevent.html">wxMaximizeEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>maximize</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxMaximize(). #wxMaximize{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxMaximizeEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMaximizeEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxMemoryDC.erl b/lib/wx/src/gen/wxMemoryDC.erl
new file mode 100644
index 0000000000..28471cc8d3
--- /dev/null
+++ b/lib/wx/src/gen/wxMemoryDC.erl
@@ -0,0 +1,285 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html">wxMemoryDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxMemoryDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMemoryDC).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1,selectObject/2,selectObjectAsSource/2]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMemoryDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcwxmemorydc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMemoryDC_new_0,
+ <<>>).
+
+%% @spec (Dc::wxDC:wxDC() | wxBitmap:wxBitmap()) -> wxMemoryDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcwxmemorydc">external documentation</a>.
+new(#wx_ref{type=DcT,ref=DcRef}) ->
+ DcOP = case ?CLASS_T(DcT,wxDC) of
+ true ->
+ ?wxMemoryDC_new_1_1;
+ _ -> ?CLASS(DcT,wxBitmap),
+ ?wxMemoryDC_new_1_0
+ end,
+ wxe_util:construct(DcOP,
+ <<DcRef:32/?UI>>).
+
+%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcselectobject">external documentation</a>.
+selectObject(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) ->
+ ?CLASS(ThisT,wxMemoryDC),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxMemoryDC_SelectObject,
+ <<ThisRef:32/?UI,BmpRef:32/?UI>>).
+
+%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcselectobjectassource">external documentation</a>.
+selectObjectAsSource(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) ->
+ ?CLASS(ThisT,wxMemoryDC),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxMemoryDC_SelectObjectAsSource,
+ <<ThisRef:32/?UI,BmpRef:32/?UI>>).
+
+%% @spec (This::wxMemoryDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMemoryDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxMenu.erl b/lib/wx/src/gen/wxMenu.erl
new file mode 100644
index 0000000000..bc4fef6f18
--- /dev/null
+++ b/lib/wx/src/gen/wxMenu.erl
@@ -0,0 +1,624 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html">wxMenu</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMenu(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMenu).
+-include("wxe.hrl").
+-export(['Destroy'/2,append/2,append/3,append/4,append/5,appendCheckItem/3,appendCheckItem/4,
+ appendRadioItem/3,appendRadioItem/4,appendSeparator/1,break/1,check/3,
+ delete/2,destroy/1,enable/3,findItem/2,findItemByPosition/2,getHelpString/2,
+ getLabel/2,getMenuItemCount/1,getMenuItems/1,getTitle/1,insert/3,insert/4,
+ insert/5,insert/6,insertCheckItem/4,insertCheckItem/5,insertRadioItem/4,
+ insertRadioItem/5,insertSeparator/2,isChecked/2,isEnabled/2,new/0,
+ new/1,new/2,prepend/2,prepend/3,prepend/4,prepend/5,prependCheckItem/3,
+ prependCheckItem/4,prependRadioItem/3,prependRadioItem/4,prependSeparator/1,
+ remove/2,setHelpString/3,setLabel/3,setTitle/2]).
+
+%% inherited exports
+-export([connect/2,connect/3,disconnect/1,disconnect/2,disconnect/3,parent_class/1]).
+
+%% @hidden
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMenu()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxMenu()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuwxmenu">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMenu_new_1,
+ <<BinOpt/binary>>).
+
+%% @spec (Title::string(), [Option]) -> wxMenu()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuwxmenu">external documentation</a>.
+new(Title, Options)
+ when is_list(Title),is_list(Options) ->
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMenu_new_2,
+ <<(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend">external documentation</a>.
+append(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Append_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv append(This,Itemid,Text, [])
+append(This,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text) ->
+ append(This,Itemid,Text, []).
+
+%% @spec (This::wxMenu(),Itemid::integer(),Text::string(),X::wxMenu()|term()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> append(This,Itemid,Text,Submenu, []) </c></p>
+%% <p><c>
+%% append(This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem() </c>
+%%<br /> Option = {help, string()} | {kind, WxItemKind}
+%%<br /> WxItemKind = integer()
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+%% </p>
+
+append(This,Itemid,Text,Submenu)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text),is_record(Submenu, wx_ref) ->
+ append(This,Itemid,Text,Submenu, []);
+append(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({kind, Kind}, Acc) -> [<<2:32/?UI,Kind:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Append_3,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(),Itemid::integer(),Text::string(),X::string()|wxMenu(),X::bool()|term()) -> ok|wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok </c>
+%% </p>
+%% <p><c>
+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() </c>
+%%<br /> Option = {help, string()}
+%% </p>
+append(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text,Help,IsCheckable)
+ when is_integer(Itemid),is_list(Text),is_list(Help),is_boolean(IsCheckable) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ Help_UC = unicode:characters_to_binary([Help,0]),
+ wxe_util:cast(?wxMenu_Append_4_0,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((4+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8,(wxe_util:from_bool(IsCheckable)):32/?UI>>);
+append(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text,#wx_ref{type=SubmenuT,ref=SubmenuRef}, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ ?CLASS(SubmenuT,wxMenu),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Append_4_1,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,SubmenuRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv appendCheckItem(This,Itemid,Text, [])
+appendCheckItem(This,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text) ->
+ appendCheckItem(This,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendcheckitem">external documentation</a>.
+appendCheckItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_AppendCheckItem,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv appendRadioItem(This,Itemid,Text, [])
+appendRadioItem(This,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text) ->
+ appendRadioItem(This,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendradioitem">external documentation</a>.
+appendRadioItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_AppendRadioItem,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendseparator">external documentation</a>.
+appendSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_AppendSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenubreak">external documentation</a>.
+break(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:cast(?wxMenu_Break,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Check::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenucheck">external documentation</a>.
+check(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Check)
+ when is_integer(Itemid),is_boolean(Check) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:cast(?wxMenu_Check,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(wxe_util:from_bool(Check)):32/?UI>>).
+
+%% @spec (This::wxMenu(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenudelete">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% delete(This::wxMenu(), Itemid::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% delete(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() </c>
+%% </p>
+delete(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_Delete_1_0,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>);
+delete(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Delete_1_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenudestroy">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% 'Destroy'(This::wxMenu(), Itemid::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% 'Destroy'(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() </c>
+%% </p>
+'Destroy'(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_Destroy_1_0,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>);
+'Destroy'(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Destroy_1_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Enable::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Enable)
+ when is_integer(Itemid),is_boolean(Enable) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:cast(?wxMenu_Enable,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>).
+
+%% @spec (This::wxMenu(),X::integer()|string()) -> wxMenuItem:wxMenuItem()|integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenufinditem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% findItem(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() </c>
+%% </p>
+%% <p><c>
+%% findItem(This::wxMenu(), Item::string()) -> integer() </c>
+%% </p>
+findItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_FindItem_2,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>);
+findItem(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_list(Item) ->
+ ?CLASS(ThisT,wxMenu),
+ Item_UC = unicode:characters_to_binary([Item,0]),
+ wxe_util:call(?wxMenu_FindItem_1,
+ <<ThisRef:32/?UI,(byte_size(Item_UC)):32/?UI,(Item_UC)/binary, 0:(((8- ((0+byte_size(Item_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenu(), Position::integer()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenufinditembyposition">external documentation</a>.
+findItemByPosition(#wx_ref{type=ThisT,ref=ThisRef},Position)
+ when is_integer(Position) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_FindItemByPosition,
+ <<ThisRef:32/?UI,Position:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugethelpstring">external documentation</a>.
+getHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_GetHelpString,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_GetLabel,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenu()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetmenuitemcount">external documentation</a>.
+getMenuItemCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_GetMenuItemCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu()) -> [wxMenuItem:wxMenuItem()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetmenuitems">external documentation</a>.
+getMenuItems(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_GetMenuItems,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugettitle">external documentation</a>.
+getTitle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_GetTitle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu(),Pos::integer(),X::integer()|term()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer()) -> insert(This,Pos,Itemid, []) </c></p>
+%% <p><c>
+%% insert(This::wxMenu(), Pos::integer(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() </c>
+%% </p>
+
+insert(This,Pos,Itemid)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Itemid) ->
+ insert(This,Pos,Itemid, []);
+insert(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=ItemT,ref=ItemRef})
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Insert_2,
+ <<ThisRef:32/?UI,Pos:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {text, string()} | {help, string()} | {kind, WxItemKind}
+%% WxItemKind = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert">external documentation</a>.
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+insert(#wx_ref{type=ThisT,ref=ThisRef},Pos,Itemid, Options)
+ when is_integer(Pos),is_integer(Itemid),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ MOpts = fun({text, Text}, Acc) -> Text_UC = unicode:characters_to_binary([Text,0]),[<<1:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<2:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({kind, Kind}, Acc) -> [<<3:32/?UI,Kind:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Insert_3,
+ <<ThisRef:32/?UI,Pos:32/?UI,Itemid:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem:wxMenuItem()
+%% @equiv insert(This,Pos,Itemid,Text,Submenu, [])
+insert(This,Pos,Itemid,Text,Submenu)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Itemid),is_list(Text),is_record(Submenu, wx_ref) ->
+ insert(This,Pos,Itemid,Text,Submenu, []).
+
+%% @spec (This::wxMenu(),Pos::integer(),Itemid::integer(),Text::string(),X::string()|wxMenu(),X::bool()|term()) -> ok|wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok </c>
+%% </p>
+%% <p><c>
+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() </c>
+%%<br /> Option = {help, string()}
+%% </p>
+insert(#wx_ref{type=ThisT,ref=ThisRef},Pos,Itemid,Text,Help,IsCheckable)
+ when is_integer(Pos),is_integer(Itemid),is_list(Text),is_list(Help),is_boolean(IsCheckable) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ Help_UC = unicode:characters_to_binary([Help,0]),
+ wxe_util:cast(?wxMenu_Insert_5_0,
+ <<ThisRef:32/?UI,Pos:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((4+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8,(wxe_util:from_bool(IsCheckable)):32/?UI>>);
+insert(#wx_ref{type=ThisT,ref=ThisRef},Pos,Itemid,Text,#wx_ref{type=SubmenuT,ref=SubmenuRef}, Options)
+ when is_integer(Pos),is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ ?CLASS(SubmenuT,wxMenu),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Insert_5_1,
+ <<ThisRef:32/?UI,Pos:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,SubmenuRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv insertCheckItem(This,Pos,Itemid,Text, [])
+insertCheckItem(This,Pos,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Itemid),is_list(Text) ->
+ insertCheckItem(This,Pos,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertcheckitem">external documentation</a>.
+insertCheckItem(#wx_ref{type=ThisT,ref=ThisRef},Pos,Itemid,Text, Options)
+ when is_integer(Pos),is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_InsertCheckItem,
+ <<ThisRef:32/?UI,Pos:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv insertRadioItem(This,Pos,Itemid,Text, [])
+insertRadioItem(This,Pos,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Itemid),is_list(Text) ->
+ insertRadioItem(This,Pos,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertradioitem">external documentation</a>.
+insertRadioItem(#wx_ref{type=ThisT,ref=ThisRef},Pos,Itemid,Text, Options)
+ when is_integer(Pos),is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_InsertRadioItem,
+ <<ThisRef:32/?UI,Pos:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Pos::integer()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertseparator">external documentation</a>.
+insertSeparator(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_InsertSeparator,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_IsChecked,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuisenabled">external documentation</a>.
+isEnabled(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_IsEnabled,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenu(),X::integer()|term()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% prepend(This::wxMenu(), Itemid::integer()) -> prepend(This,Itemid, []) </c></p>
+%% <p><c>
+%% prepend(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() </c>
+%% </p>
+
+prepend(This,Itemid)
+ when is_record(This, wx_ref),is_integer(Itemid) ->
+ prepend(This,Itemid, []);
+prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Prepend_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {text, string()} | {help, string()} | {kind, WxItemKind}
+%% WxItemKind = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend">external documentation</a>.
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+prepend(#wx_ref{type=ThisT,ref=ThisRef},Itemid, Options)
+ when is_integer(Itemid),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ MOpts = fun({text, Text}, Acc) -> Text_UC = unicode:characters_to_binary([Text,0]),[<<1:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<2:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({kind, Kind}, Acc) -> [<<3:32/?UI,Kind:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Prepend_2,
+ <<ThisRef:32/?UI,Itemid:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem:wxMenuItem()
+%% @equiv prepend(This,Itemid,Text,Submenu, [])
+prepend(This,Itemid,Text,Submenu)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text),is_record(Submenu, wx_ref) ->
+ prepend(This,Itemid,Text,Submenu, []).
+
+%% @spec (This::wxMenu(),Itemid::integer(),Text::string(),X::string()|wxMenu(),X::bool()|term()) -> ok|wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% prepend(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok </c>
+%% </p>
+%% <p><c>
+%% prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() </c>
+%%<br /> Option = {help, string()}
+%% </p>
+prepend(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text,Help,IsCheckable)
+ when is_integer(Itemid),is_list(Text),is_list(Help),is_boolean(IsCheckable) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ Help_UC = unicode:characters_to_binary([Help,0]),
+ wxe_util:cast(?wxMenu_Prepend_4_0,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((4+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8,(wxe_util:from_bool(IsCheckable)):32/?UI>>);
+prepend(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text,#wx_ref{type=SubmenuT,ref=SubmenuRef}, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ ?CLASS(SubmenuT,wxMenu),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_Prepend_4_1,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8,SubmenuRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv prependCheckItem(This,Itemid,Text, [])
+prependCheckItem(This,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text) ->
+ prependCheckItem(This,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependcheckitem">external documentation</a>.
+prependCheckItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_PrependCheckItem,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem:wxMenuItem()
+%% @equiv prependRadioItem(This,Itemid,Text, [])
+prependRadioItem(This,Itemid,Text)
+ when is_record(This, wx_ref),is_integer(Itemid),is_list(Text) ->
+ prependRadioItem(This,Itemid,Text, []).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
+%% Option = {help, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependradioitem">external documentation</a>.
+prependRadioItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Text, Options)
+ when is_integer(Itemid),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxMenu),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<1:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenu_PrependRadioItem,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMenu()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependseparator">external documentation</a>.
+prependSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_PrependSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenu(),X::integer()|term()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuremove">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% remove(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() </c>
+%% </p>
+%% <p><c>
+%% remove(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() </c>
+%% </p>
+remove(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenu),
+ wxe_util:call(?wxMenu_Remove_1_0,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>);
+remove(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxMenu),
+ ?CLASS(ItemT,wxMenuItem),
+ wxe_util:call(?wxMenu_Remove_1_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), HelpString::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusethelpstring">external documentation</a>.
+setHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid,HelpString)
+ when is_integer(Itemid),is_list(HelpString) ->
+ ?CLASS(ThisT,wxMenu),
+ HelpString_UC = unicode:characters_to_binary([HelpString,0]),
+ wxe_util:cast(?wxMenu_SetHelpString,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(HelpString_UC)):32/?UI,(HelpString_UC)/binary, 0:(((8- ((4+byte_size(HelpString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenu(), Itemid::integer(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Label)
+ when is_integer(Itemid),is_list(Label) ->
+ ?CLASS(ThisT,wxMenu),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxMenu_SetLabel,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenu(), Title::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusettitle">external documentation</a>.
+setTitle(#wx_ref{type=ThisT,ref=ThisRef},Title)
+ when is_list(Title) ->
+ ?CLASS(ThisT,wxMenu),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:cast(?wxMenu_SetTitle,
+ <<ThisRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenu()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMenu),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMenuBar.erl b/lib/wx/src/gen/wxMenuBar.erl
new file mode 100644
index 0000000000..28dab451b8
--- /dev/null
+++ b/lib/wx/src/gen/wxMenuBar.erl
@@ -0,0 +1,662 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html">wxMenuBar</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMenuBar(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMenuBar).
+-include("wxe.hrl").
+-export([append/3,check/3,destroy/1,enable/1,enable/2,enable/3,enableTop/3,findItem/2,
+ findMenu/2,findMenuItem/3,getHelpString/2,getLabel/1,getLabel/2,getLabelTop/2,
+ getMenu/2,getMenuCount/1,insert/4,isChecked/2,isEnabled/1,isEnabled/2,
+ new/0,new/1,remove/2,replace/4,setHelpString/3,setLabel/2,setLabel/3,
+ setLabelTop/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,getBackgroundColour/1,
+ getBackgroundStyle/1,getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,
+ getChildren/1,getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getMaxSize/1,getMinSize/1,
+ getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,getToolTip/1,
+ getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1,
+ hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,hide/1,inheritAttributes/1,
+ initDialog/1,invalidateBestSize/1,isExposed/2,isExposed/3,isExposed/5,
+ isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,lower/1,
+ makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setMaxSize/2,setMinSize/2,
+ setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMenuBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarwxmenubar">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMenuBar_new_0,
+ <<>>).
+
+%% @spec (Style::integer()) -> wxMenuBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarwxmenubar">external documentation</a>.
+new(Style)
+ when is_integer(Style) ->
+ wxe_util:construct(?wxMenuBar_new_1,
+ <<Style:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Menu::wxMenu:wxMenu(), Title::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarappend">external documentation</a>.
+append(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef},Title)
+ when is_list(Title) ->
+ ?CLASS(ThisT,wxMenuBar),
+ ?CLASS(MenuT,wxMenu),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(?wxMenuBar_Append,
+ <<ThisRef:32/?UI,MenuRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer(), Check::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarcheck">external documentation</a>.
+check(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Check)
+ when is_integer(Itemid),is_boolean(Check) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:cast(?wxMenuBar_Check,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(wxe_util:from_bool(Check)):32/?UI>>).
+
+%% @spec (This::wxMenuBar()) -> bool()
+%% @equiv enable(This, [])
+enable(This)
+ when is_record(This, wx_ref) ->
+ enable(This, []).
+
+%% @spec (This::wxMenuBar(), [Option]) -> bool()
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMenuBar),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMenuBar_Enable_1,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer(), Enable::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Enable)
+ when is_integer(Itemid),is_boolean(Enable) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:cast(?wxMenuBar_Enable_2,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarenabletop">external documentation</a>.
+enableTop(#wx_ref{type=ThisT,ref=ThisRef},Pos,Flag)
+ when is_integer(Pos),is_boolean(Flag) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:cast(?wxMenuBar_EnableTop,
+ <<ThisRef:32/?UI,Pos:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Title::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarfindmenu">external documentation</a>.
+findMenu(#wx_ref{type=ThisT,ref=ThisRef},Title)
+ when is_list(Title) ->
+ ?CLASS(ThisT,wxMenuBar),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(?wxMenuBar_FindMenu,
+ <<ThisRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), MenuString::string(), ItemString::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarfindmenuitem">external documentation</a>.
+findMenuItem(#wx_ref{type=ThisT,ref=ThisRef},MenuString,ItemString)
+ when is_list(MenuString),is_list(ItemString) ->
+ ?CLASS(ThisT,wxMenuBar),
+ MenuString_UC = unicode:characters_to_binary([MenuString,0]),
+ ItemString_UC = unicode:characters_to_binary([ItemString,0]),
+ wxe_util:call(?wxMenuBar_FindMenuItem,
+ <<ThisRef:32/?UI,(byte_size(MenuString_UC)):32/?UI,(MenuString_UC)/binary, 0:(((8- ((0+byte_size(MenuString_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(ItemString_UC)):32/?UI,(ItemString_UC)/binary, 0:(((8- ((4+byte_size(ItemString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Id::integer()) -> wxMenuItem:wxMenuItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarfinditem">external documentation</a>.
+findItem(#wx_ref{type=ThisT,ref=ThisRef},Id)
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_FindItem,
+ <<ThisRef:32/?UI,Id:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargethelpstring">external documentation</a>.
+getHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetHelpString,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenuBar()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetLabel_0,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetLabel_1,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargetlabeltop">external documentation</a>.
+getLabelTop(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetLabelTop,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargetmenu">external documentation</a>.
+getMenu(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetMenu,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxMenuBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubargetmenucount">external documentation</a>.
+getMenuCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_GetMenuCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer(), Menu::wxMenu:wxMenu(), Title::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarinsert">external documentation</a>.
+insert(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=MenuT,ref=MenuRef},Title)
+ when is_integer(Pos),is_list(Title) ->
+ ?CLASS(ThisT,wxMenuBar),
+ ?CLASS(MenuT,wxMenu),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(?wxMenuBar_Insert,
+ <<ThisRef:32/?UI,Pos:32/?UI,MenuRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_IsChecked,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenuBar()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarisenabled">external documentation</a>.
+isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_IsEnabled_0,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarisenabled">external documentation</a>.
+isEnabled(#wx_ref{type=ThisT,ref=ThisRef},Itemid)
+ when is_integer(Itemid) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_IsEnabled_1,
+ <<ThisRef:32/?UI,Itemid:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarremove">external documentation</a>.
+remove(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxMenuBar),
+ wxe_util:call(?wxMenuBar_Remove,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer(), Menu::wxMenu:wxMenu(), Title::string()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=MenuT,ref=MenuRef},Title)
+ when is_integer(Pos),is_list(Title) ->
+ ?CLASS(ThisT,wxMenuBar),
+ ?CLASS(MenuT,wxMenu),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(?wxMenuBar_Replace,
+ <<ThisRef:32/?UI,Pos:32/?UI,MenuRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer(), HelpString::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarsethelpstring">external documentation</a>.
+setHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid,HelpString)
+ when is_integer(Itemid),is_list(HelpString) ->
+ ?CLASS(ThisT,wxMenuBar),
+ HelpString_UC = unicode:characters_to_binary([HelpString,0]),
+ wxe_util:cast(?wxMenuBar_SetHelpString,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(HelpString_UC)):32/?UI,(HelpString_UC)/binary, 0:(((8- ((4+byte_size(HelpString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), S::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},S)
+ when is_list(S) ->
+ ?CLASS(ThisT,wxMenuBar),
+ S_UC = unicode:characters_to_binary([S,0]),
+ wxe_util:cast(?wxMenuBar_SetLabel_1,
+ <<ThisRef:32/?UI,(byte_size(S_UC)):32/?UI,(S_UC)/binary, 0:(((8- ((0+byte_size(S_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Itemid::integer(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Label)
+ when is_integer(Itemid),is_list(Label) ->
+ ?CLASS(ThisT,wxMenuBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxMenuBar_SetLabel_2,
+ <<ThisRef:32/?UI,Itemid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar(), Pos::integer(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenubar.html#wxmenubarsetlabeltop">external documentation</a>.
+setLabelTop(#wx_ref{type=ThisT,ref=ThisRef},Pos,Label)
+ when is_integer(Pos),is_list(Label) ->
+ ?CLASS(ThisT,wxMenuBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxMenuBar_SetLabelTop,
+ <<ThisRef:32/?UI,Pos:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuBar()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMenuBar),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMenuEvent.erl b/lib/wx/src/gen/wxMenuEvent.erl
new file mode 100644
index 0000000000..77ce7c04b7
--- /dev/null
+++ b/lib/wx/src/gen/wxMenuEvent.erl
@@ -0,0 +1,83 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuevent.html">wxMenuEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>menu_open</em>, <em>menu_close</em>, <em>menu_highlight</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxMenu(). #wxMenu{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxMenuEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMenuEvent).
+-include("wxe.hrl").
+-export([getMenu/1,getMenuId/1,isPopup/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxMenuEvent()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuevent.html#wxmenueventgetmenu">external documentation</a>.
+getMenu(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuEvent),
+ wxe_util:call(?wxMenuEvent_GetMenu,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuevent.html#wxmenueventgetmenuid">external documentation</a>.
+getMenuId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuEvent),
+ wxe_util:call(?wxMenuEvent_GetMenuId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuevent.html#wxmenueventispopup">external documentation</a>.
+isPopup(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuEvent),
+ wxe_util:call(?wxMenuEvent_IsPopup,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxMenuItem.erl b/lib/wx/src/gen/wxMenuItem.erl
new file mode 100644
index 0000000000..2d9fd15d86
--- /dev/null
+++ b/lib/wx/src/gen/wxMenuItem.erl
@@ -0,0 +1,245 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html">wxMenuItem</a>.
+%% @type wxMenuItem(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMenuItem).
+-include("wxe.hrl").
+-export([check/1,check/2,destroy/1,enable/1,enable/2,getBitmap/1,getHelp/1,getId/1,
+ getKind/1,getLabel/1,getLabelFromText/1,getMenu/1,getSubMenu/1,getText/1,
+ isCheckable/1,isChecked/1,isEnabled/1,isSeparator/1,isSubMenu/1,new/0,
+ new/1,setBitmap/2,setHelp/2,setMenu/2,setSubMenu/2,setText/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMenuItem()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxMenuItem()
+%% Option = {parentMenu, wxMenu:wxMenu()} | {id, integer()} | {text, string()} | {help, string()} | {kind, WxItemKind} | {subMenu, wxMenu:wxMenu()}
+%% WxItemKind = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemwxmenuitem">external documentation</a>.
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({parentMenu, #wx_ref{type=ParentMenuT,ref=ParentMenuRef}}, Acc) -> ?CLASS(ParentMenuT,wxMenu),[<<1:32/?UI,ParentMenuRef:32/?UI>>|Acc];
+ ({id, Id}, Acc) -> [<<2:32/?UI,Id:32/?UI>>|Acc];
+ ({text, Text}, Acc) -> Text_UC = unicode:characters_to_binary([Text,0]),[<<3:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({help, Help}, Acc) -> Help_UC = unicode:characters_to_binary([Help,0]),[<<4:32/?UI,(byte_size(Help_UC)):32/?UI,(Help_UC)/binary, 0:(((8- ((0+byte_size(Help_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({kind, Kind}, Acc) -> [<<5:32/?UI,Kind:32/?UI>>|Acc];
+ ({subMenu, #wx_ref{type=SubMenuT,ref=SubMenuRef}}, Acc) -> ?CLASS(SubMenuT,wxMenu),[<<6:32/?UI,SubMenuRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMenuItem_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxMenuItem()) -> ok
+%% @equiv check(This, [])
+check(This)
+ when is_record(This, wx_ref) ->
+ check(This, []).
+
+%% @spec (This::wxMenuItem(), [Option]) -> ok
+%% Option = {check, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemcheck">external documentation</a>.
+check(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMenuItem),
+ MOpts = fun({check, Check}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Check)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxMenuItem_Check,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenuItem()) -> ok
+%% @equiv enable(This, [])
+enable(This)
+ when is_record(This, wx_ref) ->
+ enable(This, []).
+
+%% @spec (This::wxMenuItem(), [Option]) -> ok
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMenuItem),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxMenuItem_Enable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMenuItem()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetbitmap">external documentation</a>.
+getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetBitmap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgethelp">external documentation</a>.
+getHelp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetHelp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetid">external documentation</a>.
+getId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> WxItemKind
+%% WxItemKind = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetkind">external documentation</a>.
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+getKind(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetKind,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Text::string()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetlabelfromtext">external documentation</a>.
+getLabelFromText(Text)
+ when is_list(Text) ->
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxMenuItem_GetLabelFromText,
+ <<(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuItem()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetmenu">external documentation</a>.
+getMenu(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetMenu,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemgetsubmenu">external documentation</a>.
+getSubMenu(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_GetSubMenu,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemischeckable">external documentation</a>.
+isCheckable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_IsCheckable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemischecked">external documentation</a>.
+isChecked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_IsChecked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemisenabled">external documentation</a>.
+isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_IsEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemisseparator">external documentation</a>.
+isSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_IsSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemissubmenu">external documentation</a>.
+isSubMenu(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ wxe_util:call(?wxMenuItem_IsSubMenu,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem(), Bitmap::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemsetbitmap">external documentation</a>.
+setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:cast(?wxMenuItem_SetBitmap,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemsethelp">external documentation</a>.
+setHelp(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxMenuItem),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxMenuItem_SetHelp,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuItem(), Menu::wxMenu:wxMenu()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemsetmenu">external documentation</a>.
+setMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ ?CLASS(MenuT,wxMenu),
+ wxe_util:cast(?wxMenuItem_SetMenu,
+ <<ThisRef:32/?UI,MenuRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem(), Menu::wxMenu:wxMenu()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemsetsubmenu">external documentation</a>.
+setSubMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}) ->
+ ?CLASS(ThisT,wxMenuItem),
+ ?CLASS(MenuT,wxMenu),
+ wxe_util:cast(?wxMenuItem_SetSubMenu,
+ <<ThisRef:32/?UI,MenuRef:32/?UI>>).
+
+%% @spec (This::wxMenuItem(), Str::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmenuitem.html#wxmenuitemsettext">external documentation</a>.
+setText(#wx_ref{type=ThisT,ref=ThisRef},Str)
+ when is_list(Str) ->
+ ?CLASS(ThisT,wxMenuItem),
+ Str_UC = unicode:characters_to_binary([Str,0]),
+ wxe_util:cast(?wxMenuItem_SetText,
+ <<ThisRef:32/?UI,(byte_size(Str_UC)):32/?UI,(Str_UC)/binary, 0:(((8- ((0+byte_size(Str_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxMenuItem()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMenuItem),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxMessageDialog.erl b/lib/wx/src/gen/wxMessageDialog.erl
new file mode 100644
index 0000000000..eab41919ba
--- /dev/null
+++ b/lib/wx/src/gen/wxMessageDialog.erl
@@ -0,0 +1,541 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmessagedialog.html">wxMessageDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMessageDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMessageDialog).
+-include("wxe.hrl").
+-export([destroy/1,new/2,new/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string()) -> wxMessageDialog()
+%% @equiv new(Parent,Message, [])
+new(Parent,Message)
+ when is_record(Parent, wx_ref),is_list(Message) ->
+ new(Parent,Message, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), [Option]) -> wxMessageDialog()
+%% Option = {caption, string()} | {style, integer()} | {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmessagedialog.html#wxmessagedialogwxmessagedialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Message, Options)
+ when is_list(Message),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ MOpts = fun({caption, Caption}, Acc) -> Caption_UC = unicode:characters_to_binary([Caption,0]),[<<1:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((0+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMessageDialog_new,
+ <<ParentRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMessageDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMessageDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMiniFrame.erl b/lib/wx/src/gen/wxMiniFrame.erl
new file mode 100644
index 0000000000..3e7799a66f
--- /dev/null
+++ b/lib/wx/src/gen/wxMiniFrame.erl
@@ -0,0 +1,590 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxminiframe.html">wxMiniFrame</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFrame}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMiniFrame(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMiniFrame).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,new/0,new/3,new/4]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createStatusBar/1,createStatusBar/2,createToolBar/1,createToolBar/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientAreaOrigin/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,
+ getLabel/1,getMaxSize/1,getMenuBar/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getStatusBar/1,
+ getStatusBarPane/1,getTextExtent/2,getTextExtent/3,getTitle/1,getToolBar/1,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,
+ move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,processCommand/2,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,requestUserAttention/1,requestUserAttention/2,
+ screenToClient/1,screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,
+ scrollWindow/4,sendSizeEvent/1,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,setMaxSize/2,
+ setMenuBar/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setStatusBar/2,setStatusBarPane/2,
+ setStatusText/2,setStatusText/3,setStatusWidths/2,setThemeEnabled/2,
+ setTitle/2,setToolBar/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxFrame) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMiniFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxminiframe.html#wxminiframewxminiframe">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMiniFrame_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> wxMiniFrame()
+%% @equiv new(Parent,Id,Title, [])
+new(Parent,Id,Title)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ new(Parent,Id,Title, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> wxMiniFrame()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxminiframe.html#wxminiframewxminiframe">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMiniFrame_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMiniFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> bool()
+%% @equiv create(This,Parent,Id,Title, [])
+create(This,Parent,Id,Title)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) ->
+ create(This,Parent,Id,Title, []).
+
+%% @spec (This::wxMiniFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxminiframe.html#wxminiframecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options)
+ when is_integer(Id),is_list(Title),is_list(Options) ->
+ ?CLASS(ThisT,wxMiniFrame),
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMiniFrame_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMiniFrame()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMiniFrame),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFrame
+%% @hidden
+setToolBar(This,Toolbar) -> wxFrame:setToolBar(This,Toolbar).
+%% @hidden
+setStatusWidths(This,Widths_field) -> wxFrame:setStatusWidths(This,Widths_field).
+%% @hidden
+setStatusText(This,Text, Options) -> wxFrame:setStatusText(This,Text, Options).
+%% @hidden
+setStatusText(This,Text) -> wxFrame:setStatusText(This,Text).
+%% @hidden
+setStatusBarPane(This,N) -> wxFrame:setStatusBarPane(This,N).
+%% @hidden
+setStatusBar(This,Statbar) -> wxFrame:setStatusBar(This,Statbar).
+%% @hidden
+setMenuBar(This,Menubar) -> wxFrame:setMenuBar(This,Menubar).
+%% @hidden
+sendSizeEvent(This) -> wxFrame:sendSizeEvent(This).
+%% @hidden
+processCommand(This,Winid) -> wxFrame:processCommand(This,Winid).
+%% @hidden
+getToolBar(This) -> wxFrame:getToolBar(This).
+%% @hidden
+getStatusBarPane(This) -> wxFrame:getStatusBarPane(This).
+%% @hidden
+getStatusBar(This) -> wxFrame:getStatusBar(This).
+%% @hidden
+getMenuBar(This) -> wxFrame:getMenuBar(This).
+%% @hidden
+getClientAreaOrigin(This) -> wxFrame:getClientAreaOrigin(This).
+%% @hidden
+createToolBar(This, Options) -> wxFrame:createToolBar(This, Options).
+%% @hidden
+createToolBar(This) -> wxFrame:createToolBar(This).
+%% @hidden
+createStatusBar(This, Options) -> wxFrame:createStatusBar(This, Options).
+%% @hidden
+createStatusBar(This) -> wxFrame:createStatusBar(This).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxMirrorDC.erl b/lib/wx/src/gen/wxMirrorDC.erl
new file mode 100644
index 0000000000..9300f7a31e
--- /dev/null
+++ b/lib/wx/src/gen/wxMirrorDC.erl
@@ -0,0 +1,259 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmirrordc.html">wxMirrorDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxMirrorDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMirrorDC).
+-include("wxe.hrl").
+-export([destroy/1,new/2]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Dc::wxDC:wxDC(), Mirror::bool()) -> wxMirrorDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmirrordc.html#wxmirrordcwxmirrordc">external documentation</a>.
+new(#wx_ref{type=DcT,ref=DcRef},Mirror)
+ when is_boolean(Mirror) ->
+ ?CLASS(DcT,wxDC),
+ wxe_util:construct(?wxMirrorDC_new,
+ <<DcRef:32/?UI,(wxe_util:from_bool(Mirror)):32/?UI>>).
+
+%% @spec (This::wxMirrorDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMirrorDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxMouseCaptureChangedEvent.erl b/lib/wx/src/gen/wxMouseCaptureChangedEvent.erl
new file mode 100644
index 0000000000..629dcde795
--- /dev/null
+++ b/lib/wx/src/gen/wxMouseCaptureChangedEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmousecapturechangedevent.html">wxMouseCaptureChangedEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>mouse_capture_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxMouseCaptureChanged(). #wxMouseCaptureChanged{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxMouseCaptureChangedEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMouseCaptureChangedEvent).
+-include("wxe.hrl").
+-export([getCapturedWindow/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxMouseCaptureChangedEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmousecapturechangedevent.html#wxmousecapturechangedeventgetcapturedwindow">external documentation</a>.
+getCapturedWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseCaptureChangedEvent),
+ wxe_util:call(?wxMouseCaptureChangedEvent_GetCapturedWindow,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxMouseEvent.erl b/lib/wx/src/gen/wxMouseEvent.erl
new file mode 100644
index 0000000000..0772e99b0d
--- /dev/null
+++ b/lib/wx/src/gen/wxMouseEvent.erl
@@ -0,0 +1,348 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html">wxMouseEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>left_down</em>, <em>left_up</em>, <em>middle_down</em>, <em>middle_up</em>, <em>right_down</em>, <em>right_up</em>, <em>motion</em>, <em>enter_window</em>, <em>leave_window</em>, <em>left_dclick</em>, <em>middle_dclick</em>, <em>right_dclick</em>, <em>mousewheel</em>, <em>nc_left_down</em>, <em>nc_left_up</em>, <em>nc_middle_down</em>, <em>nc_middle_up</em>, <em>nc_right_down</em>, <em>nc_right_up</em>, <em>nc_motion</em>, <em>nc_enter_window</em>, <em>nc_leave_window</em>, <em>nc_left_dclick</em>, <em>nc_middle_dclick</em>, <em>nc_right_dclick</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxMouse(). #wxMouse{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxMouseEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMouseEvent).
+-include("wxe.hrl").
+-export([altDown/1,button/2,buttonDClick/1,buttonDClick/2,buttonDown/1,buttonDown/2,
+ buttonUp/1,buttonUp/2,cmdDown/1,controlDown/1,dragging/1,entering/1,
+ getButton/1,getLinesPerAction/1,getLogicalPosition/2,getPosition/1,
+ getWheelDelta/1,getWheelRotation/1,getX/1,getY/1,isButton/1,isPageScroll/1,
+ leaving/1,leftDClick/1,leftDown/1,leftIsDown/1,leftUp/1,metaDown/1,
+ middleDClick/1,middleDown/1,middleIsDown/1,middleUp/1,moving/1,rightDClick/1,
+ rightDown/1,rightIsDown/1,rightUp/1,shiftDown/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventaltdown">external documentation</a>.
+altDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_AltDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent(), But::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventbutton">external documentation</a>.
+button(#wx_ref{type=ThisT,ref=ThisRef},But)
+ when is_integer(But) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_Button,
+ <<ThisRef:32/?UI,But:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @equiv buttonDClick(This, [])
+buttonDClick(This)
+ when is_record(This, wx_ref) ->
+ buttonDClick(This, []).
+
+%% @spec (This::wxMouseEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventbuttondclick">external documentation</a>.
+buttonDClick(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMouseEvent_ButtonDClick,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @equiv buttonDown(This, [])
+buttonDown(This)
+ when is_record(This, wx_ref) ->
+ buttonDown(This, []).
+
+%% @spec (This::wxMouseEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventbuttondown">external documentation</a>.
+buttonDown(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMouseEvent_ButtonDown,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @equiv buttonUp(This, [])
+buttonUp(This)
+ when is_record(This, wx_ref) ->
+ buttonUp(This, []).
+
+%% @spec (This::wxMouseEvent(), [Option]) -> bool()
+%% Option = {but, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventbuttonup">external documentation</a>.
+buttonUp(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ MOpts = fun({but, But}, Acc) -> [<<1:32/?UI,But:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxMouseEvent_ButtonUp,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventcmddown">external documentation</a>.
+cmdDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_CmdDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventcontroldown">external documentation</a>.
+controlDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_ControlDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventdragging">external documentation</a>.
+dragging(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_Dragging,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseevententering">external documentation</a>.
+entering(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_Entering,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetbutton">external documentation</a>.
+getButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent(), Dc::wxDC:wxDC()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetlogicalposition">external documentation</a>.
+getLogicalPosition(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ ?CLASS(DcT,wxDC),
+ wxe_util:call(?wxMouseEvent_GetLogicalPosition,
+ <<ThisRef:32/?UI,DcRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetlinesperaction">external documentation</a>.
+getLinesPerAction(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetLinesPerAction,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetwheelrotation">external documentation</a>.
+getWheelRotation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetWheelRotation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetwheeldelta">external documentation</a>.
+getWheelDelta(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetWheelDelta,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgetx">external documentation</a>.
+getX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventgety">external documentation</a>.
+getY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_GetY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventisbutton">external documentation</a>.
+isButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_IsButton,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventispagescroll">external documentation</a>.
+isPageScroll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_IsPageScroll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventleaving">external documentation</a>.
+leaving(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_Leaving,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventleftdclick">external documentation</a>.
+leftDClick(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_LeftDClick,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventleftdown">external documentation</a>.
+leftDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_LeftDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventleftisdown">external documentation</a>.
+leftIsDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_LeftIsDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventleftup">external documentation</a>.
+leftUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_LeftUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmetadown">external documentation</a>.
+metaDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_MetaDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmiddledclick">external documentation</a>.
+middleDClick(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_MiddleDClick,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmiddledown">external documentation</a>.
+middleDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_MiddleDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmiddleisdown">external documentation</a>.
+middleIsDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_MiddleIsDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmiddleup">external documentation</a>.
+middleUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_MiddleUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventmoving">external documentation</a>.
+moving(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_Moving,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventrightdclick">external documentation</a>.
+rightDClick(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_RightDClick,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventrightdown">external documentation</a>.
+rightDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_RightDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventrightisdown">external documentation</a>.
+rightIsDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_RightIsDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventrightup">external documentation</a>.
+rightUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_RightUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMouseEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmouseevent.html#wxmouseeventshiftdown">external documentation</a>.
+shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMouseEvent),
+ wxe_util:call(?wxMouseEvent_ShiftDown,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxMoveEvent.erl b/lib/wx/src/gen/wxMoveEvent.erl
new file mode 100644
index 0000000000..17a33ff3ed
--- /dev/null
+++ b/lib/wx/src/gen/wxMoveEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmoveevent.html">wxMoveEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>move</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxMove(). #wxMove{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxMoveEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMoveEvent).
+-include("wxe.hrl").
+-export([getPosition/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxMoveEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmoveevent.html#wxmoveeventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMoveEvent),
+ wxe_util:call(?wxMoveEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxMultiChoiceDialog.erl b/lib/wx/src/gen/wxMultiChoiceDialog.erl
new file mode 100644
index 0000000000..98690654e6
--- /dev/null
+++ b/lib/wx/src/gen/wxMultiChoiceDialog.erl
@@ -0,0 +1,565 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmultichoicedialog.html">wxMultiChoiceDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxMultiChoiceDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxMultiChoiceDialog).
+-include("wxe.hrl").
+-export([destroy/1,getSelections/1,new/0,new/4,new/5,setSelections/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxMultiChoiceDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmultichoicedialog.html#wxmultichoicedialogwxmultichoicedialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxMultiChoiceDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]]) -> wxMultiChoiceDialog()
+%% @equiv new(Parent,Message,Caption,Choices, [])
+new(Parent,Message,Caption,Choices)
+ when is_record(Parent, wx_ref),is_list(Message),is_list(Caption),is_list(Choices) ->
+ new(Parent,Message,Caption,Choices, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]], [Option]) -> wxMultiChoiceDialog()
+%% Option = {style, integer()} | {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmultichoicedialog.html#wxmultichoicedialogwxmultichoicedialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Message,Caption,Choices, Options)
+ when is_list(Message),is_list(Caption),is_list(Choices),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ Caption_UC = unicode:characters_to_binary([Caption,0]),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxMultiChoiceDialog_new_5,
+ <<ParentRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((4+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxMultiChoiceDialog()) -> [integer()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmultichoicedialog.html#wxmultichoicedialoggetselections">external documentation</a>.
+getSelections(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxMultiChoiceDialog),
+ wxe_util:call(?wxMultiChoiceDialog_GetSelections,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxMultiChoiceDialog(), Selections::[integer()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmultichoicedialog.html#wxmultichoicedialogsetselections">external documentation</a>.
+setSelections(#wx_ref{type=ThisT,ref=ThisRef},Selections)
+ when is_list(Selections) ->
+ ?CLASS(ThisT,wxMultiChoiceDialog),
+ wxe_util:cast(?wxMultiChoiceDialog_SetSelections,
+ <<ThisRef:32/?UI,(length(Selections)):32/?UI,
+ (<< <<C:32/?I>> || C <- Selections>>)/binary, 0:(((0+length(Selections)) rem 2)*32)>>).
+
+%% @spec (This::wxMultiChoiceDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxMultiChoiceDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxNavigationKeyEvent.erl b/lib/wx/src/gen/wxNavigationKeyEvent.erl
new file mode 100644
index 0000000000..9a74a75c51
--- /dev/null
+++ b/lib/wx/src/gen/wxNavigationKeyEvent.erl
@@ -0,0 +1,123 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html">wxNavigationKeyEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>navigation_key</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxNavigationKey(). #wxNavigationKey{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxNavigationKeyEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxNavigationKeyEvent).
+-include("wxe.hrl").
+-export([getCurrentFocus/1,getDirection/1,isFromTab/1,isWindowChange/1,setCurrentFocus/2,
+ setDirection/2,setFromTab/2,setWindowChange/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxNavigationKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventgetdirection">external documentation</a>.
+getDirection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:call(?wxNavigationKeyEvent_GetDirection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent(), BForward::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetdirection">external documentation</a>.
+setDirection(#wx_ref{type=ThisT,ref=ThisRef},BForward)
+ when is_boolean(BForward) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:cast(?wxNavigationKeyEvent_SetDirection,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(BForward)):32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventiswindowchange">external documentation</a>.
+isWindowChange(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:call(?wxNavigationKeyEvent_IsWindowChange,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetwindowchange">external documentation</a>.
+setWindowChange(#wx_ref{type=ThisT,ref=ThisRef},BIs)
+ when is_boolean(BIs) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:cast(?wxNavigationKeyEvent_SetWindowChange,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(BIs)):32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventisfromtab">external documentation</a>.
+isFromTab(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:call(?wxNavigationKeyEvent_IsFromTab,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetfromtab">external documentation</a>.
+setFromTab(#wx_ref{type=ThisT,ref=ThisRef},BIs)
+ when is_boolean(BIs) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:cast(?wxNavigationKeyEvent_SetFromTab,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(BIs)):32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventgetcurrentfocus">external documentation</a>.
+getCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ wxe_util:call(?wxNavigationKeyEvent_GetCurrentFocus,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNavigationKeyEvent(), Win::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetcurrentfocus">external documentation</a>.
+setCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(ThisT,wxNavigationKeyEvent),
+ ?CLASS(WinT,wxWindow),
+ wxe_util:cast(?wxNavigationKeyEvent_SetCurrentFocus,
+ <<ThisRef:32/?UI,WinRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxNcPaintEvent.erl b/lib/wx/src/gen/wxNcPaintEvent.erl
new file mode 100644
index 0000000000..22e00d337d
--- /dev/null
+++ b/lib/wx/src/gen/wxNcPaintEvent.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxncpaintevent.html">wxNcPaintEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>nc_paint</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxNcPaint(). #wxNcPaint{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxNcPaintEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxNcPaintEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxNotebook.erl b/lib/wx/src/gen/wxNotebook.erl
new file mode 100644
index 0000000000..93cc741036
--- /dev/null
+++ b/lib/wx/src/gen/wxNotebook.erl
@@ -0,0 +1,720 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html">wxNotebook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxNotebook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxNotebook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
+ changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
+ destroy/1,getCurrentPage/1,getImageList/1,getPage/2,getPageCount/1,
+ getPageImage/2,getPageText/2,getRowCount/1,getSelection/1,getThemeBackgroundColour/1,
+ hitTest/2,insertPage/4,insertPage/5,new/0,new/2,new/3,removePage/2,setImageList/2,
+ setPadding/2,setPageImage/3,setPageSize/2,setPageText/3,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxNotebook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookwxnotebook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxNotebook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Winid::integer()) -> wxNotebook()
+%% @equiv new(Parent,Winid, [])
+new(Parent,Winid)
+ when is_record(Parent, wx_ref),is_integer(Winid) ->
+ new(Parent,Winid, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Winid::integer(), [Option]) -> wxNotebook()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookwxnotebook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Winid, Options)
+ when is_integer(Winid),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxNotebook_new_3,
+ <<ParentRef:32/?UI,Winid:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxNotebook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv addPage(This,Page,Text, [])
+addPage(This,Page,Text)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
+ addPage(This,Page,Text, []).
+
+%% @spec (This::wxNotebook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxNotebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxNotebook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxNotebook()) -> ok
+%% @equiv advanceSelection(This, [])
+advanceSelection(This)
+ when is_record(This, wx_ref) ->
+ advanceSelection(This, []).
+
+%% @spec (This::wxNotebook(), [Option]) -> ok
+%% Option = {forward, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookadvanceselection">external documentation</a>.
+advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxNotebook),
+ MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxNotebook_AdvanceSelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxNotebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxNotebook_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxNotebook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxNotebook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxNotebook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxNotebook()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookdeleteallpages">external documentation</a>.
+deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_DeleteAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_DeletePage,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_RemovePage,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), N::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetPage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetpageimage">external documentation</a>.
+getPageImage(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetPageImage,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetPageText,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetrowcount">external documentation</a>.
+getRowCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetRowCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookgetthemebackgroundcolour">external documentation</a>.
+getThemeBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_GetThemeBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_HitTest,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxNotebook(), Position::integer(), Win::wxWindow:wxWindow(), StrText::string()) -> bool()
+%% @equiv insertPage(This,Position,Win,StrText, [])
+insertPage(This,Position,Win,StrText)
+ when is_record(This, wx_ref),is_integer(Position),is_record(Win, wx_ref),is_list(StrText) ->
+ insertPage(This,Position,Win,StrText, []).
+
+%% @spec (This::wxNotebook(), Position::integer(), Win::wxWindow:wxWindow(), StrText::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},Position,#wx_ref{type=WinT,ref=WinRef},StrText, Options)
+ when is_integer(Position),is_list(StrText),is_list(Options) ->
+ ?CLASS(ThisT,wxNotebook),
+ ?CLASS(WinT,wxWindow),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxNotebook_InsertPage,
+ <<ThisRef:32/?UI,Position:32/?UI,WinRef:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((0+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxNotebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxNotebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxNotebook_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxNotebook(), Padding::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetpadding">external documentation</a>.
+setPadding(#wx_ref{type=ThisT,ref=ThisRef},{PaddingW,PaddingH})
+ when is_integer(PaddingW),is_integer(PaddingH) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:cast(?wxNotebook_SetPadding,
+ <<ThisRef:32/?UI,PaddingW:32/?UI,PaddingH:32/?UI>>).
+
+%% @spec (This::wxNotebook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:cast(?wxNotebook_SetPageSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer(), NImage::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetpageimage">external documentation</a>.
+setPageImage(#wx_ref{type=ThisT,ref=ThisRef},NPage,NImage)
+ when is_integer(NPage),is_integer(NImage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_SetPageImage,
+ <<ThisRef:32/?UI,NPage:32/?UI,NImage:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer(), StrText::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},NPage,StrText)
+ when is_integer(NPage),is_list(StrText) ->
+ ?CLASS(ThisT,wxNotebook),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ wxe_util:call(?wxNotebook_SetPageText,
+ <<ThisRef:32/?UI,NPage:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_SetSelection,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook(), NPage::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebook.html#wxnotebookchangeselection">external documentation</a>.
+changeSelection(#wx_ref{type=ThisT,ref=ThisRef},NPage)
+ when is_integer(NPage) ->
+ ?CLASS(ThisT,wxNotebook),
+ wxe_util:call(?wxNotebook_ChangeSelection,
+ <<ThisRef:32/?UI,NPage:32/?UI>>).
+
+%% @spec (This::wxNotebook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxNotebook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxNotebookEvent.erl b/lib/wx/src/gen/wxNotebookEvent.erl
new file mode 100644
index 0000000000..4664f85527
--- /dev/null
+++ b/lib/wx/src/gen/wxNotebookEvent.erl
@@ -0,0 +1,122 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebookevent.html">wxNotebookEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_notebook_page_changed</em>, <em>command_notebook_page_changing</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxNotebook(). #wxNotebook{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxNotebookEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxNotebookEvent).
+-include("wxe.hrl").
+-export([getOldSelection/1,getSelection/1,setOldSelection/2,setSelection/2]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSkipped/1,
+ getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxNotebookEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebookevent.html#wxnotebookeventgetoldselection">external documentation</a>.
+getOldSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebookEvent),
+ wxe_util:call(?wxNotebookEvent_GetOldSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebookEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebookevent.html#wxnotebookeventgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotebookEvent),
+ wxe_util:call(?wxNotebookEvent_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotebookEvent(), NOldSel::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebookevent.html#wxnotebookeventsetoldselection">external documentation</a>.
+setOldSelection(#wx_ref{type=ThisT,ref=ThisRef},NOldSel)
+ when is_integer(NOldSel) ->
+ ?CLASS(ThisT,wxNotebookEvent),
+ wxe_util:cast(?wxNotebookEvent_SetOldSelection,
+ <<ThisRef:32/?UI,NOldSel:32/?UI>>).
+
+%% @spec (This::wxNotebookEvent(), NSel::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotebookevent.html#wxnotebookeventsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},NSel)
+ when is_integer(NSel) ->
+ ?CLASS(ThisT,wxNotebookEvent),
+ wxe_util:cast(?wxNotebookEvent_SetSelection,
+ <<ThisRef:32/?UI,NSel:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxNotifyEvent.erl b/lib/wx/src/gen/wxNotifyEvent.erl
new file mode 100644
index 0000000000..4e463aa7e0
--- /dev/null
+++ b/lib/wx/src/gen/wxNotifyEvent.erl
@@ -0,0 +1,102 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotifyevent.html">wxNotifyEvent</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxNotifyEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxNotifyEvent).
+-include("wxe.hrl").
+-export([allow/1,isAllowed/1,veto/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxNotifyEvent()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotifyevent.html#wxnotifyeventallow">external documentation</a>.
+allow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotifyEvent),
+ wxe_util:cast(?wxNotifyEvent_Allow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotifyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotifyevent.html#wxnotifyeventisallowed">external documentation</a>.
+isAllowed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotifyEvent),
+ wxe_util:call(?wxNotifyEvent_IsAllowed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxNotifyEvent()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnotifyevent.html#wxnotifyeventveto">external documentation</a>.
+veto(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxNotifyEvent),
+ wxe_util:cast(?wxNotifyEvent_Veto,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxPageSetupDialog.erl b/lib/wx/src/gen/wxPageSetupDialog.erl
new file mode 100644
index 0000000000..73eac44ab5
--- /dev/null
+++ b/lib/wx/src/gen/wxPageSetupDialog.erl
@@ -0,0 +1,72 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialog.html">wxPageSetupDialog</a>.
+%% @type wxPageSetupDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPageSetupDialog).
+-include("wxe.hrl").
+-export([destroy/1,getPageSetupData/1,new/1,new/2,showModal/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxPageSetupDialog()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxPageSetupDialog()
+%% Option = {data, wxPageSetupDialogData:wxPageSetupDialogData()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialog.html#wxpagesetupdialogwxpagesetupdialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxPageSetupDialogData),[<<1:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPageSetupDialog_new,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPageSetupDialog()) -> wxPageSetupDialogData:wxPageSetupDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialog.html#wxpagesetupdialoggetpagesetupdata">external documentation</a>.
+getPageSetupData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialog),
+ wxe_util:call(?wxPageSetupDialog_GetPageSetupData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialog.html#wxpagesetupdialogshowmodal">external documentation</a>.
+showModal(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialog),
+ wxe_util:call(?wxPageSetupDialog_ShowModal,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPageSetupDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPageSetupDialogData.erl b/lib/wx/src/gen/wxPageSetupDialogData.erl
new file mode 100644
index 0000000000..576be819a2
--- /dev/null
+++ b/lib/wx/src/gen/wxPageSetupDialogData.erl
@@ -0,0 +1,294 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html">wxPageSetupDialogData</a>.
+%% @type wxPageSetupDialogData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPageSetupDialogData).
+-include("wxe.hrl").
+-export([destroy/1,enableHelp/2,enableMargins/2,enableOrientation/2,enablePaper/2,
+ enablePrinter/2,getDefaultInfo/1,getDefaultMinMargins/1,getEnableHelp/1,
+ getEnableMargins/1,getEnableOrientation/1,getEnablePaper/1,getEnablePrinter/1,
+ getMarginBottomRight/1,getMarginTopLeft/1,getMinMarginBottomRight/1,
+ getMinMarginTopLeft/1,getPaperId/1,getPaperSize/1,getPrintData/1,
+ isOk/1,new/0,new/1,setDefaultInfo/2,setDefaultMinMargins/2,setMarginBottomRight/2,
+ setMarginTopLeft/2,setMinMarginBottomRight/2,setMinMarginTopLeft/2,
+ setPaperId/2,setPaperSize/2,setPrintData/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPageSetupDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatawxpagesetupdialogdata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPageSetupDialogData_new_0,
+ <<>>).
+
+%% @spec (PrintData::wxPrintData:wxPrintData() | wxPageSetupDialogData()) -> wxPageSetupDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatawxpagesetupdialogdata">external documentation</a>.
+new(#wx_ref{type=PrintDataT,ref=PrintDataRef}) ->
+ PrintDataOP = case ?CLASS_T(PrintDataT,wxPrintData) of
+ true ->
+ ?wxPageSetupDialogData_new_1_1;
+ _ -> ?CLASS(PrintDataT,wxPageSetupDialogData),
+ ?wxPageSetupDialogData_new_1_0
+ end,
+ wxe_util:construct(PrintDataOP,
+ <<PrintDataRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataenablehelp">external documentation</a>.
+enableHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_EnableHelp,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataenablemargins">external documentation</a>.
+enableMargins(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_EnableMargins,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataenableorientation">external documentation</a>.
+enableOrientation(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_EnableOrientation,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataenablepaper">external documentation</a>.
+enablePaper(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_EnablePaper,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataenableprinter">external documentation</a>.
+enablePrinter(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_EnablePrinter,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetdefaultminmargins">external documentation</a>.
+getDefaultMinMargins(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetDefaultMinMargins,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetenablemargins">external documentation</a>.
+getEnableMargins(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetEnableMargins,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetenableorientation">external documentation</a>.
+getEnableOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetEnableOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetenablepaper">external documentation</a>.
+getEnablePaper(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetEnablePaper,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetenableprinter">external documentation</a>.
+getEnablePrinter(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetEnablePrinter,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetenablehelp">external documentation</a>.
+getEnableHelp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetEnableHelp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetdefaultinfo">external documentation</a>.
+getDefaultInfo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetDefaultInfo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetmargintopleft">external documentation</a>.
+getMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetMarginTopLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetmarginbottomright">external documentation</a>.
+getMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetMarginBottomRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetminmargintopleft">external documentation</a>.
+getMinMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetMinMarginTopLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetminmarginbottomright">external documentation</a>.
+getMinMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetMinMarginBottomRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetpaperid">external documentation</a>.
+getPaperId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetPaperId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetpapersize">external documentation</a>.
+getPaperSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetPaperSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> wxPrintData:wxPrintData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatagetprintdata">external documentation</a>.
+getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_GetPrintData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdataisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:call(?wxPageSetupDialogData_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetdefaultinfo">external documentation</a>.
+setDefaultInfo(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetDefaultInfo,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetdefaultminmargins">external documentation</a>.
+setDefaultMinMargins(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetDefaultMinMargins,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetmargintopleft">external documentation</a>.
+setMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetMarginTopLeft,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetmarginbottomright">external documentation</a>.
+setMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetMarginBottomRight,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetminmargintopleft">external documentation</a>.
+setMinMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetMinMarginTopLeft,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetminmarginbottomright">external documentation</a>.
+setMinMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetMinMarginBottomRight,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), Id::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetpaperid">external documentation</a>.
+setPaperId(#wx_ref{type=ThisT,ref=ThisRef},Id)
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetPaperId,
+ <<ThisRef:32/?UI,Id:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(),X::integer()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetpapersize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setPaperSize(This::wxPageSetupDialogData(), Id::integer()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setPaperSize(This::wxPageSetupDialogData(), Sz::{W::integer(),H::integer()}) -> ok </c>
+%% </p>
+setPaperSize(#wx_ref{type=ThisT,ref=ThisRef},Id)
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetPaperSize_1_0,
+ <<ThisRef:32/?UI,Id:32/?UI>>);
+setPaperSize(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH})
+ when is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPageSetupDialogData_SetPaperSize_1_1,
+ <<ThisRef:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData(), PrintData::wxPrintData:wxPrintData()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetprintdata">external documentation</a>.
+setPrintData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintDataT,ref=PrintDataRef}) ->
+ ?CLASS(ThisT,wxPageSetupDialogData),
+ ?CLASS(PrintDataT,wxPrintData),
+ wxe_util:cast(?wxPageSetupDialogData_SetPrintData,
+ <<ThisRef:32/?UI,PrintDataRef:32/?UI>>).
+
+%% @spec (This::wxPageSetupDialogData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPageSetupDialogData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPaintDC.erl b/lib/wx/src/gen/wxPaintDC.erl
new file mode 100644
index 0000000000..ea4e847f69
--- /dev/null
+++ b/lib/wx/src/gen/wxPaintDC.erl
@@ -0,0 +1,267 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpaintdc.html">wxPaintDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindowDC}
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxPaintDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPaintDC).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxWindowDC) -> true;
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPaintDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpaintdc.html#wxpaintdcwxpaintdc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPaintDC_new_0,
+ <<>>).
+
+%% @spec (Win::wxWindow:wxWindow()) -> wxPaintDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpaintdc.html#wxpaintdcwxpaintdc">external documentation</a>.
+new(#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(WinT,wxWindow),
+ wxe_util:construct(?wxPaintDC_new_1,
+ <<WinRef:32/?UI>>).
+
+%% @spec (This::wxPaintDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPaintDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindowDC
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxPaintEvent.erl b/lib/wx/src/gen/wxPaintEvent.erl
new file mode 100644
index 0000000000..9f6b84890b
--- /dev/null
+++ b/lib/wx/src/gen/wxPaintEvent.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpaintevent.html">wxPaintEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>paint</em>, <em>paint_icon</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxPaint(). #wxPaint{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxPaintEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPaintEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxPalette.erl b/lib/wx/src/gen/wxPalette.erl
new file mode 100644
index 0000000000..499e6f47ce
--- /dev/null
+++ b/lib/wx/src/gen/wxPalette.erl
@@ -0,0 +1,98 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html">wxPalette</a>.
+%% @type wxPalette(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPalette).
+-include("wxe.hrl").
+-export([create/4,destroy/1,getColoursCount/1,getPixel/4,getRGB/2,isOk/1,new/0,
+ new/3]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPalette()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettewxpalette">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPalette_new_0,
+ <<>>).
+
+%% @spec (Red::binary(), Green::binary(), Blue::binary()) -> wxPalette()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettewxpalette">external documentation</a>.
+new(Red,Green,Blue)
+ when is_binary(Red),is_binary(Green),is_binary(Blue) ->
+ wxe_util:send_bin(Red),
+ wxe_util:send_bin(Green),
+ wxe_util:send_bin(Blue),
+ wxe_util:construct(?wxPalette_new_4,
+ <<>>).
+
+%% @spec (This::wxPalette(), Red::binary(), Green::binary(), Blue::binary()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},Red,Green,Blue)
+ when is_binary(Red),is_binary(Green),is_binary(Blue) ->
+ ?CLASS(ThisT,wxPalette),
+ wxe_util:send_bin(Red),
+ wxe_util:send_bin(Green),
+ wxe_util:send_bin(Blue),
+ wxe_util:call(?wxPalette_Create,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPalette()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettegetcolourscount">external documentation</a>.
+getColoursCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPalette),
+ wxe_util:call(?wxPalette_GetColoursCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPalette(), Red::integer(), Green::integer(), Blue::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettegetpixel">external documentation</a>.
+getPixel(#wx_ref{type=ThisT,ref=ThisRef},Red,Green,Blue)
+ when is_integer(Red),is_integer(Green),is_integer(Blue) ->
+ ?CLASS(ThisT,wxPalette),
+ wxe_util:call(?wxPalette_GetPixel,
+ <<ThisRef:32/?UI,Red:32/?UI,Green:32/?UI,Blue:32/?UI>>).
+
+%% @spec (This::wxPalette(), Pixel::integer()) -> {bool(),Red::integer(),Green::integer(),Blue::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpalettegetrgb">external documentation</a>.
+getRGB(#wx_ref{type=ThisT,ref=ThisRef},Pixel)
+ when is_integer(Pixel) ->
+ ?CLASS(ThisT,wxPalette),
+ wxe_util:call(?wxPalette_GetRGB,
+ <<ThisRef:32/?UI,Pixel:32/?UI>>).
+
+%% @spec (This::wxPalette()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalette.html#wxpaletteisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPalette),
+ wxe_util:call(?wxPalette_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPalette()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPalette),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPaletteChangedEvent.erl b/lib/wx/src/gen/wxPaletteChangedEvent.erl
new file mode 100644
index 0000000000..147389709c
--- /dev/null
+++ b/lib/wx/src/gen/wxPaletteChangedEvent.erl
@@ -0,0 +1,77 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalettechangedevent.html">wxPaletteChangedEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>palette_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxPaletteChanged(). #wxPaletteChanged{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxPaletteChangedEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPaletteChangedEvent).
+-include("wxe.hrl").
+-export([getChangedWindow/1,setChangedWindow/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxPaletteChangedEvent(), Win::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalettechangedevent.html#wxpalettechangedeventsetchangedwindow">external documentation</a>.
+setChangedWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(ThisT,wxPaletteChangedEvent),
+ ?CLASS(WinT,wxWindow),
+ wxe_util:cast(?wxPaletteChangedEvent_SetChangedWindow,
+ <<ThisRef:32/?UI,WinRef:32/?UI>>).
+
+%% @spec (This::wxPaletteChangedEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpalettechangedevent.html#wxpalettechangedeventgetchangedwindow">external documentation</a>.
+getChangedWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPaletteChangedEvent),
+ wxe_util:call(?wxPaletteChangedEvent_GetChangedWindow,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxPanel.erl b/lib/wx/src/gen/wxPanel.erl
new file mode 100644
index 0000000000..ca18caf4da
--- /dev/null
+++ b/lib/wx/src/gen/wxPanel.erl
@@ -0,0 +1,493 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpanel.html">wxPanel</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPanel(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPanel).
+-include("wxe.hrl").
+-export([destroy/1,initDialog/1,new/0,new/1,new/2,new/5,new/6]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,invalidateBestSize/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,
+ moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPanel()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpanel.html#wxpanelwxpanel">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPanel_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxPanel()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxPanel()
+%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpanel.html#wxpanelwxpanel">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPanel_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> wxPanel()
+%% @equiv new(Parent,X,Y,Width,Height, [])
+new(Parent,X,Y,Width,Height)
+ when is_record(Parent, wx_ref),is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height) ->
+ new(Parent,X,Y,Width,Height, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer(), [Option]) -> wxPanel()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpanel.html#wxpanelwxpanel">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},X,Y,Width,Height, Options)
+ when is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPanel_new_6,
+ <<ParentRef:32/?UI,X:32/?UI,Y:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPanel()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpanel.html#wxpanelinitdialog">external documentation</a>.
+initDialog(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPanel),
+ wxe_util:cast(?wxPanel_InitDialog,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPanel()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPanel),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPasswordEntryDialog.erl b/lib/wx/src/gen/wxPasswordEntryDialog.erl
new file mode 100644
index 0000000000..70728355e9
--- /dev/null
+++ b/lib/wx/src/gen/wxPasswordEntryDialog.erl
@@ -0,0 +1,550 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpasswordentrydialog.html">wxPasswordEntryDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxTextEntryDialog}
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPasswordEntryDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPasswordEntryDialog).
+-include("wxe.hrl").
+-export([destroy/1,new/2,new/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getValue/1,getVirtualSize/1,
+ getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,hasScrollbar/2,
+ hasTransparentBackground/1,hide/1,iconize/1,iconize/2,inheritAttributes/1,
+ initDialog/1,invalidateBestSize/1,isActive/1,isEnabled/1,isExposed/2,
+ isExposed/3,isExposed/5,isFullScreen/1,isIconized/1,isMaximized/1,
+ isModal/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,
+ lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,move/2,move/3,
+ move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,navigate/2,
+ pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,requestUserAttention/1,
+ requestUserAttention/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,
+ setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setReturnCode/2,setScrollPos/3,
+ setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,
+ setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,
+ setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,
+ setTitle/2,setToolTip/2,setValue/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxTextEntryDialog) -> true;
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string()) -> wxPasswordEntryDialog()
+%% @equiv new(Parent,Message, [])
+new(Parent,Message)
+ when is_record(Parent, wx_ref),is_list(Message) ->
+ new(Parent,Message, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), [Option]) -> wxPasswordEntryDialog()
+%% Option = {caption, string()} | {value, string()} | {style, integer()} | {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpasswordentrydialog.html#wxpasswordentrydialogwxpasswordentrydialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Message, Options)
+ when is_list(Message),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ MOpts = fun({caption, Caption}, Acc) -> Caption_UC = unicode:characters_to_binary([Caption,0]),[<<1:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((0+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<2:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<4:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPasswordEntryDialog_new,
+ <<ParentRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxPasswordEntryDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPasswordEntryDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxTextEntryDialog
+%% @hidden
+setValue(This,Val) -> wxTextEntryDialog:setValue(This,Val).
+%% @hidden
+getValue(This) -> wxTextEntryDialog:getValue(This).
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPen.erl b/lib/wx/src/gen/wxPen.erl
new file mode 100644
index 0000000000..cf159f559e
--- /dev/null
+++ b/lib/wx/src/gen/wxPen.erl
@@ -0,0 +1,156 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html">wxPen</a>.
+%% @type wxPen(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPen).
+-include("wxe.hrl").
+-export([destroy/1,getCap/1,getColour/1,getJoin/1,getStyle/1,getWidth/1,isOk/1,
+ new/0,new/1,new/2,setCap/2,setColour/2,setColour/4,setJoin/2,setStyle/2,
+ setWidth/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPen()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenwxpen">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPen_new_0,
+ <<>>).
+
+%% @spec (Colour::wx:colour()) -> wxPen()
+%% @equiv new(Colour, [])
+new(Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ new(Colour, []).
+
+%% @spec (Colour::wx:colour(), [Option]) -> wxPen()
+%% Option = {width, integer()} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenwxpen">external documentation</a>.
+new(Colour, Options)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4,is_list(Options) ->
+ MOpts = fun({width, Width}, Acc) -> [<<1:32/?UI,Width:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPen_new_2,
+ <<(wxe_util:colour_bin(Colour)):16/binary, BinOpt/binary>>).
+
+%% @spec (This::wxPen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetcap">external documentation</a>.
+getCap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_GetCap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetjoin">external documentation</a>.
+getJoin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_GetJoin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetstyle">external documentation</a>.
+getStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_GetStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetwidth">external documentation</a>.
+getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_GetWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:call(?wxPen_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPen(), CapStyle::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcap">external documentation</a>.
+setCap(#wx_ref{type=ThisT,ref=ThisRef},CapStyle)
+ when is_integer(CapStyle) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetCap,
+ <<ThisRef:32/?UI,CapStyle:32/?UI>>).
+
+%% @spec (This::wxPen(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetColour_1,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxPen(), Red::integer(), Green::integer(), Blue::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Red,Green,Blue)
+ when is_integer(Red),is_integer(Green),is_integer(Blue) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetColour_3,
+ <<ThisRef:32/?UI,Red:32/?UI,Green:32/?UI,Blue:32/?UI>>).
+
+%% @spec (This::wxPen(), JoinStyle::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetjoin">external documentation</a>.
+setJoin(#wx_ref{type=ThisT,ref=ThisRef},JoinStyle)
+ when is_integer(JoinStyle) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetJoin,
+ <<ThisRef:32/?UI,JoinStyle:32/?UI>>).
+
+%% @spec (This::wxPen(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetstyle">external documentation</a>.
+setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetStyle,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxPen(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetwidth">external documentation</a>.
+setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxPen),
+ wxe_util:cast(?wxPen_SetWidth,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxPen()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPen),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPickerBase.erl b/lib/wx/src/gen/wxPickerBase.erl
new file mode 100644
index 0000000000..173f31faf0
--- /dev/null
+++ b/lib/wx/src/gen/wxPickerBase.erl
@@ -0,0 +1,552 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html">wxPickerBase</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPickerBase(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPickerBase).
+-include("wxe.hrl").
+-export([getInternalMargin/1,getPickerCtrlProportion/1,getTextCtrl/1,getTextCtrlProportion/1,
+ hasTextCtrl/1,isPickerCtrlGrowable/1,isTextCtrlGrowable/1,setInternalMargin/2,
+ setPickerCtrlGrowable/1,setPickerCtrlGrowable/2,setPickerCtrlProportion/2,
+ setTextCtrlGrowable/1,setTextCtrlGrowable/2,setTextCtrlProportion/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxPickerBase(), Newmargin::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasesetinternalmargin">external documentation</a>.
+setInternalMargin(#wx_ref{type=ThisT,ref=ThisRef},Newmargin)
+ when is_integer(Newmargin) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:cast(?wxPickerBase_SetInternalMargin,
+ <<ThisRef:32/?UI,Newmargin:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasegetinternalmargin">external documentation</a>.
+getInternalMargin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_GetInternalMargin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase(), Prop::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasesettextctrlproportion">external documentation</a>.
+setTextCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef},Prop)
+ when is_integer(Prop) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:cast(?wxPickerBase_SetTextCtrlProportion,
+ <<ThisRef:32/?UI,Prop:32/?UI>>).
+
+%% @spec (This::wxPickerBase(), Prop::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasesetpickerctrlproportion">external documentation</a>.
+setPickerCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef},Prop)
+ when is_integer(Prop) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:cast(?wxPickerBase_SetPickerCtrlProportion,
+ <<ThisRef:32/?UI,Prop:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasegettextctrlproportion">external documentation</a>.
+getTextCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_GetTextCtrlProportion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasegetpickerctrlproportion">external documentation</a>.
+getPickerCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_GetPickerCtrlProportion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasehastextctrl">external documentation</a>.
+hasTextCtrl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_HasTextCtrl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> wxTextCtrl:wxTextCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasegettextctrl">external documentation</a>.
+getTextCtrl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_GetTextCtrl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbaseistextctrlgrowable">external documentation</a>.
+isTextCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_IsTextCtrlGrowable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPickerBase()) -> ok
+%% @equiv setPickerCtrlGrowable(This, [])
+setPickerCtrlGrowable(This)
+ when is_record(This, wx_ref) ->
+ setPickerCtrlGrowable(This, []).
+
+%% @spec (This::wxPickerBase(), [Option]) -> ok
+%% Option = {grow, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasesetpickerctrlgrowable">external documentation</a>.
+setPickerCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxPickerBase),
+ MOpts = fun({grow, Grow}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Grow)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxPickerBase_SetPickerCtrlGrowable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPickerBase()) -> ok
+%% @equiv setTextCtrlGrowable(This, [])
+setTextCtrlGrowable(This)
+ when is_record(This, wx_ref) ->
+ setTextCtrlGrowable(This, []).
+
+%% @spec (This::wxPickerBase(), [Option]) -> ok
+%% Option = {grow, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbasesettextctrlgrowable">external documentation</a>.
+setTextCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxPickerBase),
+ MOpts = fun({grow, Grow}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Grow)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxPickerBase_SetTextCtrlGrowable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPickerBase()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpickerbase.html#wxpickerbaseispickerctrlgrowable">external documentation</a>.
+isPickerCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPickerBase),
+ wxe_util:call(?wxPickerBase_IsPickerCtrlGrowable,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPostScriptDC.erl b/lib/wx/src/gen/wxPostScriptDC.erl
new file mode 100644
index 0000000000..6e67abdd08
--- /dev/null
+++ b/lib/wx/src/gen/wxPostScriptDC.erl
@@ -0,0 +1,277 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpostscriptdc.html">wxPostScriptDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxPostScriptDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPostScriptDC).
+-include("wxe.hrl").
+-export([destroy/1,getResolution/0,new/0,new/1,setResolution/1]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPostScriptDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpostscriptdc.html#wxpostscriptdcwxpostscriptdc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPostScriptDC_new_0,
+ <<>>).
+
+%% @spec (PrintData::wxPrintData:wxPrintData()) -> wxPostScriptDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpostscriptdc.html#wxpostscriptdcwxpostscriptdc">external documentation</a>.
+new(#wx_ref{type=PrintDataT,ref=PrintDataRef}) ->
+ ?CLASS(PrintDataT,wxPrintData),
+ wxe_util:construct(?wxPostScriptDC_new_1,
+ <<PrintDataRef:32/?UI>>).
+
+%% @spec (Ppi::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpostscriptdc.html#wxpostscriptdcsetresolution">external documentation</a>.
+setResolution(Ppi)
+ when is_integer(Ppi) ->
+ wxe_util:cast(?wxPostScriptDC_SetResolution,
+ <<Ppi:32/?UI>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpostscriptdc.html#wxpostscriptdcgetresolution">external documentation</a>.
+getResolution() ->
+ wxe_util:call(?wxPostScriptDC_GetResolution,
+ <<>>).
+
+%% @spec (This::wxPostScriptDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPostScriptDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxPreviewCanvas.erl b/lib/wx/src/gen/wxPreviewCanvas.erl
new file mode 100644
index 0000000000..4f52e2015f
--- /dev/null
+++ b/lib/wx/src/gen/wxPreviewCanvas.erl
@@ -0,0 +1,475 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcanvas.html">wxPreviewCanvas</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxScrolledWindow}
+%% <br />{@link wxPanel}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPreviewCanvas(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPreviewCanvas).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([cacheBestSize/2,calcScrolledPosition/2,calcScrolledPosition/3,calcUnscrolledPosition/2,
+ calcUnscrolledPosition/3,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ doPrepareDC/2,enable/1,enable/2,enableScrolling/3,findWindow/2,fit/1,
+ fitInside/1,freeze/1,getAcceleratorTable/1,getBackgroundColour/1,
+ getBackgroundStyle/1,getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,
+ getChildren/1,getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPixelsPerUnit/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getToolTip/1,getUpdateRegion/1,getViewStart/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,prepareDC/2,raise/1,refresh/1,refresh/2,
+ refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,
+ screenToClient/1,screenToClient/2,scroll/3,scrollLines/2,scrollPages/2,
+ scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollRate/3,setScrollbar/5,setScrollbar/6,
+ setScrollbars/5,setScrollbars/6,setSize/2,setSize/3,setSize/5,setSize/6,
+ setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,setSizer/3,
+ setSizerAndFit/2,setSizerAndFit/3,setTargetWindow/2,setThemeEnabled/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxScrolledWindow) -> true;
+parent_class(wxPanel) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxScrolledWindow
+%% @hidden
+setTargetWindow(This,Target) -> wxScrolledWindow:setTargetWindow(This,Target).
+%% @hidden
+setScrollRate(This,Xstep,Ystep) -> wxScrolledWindow:setScrollRate(This,Xstep,Ystep).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options).
+%% @hidden
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY) -> wxScrolledWindow:setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY).
+%% @hidden
+scroll(This,X,Y) -> wxScrolledWindow:scroll(This,X,Y).
+%% @hidden
+prepareDC(This,Dc) -> wxScrolledWindow:prepareDC(This,Dc).
+%% @hidden
+doPrepareDC(This,Dc) -> wxScrolledWindow:doPrepareDC(This,Dc).
+%% @hidden
+getViewStart(This) -> wxScrolledWindow:getViewStart(This).
+%% @hidden
+getScrollPixelsPerUnit(This) -> wxScrolledWindow:getScrollPixelsPerUnit(This).
+%% @hidden
+enableScrolling(This,X_scrolling,Y_scrolling) -> wxScrolledWindow:enableScrolling(This,X_scrolling,Y_scrolling).
+%% @hidden
+calcUnscrolledPosition(This,X,Y) -> wxScrolledWindow:calcUnscrolledPosition(This,X,Y).
+%% @hidden
+calcUnscrolledPosition(This,Pt) -> wxScrolledWindow:calcUnscrolledPosition(This,Pt).
+%% @hidden
+calcScrolledPosition(This,X,Y) -> wxScrolledWindow:calcScrolledPosition(This,X,Y).
+%% @hidden
+calcScrolledPosition(This,Pt) -> wxScrolledWindow:calcScrolledPosition(This,Pt).
+ %% From wxPanel
+%% @hidden
+initDialog(This) -> wxPanel:initDialog(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPreviewControlBar.erl b/lib/wx/src/gen/wxPreviewControlBar.erl
new file mode 100644
index 0000000000..0118977e9a
--- /dev/null
+++ b/lib/wx/src/gen/wxPreviewControlBar.erl
@@ -0,0 +1,497 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html">wxPreviewControlBar</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPanel}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPreviewControlBar(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPreviewControlBar).
+-include("wxe.hrl").
+-export([createButtons/1,destroy/1,getPrintPreview/1,getZoomControl/1,new/3,
+ new/4,setZoomControl/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPanel) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Buttons::integer(), Parent::wxWindow:wxWindow()) -> wxPreviewControlBar()
+%% @equiv new(Preview,Buttons,Parent, [])
+new(Preview,Buttons,Parent)
+ when is_record(Preview, wx_ref),is_integer(Buttons),is_record(Parent, wx_ref) ->
+ new(Preview,Buttons,Parent, []).
+
+%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Buttons::integer(), Parent::wxWindow:wxWindow(), [Option]) -> wxPreviewControlBar()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarwxpreviewcontrolbar">external documentation</a>.
+new(#wx_ref{type=PreviewT,ref=PreviewRef},Buttons,#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_integer(Buttons),is_list(Options) ->
+ ?CLASS(PreviewT,wxPrintPreview),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPreviewControlBar_new,
+ <<PreviewRef:32/?UI,Buttons:32/?UI,ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPreviewControlBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarcreatebuttons">external documentation</a>.
+createButtons(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewControlBar),
+ wxe_util:cast(?wxPreviewControlBar_CreateButtons,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewControlBar()) -> wxPrintPreview:wxPrintPreview()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbargetprintpreview">external documentation</a>.
+getPrintPreview(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewControlBar),
+ wxe_util:call(?wxPreviewControlBar_GetPrintPreview,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewControlBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbargetzoomcontrol">external documentation</a>.
+getZoomControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewControlBar),
+ wxe_util:call(?wxPreviewControlBar_GetZoomControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewControlBar(), Zoom::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarsetzoomcontrol">external documentation</a>.
+setZoomControl(#wx_ref{type=ThisT,ref=ThisRef},Zoom)
+ when is_integer(Zoom) ->
+ ?CLASS(ThisT,wxPreviewControlBar),
+ wxe_util:cast(?wxPreviewControlBar_SetZoomControl,
+ <<ThisRef:32/?UI,Zoom:32/?UI>>).
+
+%% @spec (This::wxPreviewControlBar()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPreviewControlBar),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPanel
+%% @hidden
+initDialog(This) -> wxPanel:initDialog(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPreviewFrame.erl b/lib/wx/src/gen/wxPreviewFrame.erl
new file mode 100644
index 0000000000..93dac8dbd9
--- /dev/null
+++ b/lib/wx/src/gen/wxPreviewFrame.erl
@@ -0,0 +1,593 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html">wxPreviewFrame</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFrame}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPreviewFrame(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPreviewFrame).
+-include("wxe.hrl").
+-export([createCanvas/1,createControlBar/1,destroy/1,initialize/1,new/2,new/3,
+ onCloseWindow/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createStatusBar/1,createStatusBar/2,createToolBar/1,createToolBar/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientAreaOrigin/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,
+ getLabel/1,getMaxSize/1,getMenuBar/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getStatusBar/1,
+ getStatusBarPane/1,getTextExtent/2,getTextExtent/3,getTitle/1,getToolBar/1,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,
+ move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,processCommand/2,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,requestUserAttention/1,requestUserAttention/2,
+ screenToClient/1,screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,
+ scrollWindow/4,sendSizeEvent/1,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,setMaxSize/2,
+ setMenuBar/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setStatusBar/2,setStatusBarPane/2,
+ setStatusText/2,setStatusText/3,setStatusWidths/2,setThemeEnabled/2,
+ setTitle/2,setToolBar/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxFrame) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Parent::wxWindow:wxWindow()) -> wxPreviewFrame()
+%% @equiv new(Preview,Parent, [])
+new(Preview,Parent)
+ when is_record(Preview, wx_ref),is_record(Parent, wx_ref) ->
+ new(Preview,Parent, []).
+
+%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Parent::wxWindow:wxWindow(), [Option]) -> wxPreviewFrame()
+%% Option = {title, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html#wxpreviewframewxpreviewframe">external documentation</a>.
+new(#wx_ref{type=PreviewT,ref=PreviewRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(PreviewT,wxPrintPreview),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({title, Title}, Acc) -> Title_UC = unicode:characters_to_binary([Title,0]),[<<1:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPreviewFrame_new,
+ <<PreviewRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxPreviewFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html#wxpreviewframecreatecontrolbar">external documentation</a>.
+createControlBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewFrame),
+ wxe_util:cast(?wxPreviewFrame_CreateControlBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html#wxpreviewframecreatecanvas">external documentation</a>.
+createCanvas(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewFrame),
+ wxe_util:cast(?wxPreviewFrame_CreateCanvas,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html#wxpreviewframeinitialize">external documentation</a>.
+initialize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPreviewFrame),
+ wxe_util:cast(?wxPreviewFrame_Initialize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPreviewFrame(), Event::wxCloseEvent:wxCloseEvent()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewframe.html#wxpreviewframeonclosewindow">external documentation</a>.
+onCloseWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
+ ?CLASS(ThisT,wxPreviewFrame),
+ ?CLASS(EventT,wxCloseEvent),
+ wxe_util:cast(?wxPreviewFrame_OnCloseWindow,
+ <<ThisRef:32/?UI,EventRef:32/?UI>>).
+
+%% @spec (This::wxPreviewFrame()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPreviewFrame),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFrame
+%% @hidden
+setToolBar(This,Toolbar) -> wxFrame:setToolBar(This,Toolbar).
+%% @hidden
+setStatusWidths(This,Widths_field) -> wxFrame:setStatusWidths(This,Widths_field).
+%% @hidden
+setStatusText(This,Text, Options) -> wxFrame:setStatusText(This,Text, Options).
+%% @hidden
+setStatusText(This,Text) -> wxFrame:setStatusText(This,Text).
+%% @hidden
+setStatusBarPane(This,N) -> wxFrame:setStatusBarPane(This,N).
+%% @hidden
+setStatusBar(This,Statbar) -> wxFrame:setStatusBar(This,Statbar).
+%% @hidden
+setMenuBar(This,Menubar) -> wxFrame:setMenuBar(This,Menubar).
+%% @hidden
+sendSizeEvent(This) -> wxFrame:sendSizeEvent(This).
+%% @hidden
+processCommand(This,Winid) -> wxFrame:processCommand(This,Winid).
+%% @hidden
+getToolBar(This) -> wxFrame:getToolBar(This).
+%% @hidden
+getStatusBarPane(This) -> wxFrame:getStatusBarPane(This).
+%% @hidden
+getStatusBar(This) -> wxFrame:getStatusBar(This).
+%% @hidden
+getMenuBar(This) -> wxFrame:getMenuBar(This).
+%% @hidden
+getClientAreaOrigin(This) -> wxFrame:getClientAreaOrigin(This).
+%% @hidden
+createToolBar(This, Options) -> wxFrame:createToolBar(This, Options).
+%% @hidden
+createToolBar(This) -> wxFrame:createToolBar(This).
+%% @hidden
+createStatusBar(This, Options) -> wxFrame:createStatusBar(This, Options).
+%% @hidden
+createStatusBar(This) -> wxFrame:createStatusBar(This).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPrintData.erl b/lib/wx/src/gen/wxPrintData.erl
new file mode 100644
index 0000000000..49fad6b093
--- /dev/null
+++ b/lib/wx/src/gen/wxPrintData.erl
@@ -0,0 +1,207 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html">wxPrintData</a>.
+%% @type wxPrintData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrintData).
+-include("wxe.hrl").
+-export([destroy/1,getBin/1,getCollate/1,getColour/1,getDuplex/1,getNoCopies/1,
+ getOrientation/1,getPaperId/1,getPrinterName/1,getQuality/1,isOk/1,
+ new/0,new/1,setBin/2,setCollate/2,setColour/2,setDuplex/2,setNoCopies/2,
+ setOrientation/2,setPaperId/2,setPrinterName/2,setQuality/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPrintData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatawxprintdata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPrintData_new_0,
+ <<>>).
+
+%% @spec (PrintData::wxPrintData()) -> wxPrintData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatawxprintdata">external documentation</a>.
+new(#wx_ref{type=PrintDataT,ref=PrintDataRef}) ->
+ ?CLASS(PrintDataT,wxPrintData),
+ wxe_util:construct(?wxPrintData_new_1,
+ <<PrintDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetcollate">external documentation</a>.
+getCollate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetCollate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> WxPrintBin
+%% WxPrintBin = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetbin">external documentation</a>.
+%%<br /> WxPrintBin is one of ?wxPRINTBIN_DEFAULT | ?wxPRINTBIN_ONLYONE | ?wxPRINTBIN_LOWER | ?wxPRINTBIN_MIDDLE | ?wxPRINTBIN_MANUAL | ?wxPRINTBIN_ENVELOPE | ?wxPRINTBIN_ENVMANUAL | ?wxPRINTBIN_AUTO | ?wxPRINTBIN_TRACTOR | ?wxPRINTBIN_SMALLFMT | ?wxPRINTBIN_LARGEFMT | ?wxPRINTBIN_LARGECAPACITY | ?wxPRINTBIN_CASSETTE | ?wxPRINTBIN_FORMSOURCE | ?wxPRINTBIN_USER
+getBin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetBin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetcolour">external documentation</a>.
+getColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> WxDuplexMode
+%% WxDuplexMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetduplex">external documentation</a>.
+%%<br /> WxDuplexMode is one of ?wxDUPLEX_SIMPLEX | ?wxDUPLEX_HORIZONTAL | ?wxDUPLEX_VERTICAL
+getDuplex(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetDuplex,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetnocopies">external documentation</a>.
+getNoCopies(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetNoCopies,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetorientation">external documentation</a>.
+getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetpaperid">external documentation</a>.
+getPaperId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetPaperId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetprintername">external documentation</a>.
+getPrinterName(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetPrinterName,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatagetquality">external documentation</a>.
+getQuality(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_GetQuality,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdataisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:call(?wxPrintData_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintData(), Bin::WxPrintBin) -> ok
+%% WxPrintBin = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetbin">external documentation</a>.
+%%<br /> WxPrintBin is one of ?wxPRINTBIN_DEFAULT | ?wxPRINTBIN_ONLYONE | ?wxPRINTBIN_LOWER | ?wxPRINTBIN_MIDDLE | ?wxPRINTBIN_MANUAL | ?wxPRINTBIN_ENVELOPE | ?wxPRINTBIN_ENVMANUAL | ?wxPRINTBIN_AUTO | ?wxPRINTBIN_TRACTOR | ?wxPRINTBIN_SMALLFMT | ?wxPRINTBIN_LARGEFMT | ?wxPRINTBIN_LARGECAPACITY | ?wxPRINTBIN_CASSETTE | ?wxPRINTBIN_FORMSOURCE | ?wxPRINTBIN_USER
+setBin(#wx_ref{type=ThisT,ref=ThisRef},Bin)
+ when is_integer(Bin) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetBin,
+ <<ThisRef:32/?UI,Bin:32/?UI>>).
+
+%% @spec (This::wxPrintData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetcollate">external documentation</a>.
+setCollate(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetCollate,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintData(), Colour::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetcolour">external documentation</a>.
+setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when is_boolean(Colour) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetColour,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Colour)):32/?UI>>).
+
+%% @spec (This::wxPrintData(), Duplex::WxDuplexMode) -> ok
+%% WxDuplexMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetduplex">external documentation</a>.
+%%<br /> WxDuplexMode is one of ?wxDUPLEX_SIMPLEX | ?wxDUPLEX_HORIZONTAL | ?wxDUPLEX_VERTICAL
+setDuplex(#wx_ref{type=ThisT,ref=ThisRef},Duplex)
+ when is_integer(Duplex) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetDuplex,
+ <<ThisRef:32/?UI,Duplex:32/?UI>>).
+
+%% @spec (This::wxPrintData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetnocopies">external documentation</a>.
+setNoCopies(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetNoCopies,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintData(), Orient::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetorientation">external documentation</a>.
+setOrientation(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetOrientation,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxPrintData(), SizeId::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetpaperid">external documentation</a>.
+setPaperId(#wx_ref{type=ThisT,ref=ThisRef},SizeId)
+ when is_integer(SizeId) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetPaperId,
+ <<ThisRef:32/?UI,SizeId:32/?UI>>).
+
+%% @spec (This::wxPrintData(), Name::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetprintername">external documentation</a>.
+setPrinterName(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxPrintData),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:cast(?wxPrintData_SetPrinterName,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxPrintData(), Quality::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdata.html#wxprintdatasetquality">external documentation</a>.
+setQuality(#wx_ref{type=ThisT,ref=ThisRef},Quality)
+ when is_integer(Quality) ->
+ ?CLASS(ThisT,wxPrintData),
+ wxe_util:cast(?wxPrintData_SetQuality,
+ <<ThisRef:32/?UI,Quality:32/?UI>>).
+
+%% @spec (This::wxPrintData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrintData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPrintDialog.erl b/lib/wx/src/gen/wxPrintDialog.erl
new file mode 100644
index 0000000000..5100e7dcd4
--- /dev/null
+++ b/lib/wx/src/gen/wxPrintDialog.erl
@@ -0,0 +1,564 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialog.html">wxPrintDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxPrintDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrintDialog).
+-include("wxe.hrl").
+-export([destroy/1,getPrintDC/1,getPrintDialogData/1,new/1,new/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxPrintDialog()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(),X::term()) -> wxPrintDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialog.html#wxprintdialogwxprintdialog">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), [Option]) -> wxPrintDialog() </c>
+%%<br /> Option = {data, wxPrintDialogData:wxPrintDialogData()}
+%% </p>
+%% <p><c>
+%% new(Parent::wxWindow:wxWindow(), Data::wxPrintData:wxPrintData()) -> wxPrintDialog() </c>
+%% </p>
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxPrintDialogData),[<<1:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPrintDialog_new_2_0,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>);
+new(#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(DataT,wxPrintData),
+ wxe_util:construct(?wxPrintDialog_new_2_1,
+ <<ParentRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialog()) -> wxPrintDialogData:wxPrintDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialog.html#wxprintdialoggetprintdialogdata">external documentation</a>.
+getPrintDialogData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialog),
+ wxe_util:call(?wxPrintDialog_GetPrintDialogData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialog()) -> wxDC:wxDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialog.html#wxprintdialoggetprintdc">external documentation</a>.
+getPrintDC(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialog),
+ wxe_util:call(?wxPrintDialog_GetPrintDC,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrintDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxPrintDialogData.erl b/lib/wx/src/gen/wxPrintDialogData.erl
new file mode 100644
index 0000000000..b4ad5a4a82
--- /dev/null
+++ b/lib/wx/src/gen/wxPrintDialogData.erl
@@ -0,0 +1,243 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html">wxPrintDialogData</a>.
+%% @type wxPrintDialogData(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrintDialogData).
+-include("wxe.hrl").
+-export([destroy/1,enableHelp/2,enablePageNumbers/2,enablePrintToFile/2,enableSelection/2,
+ getAllPages/1,getCollate/1,getFromPage/1,getMaxPage/1,getMinPage/1,
+ getNoCopies/1,getPrintData/1,getPrintToFile/1,getSelection/1,getToPage/1,
+ isOk/1,new/0,new/1,setCollate/2,setFromPage/2,setMaxPage/2,setMinPage/2,
+ setNoCopies/2,setPrintData/2,setPrintToFile/2,setSelection/2,setToPage/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPrintDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatawxprintdialogdata">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxPrintDialogData_new_0,
+ <<>>).
+
+%% @spec (DialogData::wxPrintDialogData() | wxPrintData:wxPrintData()) -> wxPrintDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatawxprintdialogdata">external documentation</a>.
+new(#wx_ref{type=DialogDataT,ref=DialogDataRef}) ->
+ DialogDataOP = case ?CLASS_T(DialogDataT,wxPrintDialogData) of
+ true ->
+ ?wxPrintDialogData_new_1_1;
+ _ -> ?CLASS(DialogDataT,wxPrintData),
+ ?wxPrintDialogData_new_1_0
+ end,
+ wxe_util:construct(DialogDataOP,
+ <<DialogDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdataenablehelp">external documentation</a>.
+enableHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_EnableHelp,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdataenablepagenumbers">external documentation</a>.
+enablePageNumbers(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_EnablePageNumbers,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdataenableprinttofile">external documentation</a>.
+enablePrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_EnablePrintToFile,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdataenableselection">external documentation</a>.
+enableSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_EnableSelection,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetallpages">external documentation</a>.
+getAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetcollate">external documentation</a>.
+getCollate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetCollate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetfrompage">external documentation</a>.
+getFromPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetFromPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetmaxpage">external documentation</a>.
+getMaxPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetMaxPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetminpage">external documentation</a>.
+getMinPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetMinPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetnocopies">external documentation</a>.
+getNoCopies(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetNoCopies,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> wxPrintData:wxPrintData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetprintdata">external documentation</a>.
+getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetPrintData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetprinttofile">external documentation</a>.
+getPrintToFile(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetPrintToFile,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatagettopage">external documentation</a>.
+getToPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_GetToPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdataisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:call(?wxPrintDialogData_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetcollate">external documentation</a>.
+setCollate(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetCollate,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetfrompage">external documentation</a>.
+setFromPage(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetFromPage,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetmaxpage">external documentation</a>.
+setMaxPage(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetMaxPage,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetminpage">external documentation</a>.
+setMinPage(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetMinPage,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetnocopies">external documentation</a>.
+setNoCopies(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetNoCopies,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), PrintData::wxPrintData:wxPrintData()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetprintdata">external documentation</a>.
+setPrintData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintDataT,ref=PrintDataRef}) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ ?CLASS(PrintDataT,wxPrintData),
+ wxe_util:cast(?wxPrintDialogData_SetPrintData,
+ <<ThisRef:32/?UI,PrintDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetprinttofile">external documentation</a>.
+setPrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetPrintToFile,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_boolean(Flag) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetSelection,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (This::wxPrintDialogData(), V::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintdialogdata.html#wxprintdialogdatasettopage">external documentation</a>.
+setToPage(#wx_ref{type=ThisT,ref=ThisRef},V)
+ when is_integer(V) ->
+ ?CLASS(ThisT,wxPrintDialogData),
+ wxe_util:cast(?wxPrintDialogData_SetToPage,
+ <<ThisRef:32/?UI,V:32/?UI>>).
+
+%% @spec (This::wxPrintDialogData()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrintDialogData),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPrintPreview.erl b/lib/wx/src/gen/wxPrintPreview.erl
new file mode 100644
index 0000000000..8a616c64fb
--- /dev/null
+++ b/lib/wx/src/gen/wxPrintPreview.erl
@@ -0,0 +1,192 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html">wxPrintPreview</a>.
+%% @type wxPrintPreview(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrintPreview).
+-include("wxe.hrl").
+-export([destroy/1,getCanvas/1,getCurrentPage/1,getFrame/1,getMaxPage/1,getMinPage/1,
+ getPrintout/1,getPrintoutForPrinting/1,isOk/1,new/1,new/2,new/3,paintPage/3,
+ print/2,renderPage/2,setCanvas/2,setCurrentPage/2,setFrame/2,setPrintout/2,
+ setZoom/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Printout::wxPrintout:wxPrintout()) -> wxPrintPreview()
+%% @equiv new(Printout, [])
+new(Printout)
+ when is_record(Printout, wx_ref) ->
+ new(Printout, []).
+
+%% @spec (Printout::wxPrintout:wxPrintout(), [Option]) -> wxPrintPreview()
+%% Option = {printoutForPrinting, wxPrintout:wxPrintout()} | {data, wxPrintDialogData:wxPrintDialogData()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewwxprintpreview">external documentation</a>.
+new(#wx_ref{type=PrintoutT,ref=PrintoutRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(PrintoutT,wxPrintout),
+ MOpts = fun({printoutForPrinting, #wx_ref{type=PrintoutForPrintingT,ref=PrintoutForPrintingRef}}, Acc) -> ?CLASS(PrintoutForPrintingT,wxPrintout),[<<1:32/?UI,PrintoutForPrintingRef:32/?UI>>|Acc];
+ ({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxPrintDialogData),[<<2:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPrintPreview_new_2,
+ <<PrintoutRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Printout::wxPrintout:wxPrintout(), PrintoutForPrinting::wxPrintout:wxPrintout(), Data::wxPrintData:wxPrintData()) -> wxPrintPreview()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewwxprintpreview">external documentation</a>.
+new(#wx_ref{type=PrintoutT,ref=PrintoutRef},#wx_ref{type=PrintoutForPrintingT,ref=PrintoutForPrintingRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(PrintoutT,wxPrintout),
+ ?CLASS(PrintoutForPrintingT,wxPrintout),
+ ?CLASS(DataT,wxPrintData),
+ wxe_util:construct(?wxPrintPreview_new_3,
+ <<PrintoutRef:32/?UI,PrintoutForPrintingRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> wxPreviewCanvas:wxPreviewCanvas()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetcanvas">external documentation</a>.
+getCanvas(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetCanvas,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> wxFrame:wxFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetframe">external documentation</a>.
+getFrame(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetFrame,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetmaxpage">external documentation</a>.
+getMaxPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetMaxPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetminpage">external documentation</a>.
+getMinPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetMinPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> wxPrintout:wxPrintout()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetprintout">external documentation</a>.
+getPrintout(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetPrintout,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> wxPrintout:wxPrintout()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewgetprintoutforprinting">external documentation</a>.
+getPrintoutForPrinting(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_GetPrintoutForPrinting,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewisok">external documentation</a>.
+isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_IsOk,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Canvas::wxPreviewCanvas:wxPreviewCanvas(), Dc::wxDC:wxDC()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewpaintpage">external documentation</a>.
+paintPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CanvasT,ref=CanvasRef},#wx_ref{type=DcT,ref=DcRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ ?CLASS(CanvasT,wxPreviewCanvas),
+ ?CLASS(DcT,wxDC),
+ wxe_util:call(?wxPrintPreview_PaintPage,
+ <<ThisRef:32/?UI,CanvasRef:32/?UI,DcRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Interactive::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewprint">external documentation</a>.
+print(#wx_ref{type=ThisT,ref=ThisRef},Interactive)
+ when is_boolean(Interactive) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_Print,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Interactive)):32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), PageNum::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewrenderpage">external documentation</a>.
+renderPage(#wx_ref{type=ThisT,ref=ThisRef},PageNum)
+ when is_integer(PageNum) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_RenderPage,
+ <<ThisRef:32/?UI,PageNum:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Canvas::wxPreviewCanvas:wxPreviewCanvas()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewsetcanvas">external documentation</a>.
+setCanvas(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CanvasT,ref=CanvasRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ ?CLASS(CanvasT,wxPreviewCanvas),
+ wxe_util:cast(?wxPrintPreview_SetCanvas,
+ <<ThisRef:32/?UI,CanvasRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), PageNum::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewsetcurrentpage">external documentation</a>.
+setCurrentPage(#wx_ref{type=ThisT,ref=ThisRef},PageNum)
+ when is_integer(PageNum) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:call(?wxPrintPreview_SetCurrentPage,
+ <<ThisRef:32/?UI,PageNum:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Frame::wxFrame:wxFrame()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewsetframe">external documentation</a>.
+setFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ ?CLASS(FrameT,wxFrame),
+ wxe_util:cast(?wxPrintPreview_SetFrame,
+ <<ThisRef:32/?UI,FrameRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Printout::wxPrintout:wxPrintout()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewsetprintout">external documentation</a>.
+setPrintout(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintoutT,ref=PrintoutRef}) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ ?CLASS(PrintoutT,wxPrintout),
+ wxe_util:cast(?wxPrintPreview_SetPrintout,
+ <<ThisRef:32/?UI,PrintoutRef:32/?UI>>).
+
+%% @spec (This::wxPrintPreview(), Percent::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintpreview.html#wxprintpreviewsetzoom">external documentation</a>.
+setZoom(#wx_ref{type=ThisT,ref=ThisRef},Percent)
+ when is_integer(Percent) ->
+ ?CLASS(ThisT,wxPrintPreview),
+ wxe_util:cast(?wxPrintPreview_SetZoom,
+ <<ThisRef:32/?UI,Percent:32/?UI>>).
+
+%% @spec (This::wxPrintPreview()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrintPreview),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPrinter.erl b/lib/wx/src/gen/wxPrinter.erl
new file mode 100644
index 0000000000..d12a1f5909
--- /dev/null
+++ b/lib/wx/src/gen/wxPrinter.erl
@@ -0,0 +1,135 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html">wxPrinter</a>.
+%% @type wxPrinter(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrinter).
+-include("wxe.hrl").
+-export([createAbortWindow/3,destroy/1,getAbort/1,getLastError/0,getPrintDialogData/1,
+ new/0,new/1,print/3,print/4,printDialog/2,reportError/4,setup/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxPrinter()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxPrinter()
+%% Option = {data, wxPrintDialogData:wxPrintDialogData()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprinterwxprinter">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wxPrintDialogData),[<<1:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxPrinter_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprintercreateabortwindow">external documentation</a>.
+createAbortWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=PrintoutT,ref=PrintoutRef}) ->
+ ?CLASS(ThisT,wxPrinter),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(PrintoutT,wxPrintout),
+ wxe_util:call(?wxPrinter_CreateAbortWindow,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,PrintoutRef:32/?UI>>).
+
+%% @spec (This::wxPrinter()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprintergetabort">external documentation</a>.
+getAbort(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrinter),
+ wxe_util:call(?wxPrinter_GetAbort,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> WxPrinterError
+%% WxPrinterError = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprintergetlasterror">external documentation</a>.
+%%<br /> WxPrinterError is one of ?wxPRINTER_NO_ERROR | ?wxPRINTER_CANCELLED | ?wxPRINTER_ERROR
+getLastError() ->
+ wxe_util:call(?wxPrinter_GetLastError,
+ <<>>).
+
+%% @spec (This::wxPrinter()) -> wxPrintDialogData:wxPrintDialogData()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprintergetprintdialogdata">external documentation</a>.
+getPrintDialogData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrinter),
+ wxe_util:call(?wxPrinter_GetPrintDialogData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout()) -> bool()
+%% @equiv print(This,Parent,Printout, [])
+print(This,Parent,Printout)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_record(Printout, wx_ref) ->
+ print(This,Parent,Printout, []).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout(), [Option]) -> bool()
+%% Option = {prompt, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprinterprint">external documentation</a>.
+print(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=PrintoutT,ref=PrintoutRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxPrinter),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(PrintoutT,wxPrintout),
+ MOpts = fun({prompt, Prompt}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Prompt)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxPrinter_Print,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,PrintoutRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow()) -> wxDC:wxDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprinterprintdialog">external documentation</a>.
+printDialog(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}) ->
+ ?CLASS(ThisT,wxPrinter),
+ ?CLASS(ParentT,wxWindow),
+ wxe_util:call(?wxPrinter_PrintDialog,
+ <<ThisRef:32/?UI,ParentRef:32/?UI>>).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout(), Message::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprinterreporterror">external documentation</a>.
+reportError(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},#wx_ref{type=PrintoutT,ref=PrintoutRef},Message)
+ when is_list(Message) ->
+ ?CLASS(ThisT,wxPrinter),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(PrintoutT,wxPrintout),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ wxe_util:cast(?wxPrinter_ReportError,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,PrintoutRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprinter.html#wxprintersetup">external documentation</a>.
+setup(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}) ->
+ ?CLASS(ThisT,wxPrinter),
+ ?CLASS(ParentT,wxWindow),
+ wxe_util:call(?wxPrinter_Setup,
+ <<ThisRef:32/?UI,ParentRef:32/?UI>>).
+
+%% @spec (This::wxPrinter()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrinter),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxPrintout.erl b/lib/wx/src/gen/wxPrintout.erl
new file mode 100644
index 0000000000..30811d32a0
--- /dev/null
+++ b/lib/wx/src/gen/wxPrintout.erl
@@ -0,0 +1,274 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html">wxPrintout</a>.
+%% @type wxPrintout(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxPrintout).
+-include("wxe.hrl").
+-export([ new/2,new/3 ,destroy/1,fitThisSizeToPage/2,fitThisSizeToPageMargins/3,
+ fitThisSizeToPaper/2,getDC/1,getLogicalPageMarginsRect/2,getLogicalPageRect/1,
+ getLogicalPaperRect/1,getPPIPrinter/1,getPPIScreen/1,getPageSizeMM/1,
+ getPageSizePixels/1,getPaperRectPixels/1,getTitle/1,isPreview/1,mapScreenSizeToDevice/1,
+ mapScreenSizeToPage/1,mapScreenSizeToPageMargins/2,mapScreenSizeToPaper/1,
+ offsetLogicalOrigin/3,setLogicalOrigin/3]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+
+%% @spec (Title::string(), OnPrintPage::function()) -> wxPrintout:wxPrintout()
+%% @doc @equiv new(Title, OnPrintPage, [])
+new(Title, OnPrintPage) ->
+ new(Title, OnPrintPage, []).
+
+%% @spec (Title::string(), OnPrintPage::function(), [Option]) -> wxPrintout:wxPrintout()
+%% Option = {onPreparePrinting, OnPreparePrinting::function()} |
+%% {onBeginPrinting, OnBeginPrinting::function()} |
+%% {onEndPrinting, OnEndPrinting::function()} |
+%% {onBeginDocument, OnBeginDocument::function()} |
+%% {onEndDocument, OnEndDocument::function()} |
+%% {hasPage, HasPage::function()} |
+%% {getPageInfo, GetPageInfo::function()}
+%% @doc Creates a wxPrintout object with a callback fun and optionally other callback funs.<br />
+%% <pre>OnPrintPage(This,Page) -> boolean() </pre>
+%% <pre>OnPreparePrinting(This) -> term() </pre>
+%% <pre>OnBeginPrinting(This) -> term() </pre>
+%% <pre>OnEndPrinting(This) -> term() </pre>
+%% <pre>OnBeginDocument(This,StartPage,EndPage) -> boolean() </pre>
+%% <pre>OnEndDocument(This) -> term() </pre>
+%% <pre>HasPage(This,Page)} -> boolean() </pre>
+%% <pre>GetPageInfo(This) -> {MinPage:.integer(), MaxPage::integer(), PageFrom::integer(), PageTo::integer()} </pre>
+%% The <b>This</b> argument is the wxPrintout object reference to this object
+%% <br /> NOTE: The callbacks may not call other processes.
+new(Title, OnPrintPage, Opts) when is_list(Title), is_function(OnPrintPage), is_list(Opts) ->
+ OnPrint = fun([This,Page]) ->
+ Bool = OnPrintPage(This,Page),
+ <<(wxe_util:from_bool(Bool)):32/?UI>>
+ end,
+ OnPrintPageId = wxe_util:get_cbId(OnPrint),
+ MOpts = fun({onPreparePrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<1:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onBeginPrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<2:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onEndPrinting, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<3:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onBeginDocument, F},Acc) when is_function(F) ->
+ Fun = fun([This,S,E]) ->
+ BegD = F(This,S,E),
+ <<(wxe_util:from_bool(BegD)):32/?UI>>
+ end,
+ [<<4:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({onEndDocument, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ F(This),
+ <<>>
+ end,
+ [<<5:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({hasPage, F},Acc) when is_function(F) ->
+ Fun = fun([This,Page]) ->
+ HasP = F(This,Page),
+ <<(wxe_util:from_bool(HasP)):32/?UI>>
+ end,
+ [<<6:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc];
+ ({getPageInfo, F},Acc) when is_function(F) ->
+ Fun = fun([This]) ->
+ {Min,Max,PF,PT} = F(This),
+ <<Min:32/?UI,Max:32/?UI,PF:32/?UI,PT:32/?UI>>
+ end,
+ [<<7:32/?UI,(wxe_util:get_cbId(Fun)):32/?UI>>|Acc]
+ end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Opts)),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:call(?wxPrintout_new, << (byte_size(Title_UC)):32/?UI,Title_UC/binary,
+ 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8,
+ OnPrintPageId:32/?UI,
+ BinOpt/binary>>).
+
+%% @spec (This::wxPrintout()) -> wxDC:wxDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetdc">external documentation</a>.
+getDC(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetDC,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetpagesizemm">external documentation</a>.
+getPageSizeMM(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetPageSizeMM,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetpagesizepixels">external documentation</a>.
+getPageSizePixels(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetPageSizePixels,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetpaperrectpixels">external documentation</a>.
+getPaperRectPixels(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetPaperRectPixels,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetppiprinter">external documentation</a>.
+getPPIPrinter(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetPPIPrinter,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetppiscreen">external documentation</a>.
+getPPIScreen(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetPPIScreen,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgettitle">external documentation</a>.
+getTitle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetTitle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutispreview">external documentation</a>.
+isPreview(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_IsPreview,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutfitthissizetopaper">external documentation</a>.
+fitThisSizeToPaper(#wx_ref{type=ThisT,ref=ThisRef},{ImageSizeW,ImageSizeH})
+ when is_integer(ImageSizeW),is_integer(ImageSizeH) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_FitThisSizeToPaper,
+ <<ThisRef:32/?UI,ImageSizeW:32/?UI,ImageSizeH:32/?UI>>).
+
+%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutfitthissizetopage">external documentation</a>.
+fitThisSizeToPage(#wx_ref{type=ThisT,ref=ThisRef},{ImageSizeW,ImageSizeH})
+ when is_integer(ImageSizeW),is_integer(ImageSizeH) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_FitThisSizeToPage,
+ <<ThisRef:32/?UI,ImageSizeW:32/?UI,ImageSizeH:32/?UI>>).
+
+%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}, PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutfitthissizetopagemargins">external documentation</a>.
+fitThisSizeToPageMargins(#wx_ref{type=ThisT,ref=ThisRef},{ImageSizeW,ImageSizeH},#wx_ref{type=PageSetupDataT,ref=PageSetupDataRef})
+ when is_integer(ImageSizeW),is_integer(ImageSizeH) ->
+ ?CLASS(ThisT,wxPrintout),
+ ?CLASS(PageSetupDataT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPrintout_FitThisSizeToPageMargins,
+ <<ThisRef:32/?UI,ImageSizeW:32/?UI,ImageSizeH:32/?UI,PageSetupDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutmapscreensizetopaper">external documentation</a>.
+mapScreenSizeToPaper(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_MapScreenSizeToPaper,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutmapscreensizetopage">external documentation</a>.
+mapScreenSizeToPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_MapScreenSizeToPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout(), PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutmapscreensizetopagemargins">external documentation</a>.
+mapScreenSizeToPageMargins(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageSetupDataT,ref=PageSetupDataRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ ?CLASS(PageSetupDataT,wxPageSetupDialogData),
+ wxe_util:cast(?wxPrintout_MapScreenSizeToPageMargins,
+ <<ThisRef:32/?UI,PageSetupDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutmapscreensizetodevice">external documentation</a>.
+mapScreenSizeToDevice(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_MapScreenSizeToDevice,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetlogicalpaperrect">external documentation</a>.
+getLogicalPaperRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetLogicalPaperRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetlogicalpagerect">external documentation</a>.
+getLogicalPageRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:call(?wxPrintout_GetLogicalPageRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxPrintout(), PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutgetlogicalpagemarginsrect">external documentation</a>.
+getLogicalPageMarginsRect(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageSetupDataT,ref=PageSetupDataRef}) ->
+ ?CLASS(ThisT,wxPrintout),
+ ?CLASS(PageSetupDataT,wxPageSetupDialogData),
+ wxe_util:call(?wxPrintout_GetLogicalPageMarginsRect,
+ <<ThisRef:32/?UI,PageSetupDataRef:32/?UI>>).
+
+%% @spec (This::wxPrintout(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutsetlogicalorigin">external documentation</a>.
+setLogicalOrigin(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_SetLogicalOrigin,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxPrintout(), Xoff::integer(), Yoff::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html#wxprintoutoffsetlogicalorigin">external documentation</a>.
+offsetLogicalOrigin(#wx_ref{type=ThisT,ref=ThisRef},Xoff,Yoff)
+ when is_integer(Xoff),is_integer(Yoff) ->
+ ?CLASS(ThisT,wxPrintout),
+ wxe_util:cast(?wxPrintout_OffsetLogicalOrigin,
+ <<ThisRef:32/?UI,Xoff:32/?UI,Yoff:32/?UI>>).
+
+%% @spec (This::wxPrintout()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxPrintout),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxProgressDialog.erl b/lib/wx/src/gen/wxProgressDialog.erl
new file mode 100644
index 0000000000..6d7d2d9743
--- /dev/null
+++ b/lib/wx/src/gen/wxProgressDialog.erl
@@ -0,0 +1,571 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprogressdialog.html">wxProgressDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxProgressDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxProgressDialog).
+-include("wxe.hrl").
+-export([destroy/1,new/2,new/3,resume/1,update/1,update/2,update/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Title::string(), Message::string()) -> wxProgressDialog()
+%% @equiv new(Title,Message, [])
+new(Title,Message)
+ when is_list(Title),is_list(Message) ->
+ new(Title,Message, []).
+
+%% @spec (Title::string(), Message::string(), [Option]) -> wxProgressDialog()
+%% Option = {maximum, integer()} | {parent, wxWindow:wxWindow()} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprogressdialog.html#wxprogressdialogwxprogressdialog">external documentation</a>.
+new(Title,Message, Options)
+ when is_list(Title),is_list(Message),is_list(Options) ->
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ MOpts = fun({maximum, Maximum}, Acc) -> [<<1:32/?UI,Maximum:32/?UI>>|Acc];
+ ({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<2:32/?UI,ParentRef:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxProgressDialog_new,
+ <<(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((4+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxProgressDialog()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprogressdialog.html#wxprogressdialogresume">external documentation</a>.
+resume(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxProgressDialog),
+ wxe_util:cast(?wxProgressDialog_Resume,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxProgressDialog()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprogressdialog.html#wxprogressdialogupdate">external documentation</a>.
+update(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxProgressDialog),
+ wxe_util:cast(?wxProgressDialog_Update_0,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxProgressDialog(), Value::integer()) -> bool()
+%% @equiv update(This,Value, [])
+update(This,Value)
+ when is_record(This, wx_ref),is_integer(Value) ->
+ update(This,Value, []).
+
+%% @spec (This::wxProgressDialog(), Value::integer(), [Option]) -> bool()
+%% Option = {newmsg, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxprogressdialog.html#wxprogressdialogupdate">external documentation</a>.
+update(#wx_ref{type=ThisT,ref=ThisRef},Value, Options)
+ when is_integer(Value),is_list(Options) ->
+ ?CLASS(ThisT,wxProgressDialog),
+ MOpts = fun({newmsg, Newmsg}, Acc) -> Newmsg_UC = unicode:characters_to_binary([Newmsg,0]),[<<1:32/?UI,(byte_size(Newmsg_UC)):32/?UI,(Newmsg_UC)/binary, 0:(((8- ((0+byte_size(Newmsg_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxProgressDialog_Update_2,
+ <<ThisRef:32/?UI,Value:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxProgressDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxProgressDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxQueryNewPaletteEvent.erl b/lib/wx/src/gen/wxQueryNewPaletteEvent.erl
new file mode 100644
index 0000000000..140d58c42c
--- /dev/null
+++ b/lib/wx/src/gen/wxQueryNewPaletteEvent.erl
@@ -0,0 +1,77 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxquerynewpaletteevent.html">wxQueryNewPaletteEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>query_new_palette</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxQueryNewPalette(). #wxQueryNewPalette{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxQueryNewPaletteEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxQueryNewPaletteEvent).
+-include("wxe.hrl").
+-export([getPaletteRealized/1,setPaletteRealized/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxQueryNewPaletteEvent(), Realized::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxquerynewpaletteevent.html#wxquerynewpaletteeventsetpaletterealized">external documentation</a>.
+setPaletteRealized(#wx_ref{type=ThisT,ref=ThisRef},Realized)
+ when is_boolean(Realized) ->
+ ?CLASS(ThisT,wxQueryNewPaletteEvent),
+ wxe_util:cast(?wxQueryNewPaletteEvent_SetPaletteRealized,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Realized)):32/?UI>>).
+
+%% @spec (This::wxQueryNewPaletteEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxquerynewpaletteevent.html#wxquerynewpaletteeventgetpaletterealized">external documentation</a>.
+getPaletteRealized(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxQueryNewPaletteEvent),
+ wxe_util:call(?wxQueryNewPaletteEvent_GetPaletteRealized,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxRadioBox.erl b/lib/wx/src/gen/wxRadioBox.erl
new file mode 100644
index 0000000000..ab76354da2
--- /dev/null
+++ b/lib/wx/src/gen/wxRadioBox.erl
@@ -0,0 +1,663 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html">wxRadioBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxRadioBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxRadioBox).
+-include("wxe.hrl").
+-export([create/7,create/8,destroy/1,enable/1,enable/2,enable/3,getColumnCount/1,
+ getItemFromPoint/2,getItemHelpText/2,getItemToolTip/2,getRowCount/1,
+ getSelection/1,getString/2,isItemEnabled/2,isItemShown/2,new/6,new/7,
+ setItemHelpText/3,setItemToolTip/3,setSelection/2,show/1,show/2,show/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,getBackgroundColour/1,
+ getBackgroundStyle/1,getBestSize/1,getCaret/1,getCharHeight/1,getCharWidth/1,
+ getChildren/1,getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,getToolTip/1,
+ getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1,
+ hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,hide/1,inheritAttributes/1,
+ initDialog/1,invalidateBestSize/1,isEnabled/1,isExposed/2,isExposed/3,
+ isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,
+ lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ thaw/1,transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]]) -> wxRadioBox()
+%% @equiv new(Parent,Id,Title,Pos,Size,Choices, [])
+new(Parent,Id,Title,Pos={PosX,PosY},Size={SizeW,SizeH},Choices)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Title),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices) ->
+ new(Parent,Id,Title,Pos,Size,Choices, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]], [Option]) -> wxRadioBox()
+%% Option = {majorDim, integer()} | {style, integer()} | {val, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxwxradiobox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title,{PosX,PosY},{SizeW,SizeH},Choices, Options)
+ when is_integer(Id),is_list(Title),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({majorDim, MajorDim}, Acc) -> [<<1:32/?UI,MajorDim:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ ({val, #wx_ref{type=ValT,ref=ValRef}}, Acc) -> ?CLASS(ValT,wx),[<<3:32/?UI,ValRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxRadioBox_new,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((4+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]]) -> bool()
+%% @equiv create(This,Parent,Id,Title,Pos,Size,Choices, [])
+create(This,Parent,Id,Title,Pos={PosX,PosY},Size={SizeW,SizeH},Choices)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices) ->
+ create(This,Parent,Id,Title,Pos,Size,Choices, []).
+
+%% @spec (This::wxRadioBox(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}, Choices::[[string()]], [Option]) -> bool()
+%% Option = {majorDim, integer()} | {style, integer()} | {val, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title,{PosX,PosY},{SizeW,SizeH},Choices, Options)
+ when is_integer(Id),is_list(Title),is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH),is_list(Choices),is_list(Options) ->
+ ?CLASS(ThisT,wxRadioBox),
+ ?CLASS(ParentT,wxWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({majorDim, MajorDim}, Acc) -> [<<1:32/?UI,MajorDim:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ ({val, #wx_ref{type=ValT,ref=ValRef}}, Acc) -> ?CLASS(ValT,wx),[<<3:32/?UI,ValRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioBox_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox()) -> bool()
+%% @equiv enable(This, [])
+enable(This)
+ when is_record(This, wx_ref) ->
+ enable(This, []).
+
+%% @spec (This::wxRadioBox(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxenable">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% enable(This::wxRadioBox(), N::integer()) -> enable(This,N, []) </c></p>
+%% <p><c>
+%% enable(This::wxRadioBox(), [Option]) -> bool() </c>
+%%<br /> Option = {enable, bool()}
+%% </p>
+
+enable(This,N)
+ when is_record(This, wx_ref),is_integer(N) ->
+ enable(This,N, []);
+enable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxRadioBox),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioBox_Enable_1,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox(), N::integer(), [Option]) -> bool()
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef},N, Options)
+ when is_integer(N),is_list(Options) ->
+ ?CLASS(ThisT,wxRadioBox),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioBox_Enable_2,
+ <<ThisRef:32/?UI,N:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetstring">external documentation</a>.
+getString(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetString,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:cast(?wxRadioBox_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxRadioBox()) -> bool()
+%% @equiv show(This, [])
+show(This)
+ when is_record(This, wx_ref) ->
+ show(This, []).
+
+%% @spec (This::wxRadioBox(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxshow">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% show(This::wxRadioBox(), N::integer()) -> show(This,N, []) </c></p>
+%% <p><c>
+%% show(This::wxRadioBox(), [Option]) -> bool() </c>
+%%<br /> Option = {show, bool()}
+%% </p>
+
+show(This,N)
+ when is_record(This, wx_ref),is_integer(N) ->
+ show(This,N, []);
+show(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxRadioBox),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioBox_Show_1,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox(), N::integer(), [Option]) -> bool()
+%% Option = {show, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef},N, Options)
+ when is_integer(N),is_list(Options) ->
+ ?CLASS(ThisT,wxRadioBox),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioBox_Show_2,
+ <<ThisRef:32/?UI,N:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxRadioBox()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetcolumncount">external documentation</a>.
+getColumnCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetColumnCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetitemhelptext">external documentation</a>.
+getItemHelpText(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetItemHelpText,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), Item::integer()) -> wxToolTip:wxToolTip()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetitemtooltip">external documentation</a>.
+getItemToolTip(#wx_ref{type=ThisT,ref=ThisRef},Item)
+ when is_integer(Item) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetItemToolTip,
+ <<ThisRef:32/?UI,Item:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), Pt::{X::integer(),Y::integer()}) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetitemfrompoint">external documentation</a>.
+getItemFromPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetItemFromPoint,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxRadioBox()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxgetrowcount">external documentation</a>.
+getRowCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_GetRowCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxisitemenabled">external documentation</a>.
+isItemEnabled(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_IsItemEnabled,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxisitemshown">external documentation</a>.
+isItemShown(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxRadioBox),
+ wxe_util:call(?wxRadioBox_IsItemShown,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxRadioBox(), N::integer(), HelpText::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxsetitemhelptext">external documentation</a>.
+setItemHelpText(#wx_ref{type=ThisT,ref=ThisRef},N,HelpText)
+ when is_integer(N),is_list(HelpText) ->
+ ?CLASS(ThisT,wxRadioBox),
+ HelpText_UC = unicode:characters_to_binary([HelpText,0]),
+ wxe_util:cast(?wxRadioBox_SetItemHelpText,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(HelpText_UC)):32/?UI,(HelpText_UC)/binary, 0:(((8- ((4+byte_size(HelpText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxRadioBox(), Item::integer(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobox.html#wxradioboxsetitemtooltip">external documentation</a>.
+setItemToolTip(#wx_ref{type=ThisT,ref=ThisRef},Item,Text)
+ when is_integer(Item),is_list(Text) ->
+ ?CLASS(ThisT,wxRadioBox),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxRadioBox_SetItemToolTip,
+ <<ThisRef:32/?UI,Item:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxRadioBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxRadioBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxRadioButton.erl b/lib/wx/src/gen/wxRadioButton.erl
new file mode 100644
index 0000000000..066023d121
--- /dev/null
+++ b/lib/wx/src/gen/wxRadioButton.erl
@@ -0,0 +1,512 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html">wxRadioButton</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxRadioButton(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxRadioButton).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getValue/1,new/0,new/3,new/4,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxRadioButton()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html#wxradiobuttonwxradiobutton">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxRadioButton_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> wxRadioButton()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> wxRadioButton()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html#wxradiobuttonwxradiobutton">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxRadioButton_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxRadioButton(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxRadioButton(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html#wxradiobuttoncreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxRadioButton),
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRadioButton_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxRadioButton()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html#wxradiobuttongetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRadioButton),
+ wxe_util:call(?wxRadioButton_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRadioButton(), Val::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxradiobutton.html#wxradiobuttonsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when is_boolean(Val) ->
+ ?CLASS(ThisT,wxRadioButton),
+ wxe_util:cast(?wxRadioButton_SetValue,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Val)):32/?UI>>).
+
+%% @spec (This::wxRadioButton()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxRadioButton),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxRegion.erl b/lib/wx/src/gen/wxRegion.erl
new file mode 100644
index 0000000000..a2d2c7d830
--- /dev/null
+++ b/lib/wx/src/gen/wxRegion.erl
@@ -0,0 +1,305 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html">wxRegion</a>.
+%% @type wxRegion(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxRegion).
+-include("wxe.hrl").
+-export(['Xor'/2,'Xor'/5,clear/1,contains/2,contains/3,contains/5,convertToBitmap/1,
+ destroy/1,getBox/1,intersect/2,intersect/5,isEmpty/1,new/0,new/1,new/2,
+ new/4,offset/2,offset/3,subtract/2,subtract/5,union/2,union/3,union/4,
+ union/5]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxRegion()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionwxregion">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxRegion_new_0,
+ <<>>).
+
+%% @spec (X::term()) -> wxRegion()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionwxregion">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Bmp::wxBitmap:wxBitmap()) -> wxRegion() </c>
+%% </p>
+%% <p><c>
+%% new(Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxRegion() </c>
+%% </p>
+new(#wx_ref{type=BmpT,ref=BmpRef}) ->
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:construct(?wxRegion_new_1_0,
+ <<BmpRef:32/?UI>>);
+new({RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ wxe_util:construct(?wxRegion_new_1_1,
+ <<RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (TopLeft::{X::integer(),Y::integer()}, BottomRight::{X::integer(),Y::integer()}) -> wxRegion()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionwxregion">external documentation</a>.
+new({TopLeftX,TopLeftY},{BottomRightX,BottomRightY})
+ when is_integer(TopLeftX),is_integer(TopLeftY),is_integer(BottomRightX),is_integer(BottomRightY) ->
+ wxe_util:construct(?wxRegion_new_2,
+ <<TopLeftX:32/?UI,TopLeftY:32/?UI,BottomRightX:32/?UI,BottomRightY:32/?UI>>).
+
+%% @spec (X::integer(), Y::integer(), W::integer(), H::integer()) -> wxRegion()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionwxregion">external documentation</a>.
+new(X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ wxe_util:construct(?wxRegion_new_4,
+ <<X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:cast(?wxRegion_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRegion(),X::term()) -> WxRegionContain
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregioncontains">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% contains(This::wxRegion(), Pt::{X::integer(),Y::integer()}) -> WxRegionContain </c>
+%%<br /> WxRegionContain = integer()
+%%<br /> WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion
+%% </p>
+%% <p><c>
+%% contains(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> WxRegionContain </c>
+%%<br /> WxRegionContain = integer()
+%%<br /> WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion
+%% </p>
+contains(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Contains_1_0,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>);
+contains(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Contains_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer()) -> WxRegionContain
+%% WxRegionContain = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregioncontains">external documentation</a>.
+%%<br /> WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion
+contains(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Contains_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> WxRegionContain
+%% WxRegionContain = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregioncontains">external documentation</a>.
+%%<br /> WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion
+contains(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Contains_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionconverttobitmap">external documentation</a>.
+convertToBitmap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_ConvertToBitmap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRegion()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregiongetbox">external documentation</a>.
+getBox(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_GetBox,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionintersect">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% intersect(This::wxRegion(), Region::wxRegion()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% intersect(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+intersect(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:call(?wxRegion_Intersect_1_0,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>);
+intersect(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Intersect_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionintersect">external documentation</a>.
+intersect(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Intersect_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionisempty">external documentation</a>.
+isEmpty(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_IsEmpty,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionsubtract">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% subtract(This::wxRegion(), Region::wxRegion()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% subtract(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+subtract(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:call(?wxRegion_Subtract_1_0,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>);
+subtract(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Subtract_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionsubtract">external documentation</a>.
+subtract(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Subtract_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion(), Pt::{X::integer(),Y::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionoffset">external documentation</a>.
+offset(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Offset_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionoffset">external documentation</a>.
+offset(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Offset_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxRegion(),X::term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionunion">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% union(This::wxRegion(), Region::wxRegion() | wxBitmap:wxBitmap()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% union(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+union(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ RegionOP = case ?CLASS_T(RegionT,wxRegion) of
+ true ->
+ ?wxRegion_Union_1_1;
+ _ -> ?CLASS(RegionT,wxBitmap),
+ ?wxRegion_Union_1_0
+ end,
+ wxe_util:call(RegionOP,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>);
+union(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Union_1_2,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxRegion(), Bmp::wxBitmap:wxBitmap(), Transp::wx:colour()) -> bool()
+%% @equiv union(This,Bmp,Transp, [])
+union(This,Bmp,Transp)
+ when is_record(This, wx_ref),is_record(Bmp, wx_ref),tuple_size(Transp) =:= 3; tuple_size(Transp) =:= 4 ->
+ union(This,Bmp,Transp, []).
+
+%% @spec (This::wxRegion(), Bmp::wxBitmap:wxBitmap(), Transp::wx:colour(), [Option]) -> bool()
+%% Option = {tolerance, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionunion">external documentation</a>.
+union(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef},Transp, Options)
+ when tuple_size(Transp) =:= 3; tuple_size(Transp) =:= 4,is_list(Options) ->
+ ?CLASS(ThisT,wxRegion),
+ ?CLASS(BmpT,wxBitmap),
+ MOpts = fun({tolerance, Tolerance}, Acc) -> [<<1:32/?UI,Tolerance:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxRegion_Union_3,
+ <<ThisRef:32/?UI,BmpRef:32/?UI,(wxe_util:colour_bin(Transp)):16/binary, BinOpt/binary>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionunion">external documentation</a>.
+union(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Union_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionxor">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% 'Xor'(This::wxRegion(), Region::wxRegion()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% 'Xor'(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+'Xor'(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxRegion),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:call(?wxRegion_Xor_1_0,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>);
+'Xor'(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Xor_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxregion.html#wxregionxor">external documentation</a>.
+'Xor'(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxRegion),
+ wxe_util:call(?wxRegion_Xor_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxRegion()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxRegion),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxSashEvent.erl b/lib/wx/src/gen/wxSashEvent.erl
new file mode 100644
index 0000000000..56453fbe2f
--- /dev/null
+++ b/lib/wx/src/gen/wxSashEvent.erl
@@ -0,0 +1,110 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashevent.html">wxSashEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>sash_dragged</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSash(). #wxSash{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSashEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSashEvent).
+-include("wxe.hrl").
+-export([getDragRect/1,getDragStatus/1,getEdge/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSashEvent()) -> WxSashEdgePosition
+%% WxSashEdgePosition = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashevent.html#wxsasheventgetedge">external documentation</a>.
+%%<br /> WxSashEdgePosition is one of ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE
+getEdge(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashEvent),
+ wxe_util:call(?wxSashEvent_GetEdge,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashEvent()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashevent.html#wxsasheventgetdragrect">external documentation</a>.
+getDragRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashEvent),
+ wxe_util:call(?wxSashEvent_GetDragRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashEvent()) -> WxSashDragStatus
+%% WxSashDragStatus = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashevent.html#wxsasheventgetdragstatus">external documentation</a>.
+%%<br /> WxSashDragStatus is one of ?wxSASH_STATUS_OK | ?wxSASH_STATUS_OUT_OF_RANGE
+getDragStatus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashEvent),
+ wxe_util:call(?wxSashEvent_GetDragStatus,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSashLayoutWindow.erl b/lib/wx/src/gen/wxSashLayoutWindow.erl
new file mode 100644
index 0000000000..9b3c372369
--- /dev/null
+++ b/lib/wx/src/gen/wxSashLayoutWindow.erl
@@ -0,0 +1,566 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html">wxSashLayoutWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxSashWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSashLayoutWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSashLayoutWindow).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getAlignment/1,getOrientation/1,new/0,new/1,
+ new/2,setAlignment/2,setDefaultSize/2,setOrientation/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMaximumSizeX/1,getMaximumSizeY/1,
+ getMinSize/1,getMinimumSizeX/1,getMinimumSizeY/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getSashVisible/2,getScreenPosition/1,getScreenRect/1,
+ getScrollPos/2,getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,
+ getTextExtent/2,getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,
+ getWindowStyleFlag/1,getWindowVariant/1,hasCapture/1,hasScrollbar/2,
+ hasTransparentBackground/1,hide/1,inheritAttributes/1,initDialog/1,
+ invalidateBestSize/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,
+ isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,lineUp/1,lower/1,
+ makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,
+ popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,
+ scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMaximumSizeX/2,setMaximumSizeY/2,setMinSize/2,setMinimumSizeX/2,
+ setMinimumSizeY/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setSashVisible/3,setScrollPos/3,
+ setScrollPos/4,setScrollbar/5,setScrollbar/6,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,setToolTip/2,
+ setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,
+ setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,
+ shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxSashWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSashLayoutWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowwxsashlayoutwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSashLayoutWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxSashLayoutWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSashLayoutWindow()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowwxsashlayoutwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSashLayoutWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSashLayoutWindow(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxSashLayoutWindow(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSashLayoutWindow_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSashLayoutWindow()) -> WxLayoutAlignment
+%% WxLayoutAlignment = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowgetalignment">external documentation</a>.
+%%<br /> WxLayoutAlignment is one of ?wxLAYOUT_NONE | ?wxLAYOUT_TOP | ?wxLAYOUT_LEFT | ?wxLAYOUT_RIGHT | ?wxLAYOUT_BOTTOM
+getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ wxe_util:call(?wxSashLayoutWindow_GetAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashLayoutWindow()) -> WxLayoutOrientation
+%% WxLayoutOrientation = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowgetorientation">external documentation</a>.
+%%<br /> WxLayoutOrientation is one of ?wxLAYOUT_HORIZONTAL | ?wxLAYOUT_VERTICAL
+getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ wxe_util:call(?wxSashLayoutWindow_GetOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashLayoutWindow(), Align::WxLayoutAlignment) -> ok
+%% WxLayoutAlignment = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowsetalignment">external documentation</a>.
+%%<br /> WxLayoutAlignment is one of ?wxLAYOUT_NONE | ?wxLAYOUT_TOP | ?wxLAYOUT_LEFT | ?wxLAYOUT_RIGHT | ?wxLAYOUT_BOTTOM
+setAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align)
+ when is_integer(Align) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ wxe_util:cast(?wxSashLayoutWindow_SetAlignment,
+ <<ThisRef:32/?UI,Align:32/?UI>>).
+
+%% @spec (This::wxSashLayoutWindow(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowsetdefaultsize">external documentation</a>.
+setDefaultSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ wxe_util:cast(?wxSashLayoutWindow_SetDefaultSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSashLayoutWindow(), Orient::WxLayoutOrientation) -> ok
+%% WxLayoutOrientation = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashlayoutwindow.html#wxsashlayoutwindowsetorientation">external documentation</a>.
+%%<br /> WxLayoutOrientation is one of ?wxLAYOUT_HORIZONTAL | ?wxLAYOUT_VERTICAL
+setOrientation(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxSashLayoutWindow),
+ wxe_util:cast(?wxSashLayoutWindow_SetOrientation,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxSashLayoutWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSashLayoutWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxSashWindow
+%% @hidden
+setSashVisible(This,Edge,Sash) -> wxSashWindow:setSashVisible(This,Edge,Sash).
+%% @hidden
+setMinimumSizeY(This,Min) -> wxSashWindow:setMinimumSizeY(This,Min).
+%% @hidden
+setMinimumSizeX(This,Min) -> wxSashWindow:setMinimumSizeX(This,Min).
+%% @hidden
+setMaximumSizeY(This,Max) -> wxSashWindow:setMaximumSizeY(This,Max).
+%% @hidden
+setMaximumSizeX(This,Max) -> wxSashWindow:setMaximumSizeX(This,Max).
+%% @hidden
+getMinimumSizeY(This) -> wxSashWindow:getMinimumSizeY(This).
+%% @hidden
+getMinimumSizeX(This) -> wxSashWindow:getMinimumSizeX(This).
+%% @hidden
+getMaximumSizeY(This) -> wxSashWindow:getMaximumSizeY(This).
+%% @hidden
+getMaximumSizeX(This) -> wxSashWindow:getMaximumSizeX(This).
+%% @hidden
+getSashVisible(This,Edge) -> wxSashWindow:getSashVisible(This,Edge).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSashWindow.erl b/lib/wx/src/gen/wxSashWindow.erl
new file mode 100644
index 0000000000..d836d84ed3
--- /dev/null
+++ b/lib/wx/src/gen/wxSashWindow.erl
@@ -0,0 +1,552 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html">wxSashWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSashWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSashWindow).
+-include("wxe.hrl").
+-export([destroy/1,getMaximumSizeX/1,getMaximumSizeY/1,getMinimumSizeX/1,getMinimumSizeY/1,
+ getSashVisible/2,new/0,new/1,new/2,setMaximumSizeX/2,setMaximumSizeY/2,
+ setMinimumSizeX/2,setMinimumSizeY/2,setSashVisible/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSashWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowwxsashwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSashWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxSashWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSashWindow()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowwxsashwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSashWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition) -> bool()
+%% WxSashEdgePosition = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetsashvisible">external documentation</a>.
+%%<br /> WxSashEdgePosition is one of ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE
+getSashVisible(#wx_ref{type=ThisT,ref=ThisRef},Edge)
+ when is_integer(Edge) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:call(?wxSashWindow_GetSashVisible,
+ <<ThisRef:32/?UI,Edge:32/?UI>>).
+
+%% @spec (This::wxSashWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetmaximumsizex">external documentation</a>.
+getMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:call(?wxSashWindow_GetMaximumSizeX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetmaximumsizey">external documentation</a>.
+getMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:call(?wxSashWindow_GetMaximumSizeY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetminimumsizex">external documentation</a>.
+getMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:call(?wxSashWindow_GetMinimumSizeX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetminimumsizey">external documentation</a>.
+getMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:call(?wxSashWindow_GetMinimumSizeY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSashWindow(), Max::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetmaximumsizex">external documentation</a>.
+setMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Max)
+ when is_integer(Max) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:cast(?wxSashWindow_SetMaximumSizeX,
+ <<ThisRef:32/?UI,Max:32/?UI>>).
+
+%% @spec (This::wxSashWindow(), Max::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetmaximumsizey">external documentation</a>.
+setMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Max)
+ when is_integer(Max) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:cast(?wxSashWindow_SetMaximumSizeY,
+ <<ThisRef:32/?UI,Max:32/?UI>>).
+
+%% @spec (This::wxSashWindow(), Min::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetminimumsizex">external documentation</a>.
+setMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Min)
+ when is_integer(Min) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:cast(?wxSashWindow_SetMinimumSizeX,
+ <<ThisRef:32/?UI,Min:32/?UI>>).
+
+%% @spec (This::wxSashWindow(), Min::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetminimumsizey">external documentation</a>.
+setMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Min)
+ when is_integer(Min) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:cast(?wxSashWindow_SetMinimumSizeY,
+ <<ThisRef:32/?UI,Min:32/?UI>>).
+
+%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition, Sash::bool()) -> ok
+%% WxSashEdgePosition = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetsashvisible">external documentation</a>.
+%%<br /> WxSashEdgePosition is one of ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE
+setSashVisible(#wx_ref{type=ThisT,ref=ThisRef},Edge,Sash)
+ when is_integer(Edge),is_boolean(Sash) ->
+ ?CLASS(ThisT,wxSashWindow),
+ wxe_util:cast(?wxSashWindow_SetSashVisible,
+ <<ThisRef:32/?UI,Edge:32/?UI,(wxe_util:from_bool(Sash)):32/?UI>>).
+
+%% @spec (This::wxSashWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSashWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxScreenDC.erl b/lib/wx/src/gen/wxScreenDC.erl
new file mode 100644
index 0000000000..35dcb23179
--- /dev/null
+++ b/lib/wx/src/gen/wxScreenDC.erl
@@ -0,0 +1,257 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscreendc.html">wxScreenDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxScreenDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxScreenDC).
+-include("wxe.hrl").
+-export([destroy/1,new/0]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxScreenDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscreendc.html#wxscreendcwxscreendc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxScreenDC_new,
+ <<>>).
+
+%% @spec (This::wxScreenDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxScreenDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxScrollBar.erl b/lib/wx/src/gen/wxScrollBar.erl
new file mode 100644
index 0000000000..f77b4dde21
--- /dev/null
+++ b/lib/wx/src/gen/wxScrollBar.erl
@@ -0,0 +1,546 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html">wxScrollBar</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxScrollBar(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxScrollBar).
+-include("wxe.hrl").
+-export([create/3,create/4,destroy/1,getPageSize/1,getRange/1,getThumbPosition/1,
+ getThumbSize/1,new/0,new/2,new/3,setScrollbar/5,setScrollbar/6,setThumbPosition/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,setToolTip/2,
+ setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,setVirtualSizeHints/3,
+ setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,
+ shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxScrollBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbarwxscrollbar">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxScrollBar_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxScrollBar()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxScrollBar()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbarwxscrollbar">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxScrollBar_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxScrollBar(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxScrollBar(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbarcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxScrollBar),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxScrollBar_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxScrollBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbargetrange">external documentation</a>.
+getRange(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollBar),
+ wxe_util:call(?wxScrollBar_GetRange,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbargetpagesize">external documentation</a>.
+getPageSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollBar),
+ wxe_util:call(?wxScrollBar_GetPageSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbargetthumbposition">external documentation</a>.
+getThumbPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollBar),
+ wxe_util:call(?wxScrollBar_GetThumbPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbargetthumbsize">external documentation</a>.
+getThumbSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollBar),
+ wxe_util:call(?wxScrollBar_GetThumbSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollBar(), ViewStart::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbarsetthumbposition">external documentation</a>.
+setThumbPosition(#wx_ref{type=ThisT,ref=ThisRef},ViewStart)
+ when is_integer(ViewStart) ->
+ ?CLASS(ThisT,wxScrollBar),
+ wxe_util:cast(?wxScrollBar_SetThumbPosition,
+ <<ThisRef:32/?UI,ViewStart:32/?UI>>).
+
+%% @spec (This::wxScrollBar(), Position::integer(), ThumbSize::integer(), Range::integer(), PageSize::integer()) -> ok
+%% @equiv setScrollbar(This,Position,ThumbSize,Range,PageSize, [])
+setScrollbar(This,Position,ThumbSize,Range,PageSize)
+ when is_record(This, wx_ref),is_integer(Position),is_integer(ThumbSize),is_integer(Range),is_integer(PageSize) ->
+ setScrollbar(This,Position,ThumbSize,Range,PageSize, []).
+
+%% @spec (This::wxScrollBar(), Position::integer(), ThumbSize::integer(), Range::integer(), PageSize::integer(), [Option]) -> ok
+%% Option = {refresh, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollbar.html#wxscrollbarsetscrollbar">external documentation</a>.
+setScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Position,ThumbSize,Range,PageSize, Options)
+ when is_integer(Position),is_integer(ThumbSize),is_integer(Range),is_integer(PageSize),is_list(Options) ->
+ ?CLASS(ThisT,wxScrollBar),
+ MOpts = fun({refresh, Refresh}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Refresh)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxScrollBar_SetScrollbar,
+ <<ThisRef:32/?UI,Position:32/?UI,ThumbSize:32/?UI,Range:32/?UI,PageSize:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxScrollBar()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxScrollBar),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxScrollEvent.erl b/lib/wx/src/gen/wxScrollEvent.erl
new file mode 100644
index 0000000000..52bb5b8347
--- /dev/null
+++ b/lib/wx/src/gen/wxScrollEvent.erl
@@ -0,0 +1,99 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollevent.html">wxScrollEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>scroll_top</em>, <em>scroll_bottom</em>, <em>scroll_lineup</em>, <em>scroll_linedown</em>, <em>scroll_pageup</em>, <em>scroll_pagedown</em>, <em>scroll_thumbtrack</em>, <em>scroll_thumbrelease</em>, <em>scroll_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxScroll(). #wxScroll{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxScrollEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxScrollEvent).
+-include("wxe.hrl").
+-export([getOrientation/1,getPosition/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxScrollEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollevent.html#wxscrolleventgetorientation">external documentation</a>.
+getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollEvent),
+ wxe_util:call(?wxScrollEvent_GetOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollevent.html#wxscrolleventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollEvent),
+ wxe_util:call(?wxScrollEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxScrollWinEvent.erl b/lib/wx/src/gen/wxScrollWinEvent.erl
new file mode 100644
index 0000000000..d87be2c792
--- /dev/null
+++ b/lib/wx/src/gen/wxScrollWinEvent.erl
@@ -0,0 +1,76 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollwinevent.html">wxScrollWinEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>scrollwin_top</em>, <em>scrollwin_bottom</em>, <em>scrollwin_lineup</em>, <em>scrollwin_linedown</em>, <em>scrollwin_pageup</em>, <em>scrollwin_pagedown</em>, <em>scrollwin_thumbtrack</em>, <em>scrollwin_thumbrelease</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxScrollWin(). #wxScrollWin{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxScrollWinEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxScrollWinEvent).
+-include("wxe.hrl").
+-export([getOrientation/1,getPosition/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxScrollWinEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollwinevent.html#wxscrollwineventgetorientation">external documentation</a>.
+getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollWinEvent),
+ wxe_util:call(?wxScrollWinEvent_GetOrientation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrollWinEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrollwinevent.html#wxscrollwineventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrollWinEvent),
+ wxe_util:call(?wxScrollWinEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxScrolledWindow.erl b/lib/wx/src/gen/wxScrolledWindow.erl
new file mode 100644
index 0000000000..d3e250fbe1
--- /dev/null
+++ b/lib/wx/src/gen/wxScrolledWindow.erl
@@ -0,0 +1,590 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html">wxScrolledWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxPanel}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxScrolledWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxScrolledWindow).
+-include("wxe.hrl").
+-export([calcScrolledPosition/2,calcScrolledPosition/3,calcUnscrolledPosition/2,
+ calcUnscrolledPosition/3,destroy/1,doPrepareDC/2,enableScrolling/3,
+ getScrollPixelsPerUnit/1,getViewStart/1,new/0,new/1,new/2,prepareDC/2,
+ scroll/3,setScrollRate/3,setScrollbars/5,setScrollbars/6,setTargetWindow/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxPanel) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxScrolledWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowwxscrolledwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxScrolledWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxScrolledWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxScrolledWindow()
+%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowwxscrolledwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxScrolledWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxScrolledWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowcalcscrolledposition">external documentation</a>.
+calcScrolledPosition(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_CalcScrolledPosition_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> {Xx::integer(),Yy::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowcalcscrolledposition">external documentation</a>.
+calcScrolledPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_CalcScrolledPosition_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowcalcunscrolledposition">external documentation</a>.
+calcUnscrolledPosition(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_CalcUnscrolledPosition_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> {Xx::integer(),Yy::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowcalcunscrolledposition">external documentation</a>.
+calcUnscrolledPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_CalcUnscrolledPosition_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), X_scrolling::bool(), Y_scrolling::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowenablescrolling">external documentation</a>.
+enableScrolling(#wx_ref{type=ThisT,ref=ThisRef},X_scrolling,Y_scrolling)
+ when is_boolean(X_scrolling),is_boolean(Y_scrolling) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:cast(?wxScrolledWindow_EnableScrolling,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(X_scrolling)):32/?UI,(wxe_util:from_bool(Y_scrolling)):32/?UI>>).
+
+%% @spec (This::wxScrolledWindow()) -> {PixelsPerUnitX::integer(),PixelsPerUnitY::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowgetscrollpixelsperunit">external documentation</a>.
+getScrollPixelsPerUnit(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_GetScrollPixelsPerUnit,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowgetviewstart">external documentation</a>.
+getViewStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:call(?wxScrolledWindow_GetViewStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), Dc::wxDC:wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowdopreparedc">external documentation</a>.
+doPrepareDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ ?CLASS(DcT,wxDC),
+ wxe_util:cast(?wxScrolledWindow_DoPrepareDC,
+ <<ThisRef:32/?UI,DcRef:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), Dc::wxDC:wxDC()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowpreparedc">external documentation</a>.
+prepareDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ ?CLASS(DcT,wxDC),
+ wxe_util:cast(?wxScrolledWindow_PrepareDC,
+ <<ThisRef:32/?UI,DcRef:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowscroll">external documentation</a>.
+scroll(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:cast(?wxScrolledWindow_Scroll,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), PixelsPerUnitX::integer(), PixelsPerUnitY::integer(), NoUnitsX::integer(), NoUnitsY::integer()) -> ok
+%% @equiv setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, [])
+setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY)
+ when is_record(This, wx_ref),is_integer(PixelsPerUnitX),is_integer(PixelsPerUnitY),is_integer(NoUnitsX),is_integer(NoUnitsY) ->
+ setScrollbars(This,PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, []).
+
+%% @spec (This::wxScrolledWindow(), PixelsPerUnitX::integer(), PixelsPerUnitY::integer(), NoUnitsX::integer(), NoUnitsY::integer(), [Option]) -> ok
+%% Option = {xPos, integer()} | {yPos, integer()} | {noRefresh, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowsetscrollbars">external documentation</a>.
+setScrollbars(#wx_ref{type=ThisT,ref=ThisRef},PixelsPerUnitX,PixelsPerUnitY,NoUnitsX,NoUnitsY, Options)
+ when is_integer(PixelsPerUnitX),is_integer(PixelsPerUnitY),is_integer(NoUnitsX),is_integer(NoUnitsY),is_list(Options) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ MOpts = fun({xPos, XPos}, Acc) -> [<<1:32/?UI,XPos:32/?UI>>|Acc];
+ ({yPos, YPos}, Acc) -> [<<2:32/?UI,YPos:32/?UI>>|Acc];
+ ({noRefresh, NoRefresh}, Acc) -> [<<3:32/?UI,(wxe_util:from_bool(NoRefresh)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxScrolledWindow_SetScrollbars,
+ <<ThisRef:32/?UI,PixelsPerUnitX:32/?UI,PixelsPerUnitY:32/?UI,NoUnitsX:32/?UI,NoUnitsY:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxScrolledWindow(), Xstep::integer(), Ystep::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowsetscrollrate">external documentation</a>.
+setScrollRate(#wx_ref{type=ThisT,ref=ThisRef},Xstep,Ystep)
+ when is_integer(Xstep),is_integer(Ystep) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ wxe_util:cast(?wxScrolledWindow_SetScrollRate,
+ <<ThisRef:32/?UI,Xstep:32/?UI,Ystep:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow(), Target::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxscrolledwindow.html#wxscrolledwindowsettargetwindow">external documentation</a>.
+setTargetWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TargetT,ref=TargetRef}) ->
+ ?CLASS(ThisT,wxScrolledWindow),
+ ?CLASS(TargetT,wxWindow),
+ wxe_util:cast(?wxScrolledWindow_SetTargetWindow,
+ <<ThisRef:32/?UI,TargetRef:32/?UI>>).
+
+%% @spec (This::wxScrolledWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxScrolledWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxPanel
+%% @hidden
+initDialog(This) -> wxPanel:initDialog(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSetCursorEvent.erl b/lib/wx/src/gen/wxSetCursorEvent.erl
new file mode 100644
index 0000000000..74cc1c1a5a
--- /dev/null
+++ b/lib/wx/src/gen/wxSetCursorEvent.erl
@@ -0,0 +1,98 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html">wxSetCursorEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>set_cursor</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSetCursor(). #wxSetCursor{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSetCursorEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSetCursorEvent).
+-include("wxe.hrl").
+-export([getCursor/1,getX/1,getY/1,hasCursor/1,setCursor/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSetCursorEvent()) -> wxCursor:wxCursor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html#wxsetcursoreventgetcursor">external documentation</a>.
+getCursor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSetCursorEvent),
+ wxe_util:call(?wxSetCursorEvent_GetCursor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSetCursorEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html#wxsetcursoreventgetx">external documentation</a>.
+getX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSetCursorEvent),
+ wxe_util:call(?wxSetCursorEvent_GetX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSetCursorEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html#wxsetcursoreventgety">external documentation</a>.
+getY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSetCursorEvent),
+ wxe_util:call(?wxSetCursorEvent_GetY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSetCursorEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html#wxsetcursoreventhascursor">external documentation</a>.
+hasCursor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSetCursorEvent),
+ wxe_util:call(?wxSetCursorEvent_HasCursor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSetCursorEvent(), Cursor::wxCursor:wxCursor()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsetcursorevent.html#wxsetcursoreventsetcursor">external documentation</a>.
+setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) ->
+ ?CLASS(ThisT,wxSetCursorEvent),
+ ?CLASS(CursorT,wxCursor),
+ wxe_util:cast(?wxSetCursorEvent_SetCursor,
+ <<ThisRef:32/?UI,CursorRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxShowEvent.erl b/lib/wx/src/gen/wxShowEvent.erl
new file mode 100644
index 0000000000..173cd4269a
--- /dev/null
+++ b/lib/wx/src/gen/wxShowEvent.erl
@@ -0,0 +1,77 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxshowevent.html">wxShowEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>show</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxShow(). #wxShow{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxShowEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxShowEvent).
+-include("wxe.hrl").
+-export([getShow/1,setShow/2]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxShowEvent(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxshowevent.html#wxshoweventsetshow">external documentation</a>.
+setShow(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxShowEvent),
+ wxe_util:cast(?wxShowEvent_SetShow,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxShowEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxshowevent.html#wxshoweventgetshow">external documentation</a>.
+getShow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxShowEvent),
+ wxe_util:call(?wxShowEvent_GetShow,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSingleChoiceDialog.erl b/lib/wx/src/gen/wxSingleChoiceDialog.erl
new file mode 100644
index 0000000000..485e7f8be9
--- /dev/null
+++ b/lib/wx/src/gen/wxSingleChoiceDialog.erl
@@ -0,0 +1,571 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html">wxSingleChoiceDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSingleChoiceDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSingleChoiceDialog).
+-include("wxe.hrl").
+-export([destroy/1,getSelection/1,getStringSelection/1,new/0,new/4,new/5,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSingleChoiceDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html#wxsinglechoicedialogwxsinglechoicedialog">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSingleChoiceDialog_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]]) -> wxSingleChoiceDialog()
+%% @equiv new(Parent,Message,Caption,Choices, [])
+new(Parent,Message,Caption,Choices)
+ when is_record(Parent, wx_ref),is_list(Message),is_list(Caption),is_list(Choices) ->
+ new(Parent,Message,Caption,Choices, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]], [Option]) -> wxSingleChoiceDialog()
+%% Option = {style, integer()} | {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html#wxsinglechoicedialogwxsinglechoicedialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Message,Caption,Choices, Options)
+ when is_list(Message),is_list(Caption),is_list(Choices),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ Caption_UC = unicode:characters_to_binary([Caption,0]),
+ Choices_UCA = [unicode:characters_to_binary([ChoicesTemp,0]) ||
+ ChoicesTemp <- Choices],
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSingleChoiceDialog_new_5,
+ <<ParentRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((4+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8,(length(Choices_UCA)):32/?UI, (<< <<(byte_size(UC_Str)):32/?UI, UC_Str/binary>>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxSingleChoiceDialog()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html#wxsinglechoicedialoggetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSingleChoiceDialog),
+ wxe_util:call(?wxSingleChoiceDialog_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSingleChoiceDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html#wxsinglechoicedialoggetstringselection">external documentation</a>.
+getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSingleChoiceDialog),
+ wxe_util:call(?wxSingleChoiceDialog_GetStringSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSingleChoiceDialog(), Sel::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsinglechoicedialog.html#wxsinglechoicedialogsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},Sel)
+ when is_integer(Sel) ->
+ ?CLASS(ThisT,wxSingleChoiceDialog),
+ wxe_util:cast(?wxSingleChoiceDialog_SetSelection,
+ <<ThisRef:32/?UI,Sel:32/?UI>>).
+
+%% @spec (This::wxSingleChoiceDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSingleChoiceDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSizeEvent.erl b/lib/wx/src/gen/wxSizeEvent.erl
new file mode 100644
index 0000000000..e9e337df33
--- /dev/null
+++ b/lib/wx/src/gen/wxSizeEvent.erl
@@ -0,0 +1,69 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeevent.html">wxSizeEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>size</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSize(). #wxSize{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSizeEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSizeEvent).
+-include("wxe.hrl").
+-export([getSize/1]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSizeEvent()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeevent.html#wxsizeeventgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizeEvent),
+ wxe_util:call(?wxSizeEvent_GetSize,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSizer.erl b/lib/wx/src/gen/wxSizer.erl
new file mode 100644
index 0000000000..4086d34b19
--- /dev/null
+++ b/lib/wx/src/gen/wxSizer.erl
@@ -0,0 +1,761 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html">wxSizer</a>.
+%% @type wxSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSizer).
+-include("wxe.hrl").
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
+ getItem/3,getMinSize/1,getPosition/1,getSize/1,hide/2,hide/3,insert/3,
+ insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,insertStretchSpacer/3,
+ isShown/2,layout/1,prepend/2,prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1,
+ prependStretchSpacer/2,recalcSizes/1,remove/2,replace/3,replace/4,
+ setDimension/5,setItemMinSize/3,setItemMinSize/4,setMinSize/2,setMinSize/3,
+ setSizeHints/2,setVirtualSizeHints/2,show/2,show/3]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> wxSizerItem:wxSizerItem()
+%% @equiv add(This,Window, [])
+add(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ add(This,Window, []).
+
+%% @spec (This::wxSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizeradd">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% add(This::wxSizer(), Width::integer(), Height::integer()) -> add(This,Width,Height, []) </c></p>
+%% <p><c>
+%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+%% <p><c>
+%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+add(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ add(This,Width,Height, []);
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Add_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Add_2_0
+ end,
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>);
+add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Add_2_3;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Add_2_2
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,FlagsRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizeradd">external documentation</a>.
+add(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_Add_3,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizeraddspacer">external documentation</a>.
+addSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size)
+ when is_integer(Size) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_AddSpacer,
+ <<ThisRef:32/?UI,Size:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> wxSizerItem:wxSizerItem()
+%% @equiv addStretchSpacer(This, [])
+addStretchSpacer(This)
+ when is_record(This, wx_ref) ->
+ addStretchSpacer(This, []).
+
+%% @spec (This::wxSizer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {prop, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizeraddstretchspacer">external documentation</a>.
+addStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_AddStretchSpacer,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizercalcmin">external documentation</a>.
+calcMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_CalcMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> ok
+%% @equiv clear(This, [])
+clear(This)
+ when is_record(This, wx_ref) ->
+ clear(This, []).
+
+%% @spec (This::wxSizer(), [Option]) -> ok
+%% Option = {delete_windows, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({delete_windows, Delete_windows}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Delete_windows)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxSizer_Clear,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerdetach">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% detach(This::wxSizer(), Index::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% detach(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() </c>
+%% </p>
+detach(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_Detach_1_0,
+ <<ThisRef:32/?UI,Index:32/?UI>>);
+detach(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Detach_1_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Detach_1_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerfit">external documentation</a>.
+fit(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:call(?wxSizer_Fit,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerfitinside">external documentation</a>.
+fitInside(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:cast(?wxSizer_FitInside,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> [wxSizerItem:wxSizerItem()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetchildren">external documentation</a>.
+getChildren(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_GetChildren,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::term()|integer()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetitem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% getItem(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> getItem(This,Window, []) </c></p>
+%% <p><c>
+%% getItem(This::wxSizer(), Index::integer()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+getItem(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ getItem(This,Window, []);
+getItem(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_GetItem_1,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {recursive, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetitem">external documentation</a>.
+getItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_GetItem_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_GetItem_2_0
+ end,
+ MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSizer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_GetSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizergetminsize">external documentation</a>.
+getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_GetMinSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::term()|integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerhide">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% hide(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> hide(This,Window, []) </c></p>
+%% <p><c>
+%% hide(This::wxSizer(), Index::integer()) -> bool() </c>
+%% </p>
+
+hide(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ hide(This,Window, []);
+hide(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_Hide_1,
+ <<ThisRef:32/?UI,Index:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool()
+%% Option = {recursive, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerhide">external documentation</a>.
+hide(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Hide_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Hide_2_0
+ end,
+ MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSizer(),Index::integer(),X::term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerinsert">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer()) -> insert(This,Index,Window, []) </c></p>
+%% <p><c>
+%% insert(This::wxSizer(), Index::integer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+insert(This,Index,Window)
+ when is_record(This, wx_ref),is_integer(Index),is_record(Window, wx_ref) ->
+ insert(This,Index,Window, []);
+insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=ItemT,ref=ItemRef})
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(ItemT,wxSizerItem),
+ wxe_util:call(?wxSizer_Insert_2,
+ <<ThisRef:32/?UI,Index:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),Index::integer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerinsert">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insert(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> insert(This,Index,Width,Height, []) </c></p>
+%% <p><c>
+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+%% <p><c>
+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+insert(This,Index,Width,Height)
+ when is_record(This, wx_ref),is_integer(Index),is_integer(Width),is_integer(Height) ->
+ insert(This,Index,Width,Height, []);
+insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_integer(Index),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Insert_3_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Insert_3_0
+ end,
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,Index:32/?UI,WindowRef:32/?UI, 0:32,BinOpt/binary>>);
+insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef})
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Insert_3_3;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Insert_3_2
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,Index:32/?UI,WindowRef:32/?UI,FlagsRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Index::integer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerinsert">external documentation</a>.
+insert(#wx_ref{type=ThisT,ref=ThisRef},Index,Width,Height, Options)
+ when is_integer(Index),is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_Insert_4,
+ <<ThisRef:32/?UI,Index:32/?UI,Width:32/?UI,Height:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSizer(), Index::integer(), Size::integer()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerinsertspacer">external documentation</a>.
+insertSpacer(#wx_ref{type=ThisT,ref=ThisRef},Index,Size)
+ when is_integer(Index),is_integer(Size) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_InsertSpacer,
+ <<ThisRef:32/?UI,Index:32/?UI,Size:32/?UI>>).
+
+%% @spec (This::wxSizer(), Index::integer()) -> wxSizerItem:wxSizerItem()
+%% @equiv insertStretchSpacer(This,Index, [])
+insertStretchSpacer(This,Index)
+ when is_record(This, wx_ref),is_integer(Index) ->
+ insertStretchSpacer(This,Index, []).
+
+%% @spec (This::wxSizer(), Index::integer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {prop, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerinsertstretchspacer">external documentation</a>.
+insertStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef},Index, Options)
+ when is_integer(Index),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_InsertStretchSpacer,
+ <<ThisRef:32/?UI,Index:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSizer(),X::integer()|term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerisshown">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% isShown(This::wxSizer(), Index::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% isShown(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() </c>
+%% </p>
+isShown(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_IsShown_1_0,
+ <<ThisRef:32/?UI,Index:32/?UI>>);
+isShown(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_IsShown_1_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_IsShown_1_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerlayout">external documentation</a>.
+layout(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_Layout,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerprepend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> prepend(This,Window, []) </c></p>
+%% <p><c>
+%% prepend(This::wxSizer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+prepend(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ prepend(This,Window, []);
+prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(ItemT,wxSizerItem),
+ wxe_util:call(?wxSizer_Prepend_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerprepend">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% prepend(This::wxSizer(), Width::integer(), Height::integer()) -> prepend(This,Width,Height, []) </c></p>
+%% <p><c>
+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() </c>
+%%<br /> Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% </p>
+%% <p><c>
+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() </c>
+%% </p>
+
+prepend(This,Width,Height)
+ when is_record(This, wx_ref),is_integer(Width),is_integer(Height) ->
+ prepend(This,Width,Height, []);
+prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Prepend_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Prepend_2_0
+ end,
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>);
+prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Prepend_2_3;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizer_Prepend_2_2
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,FlagsRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerprepend">external documentation</a>.
+prepend(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options)
+ when is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc];
+ ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc];
+ ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_Prepend_3,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerprependspacer">external documentation</a>.
+prependSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size)
+ when is_integer(Size) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_PrependSpacer,
+ <<ThisRef:32/?UI,Size:32/?UI>>).
+
+%% @spec (This::wxSizer()) -> wxSizerItem:wxSizerItem()
+%% @equiv prependStretchSpacer(This, [])
+prependStretchSpacer(This)
+ when is_record(This, wx_ref) ->
+ prependStretchSpacer(This, []).
+
+%% @spec (This::wxSizer(), [Option]) -> wxSizerItem:wxSizerItem()
+%% Option = {prop, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerprependstretchspacer">external documentation</a>.
+prependStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_PrependStretchSpacer,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerrecalcsizes">external documentation</a>.
+recalcSizes(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_RecalcSizes,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|wxSizer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerremove">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% remove(This::wxSizer(), Index::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% remove(This::wxSizer(), Sizer::wxSizer()) -> bool() </c>
+%% </p>
+remove(#wx_ref{type=ThisT,ref=ThisRef},Index)
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_Remove_1_0,
+ <<ThisRef:32/?UI,Index:32/?UI>>);
+remove(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(SizerT,wxSizer),
+ wxe_util:call(?wxSizer_Remove_1_1,
+ <<ThisRef:32/?UI,SizerRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::term()|integer(),X::term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerreplace">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% replace(This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer()) -> replace(This,Oldwin,Newwin, []) </c></p>
+%% <p><c>
+%% replace(This::wxSizer(), Index::integer(), Newitem::wxSizerItem:wxSizerItem()) -> bool() </c>
+%% </p>
+
+replace(This,Oldwin,Newwin)
+ when is_record(This, wx_ref),is_record(Oldwin, wx_ref),is_record(Newwin, wx_ref) ->
+ replace(This,Oldwin,Newwin, []);
+replace(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=NewitemT,ref=NewitemRef})
+ when is_integer(Index) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(NewitemT,wxSizerItem),
+ wxe_util:call(?wxSizer_Replace_2,
+ <<ThisRef:32/?UI,Index:32/?UI,NewitemRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool()
+%% Option = {recursive, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizerreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=OldwinT,ref=OldwinRef},#wx_ref{type=NewwinT,ref=NewwinRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ OldwinOP = case ?CLASS_T(OldwinT,wxWindow) of
+ true ->
+ ?CLASS(NewwinT,wxWindow),
+ ?wxSizer_Replace_3_1;
+ _ -> ?CLASS(OldwinT,wxSizer),
+ ?CLASS(NewwinT,wxSizer),
+ ?wxSizer_Replace_3_0
+ end,
+ MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(OldwinOP,
+ <<ThisRef:32/?UI,OldwinRef:32/?UI,NewwinRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizer(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetdimension">external documentation</a>.
+setDimension(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Width,Height)
+ when is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_SetDimension,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxSizer(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetminsize">external documentation</a>.
+setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_SetMinSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizer(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetminsize">external documentation</a>.
+setMinSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_SetMinSize_2,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|term(),Size::{W::integer(),H::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetitemminsize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setItemMinSize(This::wxSizer(), Index::integer(), Size::{W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+%% <p><c>
+%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Size::{W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},Index,{SizeW,SizeH})
+ when is_integer(Index),is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_SetItemMinSize_2_0,
+ <<ThisRef:32/?UI,Index:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>);
+setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_SetItemMinSize_2_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_SetItemMinSize_2_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|term(),Width::integer(),Height::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetitemminsize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setItemMinSize(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> bool() </c>
+%% </p>
+%% <p><c>
+%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Width::integer(), Height::integer()) -> bool() </c>
+%% </p>
+setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},Index,Width,Height)
+ when is_integer(Index),is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:call(?wxSizer_SetItemMinSize_3_0,
+ <<ThisRef:32/?UI,Index:32/?UI,Width:32/?UI,Height:32/?UI>>);
+setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_SetItemMinSize_3_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_SetItemMinSize_3_1
+ end,
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetsizehints">external documentation</a>.
+setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:cast(?wxSizer_SetSizeHints,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizersetvirtualsizehints">external documentation</a>.
+setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizer),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:cast(?wxSizer_SetVirtualSizeHints,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|term()|bool()) -> bool()|bool()|ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizershow">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% show(This::wxSizer(), Index::integer()) -> show(This,Index, []) </c></p>
+%% <p><c>
+%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> show(This,Window, []) </c></p>
+%% <p><c>
+%% show(This::wxSizer(), Show::bool()) -> ok </c>
+%% </p>
+
+show(This,Index)
+ when is_record(This, wx_ref),is_integer(Index) ->
+ show(This,Index, []);
+
+show(This,Window)
+ when is_record(This, wx_ref),is_record(Window, wx_ref) ->
+ show(This,Window, []);
+show(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxSizer),
+ wxe_util:cast(?wxSizer_Show_1,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxSizer(),X::integer()|term(),[Option]) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizer.html#wxsizershow">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% show(This::wxSizer(), Index::integer(), [Option]) -> bool() </c>
+%%<br /> Option = {show, bool()}
+%% </p>
+%% <p><c>
+%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() </c>
+%%<br /> Option = {show, bool()} | {recursive, bool()}
+%% </p>
+show(#wx_ref{type=ThisT,ref=ThisRef},Index, Options)
+ when is_integer(Index),is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizer_Show_2_0,
+ <<ThisRef:32/?UI,Index:32/?UI, BinOpt/binary>>);
+show(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizer),
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?wxSizer_Show_2_2;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?wxSizer_Show_2_1
+ end,
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ ({recursive, Recursive}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(WindowOP,
+ <<ThisRef:32/?UI,WindowRef:32/?UI, BinOpt/binary>>).
+
diff --git a/lib/wx/src/gen/wxSizerFlags.erl b/lib/wx/src/gen/wxSizerFlags.erl
new file mode 100644
index 0000000000..898b2d42ed
--- /dev/null
+++ b/lib/wx/src/gen/wxSizerFlags.erl
@@ -0,0 +1,134 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html">wxSizerFlags</a>.
+%% @type wxSizerFlags(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSizerFlags).
+-include("wxe.hrl").
+-export([align/2,border/1,border/2,border/3,center/1,centre/1,destroy/1,expand/1,
+ left/1,new/0,new/1,proportion/2,right/1]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSizerFlags()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxSizerFlags()
+%% Option = {proportion, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagswxsizerflags">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSizerFlags_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxSizerFlags(), Alignment::integer()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsalign">external documentation</a>.
+align(#wx_ref{type=ThisT,ref=ThisRef},Alignment)
+ when is_integer(Alignment) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Align,
+ <<ThisRef:32/?UI,Alignment:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @equiv border(This, [])
+border(This)
+ when is_record(This, wx_ref) ->
+ border(This, []).
+
+%% @spec (This::wxSizerFlags(), [Option]) -> wxSizerFlags()
+%% Option = {direction, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsborder">external documentation</a>.
+border(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ MOpts = fun({direction, Direction}, Acc) -> [<<1:32/?UI,Direction:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSizerFlags_Border_1,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSizerFlags(), Direction::integer(), BorderInPixels::integer()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsborder">external documentation</a>.
+border(#wx_ref{type=ThisT,ref=ThisRef},Direction,BorderInPixels)
+ when is_integer(Direction),is_integer(BorderInPixels) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Border_2,
+ <<ThisRef:32/?UI,Direction:32/?UI,BorderInPixels:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagscenter">external documentation</a>.
+center(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Center,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagscentre">external documentation</a>.
+centre(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Centre,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsexpand">external documentation</a>.
+expand(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Expand,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsleft">external documentation</a>.
+left(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Left,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerFlags(), Proportion::integer()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsproportion">external documentation</a>.
+proportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion)
+ when is_integer(Proportion) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Proportion,
+ <<ThisRef:32/?UI,Proportion:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> wxSizerFlags()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizerflags.html#wxsizerflagsright">external documentation</a>.
+right(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerFlags),
+ wxe_util:call(?wxSizerFlags_Right,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerFlags()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSizerFlags),
+ wxe_util:destroy(?wxSizerFlags_destroy,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxSizerItem.erl b/lib/wx/src/gen/wxSizerItem.erl
new file mode 100644
index 0000000000..e8391d859a
--- /dev/null
+++ b/lib/wx/src/gen/wxSizerItem.erl
@@ -0,0 +1,354 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html">wxSizerItem</a>.
+%% @type wxSizerItem(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSizerItem).
+-include("wxe.hrl").
+-export([calcMin/1,deleteWindows/1,destroy/1,detachSizer/1,getBorder/1,getFlag/1,
+ getMinSize/1,getPosition/1,getProportion/1,getRatio/1,getRect/1,getSize/1,
+ getSizer/1,getSpacer/1,getUserData/1,getWindow/1,isShown/1,isSizer/1,
+ isSpacer/1,isWindow/1,new/0,new/2,new/3,new/5,new/6,setBorder/2,setDimension/3,
+ setFlag/2,setInitSize/3,setMinSize/2,setMinSize/3,setProportion/2,
+ setRatio/2,setRatio/3,setSizer/2,setSpacer/2,setSpacer/3,setWindow/2,
+ show/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSizerItem_new_0,
+ <<>>).
+
+%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>.
+new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) ->
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizerItem_new_2_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?CLASS(FlagsT,wxSizerFlags),
+ ?wxSizerItem_new_2_0
+ end,
+ wxe_util:construct(WindowOP,
+ <<WindowRef:32/?UI,FlagsRef:32/?UI>>).
+
+%% @spec (Width::integer(), Height::integer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>.
+new(Width,Height,#wx_ref{type=FlagsT,ref=FlagsRef})
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(FlagsT,wxSizerFlags),
+ wxe_util:construct(?wxSizerItem_new_3,
+ <<Width:32/?UI,Height:32/?UI,FlagsRef:32/?UI>>).
+
+%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>.
+new(#wx_ref{type=WindowT,ref=WindowRef},Proportion,Flag,Border,#wx_ref{type=UserDataT,ref=UserDataRef})
+ when is_integer(Proportion),is_integer(Flag),is_integer(Border) ->
+ WindowOP = case ?CLASS_T(WindowT,wxWindow) of
+ true ->
+ ?CLASS(UserDataT,wx),
+ ?wxSizerItem_new_5_1;
+ _ -> ?CLASS(WindowT,wxSizer),
+ ?CLASS(UserDataT,wx),
+ ?wxSizerItem_new_5_0
+ end,
+ wxe_util:construct(WindowOP,
+ <<WindowRef:32/?UI,Proportion:32/?UI,Flag:32/?UI,Border:32/?UI,UserDataRef:32/?UI>>).
+
+%% @spec (Width::integer(), Height::integer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>.
+new(Width,Height,Proportion,Flag,Border,#wx_ref{type=UserDataT,ref=UserDataRef})
+ when is_integer(Width),is_integer(Height),is_integer(Proportion),is_integer(Flag),is_integer(Border) ->
+ ?CLASS(UserDataT,wx),
+ wxe_util:construct(?wxSizerItem_new_6,
+ <<Width:32/?UI,Height:32/?UI,Proportion:32/?UI,Flag:32/?UI,Border:32/?UI,UserDataRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemcalcmin">external documentation</a>.
+calcMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_CalcMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemdeletewindows">external documentation</a>.
+deleteWindows(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_DeleteWindows,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemdetachsizer">external documentation</a>.
+detachSizer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_DetachSizer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetborder">external documentation</a>.
+getBorder(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetBorder,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetflag">external documentation</a>.
+getFlag(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetFlag,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetminsize">external documentation</a>.
+getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetMinSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetproportion">external documentation</a>.
+getProportion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetProportion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> float()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetratio">external documentation</a>.
+getRatio(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetRatio,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetrect">external documentation</a>.
+getRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> wxSizer:wxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetsizer">external documentation</a>.
+getSizer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetSizer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetspacer">external documentation</a>.
+getSpacer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetSpacer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetuserdata">external documentation</a>.
+getUserData(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetUserData,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetwindow">external documentation</a>.
+getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_GetWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemissizer">external documentation</a>.
+isSizer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_IsSizer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemisshown">external documentation</a>.
+isShown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_IsShown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemisspacer">external documentation</a>.
+isSpacer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_IsSpacer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemiswindow">external documentation</a>.
+isWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:call(?wxSizerItem_IsWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Border::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetborder">external documentation</a>.
+setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border)
+ when is_integer(Border) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetBorder,
+ <<ThisRef:32/?UI,Border:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetdimension">external documentation</a>.
+setDimension(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY},{SizeW,SizeH})
+ when is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetDimension,
+ <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Flag::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetflag">external documentation</a>.
+setFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag)
+ when is_integer(Flag) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetFlag,
+ <<ThisRef:32/?UI,Flag:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetinitsize">external documentation</a>.
+setInitSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetInitSize,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetminsize">external documentation</a>.
+setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetMinSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetminsize">external documentation</a>.
+setMinSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetMinSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Proportion::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetproportion">external documentation</a>.
+setProportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion)
+ when is_integer(Proportion) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetProportion,
+ <<ThisRef:32/?UI,Proportion:32/?UI>>).
+
+%% @spec (This::wxSizerItem(),X::float()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetratio">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setRatio(This::wxSizerItem(), Ratio::float()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setRatio(This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok </c>
+%% </p>
+setRatio(#wx_ref{type=ThisT,ref=ThisRef},Ratio)
+ when is_float(Ratio) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetRatio_1_0,
+ <<ThisRef:32/?UI,Ratio:32/?F>>);
+setRatio(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetRatio_1_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetratio">external documentation</a>.
+setRatio(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetRatio_2,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Sizer::wxSizer:wxSizer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetsizer">external documentation</a>.
+setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ ?CLASS(SizerT,wxSizer),
+ wxe_util:cast(?wxSizerItem_SetSizer,
+ <<ThisRef:32/?UI,SizerRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetspacer">external documentation</a>.
+setSpacer(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetSpacer_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetspacer">external documentation</a>.
+setSpacer(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_SetSpacer_2,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Window::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetwindow">external documentation</a>.
+setWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSizerItem),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:cast(?wxSizerItem_SetWindow,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSizerItem(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxSizerItem),
+ wxe_util:cast(?wxSizerItem_Show,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxSizerItem()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSizerItem),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxSlider.erl b/lib/wx/src/gen/wxSlider.erl
new file mode 100644
index 0000000000..694630859b
--- /dev/null
+++ b/lib/wx/src/gen/wxSlider.erl
@@ -0,0 +1,579 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html">wxSlider</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSlider(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSlider).
+-include("wxe.hrl").
+-export([create/6,create/7,destroy/1,getLineSize/1,getMax/1,getMin/1,getPageSize/1,
+ getThumbLength/1,getValue/1,new/0,new/5,new/6,setLineSize/2,setPageSize/2,
+ setRange/3,setThumbLength/2,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSlider()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxsliderwxslider">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSlider_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Value::integer(), MinValue::integer(), MaxValue::integer()) -> wxSlider()
+%% @equiv new(Parent,Id,Value,MinValue,MaxValue, [])
+new(Parent,Id,Value,MinValue,MaxValue)
+ when is_record(Parent, wx_ref),is_integer(Id),is_integer(Value),is_integer(MinValue),is_integer(MaxValue) ->
+ new(Parent,Id,Value,MinValue,MaxValue, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Value::integer(), MinValue::integer(), MaxValue::integer(), [Option]) -> wxSlider()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxsliderwxslider">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Value,MinValue,MaxValue, Options)
+ when is_integer(Id),is_integer(Value),is_integer(MinValue),is_integer(MaxValue),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSlider_new_6,
+ <<ParentRef:32/?UI,Id:32/?UI,Value:32/?UI,MinValue:32/?UI,MaxValue:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSlider(), Parent::wxWindow:wxWindow(), Id::integer(), Value::integer(), MinValue::integer(), MaxValue::integer()) -> bool()
+%% @equiv create(This,Parent,Id,Value,MinValue,MaxValue, [])
+create(This,Parent,Id,Value,MinValue,MaxValue)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_integer(Value),is_integer(MinValue),is_integer(MaxValue) ->
+ create(This,Parent,Id,Value,MinValue,MaxValue, []).
+
+%% @spec (This::wxSlider(), Parent::wxWindow:wxWindow(), Id::integer(), Value::integer(), MinValue::integer(), MaxValue::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidercreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Value,MinValue,MaxValue, Options)
+ when is_integer(Id),is_integer(Value),is_integer(MinValue),is_integer(MaxValue),is_list(Options) ->
+ ?CLASS(ThisT,wxSlider),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSlider_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,Value:32/?UI,MinValue:32/?UI,MaxValue:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetlinesize">external documentation</a>.
+getLineSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetLineSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetmax">external documentation</a>.
+getMax(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetMax,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetmin">external documentation</a>.
+getMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetpagesize">external documentation</a>.
+getPageSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetPageSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetthumblength">external documentation</a>.
+getThumbLength(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetThumbLength,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidergetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:call(?wxSlider_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSlider(), LineSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidersetlinesize">external documentation</a>.
+setLineSize(#wx_ref{type=ThisT,ref=ThisRef},LineSize)
+ when is_integer(LineSize) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:cast(?wxSlider_SetLineSize,
+ <<ThisRef:32/?UI,LineSize:32/?UI>>).
+
+%% @spec (This::wxSlider(), PageSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidersetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},PageSize)
+ when is_integer(PageSize) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:cast(?wxSlider_SetPageSize,
+ <<ThisRef:32/?UI,PageSize:32/?UI>>).
+
+%% @spec (This::wxSlider(), MinValue::integer(), MaxValue::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidersetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},MinValue,MaxValue)
+ when is_integer(MinValue),is_integer(MaxValue) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:cast(?wxSlider_SetRange,
+ <<ThisRef:32/?UI,MinValue:32/?UI,MaxValue:32/?UI>>).
+
+%% @spec (This::wxSlider(), LenPixels::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidersetthumblength">external documentation</a>.
+setThumbLength(#wx_ref{type=ThisT,ref=ThisRef},LenPixels)
+ when is_integer(LenPixels) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:cast(?wxSlider_SetThumbLength,
+ <<ThisRef:32/?UI,LenPixels:32/?UI>>).
+
+%% @spec (This::wxSlider(), Value::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxslider.html#wxslidersetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
+ when is_integer(Value) ->
+ ?CLASS(ThisT,wxSlider),
+ wxe_util:cast(?wxSlider_SetValue,
+ <<ThisRef:32/?UI,Value:32/?UI>>).
+
+%% @spec (This::wxSlider()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSlider),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSpinButton.erl b/lib/wx/src/gen/wxSpinButton.erl
new file mode 100644
index 0000000000..1cc59ec6aa
--- /dev/null
+++ b/lib/wx/src/gen/wxSpinButton.erl
@@ -0,0 +1,533 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html">wxSpinButton</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSpinButton(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSpinButton).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getMax/1,getMin/1,getValue/1,new/0,new/1,
+ new/2,setRange/3,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSpinButton()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttonwxspinbutton">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSpinButton_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxSpinButton()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSpinButton()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttonwxspinbutton">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSpinButton_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSpinButton(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxSpinButton(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttoncreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSpinButton),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSpinButton_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSpinButton()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttongetmax">external documentation</a>.
+getMax(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinButton),
+ wxe_util:call(?wxSpinButton_GetMax,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinButton()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttongetmin">external documentation</a>.
+getMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinButton),
+ wxe_util:call(?wxSpinButton_GetMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinButton()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttongetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinButton),
+ wxe_util:call(?wxSpinButton_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinButton(), MinVal::integer(), MaxVal::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttonsetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},MinVal,MaxVal)
+ when is_integer(MinVal),is_integer(MaxVal) ->
+ ?CLASS(ThisT,wxSpinButton),
+ wxe_util:cast(?wxSpinButton_SetRange,
+ <<ThisRef:32/?UI,MinVal:32/?UI,MaxVal:32/?UI>>).
+
+%% @spec (This::wxSpinButton(), Value::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinbutton.html#wxspinbuttonsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
+ when is_integer(Value) ->
+ ?CLASS(ThisT,wxSpinButton),
+ wxe_util:cast(?wxSpinButton_SetValue,
+ <<ThisRef:32/?UI,Value:32/?UI>>).
+
+%% @spec (This::wxSpinButton()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSpinButton),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSpinCtrl.erl b/lib/wx/src/gen/wxSpinCtrl.erl
new file mode 100644
index 0000000000..bed2d733a3
--- /dev/null
+++ b/lib/wx/src/gen/wxSpinCtrl.erl
@@ -0,0 +1,562 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html">wxSpinCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSpinCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSpinCtrl).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getMax/1,getMin/1,getValue/1,new/0,new/1,
+ new/2,setRange/3,setSelection/3,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSpinCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlwxspinctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSpinCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxSpinCtrl()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSpinCtrl()
+%% Option = {id, integer()} | {value, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {min, integer()} | {max, integer()} | {initial, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlwxspinctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<2:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({min, Min}, Acc) -> [<<6:32/?UI,Min:32/?UI>>|Acc];
+ ({max, Max}, Acc) -> [<<7:32/?UI,Max:32/?UI>>|Acc];
+ ({initial, Initial}, Acc) -> [<<8:32/?UI,Initial:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSpinCtrl_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSpinCtrl(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxSpinCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {value, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {min, integer()} | {max, integer()} | {initial, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<2:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<3:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<4:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<5:32/?UI,Style:32/?UI>>|Acc];
+ ({min, Min}, Acc) -> [<<6:32/?UI,Min:32/?UI>>|Acc];
+ ({max, Max}, Acc) -> [<<7:32/?UI,Max:32/?UI>>|Acc];
+ ({initial, Initial}, Acc) -> [<<8:32/?UI,Initial:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSpinCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSpinCtrl(),X::integer()|string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlsetvalue">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setValue(This::wxSpinCtrl(), Value::integer()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setValue(This::wxSpinCtrl(), Text::string()) -> ok </c>
+%% </p>
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
+ when is_integer(Value) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:cast(?wxSpinCtrl_SetValue_1_0,
+ <<ThisRef:32/?UI,Value:32/?UI>>);
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxSpinCtrl_SetValue_1_1,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxSpinCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:call(?wxSpinCtrl_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinCtrl(), MinVal::integer(), MaxVal::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlsetrange">external documentation</a>.
+setRange(#wx_ref{type=ThisT,ref=ThisRef},MinVal,MaxVal)
+ when is_integer(MinVal),is_integer(MaxVal) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:cast(?wxSpinCtrl_SetRange,
+ <<ThisRef:32/?UI,MinVal:32/?UI,MaxVal:32/?UI>>).
+
+%% @spec (This::wxSpinCtrl(), From::integer(), To::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:cast(?wxSpinCtrl_SetSelection,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxSpinCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlgetmin">external documentation</a>.
+getMin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:call(?wxSpinCtrl_GetMin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrlgetmax">external documentation</a>.
+getMax(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinCtrl),
+ wxe_util:call(?wxSpinCtrl_GetMax,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSpinCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSpinEvent.erl b/lib/wx/src/gen/wxSpinEvent.erl
new file mode 100644
index 0000000000..2c44b3c2a3
--- /dev/null
+++ b/lib/wx/src/gen/wxSpinEvent.erl
@@ -0,0 +1,109 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinevent.html">wxSpinEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_spinctrl_updated</em>, <em>spin_up</em>, <em>spin_down</em>, <em>spin</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSpin(). #wxSpin{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSpinEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSpinEvent).
+-include("wxe.hrl").
+-export([getPosition/1,setPosition/2]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSpinEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinevent.html#wxspineventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSpinEvent),
+ wxe_util:call(?wxSpinEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSpinEvent(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxspinevent.html#wxspineventsetposition">external documentation</a>.
+setPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxSpinEvent),
+ wxe_util:cast(?wxSpinEvent_SetPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSplashScreen.erl b/lib/wx/src/gen/wxSplashScreen.erl
new file mode 100644
index 0000000000..8fe543c4e8
--- /dev/null
+++ b/lib/wx/src/gen/wxSplashScreen.erl
@@ -0,0 +1,582 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplashscreen.html">wxSplashScreen</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxFrame}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSplashScreen(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSplashScreen).
+-include("wxe.hrl").
+-export([destroy/1,getSplashStyle/1,getTimeout/1,new/0,new/5,new/6]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createStatusBar/1,createStatusBar/2,createToolBar/1,createToolBar/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientAreaOrigin/1,
+ getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1,
+ getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1,
+ getGrandParent/1,getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,
+ getLabel/1,getMaxSize/1,getMenuBar/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getStatusBar/1,
+ getStatusBarPane/1,getTextExtent/2,getTextExtent/3,getTitle/1,getToolBar/1,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isRetained/1,isShown/1,isTopLevel/1,layout/1,
+ lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,maximize/2,
+ move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,processCommand/2,
+ raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,
+ removeChild/2,reparent/2,requestUserAttention/1,requestUserAttention/2,
+ screenToClient/1,screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,
+ scrollWindow/4,sendSizeEvent/1,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setIcon/2,setIcons/2,setId/2,setLabel/2,setMaxSize/2,
+ setMenuBar/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,
+ setOwnForegroundColour/2,setPalette/2,setScrollPos/3,setScrollPos/4,
+ setScrollbar/5,setScrollbar/6,setShape/2,setSize/2,setSize/3,setSize/5,
+ setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,setSizer/2,
+ setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setStatusBar/2,setStatusBarPane/2,
+ setStatusText/2,setStatusText/3,setStatusWidths/2,setThemeEnabled/2,
+ setTitle/2,setToolBar/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxFrame) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSplashScreen()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplashscreen.html#wxsplashscreenwxsplashscreen">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSplashScreen_new_0,
+ <<>>).
+
+%% @spec (Bitmap::wxBitmap:wxBitmap(), SplashStyle::integer(), Milliseconds::integer(), Parent::wxWindow:wxWindow(), Id::integer()) -> wxSplashScreen()
+%% @equiv new(Bitmap,SplashStyle,Milliseconds,Parent,Id, [])
+new(Bitmap,SplashStyle,Milliseconds,Parent,Id)
+ when is_record(Bitmap, wx_ref),is_integer(SplashStyle),is_integer(Milliseconds),is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Bitmap,SplashStyle,Milliseconds,Parent,Id, []).
+
+%% @spec (Bitmap::wxBitmap:wxBitmap(), SplashStyle::integer(), Milliseconds::integer(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxSplashScreen()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplashscreen.html#wxsplashscreenwxsplashscreen">external documentation</a>.
+new(#wx_ref{type=BitmapT,ref=BitmapRef},SplashStyle,Milliseconds,#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(SplashStyle),is_integer(Milliseconds),is_integer(Id),is_list(Options) ->
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSplashScreen_new_6,
+ <<BitmapRef:32/?UI,SplashStyle:32/?UI,Milliseconds:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSplashScreen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplashscreen.html#wxsplashscreengetsplashstyle">external documentation</a>.
+getSplashStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplashScreen),
+ wxe_util:call(?wxSplashScreen_GetSplashStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplashScreen()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplashscreen.html#wxsplashscreengettimeout">external documentation</a>.
+getTimeout(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplashScreen),
+ wxe_util:call(?wxSplashScreen_GetTimeout,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplashScreen()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSplashScreen),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxFrame
+%% @hidden
+setToolBar(This,Toolbar) -> wxFrame:setToolBar(This,Toolbar).
+%% @hidden
+setStatusWidths(This,Widths_field) -> wxFrame:setStatusWidths(This,Widths_field).
+%% @hidden
+setStatusText(This,Text, Options) -> wxFrame:setStatusText(This,Text, Options).
+%% @hidden
+setStatusText(This,Text) -> wxFrame:setStatusText(This,Text).
+%% @hidden
+setStatusBarPane(This,N) -> wxFrame:setStatusBarPane(This,N).
+%% @hidden
+setStatusBar(This,Statbar) -> wxFrame:setStatusBar(This,Statbar).
+%% @hidden
+setMenuBar(This,Menubar) -> wxFrame:setMenuBar(This,Menubar).
+%% @hidden
+sendSizeEvent(This) -> wxFrame:sendSizeEvent(This).
+%% @hidden
+processCommand(This,Winid) -> wxFrame:processCommand(This,Winid).
+%% @hidden
+getToolBar(This) -> wxFrame:getToolBar(This).
+%% @hidden
+getStatusBarPane(This) -> wxFrame:getStatusBarPane(This).
+%% @hidden
+getStatusBar(This) -> wxFrame:getStatusBar(This).
+%% @hidden
+getMenuBar(This) -> wxFrame:getMenuBar(This).
+%% @hidden
+getClientAreaOrigin(This) -> wxFrame:getClientAreaOrigin(This).
+%% @hidden
+createToolBar(This, Options) -> wxFrame:createToolBar(This, Options).
+%% @hidden
+createToolBar(This) -> wxFrame:createToolBar(This).
+%% @hidden
+createStatusBar(This, Options) -> wxFrame:createStatusBar(This, Options).
+%% @hidden
+createStatusBar(This) -> wxFrame:createStatusBar(This).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxSplitterEvent.erl b/lib/wx/src/gen/wxSplitterEvent.erl
new file mode 100644
index 0000000000..a3a8171742
--- /dev/null
+++ b/lib/wx/src/gen/wxSplitterEvent.erl
@@ -0,0 +1,130 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html">wxSplitterEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_splitter_sash_pos_changed</em>, <em>command_splitter_sash_pos_changing</em>, <em>command_splitter_doubleclicked</em>, <em>command_splitter_unsplit</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSplitter(). #wxSplitter{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSplitterEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSplitterEvent).
+-include("wxe.hrl").
+-export([getSashPosition/1,getWindowBeingRemoved/1,getX/1,getY/1,setSashPosition/2]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxSplitterEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html#wxsplittereventgetsashposition">external documentation</a>.
+getSashPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterEvent),
+ wxe_util:call(?wxSplitterEvent_GetSashPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html#wxsplittereventgetx">external documentation</a>.
+getX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterEvent),
+ wxe_util:call(?wxSplitterEvent_GetX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html#wxsplittereventgety">external documentation</a>.
+getY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterEvent),
+ wxe_util:call(?wxSplitterEvent_GetY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterEvent()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html#wxsplittereventgetwindowbeingremoved">external documentation</a>.
+getWindowBeingRemoved(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterEvent),
+ wxe_util:call(?wxSplitterEvent_GetWindowBeingRemoved,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterEvent(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterevent.html#wxsplittereventsetsashposition">external documentation</a>.
+setSashPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxSplitterEvent),
+ wxe_util:cast(?wxSplitterEvent_SetSashPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSplitterWindow.erl b/lib/wx/src/gen/wxSplitterWindow.erl
new file mode 100644
index 0000000000..6522858266
--- /dev/null
+++ b/lib/wx/src/gen/wxSplitterWindow.erl
@@ -0,0 +1,680 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html">wxSplitterWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxSplitterWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSplitterWindow).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getMinimumPaneSize/1,getSashGravity/1,
+ getSashPosition/1,getSplitMode/1,getWindow1/1,getWindow2/1,initialize/2,
+ isSplit/1,new/0,new/1,new/2,replaceWindow/3,setMinimumPaneSize/2,setSashGravity/2,
+ setSashPosition/2,setSashPosition/3,setSashSize/2,setSplitMode/2,
+ splitHorizontally/3,splitHorizontally/4,splitVertically/3,splitVertically/4,
+ unsplit/1,unsplit/2,updateSize/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxSplitterWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowwxsplitterwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxSplitterWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxSplitterWindow()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSplitterWindow()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowwxsplitterwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxSplitterWindow_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxSplitterWindow(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSplitterWindow_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetminimumpanesize">external documentation</a>.
+getMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetMinimumPaneSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> float()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetsashgravity">external documentation</a>.
+getSashGravity(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetSashGravity,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetsashposition">external documentation</a>.
+getSashPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetSashPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> WxSplitMode
+%% WxSplitMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetsplitmode">external documentation</a>.
+%%<br /> WxSplitMode is one of ?wxSPLIT_HORIZONTAL | ?wxSPLIT_VERTICAL
+getSplitMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetSplitMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetwindow1">external documentation</a>.
+getWindow1(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetWindow1,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowgetwindow2">external documentation</a>.
+getWindow2(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_GetWindow2,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), Window::wxWindow:wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowinitialize">external documentation</a>.
+initialize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ ?CLASS(WindowT,wxWindow),
+ wxe_util:cast(?wxSplitterWindow_Initialize,
+ <<ThisRef:32/?UI,WindowRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowissplit">external documentation</a>.
+isSplit(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:call(?wxSplitterWindow_IsSplit,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), WinOld::wxWindow:wxWindow(), WinNew::wxWindow:wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowreplacewindow">external documentation</a>.
+replaceWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinOldT,ref=WinOldRef},#wx_ref{type=WinNewT,ref=WinNewRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ ?CLASS(WinOldT,wxWindow),
+ ?CLASS(WinNewT,wxWindow),
+ wxe_util:call(?wxSplitterWindow_ReplaceWindow,
+ <<ThisRef:32/?UI,WinOldRef:32/?UI,WinNewRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), Gravity::float()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsetsashgravity">external documentation</a>.
+setSashGravity(#wx_ref{type=ThisT,ref=ThisRef},Gravity)
+ when is_float(Gravity) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:cast(?wxSplitterWindow_SetSashGravity,
+ <<ThisRef:32/?UI,0:32,Gravity:64/?F>>).
+
+%% @spec (This::wxSplitterWindow(), Position::integer()) -> ok
+%% @equiv setSashPosition(This,Position, [])
+setSashPosition(This,Position)
+ when is_record(This, wx_ref),is_integer(Position) ->
+ setSashPosition(This,Position, []).
+
+%% @spec (This::wxSplitterWindow(), Position::integer(), [Option]) -> ok
+%% Option = {redraw, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsetsashposition">external documentation</a>.
+setSashPosition(#wx_ref{type=ThisT,ref=ThisRef},Position, Options)
+ when is_integer(Position),is_list(Options) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ MOpts = fun({redraw, Redraw}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Redraw)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxSplitterWindow_SetSashPosition,
+ <<ThisRef:32/?UI,Position:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsetsashsize">external documentation</a>.
+setSashSize(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:cast(?wxSplitterWindow_SetSashSize,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), Min::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsetminimumpanesize">external documentation</a>.
+setMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef},Min)
+ when is_integer(Min) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:cast(?wxSplitterWindow_SetMinimumPaneSize,
+ <<ThisRef:32/?UI,Min:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsetsplitmode">external documentation</a>.
+setSplitMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:cast(?wxSplitterWindow_SetSplitMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow()) -> bool()
+%% @equiv splitHorizontally(This,Window1,Window2, [])
+splitHorizontally(This,Window1,Window2)
+ when is_record(This, wx_ref),is_record(Window1, wx_ref),is_record(Window2, wx_ref) ->
+ splitHorizontally(This,Window1,Window2, []).
+
+%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {sashPosition, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsplithorizontally">external documentation</a>.
+splitHorizontally(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Window1Ref},#wx_ref{type=Window2T,ref=Window2Ref}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ ?CLASS(Window1T,wxWindow),
+ ?CLASS(Window2T,wxWindow),
+ MOpts = fun({sashPosition, SashPosition}, Acc) -> [<<1:32/?UI,SashPosition:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSplitterWindow_SplitHorizontally,
+ <<ThisRef:32/?UI,Window1Ref:32/?UI,Window2Ref:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow()) -> bool()
+%% @equiv splitVertically(This,Window1,Window2, [])
+splitVertically(This,Window1,Window2)
+ when is_record(This, wx_ref),is_record(Window1, wx_ref),is_record(Window2, wx_ref) ->
+ splitVertically(This,Window1,Window2, []).
+
+%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {sashPosition, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowsplitvertically">external documentation</a>.
+splitVertically(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Window1Ref},#wx_ref{type=Window2T,ref=Window2Ref}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ ?CLASS(Window1T,wxWindow),
+ ?CLASS(Window2T,wxWindow),
+ MOpts = fun({sashPosition, SashPosition}, Acc) -> [<<1:32/?UI,SashPosition:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSplitterWindow_SplitVertically,
+ <<ThisRef:32/?UI,Window1Ref:32/?UI,Window2Ref:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow()) -> bool()
+%% @equiv unsplit(This, [])
+unsplit(This)
+ when is_record(This, wx_ref) ->
+ unsplit(This, []).
+
+%% @spec (This::wxSplitterWindow(), [Option]) -> bool()
+%% Option = {toRemove, wxWindow:wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowunsplit">external documentation</a>.
+unsplit(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ MOpts = fun({toRemove, #wx_ref{type=ToRemoveT,ref=ToRemoveRef}}, Acc) -> ?CLASS(ToRemoveT,wxWindow),[<<1:32/?UI,ToRemoveRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxSplitterWindow_Unsplit,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxSplitterWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsplitterwindow.html#wxsplitterwindowupdatesize">external documentation</a>.
+updateSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxSplitterWindow),
+ wxe_util:cast(?wxSplitterWindow_UpdateSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxSplitterWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxSplitterWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStaticBitmap.erl b/lib/wx/src/gen/wxStaticBitmap.erl
new file mode 100644
index 0000000000..5f22b5780e
--- /dev/null
+++ b/lib/wx/src/gen/wxStaticBitmap.erl
@@ -0,0 +1,510 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html">wxStaticBitmap</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStaticBitmap(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStaticBitmap).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getBitmap/1,new/0,new/3,new/4,setBitmap/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStaticBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html#wxstaticbitmapwxstaticbitmap">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStaticBitmap_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::wxBitmap:wxBitmap()) -> wxStaticBitmap()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_record(Label, wx_ref) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::wxBitmap:wxBitmap(), [Option]) -> wxStaticBitmap()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html#wxstaticbitmapwxstaticbitmap">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=LabelT,ref=LabelRef}, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(LabelT,wxBitmap),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStaticBitmap_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,LabelRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStaticBitmap(), Parent::wxWindow:wxWindow(), Id::integer(), Label::wxBitmap:wxBitmap()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_record(Label, wx_ref) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxStaticBitmap(), Parent::wxWindow:wxWindow(), Id::integer(), Label::wxBitmap:wxBitmap(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html#wxstaticbitmapcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=LabelT,ref=LabelRef}, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxStaticBitmap),
+ ?CLASS(ParentT,wxWindow),
+ ?CLASS(LabelT,wxBitmap),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStaticBitmap_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,LabelRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStaticBitmap()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html#wxstaticbitmapgetbitmap">external documentation</a>.
+getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStaticBitmap),
+ wxe_util:call(?wxStaticBitmap_GetBitmap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStaticBitmap(), Bitmap::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbitmap.html#wxstaticbitmapsetbitmap">external documentation</a>.
+setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) ->
+ ?CLASS(ThisT,wxStaticBitmap),
+ ?CLASS(BitmapT,wxBitmap),
+ wxe_util:cast(?wxStaticBitmap_SetBitmap,
+ <<ThisRef:32/?UI,BitmapRef:32/?UI>>).
+
+%% @spec (This::wxStaticBitmap()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStaticBitmap),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStaticBox.erl b/lib/wx/src/gen/wxStaticBox.erl
new file mode 100644
index 0000000000..08e8fd8c0c
--- /dev/null
+++ b/lib/wx/src/gen/wxStaticBox.erl
@@ -0,0 +1,495 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbox.html">wxStaticBox</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStaticBox(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStaticBox).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,new/0,new/3,new/4]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStaticBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbox.html#wxstaticboxwxstaticbox">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStaticBox_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> wxStaticBox()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> wxStaticBox()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbox.html#wxstaticboxwxstaticbox">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStaticBox_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStaticBox(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxStaticBox(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticbox.html#wxstaticboxcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxStaticBox),
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStaticBox_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStaticBox()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStaticBox),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStaticBoxSizer.erl b/lib/wx/src/gen/wxStaticBoxSizer.erl
new file mode 100644
index 0000000000..d097bc95e3
--- /dev/null
+++ b/lib/wx/src/gen/wxStaticBoxSizer.erl
@@ -0,0 +1,189 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticboxsizer.html">wxStaticBoxSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxBoxSizer}
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxStaticBoxSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStaticBoxSizer).
+-include("wxe.hrl").
+-export([destroy/1,getStaticBox/1,new/2,new/3]).
+
+%% inherited exports
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
+ getItem/3,getMinSize/1,getOrientation/1,getPosition/1,getSize/1,hide/2,
+ hide/3,insert/3,insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,
+ insertStretchSpacer/3,isShown/2,layout/1,parent_class/1,prepend/2,
+ prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1,prependStretchSpacer/2,
+ recalcSizes/1,remove/2,replace/3,replace/4,setDimension/5,setItemMinSize/3,
+ setItemMinSize/4,setMinSize/2,setMinSize/3,setSizeHints/2,setVirtualSizeHints/2,
+ show/2,show/3]).
+
+%% @hidden
+parent_class(wxBoxSizer) -> true;
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (X::integer()|term(),X::term()|integer()) -> wxStaticBoxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticboxsizer.html#wxstaticboxsizerwxstaticboxsizer">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% new(Orient::integer(), Win::wxWindow:wxWindow()) -> new(Orient,Win, []) </c></p>
+%% <p><c>
+%% new(Box::wxStaticBox:wxStaticBox(), Orient::integer()) -> wxStaticBoxSizer() </c>
+%% </p>
+
+new(Orient,Win)
+ when is_integer(Orient),is_record(Win, wx_ref) ->
+ new(Orient,Win, []);
+new(#wx_ref{type=BoxT,ref=BoxRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(BoxT,wxStaticBox),
+ wxe_util:construct(?wxStaticBoxSizer_new_2,
+ <<BoxRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (Orient::integer(), Win::wxWindow:wxWindow(), [Option]) -> wxStaticBoxSizer()
+%% Option = {label, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticboxsizer.html#wxstaticboxsizerwxstaticboxsizer">external documentation</a>.
+new(Orient,#wx_ref{type=WinT,ref=WinRef}, Options)
+ when is_integer(Orient),is_list(Options) ->
+ ?CLASS(WinT,wxWindow),
+ MOpts = fun({label, Label}, Acc) -> Label_UC = unicode:characters_to_binary([Label,0]),[<<1:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStaticBoxSizer_new_3,
+ <<Orient:32/?UI,WinRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStaticBoxSizer()) -> wxStaticBox:wxStaticBox()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticboxsizer.html#wxstaticboxsizergetstaticbox">external documentation</a>.
+getStaticBox(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStaticBoxSizer),
+ wxe_util:call(?wxStaticBoxSizer_GetStaticBox,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStaticBoxSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStaticBoxSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxBoxSizer
+%% @hidden
+getOrientation(This) -> wxBoxSizer:getOrientation(This).
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+calcMin(This) -> wxSizer:calcMin(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
+%% @hidden
+add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
+%% @hidden
+add(This,Width,Height) -> wxSizer:add(This,Width,Height).
+%% @hidden
+add(This,Window) -> wxSizer:add(This,Window).
diff --git a/lib/wx/src/gen/wxStaticLine.erl b/lib/wx/src/gen/wxStaticLine.erl
new file mode 100644
index 0000000000..c4b660b317
--- /dev/null
+++ b/lib/wx/src/gen/wxStaticLine.erl
@@ -0,0 +1,509 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html">wxStaticLine</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStaticLine(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStaticLine).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getDefaultSize/0,isVertical/1,new/0,new/1,
+ new/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStaticLine()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html#wxstaticlinewxstaticline">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStaticLine_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxStaticLine()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxStaticLine()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html#wxstaticlinewxstaticline">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStaticLine_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStaticLine(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxStaticLine(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html#wxstaticlinecreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxStaticLine),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStaticLine_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStaticLine()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html#wxstaticlineisvertical">external documentation</a>.
+isVertical(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStaticLine),
+ wxe_util:call(?wxStaticLine_IsVertical,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstaticline.html#wxstaticlinegetdefaultsize">external documentation</a>.
+getDefaultSize() ->
+ wxe_util:call(?wxStaticLine_GetDefaultSize,
+ <<>>).
+
+%% @spec (This::wxStaticLine()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStaticLine),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStaticText.erl b/lib/wx/src/gen/wxStaticText.erl
new file mode 100644
index 0000000000..0e4aec3365
--- /dev/null
+++ b/lib/wx/src/gen/wxStaticText.erl
@@ -0,0 +1,515 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html">wxStaticText</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStaticText(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStaticText).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getLabel/1,new/0,new/3,new/4,setLabel/2,wrap/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,getPosition/1,
+ getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setMaxSize/2,setMinSize/2,
+ setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStaticText()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextwxstatictext">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStaticText_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> wxStaticText()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> wxStaticText()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextwxstatictext">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStaticText_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStaticText(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxStaticText(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxStaticText),
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStaticText_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStaticText()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStaticText),
+ wxe_util:call(?wxStaticText_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStaticText(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label)
+ when is_list(Label) ->
+ ?CLASS(ThisT,wxStaticText),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxStaticText_SetLabel,
+ <<ThisRef:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStaticText(), Width::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatictext.html#wxstatictextwrap">external documentation</a>.
+wrap(#wx_ref{type=ThisT,ref=ThisRef},Width)
+ when is_integer(Width) ->
+ ?CLASS(ThisT,wxStaticText),
+ wxe_util:cast(?wxStaticText_Wrap,
+ <<ThisRef:32/?UI,Width:32/?UI>>).
+
+%% @spec (This::wxStaticText()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStaticText),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStatusBar.erl b/lib/wx/src/gen/wxStatusBar.erl
new file mode 100644
index 0000000000..c77c3c447d
--- /dev/null
+++ b/lib/wx/src/gen/wxStatusBar.erl
@@ -0,0 +1,625 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html">wxStatusBar</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStatusBar(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStatusBar).
+-include("wxe.hrl").
+-export([create/2,create/3,destroy/1,getFieldRect/3,getFieldsCount/1,getStatusText/1,
+ getStatusText/2,new/0,new/1,new/2,popStatusText/1,popStatusText/2,pushStatusText/2,
+ pushStatusText/3,setFieldsCount/2,setFieldsCount/3,setMinHeight/2,
+ setStatusStyles/2,setStatusText/2,setStatusText/3,setStatusWidths/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStatusBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarwxstatusbar">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStatusBar_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxStatusBar()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxStatusBar()
+%% Option = {winid, integer()} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarwxstatusbar">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStatusBar_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxStatusBar(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {winid, integer()} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({winid, Winid}, Acc) -> [<<1:32/?UI,Winid:32/?UI>>|Acc];
+ ({style, Style}, Acc) -> [<<2:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStatusBar_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), I::integer(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbargetfieldrect">external documentation</a>.
+getFieldRect(#wx_ref{type=ThisT,ref=ThisRef},I,{RectX,RectY,RectW,RectH})
+ when is_integer(I),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxStatusBar),
+ wxe_util:call(?wxStatusBar_GetFieldRect,
+ <<ThisRef:32/?UI,I:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxStatusBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbargetfieldscount">external documentation</a>.
+getFieldsCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStatusBar),
+ wxe_util:call(?wxStatusBar_GetFieldsCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStatusBar()) -> string()
+%% @equiv getStatusText(This, [])
+getStatusText(This)
+ when is_record(This, wx_ref) ->
+ getStatusText(This, []).
+
+%% @spec (This::wxStatusBar(), [Option]) -> string()
+%% Option = {number, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbargetstatustext">external documentation</a>.
+getStatusText(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStatusBar_GetStatusText,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar()) -> ok
+%% @equiv popStatusText(This, [])
+popStatusText(This)
+ when is_record(This, wx_ref) ->
+ popStatusText(This, []).
+
+%% @spec (This::wxStatusBar(), [Option]) -> ok
+%% Option = {number, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarpopstatustext">external documentation</a>.
+popStatusText(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStatusBar_PopStatusText,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), Text::string()) -> ok
+%% @equiv pushStatusText(This,Text, [])
+pushStatusText(This,Text)
+ when is_record(This, wx_ref),is_list(Text) ->
+ pushStatusText(This,Text, []).
+
+%% @spec (This::wxStatusBar(), Text::string(), [Option]) -> ok
+%% Option = {number, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarpushstatustext">external documentation</a>.
+pushStatusText(#wx_ref{type=ThisT,ref=ThisRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStatusBar_PushStatusText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), Number::integer()) -> ok
+%% @equiv setFieldsCount(This,Number, [])
+setFieldsCount(This,Number)
+ when is_record(This, wx_ref),is_integer(Number) ->
+ setFieldsCount(This,Number, []).
+
+%% @spec (This::wxStatusBar(), Number::integer(), [Option]) -> ok
+%% Option = {widths, [integer()]}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarsetfieldscount">external documentation</a>.
+setFieldsCount(#wx_ref{type=ThisT,ref=ThisRef},Number, Options)
+ when is_integer(Number),is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ MOpts = fun({widths, Widths}, Acc) -> [<<1:32/?UI,(length(Widths)):32/?UI,
+ (<< <<C:32/?I>> || C <- Widths>>)/binary, 0:(((0+length(Widths)) rem 2)*32)>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStatusBar_SetFieldsCount,
+ <<ThisRef:32/?UI,Number:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarsetminheight">external documentation</a>.
+setMinHeight(#wx_ref{type=ThisT,ref=ThisRef},Height)
+ when is_integer(Height) ->
+ ?CLASS(ThisT,wxStatusBar),
+ wxe_util:cast(?wxStatusBar_SetMinHeight,
+ <<ThisRef:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxStatusBar(), Text::string()) -> ok
+%% @equiv setStatusText(This,Text, [])
+setStatusText(This,Text)
+ when is_record(This, wx_ref),is_list(Text) ->
+ setStatusText(This,Text, []).
+
+%% @spec (This::wxStatusBar(), Text::string(), [Option]) -> ok
+%% Option = {number, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarsetstatustext">external documentation</a>.
+setStatusText(#wx_ref{type=ThisT,ref=ThisRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxStatusBar),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({number, Number}, Acc) -> [<<1:32/?UI,Number:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStatusBar_SetStatusText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStatusBar(), Widths_field::[integer()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarsetstatuswidths">external documentation</a>.
+setStatusWidths(#wx_ref{type=ThisT,ref=ThisRef},Widths_field)
+ when is_list(Widths_field) ->
+ ?CLASS(ThisT,wxStatusBar),
+ wxe_util:cast(?wxStatusBar_SetStatusWidths,
+ <<ThisRef:32/?UI,(length(Widths_field)):32/?UI,
+ (<< <<C:32/?I>> || C <- Widths_field>>)/binary, 0:(((0+length(Widths_field)) rem 2)*32)>>).
+
+%% @spec (This::wxStatusBar(), Styles::[integer()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstatusbar.html#wxstatusbarsetstatusstyles">external documentation</a>.
+setStatusStyles(#wx_ref{type=ThisT,ref=ThisRef},Styles)
+ when is_list(Styles) ->
+ ?CLASS(ThisT,wxStatusBar),
+ wxe_util:cast(?wxStatusBar_SetStatusStyles,
+ <<ThisRef:32/?UI,(length(Styles)):32/?UI,
+ (<< <<C:32/?I>> || C <- Styles>>)/binary, 0:(((0+length(Styles)) rem 2)*32)>>).
+
+%% @spec (This::wxStatusBar()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStatusBar),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStdDialogButtonSizer.erl b/lib/wx/src/gen/wxStdDialogButtonSizer.erl
new file mode 100644
index 0000000000..3ee3ef4a36
--- /dev/null
+++ b/lib/wx/src/gen/wxStdDialogButtonSizer.erl
@@ -0,0 +1,198 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html">wxStdDialogButtonSizer</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxBoxSizer}
+%% <br />{@link wxSizer}
+%% </p>
+%% @type wxStdDialogButtonSizer(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStdDialogButtonSizer).
+-include("wxe.hrl").
+-export([addButton/2,destroy/1,new/0,realize/1,setAffirmativeButton/2,setCancelButton/2,
+ setNegativeButton/2]).
+
+%% inherited exports
+-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
+ calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
+ getItem/3,getMinSize/1,getOrientation/1,getPosition/1,getSize/1,hide/2,
+ hide/3,insert/3,insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,
+ insertStretchSpacer/3,isShown/2,layout/1,parent_class/1,prepend/2,
+ prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1,prependStretchSpacer/2,
+ recalcSizes/1,remove/2,replace/3,replace/4,setDimension/5,setItemMinSize/3,
+ setItemMinSize/4,setMinSize/2,setMinSize/3,setSizeHints/2,setVirtualSizeHints/2,
+ show/2,show/3]).
+
+%% @hidden
+parent_class(wxBoxSizer) -> true;
+parent_class(wxSizer) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStdDialogButtonSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizerwxstddialogbuttonsizer">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStdDialogButtonSizer_new,
+ <<>>).
+
+%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizeraddbutton">external documentation</a>.
+addButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) ->
+ ?CLASS(ThisT,wxStdDialogButtonSizer),
+ ?CLASS(ButtonT,wxButton),
+ wxe_util:cast(?wxStdDialogButtonSizer_AddButton,
+ <<ThisRef:32/?UI,ButtonRef:32/?UI>>).
+
+%% @spec (This::wxStdDialogButtonSizer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizerrealize">external documentation</a>.
+realize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStdDialogButtonSizer),
+ wxe_util:cast(?wxStdDialogButtonSizer_Realize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetaffirmativebutton">external documentation</a>.
+setAffirmativeButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) ->
+ ?CLASS(ThisT,wxStdDialogButtonSizer),
+ ?CLASS(ButtonT,wxButton),
+ wxe_util:cast(?wxStdDialogButtonSizer_SetAffirmativeButton,
+ <<ThisRef:32/?UI,ButtonRef:32/?UI>>).
+
+%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetcancelbutton">external documentation</a>.
+setCancelButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) ->
+ ?CLASS(ThisT,wxStdDialogButtonSizer),
+ ?CLASS(ButtonT,wxButton),
+ wxe_util:cast(?wxStdDialogButtonSizer_SetCancelButton,
+ <<ThisRef:32/?UI,ButtonRef:32/?UI>>).
+
+%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetnegativebutton">external documentation</a>.
+setNegativeButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) ->
+ ?CLASS(ThisT,wxStdDialogButtonSizer),
+ ?CLASS(ButtonT,wxButton),
+ wxe_util:cast(?wxStdDialogButtonSizer_SetNegativeButton,
+ <<ThisRef:32/?UI,ButtonRef:32/?UI>>).
+
+%% @spec (This::wxStdDialogButtonSizer()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStdDialogButtonSizer),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxBoxSizer
+%% @hidden
+getOrientation(This) -> wxBoxSizer:getOrientation(This).
+ %% From wxSizer
+%% @hidden
+show(This,Index, Options) -> wxSizer:show(This,Index, Options).
+%% @hidden
+show(This,Index) -> wxSizer:show(This,Index).
+%% @hidden
+setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
+%% @hidden
+setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
+%% @hidden
+setItemMinSize(This,Index,Width,Height) -> wxSizer:setItemMinSize(This,Index,Width,Height).
+%% @hidden
+setItemMinSize(This,Index,Size) -> wxSizer:setItemMinSize(This,Index,Size).
+%% @hidden
+setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
+%% @hidden
+setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
+%% @hidden
+setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
+%% @hidden
+replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
+%% @hidden
+replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
+%% @hidden
+remove(This,Index) -> wxSizer:remove(This,Index).
+%% @hidden
+recalcSizes(This) -> wxSizer:recalcSizes(This).
+%% @hidden
+prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
+%% @hidden
+prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
+%% @hidden
+prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
+%% @hidden
+prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
+%% @hidden
+prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
+%% @hidden
+prepend(This,Window) -> wxSizer:prepend(This,Window).
+%% @hidden
+layout(This) -> wxSizer:layout(This).
+%% @hidden
+isShown(This,Index) -> wxSizer:isShown(This,Index).
+%% @hidden
+insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
+%% @hidden
+insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
+%% @hidden
+insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
+%% @hidden
+insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
+%% @hidden
+insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
+%% @hidden
+insert(This,Index,Window) -> wxSizer:insert(This,Index,Window).
+%% @hidden
+hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
+%% @hidden
+hide(This,Window) -> wxSizer:hide(This,Window).
+%% @hidden
+getMinSize(This) -> wxSizer:getMinSize(This).
+%% @hidden
+getPosition(This) -> wxSizer:getPosition(This).
+%% @hidden
+getSize(This) -> wxSizer:getSize(This).
+%% @hidden
+getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
+%% @hidden
+getItem(This,Window) -> wxSizer:getItem(This,Window).
+%% @hidden
+getChildren(This) -> wxSizer:getChildren(This).
+%% @hidden
+fitInside(This,Window) -> wxSizer:fitInside(This,Window).
+%% @hidden
+fit(This,Window) -> wxSizer:fit(This,Window).
+%% @hidden
+detach(This,Index) -> wxSizer:detach(This,Index).
+%% @hidden
+clear(This, Options) -> wxSizer:clear(This, Options).
+%% @hidden
+clear(This) -> wxSizer:clear(This).
+%% @hidden
+calcMin(This) -> wxSizer:calcMin(This).
+%% @hidden
+addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
+%% @hidden
+addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
+%% @hidden
+addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
+%% @hidden
+add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
+%% @hidden
+add(This,Width,Height) -> wxSizer:add(This,Width,Height).
+%% @hidden
+add(This,Window) -> wxSizer:add(This,Window).
diff --git a/lib/wx/src/gen/wxStyledTextCtrl.erl b/lib/wx/src/gen/wxStyledTextCtrl.erl
new file mode 100644
index 0000000000..21964403f9
--- /dev/null
+++ b/lib/wx/src/gen/wxStyledTextCtrl.erl
@@ -0,0 +1,3980 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html">wxStyledTextCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxStyledTextCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStyledTextCtrl).
+-include("wxe.hrl").
+-export([addStyledText/2,addText/2,addTextRaw/2,allocate/2,appendText/2,appendTextRaw/2,
+ autoCompActive/1,autoCompCancel/1,autoCompComplete/1,autoCompGetAutoHide/1,
+ autoCompGetCancelAtStart/1,autoCompGetChooseSingle/1,autoCompGetCurrent/1,
+ autoCompGetDropRestOfWord/1,autoCompGetIgnoreCase/1,autoCompGetMaxHeight/1,
+ autoCompGetMaxWidth/1,autoCompGetSeparator/1,autoCompGetTypeSeparator/1,
+ autoCompPosStart/1,autoCompSelect/2,autoCompSetAutoHide/2,autoCompSetCancelAtStart/2,
+ autoCompSetChooseSingle/2,autoCompSetDropRestOfWord/2,autoCompSetFillUps/2,
+ autoCompSetIgnoreCase/2,autoCompSetMaxHeight/2,autoCompSetMaxWidth/2,
+ autoCompSetSeparator/2,autoCompSetTypeSeparator/2,autoCompShow/3,
+ autoCompStops/2,backTab/1,beginUndoAction/1,braceBadLight/2,braceHighlight/3,
+ braceMatch/2,callTipActive/1,callTipCancel/1,callTipPosAtStart/1,
+ callTipSetBackground/2,callTipSetForeground/2,callTipSetForegroundHighlight/2,
+ callTipSetHighlight/3,callTipShow/3,callTipUseStyle/2,canPaste/1,
+ canRedo/1,canUndo/1,cancel/1,charLeft/1,charLeftExtend/1,charLeftRectExtend/1,
+ charRight/1,charRightExtend/1,charRightRectExtend/1,chooseCaretX/1,
+ clear/1,clearAll/1,clearDocumentStyle/1,clearRegisteredImages/1,cmdKeyAssign/4,
+ cmdKeyClear/3,cmdKeyClearAll/1,cmdKeyExecute/2,colourise/3,convertEOLs/2,
+ copy/1,copyRange/3,copyText/3,create/2,create/3,cut/1,delLineLeft/1,
+ delLineRight/1,delWordLeft/1,delWordRight/1,deleteBack/1,deleteBackNotLine/1,
+ destroy/1,doDragOver/4,doDropText/4,docLineFromVisible/2,documentEnd/1,
+ documentEndExtend/1,documentStart/1,documentStartExtend/1,editToggleOvertype/1,
+ emptyUndoBuffer/1,endUndoAction/1,ensureCaretVisible/1,ensureVisible/2,
+ ensureVisibleEnforcePolicy/2,findColumn/3,findText/4,findText/5,formFeed/1,
+ formatRange/8,getAnchor/1,getBackSpaceUnIndents/1,getBufferedDraw/1,
+ getCaretForeground/1,getCaretLineBackAlpha/1,getCaretLineBackground/1,
+ getCaretLineVisible/1,getCaretPeriod/1,getCaretSticky/1,getCaretWidth/1,
+ getCharAt/2,getCodePage/1,getColumn/2,getControlCharSymbol/1,getCurLine/1,
+ getCurLineRaw/1,getCurrentLine/1,getCurrentPos/1,getEOLMode/1,getEdgeColour/1,
+ getEdgeColumn/1,getEdgeMode/1,getEndAtLastLine/1,getEndStyled/1,getFirstVisibleLine/1,
+ getFoldExpanded/2,getFoldLevel/2,getFoldParent/2,getHighlightGuide/1,
+ getIndent/1,getIndentationGuides/1,getLastChild/3,getLastKeydownProcessed/1,
+ getLayoutCache/1,getLength/1,getLexer/1,getLine/2,getLineCount/1,getLineEndPosition/2,
+ getLineIndentPosition/2,getLineIndentation/2,getLineRaw/2,getLineState/2,
+ getLineVisible/2,getMarginLeft/1,getMarginMask/2,getMarginRight/1,
+ getMarginSensitive/2,getMarginType/2,getMarginWidth/2,getMaxLineState/1,
+ getModEventMask/1,getModify/1,getMouseDownCaptures/1,getMouseDwellTime/1,
+ getOvertype/1,getPasteConvertEndings/1,getPrintColourMode/1,getPrintMagnification/1,
+ getPrintWrapMode/1,getProperty/2,getReadOnly/1,getSTCCursor/1,getSTCFocus/1,
+ getScrollWidth/1,getSearchFlags/1,getSelAlpha/1,getSelectedText/1,
+ getSelectedTextRaw/1,getSelection/1,getSelectionEnd/1,getSelectionMode/1,
+ getSelectionStart/1,getStatus/1,getStyleAt/2,getStyleBits/1,getStyleBitsNeeded/1,
+ getStyledText/3,getTabIndents/1,getTabWidth/1,getTargetEnd/1,getTargetStart/1,
+ getText/1,getTextLength/1,getTextRange/3,getTextRangeRaw/3,getTextRaw/1,
+ getTwoPhaseDraw/1,getUndoCollection/1,getUseAntiAliasing/1,getUseHorizontalScrollBar/1,
+ getUseTabs/1,getUseVerticalScrollBar/1,getViewEOL/1,getViewWhiteSpace/1,
+ getWrapMode/1,getWrapStartIndent/1,getWrapVisualFlags/1,getWrapVisualFlagsLocation/1,
+ getXOffset/1,getZoom/1,gotoLine/2,gotoPos/2,hideLines/3,hideSelection/2,
+ home/1,homeDisplay/1,homeDisplayExtend/1,homeExtend/1,homeRectExtend/1,
+ homeWrapExtend/1,indicatorGetForeground/2,indicatorGetStyle/2,indicatorSetForeground/3,
+ indicatorSetStyle/3,insertText/3,insertTextRaw/3,lineCopy/1,lineCut/1,
+ lineDelete/1,lineDown/1,lineDownExtend/1,lineDownRectExtend/1,lineDuplicate/1,
+ lineEnd/1,lineEndDisplay/1,lineEndDisplayExtend/1,lineEndExtend/1,
+ lineEndRectExtend/1,lineEndWrap/1,lineEndWrapExtend/1,lineFromPosition/2,
+ lineLength/2,lineScroll/3,lineScrollDown/1,lineScrollUp/1,lineTranspose/1,
+ lineUp/1,lineUpExtend/1,lineUpRectExtend/1,linesJoin/1,linesOnScreen/1,
+ linesSplit/2,loadFile/2,lowerCase/1,markerAdd/3,markerAddSet/3,markerDefine/3,
+ markerDefine/4,markerDefineBitmap/3,markerDelete/3,markerDeleteAll/2,
+ markerDeleteHandle/2,markerGet/2,markerLineFromHandle/2,markerNext/3,
+ markerPrevious/3,markerSetAlpha/3,markerSetBackground/3,markerSetForeground/3,
+ moveCaretInsideView/1,new/0,new/1,new/2,newLine/1,pageDown/1,pageDownExtend/1,
+ pageDownRectExtend/1,pageUp/1,pageUpExtend/1,pageUpRectExtend/1,paraDownExtend/1,
+ paraUp/1,paraUpExtend/1,paste/1,pointFromPosition/2,positionAfter/2,
+ positionBefore/2,positionFromLine/2,positionFromPoint/2,positionFromPointClose/3,
+ redo/1,registerImage/3,replaceSelection/2,replaceTarget/2,saveFile/2,
+ scrollToColumn/2,scrollToLine/2,searchAnchor/1,searchInTarget/2,searchNext/3,
+ searchPrev/3,selectAll/1,selectionDuplicate/1,selectionIsRectangle/1,
+ sendMsg/2,sendMsg/3,setAnchor/2,setBackSpaceUnIndents/2,setBufferedDraw/2,
+ setCaretForeground/2,setCaretLineBackAlpha/2,setCaretLineBackground/2,
+ setCaretLineVisible/2,setCaretPeriod/2,setCaretSticky/2,setCaretWidth/2,
+ setCharsDefault/1,setCodePage/2,setControlCharSymbol/2,setCurrentPos/2,
+ setEOLMode/2,setEdgeColour/2,setEdgeColumn/2,setFoldExpanded/3,setFoldFlags/2,
+ setFoldLevel/3,setFoldMarginColour/3,setFoldMarginHiColour/3,setHScrollBar/2,
+ setHighlightGuide/2,setHotspotActiveBackground/3,setHotspotActiveForeground/3,
+ setHotspotActiveUnderline/2,setHotspotSingleLine/2,setIndent/2,setIndentationGuides/2,
+ setKeyWords/3,setLastKeydownProcessed/2,setLayoutCache/2,setLexer/2,
+ setLexerLanguage/2,setLineIndentation/3,setLineState/3,setMarginLeft/2,
+ setMarginMask/3,setMarginRight/2,setMarginSensitive/3,setMarginType/3,
+ setMarginWidth/3,setMargins/3,setModEventMask/2,setMouseDownCaptures/2,
+ setMouseDwellTime/2,setPasteConvertEndings/2,setPrintColourMode/2,
+ setPrintMagnification/2,setProperty/3,setReadOnly/2,setSTCCursor/2,
+ setSTCFocus/2,setSavePoint/1,setScrollWidth/2,setSearchFlags/2,setSelAlpha/2,
+ setSelBackground/3,setSelForeground/3,setSelection/3,setSelectionEnd/2,
+ setSelectionMode/2,setSelectionStart/2,setStatus/2,setStyleBytes/2,
+ setStyling/3,setTabIndents/2,setTabWidth/2,setTargetEnd/2,setTargetStart/2,
+ setText/2,setTextRaw/2,setTwoPhaseDraw/2,setUndoCollection/2,setUseHorizontalScrollBar/2,
+ setUseTabs/2,setUseVerticalScrollBar/2,setVScrollBar/2,setViewEOL/2,
+ setViewWhiteSpace/2,setVisiblePolicy/3,setWhitespaceBackground/3,
+ setWhitespaceChars/2,setWhitespaceForeground/3,setWordChars/2,setWrapMode/2,
+ setWrapStartIndent/2,setWrapVisualFlags/2,setWrapVisualFlagsLocation/2,
+ setXCaretPolicy/3,setYCaretPolicy/3,setZoom/2,showLines/3,startRecord/1,
+ startStyling/3,stopRecord/1,stutteredPageDown/1,stutteredPageDownExtend/1,
+ stutteredPageUp/1,stutteredPageUpExtend/1,styleClearAll/1,styleResetDefault/1,
+ styleSetBackground/3,styleSetBold/3,styleSetCase/3,styleSetCharacterSet/3,
+ styleSetEOLFilled/3,styleSetFaceName/3,styleSetFont/3,styleSetFontAttr/7,
+ styleSetFontAttr/8,styleSetFontEncoding/3,styleSetForeground/3,styleSetHotSpot/3,
+ styleSetItalic/3,styleSetSize/3,styleSetSpec/3,styleSetUnderline/3,
+ styleSetVisible/3,tab/1,targetFromSelection/1,textHeight/2,textWidth/3,
+ toggleCaretSticky/1,toggleFold/2,undo/1,upperCase/1,usePopUp/2,userListShow/3,
+ vCHome/1,vCHomeExtend/1,vCHomeRectExtend/1,vCHomeWrap/1,vCHomeWrapExtend/1,
+ visibleFromDocLine/2,wordEndPosition/3,wordLeft/1,wordLeftEnd/1,wordLeftEndExtend/1,
+ wordLeftExtend/1,wordPartLeft/1,wordPartLeftExtend/1,wordPartRight/1,
+ wordPartRightExtend/1,wordRight/1,wordRightEnd/1,wordRightEndExtend/1,
+ wordRightExtend/1,wordStartPosition/3,wrapCount/2,zoomIn/1,zoomOut/1]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,screenToClient/1,screenToClient/2,scrollLines/2,scrollPages/2,
+ scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,setAutoLayout/2,
+ setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,setClientSize/2,
+ setClientSize/3,setContainingSizer/2,setCursor/2,setDropTarget/2,
+ setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,setForegroundColour/2,
+ setHelpText/2,setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,
+ setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,setPalette/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setSize/2,
+ setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,setSizeHints/4,
+ setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,setThemeEnabled/2,
+ setToolTip/2,setVirtualSize/2,setVirtualSize/3,setVirtualSizeHints/2,
+ setVirtualSizeHints/3,setVirtualSizeHints/4,setWindowStyle/2,setWindowStyleFlag/2,
+ setWindowVariant/2,shouldInheritColours/1,show/1,show/2,thaw/1,transferDataFromWindow/1,
+ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2,
+ validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxStyledTextCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwxstyledtextctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxStyledTextCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxStyledTextCtrl()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxStyledTextCtrl()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwxstyledtextctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxStyledTextCtrl_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxStyledTextCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStyledTextCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrladdtext">external documentation</a>.
+addText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AddText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Data::wxMemoryBuffer:wxMemoryBuffer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrladdstyledtext">external documentation</a>.
+addStyledText(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(DataT,wxMemoryBuffer),
+ wxe_util:cast(?wxStyledTextCtrl_AddStyledText,
+ <<ThisRef:32/?UI,DataRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlinserttext">external documentation</a>.
+insertText(#wx_ref{type=ThisT,ref=ThisRef},Pos,Text)
+ when is_integer(Pos),is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_InsertText,
+ <<ThisRef:32/?UI,Pos:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlclearall">external documentation</a>.
+clearAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ClearAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcleardocumentstyle">external documentation</a>.
+clearDocumentStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ClearDocumentStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlength">external documentation</a>.
+getLength(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLength,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcharat">external documentation</a>.
+getCharAt(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCharAt,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcurrentpos">external documentation</a>.
+getCurrentPos(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCurrentPos,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetanchor">external documentation</a>.
+getAnchor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetAnchor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstyleat">external documentation</a>.
+getStyleAt(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetStyleAt,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlredo">external documentation</a>.
+redo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Redo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CollectUndo::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetundocollection">external documentation</a>.
+setUndoCollection(#wx_ref{type=ThisT,ref=ThisRef},CollectUndo)
+ when is_boolean(CollectUndo) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetUndoCollection,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(CollectUndo)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlselectall">external documentation</a>.
+selectAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SelectAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetsavepoint">external documentation</a>.
+setSavePoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSavePoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> wxMemoryBuffer:wxMemoryBuffer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstyledtext">external documentation</a>.
+getStyledText(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos)
+ when is_integer(StartPos),is_integer(EndPos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetStyledText,
+ <<ThisRef:32/?UI,StartPos:32/?UI,EndPos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcanredo">external documentation</a>.
+canRedo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_CanRedo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Handle::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerlinefromhandle">external documentation</a>.
+markerLineFromHandle(#wx_ref{type=ThisT,ref=ThisRef},Handle)
+ when is_integer(Handle) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_MarkerLineFromHandle,
+ <<ThisRef:32/?UI,Handle:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Handle::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerdeletehandle">external documentation</a>.
+markerDeleteHandle(#wx_ref{type=ThisT,ref=ThisRef},Handle)
+ when is_integer(Handle) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerDeleteHandle,
+ <<ThisRef:32/?UI,Handle:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetundocollection">external documentation</a>.
+getUndoCollection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetUndoCollection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetviewwhitespace">external documentation</a>.
+getViewWhiteSpace(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetViewWhiteSpace,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), ViewWS::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetviewwhitespace">external documentation</a>.
+setViewWhiteSpace(#wx_ref{type=ThisT,ref=ThisRef},ViewWS)
+ when is_integer(ViewWS) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetViewWhiteSpace,
+ <<ThisRef:32/?UI,ViewWS:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pt::{X::integer(),Y::integer()}) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpositionfrompoint">external documentation</a>.
+positionFromPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PositionFromPoint,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpositionfrompointclose">external documentation</a>.
+positionFromPointClose(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PositionFromPointClose,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgotoline">external documentation</a>.
+gotoLine(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_GotoLine,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgotopos">external documentation</a>.
+gotoPos(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_GotoPos,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PosAnchor::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetanchor">external documentation</a>.
+setAnchor(#wx_ref{type=ThisT,ref=ThisRef},PosAnchor)
+ when is_integer(PosAnchor) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetAnchor,
+ <<ThisRef:32/?UI,PosAnchor:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> {string(),LinePos::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcurline">external documentation</a>.
+getCurLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCurLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetendstyled">external documentation</a>.
+getEndStyled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEndStyled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), EolMode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlconverteols">external documentation</a>.
+convertEOLs(#wx_ref{type=ThisT,ref=ThisRef},EolMode)
+ when is_integer(EolMode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ConvertEOLs,
+ <<ThisRef:32/?UI,EolMode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgeteolmode">external documentation</a>.
+getEOLMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEOLMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), EolMode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlseteolmode">external documentation</a>.
+setEOLMode(#wx_ref{type=ThisT,ref=ThisRef},EolMode)
+ when is_integer(EolMode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetEOLMode,
+ <<ThisRef:32/?UI,EolMode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Mask::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstartstyling">external documentation</a>.
+startStyling(#wx_ref{type=ThisT,ref=ThisRef},Pos,Mask)
+ when is_integer(Pos),is_integer(Mask) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StartStyling,
+ <<ThisRef:32/?UI,Pos:32/?UI,Mask:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Length::integer(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetstyling">external documentation</a>.
+setStyling(#wx_ref{type=ThisT,ref=ThisRef},Length,Style)
+ when is_integer(Length),is_integer(Style) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetStyling,
+ <<ThisRef:32/?UI,Length:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetbuffereddraw">external documentation</a>.
+getBufferedDraw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetBufferedDraw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Buffered::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetbuffereddraw">external documentation</a>.
+setBufferedDraw(#wx_ref{type=ThisT,ref=ThisRef},Buffered)
+ when is_boolean(Buffered) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetBufferedDraw,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Buffered)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), TabWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettabwidth">external documentation</a>.
+setTabWidth(#wx_ref{type=ThisT,ref=ThisRef},TabWidth)
+ when is_integer(TabWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetTabWidth,
+ <<ThisRef:32/?UI,TabWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettabwidth">external documentation</a>.
+getTabWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTabWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CodePage::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcodepage">external documentation</a>.
+setCodePage(#wx_ref{type=ThisT,ref=ThisRef},CodePage)
+ when is_integer(CodePage) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCodePage,
+ <<ThisRef:32/?UI,CodePage:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), MarkerSymbol::integer()) -> ok
+%% @equiv markerDefine(This,MarkerNumber,MarkerSymbol, [])
+markerDefine(This,MarkerNumber,MarkerSymbol)
+ when is_record(This, wx_ref),is_integer(MarkerNumber),is_integer(MarkerSymbol) ->
+ markerDefine(This,MarkerNumber,MarkerSymbol, []).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), MarkerSymbol::integer(), [Option]) -> ok
+%% Option = {foreground, wx:colour()} | {background, wx:colour()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerdefine">external documentation</a>.
+markerDefine(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,MarkerSymbol, Options)
+ when is_integer(MarkerNumber),is_integer(MarkerSymbol),is_list(Options) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ MOpts = fun({foreground, Foreground}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Foreground)):16/binary,0:32>>|Acc];
+ ({background, Background}, Acc) -> [<<2:32/?UI,(wxe_util:colour_bin(Background)):16/binary,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerDefine,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI,MarkerSymbol:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkersetforeground">external documentation</a>.
+markerSetForeground(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,Fore)
+ when is_integer(MarkerNumber),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerSetForeground,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkersetbackground">external documentation</a>.
+markerSetBackground(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,Back)
+ when is_integer(MarkerNumber),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerSetBackground,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), MarkerNumber::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkeradd">external documentation</a>.
+markerAdd(#wx_ref{type=ThisT,ref=ThisRef},Line,MarkerNumber)
+ when is_integer(Line),is_integer(MarkerNumber) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_MarkerAdd,
+ <<ThisRef:32/?UI,Line:32/?UI,MarkerNumber:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), MarkerNumber::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerdelete">external documentation</a>.
+markerDelete(#wx_ref{type=ThisT,ref=ThisRef},Line,MarkerNumber)
+ when is_integer(Line),is_integer(MarkerNumber) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerDelete,
+ <<ThisRef:32/?UI,Line:32/?UI,MarkerNumber:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerdeleteall">external documentation</a>.
+markerDeleteAll(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber)
+ when is_integer(MarkerNumber) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerDeleteAll,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerget">external documentation</a>.
+markerGet(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_MarkerGet,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), MarkerMask::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkernext">external documentation</a>.
+markerNext(#wx_ref{type=ThisT,ref=ThisRef},LineStart,MarkerMask)
+ when is_integer(LineStart),is_integer(MarkerMask) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_MarkerNext,
+ <<ThisRef:32/?UI,LineStart:32/?UI,MarkerMask:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), MarkerMask::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerprevious">external documentation</a>.
+markerPrevious(#wx_ref{type=ThisT,ref=ThisRef},LineStart,MarkerMask)
+ when is_integer(LineStart),is_integer(MarkerMask) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_MarkerPrevious,
+ <<ThisRef:32/?UI,LineStart:32/?UI,MarkerMask:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Bmp::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkerdefinebitmap">external documentation</a>.
+markerDefineBitmap(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,#wx_ref{type=BmpT,ref=BmpRef})
+ when is_integer(MarkerNumber) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerDefineBitmap,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI,BmpRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), Set::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkeraddset">external documentation</a>.
+markerAddSet(#wx_ref{type=ThisT,ref=ThisRef},Line,Set)
+ when is_integer(Line),is_integer(Set) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerAddSet,
+ <<ThisRef:32/?UI,Line:32/?UI,Set:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Alpha::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmarkersetalpha">external documentation</a>.
+markerSetAlpha(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,Alpha)
+ when is_integer(MarkerNumber),is_integer(Alpha) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MarkerSetAlpha,
+ <<ThisRef:32/?UI,MarkerNumber:32/?UI,Alpha:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer(), MarginType::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmargintype">external documentation</a>.
+setMarginType(#wx_ref{type=ThisT,ref=ThisRef},Margin,MarginType)
+ when is_integer(Margin),is_integer(MarginType) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginType,
+ <<ThisRef:32/?UI,Margin:32/?UI,MarginType:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmargintype">external documentation</a>.
+getMarginType(#wx_ref{type=ThisT,ref=ThisRef},Margin)
+ when is_integer(Margin) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginType,
+ <<ThisRef:32/?UI,Margin:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmarginwidth">external documentation</a>.
+setMarginWidth(#wx_ref{type=ThisT,ref=ThisRef},Margin,PixelWidth)
+ when is_integer(Margin),is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginWidth,
+ <<ThisRef:32/?UI,Margin:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmarginwidth">external documentation</a>.
+getMarginWidth(#wx_ref{type=ThisT,ref=ThisRef},Margin)
+ when is_integer(Margin) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginWidth,
+ <<ThisRef:32/?UI,Margin:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer(), Mask::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmarginmask">external documentation</a>.
+setMarginMask(#wx_ref{type=ThisT,ref=ThisRef},Margin,Mask)
+ when is_integer(Margin),is_integer(Mask) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginMask,
+ <<ThisRef:32/?UI,Margin:32/?UI,Mask:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmarginmask">external documentation</a>.
+getMarginMask(#wx_ref{type=ThisT,ref=ThisRef},Margin)
+ when is_integer(Margin) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginMask,
+ <<ThisRef:32/?UI,Margin:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer(), Sensitive::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmarginsensitive">external documentation</a>.
+setMarginSensitive(#wx_ref{type=ThisT,ref=ThisRef},Margin,Sensitive)
+ when is_integer(Margin),is_boolean(Sensitive) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginSensitive,
+ <<ThisRef:32/?UI,Margin:32/?UI,(wxe_util:from_bool(Sensitive)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmarginsensitive">external documentation</a>.
+getMarginSensitive(#wx_ref{type=ThisT,ref=ThisRef},Margin)
+ when is_integer(Margin) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginSensitive,
+ <<ThisRef:32/?UI,Margin:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstyleclearall">external documentation</a>.
+styleClearAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleClearAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetforeground">external documentation</a>.
+styleSetForeground(#wx_ref{type=ThisT,ref=ThisRef},Style,Fore)
+ when is_integer(Style),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetForeground,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetbackground">external documentation</a>.
+styleSetBackground(#wx_ref{type=ThisT,ref=ThisRef},Style,Back)
+ when is_integer(Style),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetBackground,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Bold::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetbold">external documentation</a>.
+styleSetBold(#wx_ref{type=ThisT,ref=ThisRef},Style,Bold)
+ when is_integer(Style),is_boolean(Bold) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetBold,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Bold)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Italic::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetitalic">external documentation</a>.
+styleSetItalic(#wx_ref{type=ThisT,ref=ThisRef},Style,Italic)
+ when is_integer(Style),is_boolean(Italic) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetItalic,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Italic)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), SizePoints::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetsize">external documentation</a>.
+styleSetSize(#wx_ref{type=ThisT,ref=ThisRef},Style,SizePoints)
+ when is_integer(Style),is_integer(SizePoints) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetSize,
+ <<ThisRef:32/?UI,Style:32/?UI,SizePoints:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), FontName::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetfacename">external documentation</a>.
+styleSetFaceName(#wx_ref{type=ThisT,ref=ThisRef},Style,FontName)
+ when is_integer(Style),is_list(FontName) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ FontName_UC = unicode:characters_to_binary([FontName,0]),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetFaceName,
+ <<ThisRef:32/?UI,Style:32/?UI,(byte_size(FontName_UC)):32/?UI,(FontName_UC)/binary, 0:(((8- ((4+byte_size(FontName_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Filled::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstyleseteolfilled">external documentation</a>.
+styleSetEOLFilled(#wx_ref{type=ThisT,ref=ThisRef},Style,Filled)
+ when is_integer(Style),is_boolean(Filled) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetEOLFilled,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Filled)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstyleresetdefault">external documentation</a>.
+styleResetDefault(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleResetDefault,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Underline::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetunderline">external documentation</a>.
+styleSetUnderline(#wx_ref{type=ThisT,ref=ThisRef},Style,Underline)
+ when is_integer(Style),is_boolean(Underline) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetUnderline,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Underline)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), CaseForce::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetcase">external documentation</a>.
+styleSetCase(#wx_ref{type=ThisT,ref=ThisRef},Style,CaseForce)
+ when is_integer(Style),is_integer(CaseForce) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetCase,
+ <<ThisRef:32/?UI,Style:32/?UI,CaseForce:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Hotspot::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesethotspot">external documentation</a>.
+styleSetHotSpot(#wx_ref{type=ThisT,ref=ThisRef},Style,Hotspot)
+ when is_integer(Style),is_boolean(Hotspot) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetHotSpot,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Hotspot)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselforeground">external documentation</a>.
+setSelForeground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Fore)
+ when is_boolean(UseSetting),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelForeground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselbackground">external documentation</a>.
+setSelBackground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Back)
+ when is_boolean(UseSetting),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelBackground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselalpha">external documentation</a>.
+getSelAlpha(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelAlpha,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Alpha::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselalpha">external documentation</a>.
+setSelAlpha(#wx_ref{type=ThisT,ref=ThisRef},Alpha)
+ when is_integer(Alpha) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelAlpha,
+ <<ThisRef:32/?UI,Alpha:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretforeground">external documentation</a>.
+setCaretForeground(#wx_ref{type=ThisT,ref=ThisRef},Fore)
+ when tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretForeground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Key::integer(), Modifiers::integer(), Cmd::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcmdkeyassign">external documentation</a>.
+cmdKeyAssign(#wx_ref{type=ThisT,ref=ThisRef},Key,Modifiers,Cmd)
+ when is_integer(Key),is_integer(Modifiers),is_integer(Cmd) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CmdKeyAssign,
+ <<ThisRef:32/?UI,Key:32/?UI,Modifiers:32/?UI,Cmd:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Key::integer(), Modifiers::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcmdkeyclear">external documentation</a>.
+cmdKeyClear(#wx_ref{type=ThisT,ref=ThisRef},Key,Modifiers)
+ when is_integer(Key),is_integer(Modifiers) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CmdKeyClear,
+ <<ThisRef:32/?UI,Key:32/?UI,Modifiers:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcmdkeyclearall">external documentation</a>.
+cmdKeyClearAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CmdKeyClearAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Length::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetstylebytes">external documentation</a>.
+setStyleBytes(#wx_ref{type=ThisT,ref=ThisRef},Length)
+ when is_integer(Length) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_SetStyleBytes,
+ <<ThisRef:32/?UI,Length:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Visible::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetvisible">external documentation</a>.
+styleSetVisible(#wx_ref{type=ThisT,ref=ThisRef},Style,Visible)
+ when is_integer(Style),is_boolean(Visible) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetVisible,
+ <<ThisRef:32/?UI,Style:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretperiod">external documentation</a>.
+getCaretPeriod(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretPeriod,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PeriodMilliseconds::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretperiod">external documentation</a>.
+setCaretPeriod(#wx_ref{type=ThisT,ref=ThisRef},PeriodMilliseconds)
+ when is_integer(PeriodMilliseconds) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretPeriod,
+ <<ThisRef:32/?UI,PeriodMilliseconds:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Characters::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwordchars">external documentation</a>.
+setWordChars(#wx_ref{type=ThisT,ref=ThisRef},Characters)
+ when is_list(Characters) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Characters_UC = unicode:characters_to_binary([Characters,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetWordChars,
+ <<ThisRef:32/?UI,(byte_size(Characters_UC)):32/?UI,(Characters_UC)/binary, 0:(((8- ((0+byte_size(Characters_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlbeginundoaction">external documentation</a>.
+beginUndoAction(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_BeginUndoAction,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlendundoaction">external documentation</a>.
+endUndoAction(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EndUndoAction,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Indic::integer(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlindicatorsetstyle">external documentation</a>.
+indicatorSetStyle(#wx_ref{type=ThisT,ref=ThisRef},Indic,Style)
+ when is_integer(Indic),is_integer(Style) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_IndicatorSetStyle,
+ <<ThisRef:32/?UI,Indic:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Indic::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlindicatorgetstyle">external documentation</a>.
+indicatorGetStyle(#wx_ref{type=ThisT,ref=ThisRef},Indic)
+ when is_integer(Indic) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_IndicatorGetStyle,
+ <<ThisRef:32/?UI,Indic:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Indic::integer(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlindicatorsetforeground">external documentation</a>.
+indicatorSetForeground(#wx_ref{type=ThisT,ref=ThisRef},Indic,Fore)
+ when is_integer(Indic),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_IndicatorSetForeground,
+ <<ThisRef:32/?UI,Indic:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Indic::integer()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlindicatorgetforeground">external documentation</a>.
+indicatorGetForeground(#wx_ref{type=ThisT,ref=ThisRef},Indic)
+ when is_integer(Indic) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_IndicatorGetForeground,
+ <<ThisRef:32/?UI,Indic:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwhitespaceforeground">external documentation</a>.
+setWhitespaceForeground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Fore)
+ when is_boolean(UseSetting),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWhitespaceForeground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwhitespacebackground">external documentation</a>.
+setWhitespaceBackground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Back)
+ when is_boolean(UseSetting),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWhitespaceBackground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstylebits">external documentation</a>.
+getStyleBits(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetStyleBits,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), State::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlinestate">external documentation</a>.
+setLineState(#wx_ref{type=ThisT,ref=ThisRef},Line,State)
+ when is_integer(Line),is_integer(State) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetLineState,
+ <<ThisRef:32/?UI,Line:32/?UI,State:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlinestate">external documentation</a>.
+getLineState(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineState,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmaxlinestate">external documentation</a>.
+getMaxLineState(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMaxLineState,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretlinevisible">external documentation</a>.
+getCaretLineVisible(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretLineVisible,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretlinevisible">external documentation</a>.
+setCaretLineVisible(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretLineVisible,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretlinebackground">external documentation</a>.
+getCaretLineBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretLineBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretlinebackground">external documentation</a>.
+setCaretLineBackground(#wx_ref{type=ThisT,ref=ThisRef},Back)
+ when tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretLineBackground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), LenEntered::integer(), ItemList::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompshow">external documentation</a>.
+autoCompShow(#wx_ref{type=ThisT,ref=ThisRef},LenEntered,ItemList)
+ when is_integer(LenEntered),is_list(ItemList) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ItemList_UC = unicode:characters_to_binary([ItemList,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompShow,
+ <<ThisRef:32/?UI,LenEntered:32/?UI,(byte_size(ItemList_UC)):32/?UI,(ItemList_UC)/binary, 0:(((8- ((4+byte_size(ItemList_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompcancel">external documentation</a>.
+autoCompCancel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompCancel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompactive">external documentation</a>.
+autoCompActive(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompActive,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompposstart">external documentation</a>.
+autoCompPosStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompPosStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompcomplete">external documentation</a>.
+autoCompComplete(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompComplete,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CharacterSet::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompstops">external documentation</a>.
+autoCompStops(#wx_ref{type=ThisT,ref=ThisRef},CharacterSet)
+ when is_list(CharacterSet) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ CharacterSet_UC = unicode:characters_to_binary([CharacterSet,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompStops,
+ <<ThisRef:32/?UI,(byte_size(CharacterSet_UC)):32/?UI,(CharacterSet_UC)/binary, 0:(((8- ((0+byte_size(CharacterSet_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), SeparatorCharacter::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetseparator">external documentation</a>.
+autoCompSetSeparator(#wx_ref{type=ThisT,ref=ThisRef},SeparatorCharacter)
+ when is_integer(SeparatorCharacter) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetSeparator,
+ <<ThisRef:32/?UI,SeparatorCharacter:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetseparator">external documentation</a>.
+autoCompGetSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompselect">external documentation</a>.
+autoCompSelect(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSelect,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Cancel::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetcancelatstart">external documentation</a>.
+autoCompSetCancelAtStart(#wx_ref{type=ThisT,ref=ThisRef},Cancel)
+ when is_boolean(Cancel) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetCancelAtStart,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Cancel)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetcancelatstart">external documentation</a>.
+autoCompGetCancelAtStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetCancelAtStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CharacterSet::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetfillups">external documentation</a>.
+autoCompSetFillUps(#wx_ref{type=ThisT,ref=ThisRef},CharacterSet)
+ when is_list(CharacterSet) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ CharacterSet_UC = unicode:characters_to_binary([CharacterSet,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetFillUps,
+ <<ThisRef:32/?UI,(byte_size(CharacterSet_UC)):32/?UI,(CharacterSet_UC)/binary, 0:(((8- ((0+byte_size(CharacterSet_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), ChooseSingle::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetchoosesingle">external documentation</a>.
+autoCompSetChooseSingle(#wx_ref{type=ThisT,ref=ThisRef},ChooseSingle)
+ when is_boolean(ChooseSingle) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetChooseSingle,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ChooseSingle)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetchoosesingle">external documentation</a>.
+autoCompGetChooseSingle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetChooseSingle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), IgnoreCase::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetignorecase">external documentation</a>.
+autoCompSetIgnoreCase(#wx_ref{type=ThisT,ref=ThisRef},IgnoreCase)
+ when is_boolean(IgnoreCase) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetIgnoreCase,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(IgnoreCase)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetignorecase">external documentation</a>.
+autoCompGetIgnoreCase(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetIgnoreCase,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), ListType::integer(), ItemList::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrluserlistshow">external documentation</a>.
+userListShow(#wx_ref{type=ThisT,ref=ThisRef},ListType,ItemList)
+ when is_integer(ListType),is_list(ItemList) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ItemList_UC = unicode:characters_to_binary([ItemList,0]),
+ wxe_util:cast(?wxStyledTextCtrl_UserListShow,
+ <<ThisRef:32/?UI,ListType:32/?UI,(byte_size(ItemList_UC)):32/?UI,(ItemList_UC)/binary, 0:(((8- ((4+byte_size(ItemList_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), AutoHide::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetautohide">external documentation</a>.
+autoCompSetAutoHide(#wx_ref{type=ThisT,ref=ThisRef},AutoHide)
+ when is_boolean(AutoHide) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetAutoHide,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(AutoHide)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetautohide">external documentation</a>.
+autoCompGetAutoHide(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetAutoHide,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), DropRestOfWord::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetdroprestofword">external documentation</a>.
+autoCompSetDropRestOfWord(#wx_ref{type=ThisT,ref=ThisRef},DropRestOfWord)
+ when is_boolean(DropRestOfWord) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetDropRestOfWord,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(DropRestOfWord)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetdroprestofword">external documentation</a>.
+autoCompGetDropRestOfWord(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetDropRestOfWord,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Type::integer(), Bmp::wxBitmap:wxBitmap()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlregisterimage">external documentation</a>.
+registerImage(#wx_ref{type=ThisT,ref=ThisRef},Type,#wx_ref{type=BmpT,ref=BmpRef})
+ when is_integer(Type) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(BmpT,wxBitmap),
+ wxe_util:cast(?wxStyledTextCtrl_RegisterImage,
+ <<ThisRef:32/?UI,Type:32/?UI,BmpRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlclearregisteredimages">external documentation</a>.
+clearRegisteredImages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ClearRegisteredImages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgettypeseparator">external documentation</a>.
+autoCompGetTypeSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetTypeSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), SeparatorCharacter::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsettypeseparator">external documentation</a>.
+autoCompSetTypeSeparator(#wx_ref{type=ThisT,ref=ThisRef},SeparatorCharacter)
+ when is_integer(SeparatorCharacter) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetTypeSeparator,
+ <<ThisRef:32/?UI,SeparatorCharacter:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CharacterCount::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetmaxwidth">external documentation</a>.
+autoCompSetMaxWidth(#wx_ref{type=ThisT,ref=ThisRef},CharacterCount)
+ when is_integer(CharacterCount) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetMaxWidth,
+ <<ThisRef:32/?UI,CharacterCount:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetmaxwidth">external documentation</a>.
+autoCompGetMaxWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetMaxWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), RowCount::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompsetmaxheight">external documentation</a>.
+autoCompSetMaxHeight(#wx_ref{type=ThisT,ref=ThisRef},RowCount)
+ when is_integer(RowCount) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_AutoCompSetMaxHeight,
+ <<ThisRef:32/?UI,RowCount:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetmaxheight">external documentation</a>.
+autoCompGetMaxHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetMaxHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), IndentSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetindent">external documentation</a>.
+setIndent(#wx_ref{type=ThisT,ref=ThisRef},IndentSize)
+ when is_integer(IndentSize) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetIndent,
+ <<ThisRef:32/?UI,IndentSize:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetindent">external documentation</a>.
+getIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseTabs::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetusetabs">external documentation</a>.
+setUseTabs(#wx_ref{type=ThisT,ref=ThisRef},UseTabs)
+ when is_boolean(UseTabs) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetUseTabs,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseTabs)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetusetabs">external documentation</a>.
+getUseTabs(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetUseTabs,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), IndentSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlineindentation">external documentation</a>.
+setLineIndentation(#wx_ref{type=ThisT,ref=ThisRef},Line,IndentSize)
+ when is_integer(Line),is_integer(IndentSize) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetLineIndentation,
+ <<ThisRef:32/?UI,Line:32/?UI,IndentSize:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlineindentation">external documentation</a>.
+getLineIndentation(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineIndentation,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlineindentposition">external documentation</a>.
+getLineIndentPosition(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineIndentPosition,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcolumn">external documentation</a>.
+getColumn(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetColumn,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetusehorizontalscrollbar">external documentation</a>.
+setUseHorizontalScrollBar(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetUseHorizontalScrollBar,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetusehorizontalscrollbar">external documentation</a>.
+getUseHorizontalScrollBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetUseHorizontalScrollBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetindentationguides">external documentation</a>.
+setIndentationGuides(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetIndentationGuides,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetindentationguides">external documentation</a>.
+getIndentationGuides(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetIndentationGuides,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethighlightguide">external documentation</a>.
+setHighlightGuide(#wx_ref{type=ThisT,ref=ThisRef},Column)
+ when is_integer(Column) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetHighlightGuide,
+ <<ThisRef:32/?UI,Column:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgethighlightguide">external documentation</a>.
+getHighlightGuide(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetHighlightGuide,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlineendposition">external documentation</a>.
+getLineEndPosition(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineEndPosition,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcodepage">external documentation</a>.
+getCodePage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCodePage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretforeground">external documentation</a>.
+getCaretForeground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretForeground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetreadonly">external documentation</a>.
+getReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetReadOnly,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcurrentpos">external documentation</a>.
+setCurrentPos(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCurrentPos,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselectionstart">external documentation</a>.
+setSelectionStart(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelectionStart,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselectionstart">external documentation</a>.
+getSelectionStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelectionStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselectionend">external documentation</a>.
+setSelectionEnd(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelectionEnd,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselectionend">external documentation</a>.
+getSelectionEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelectionEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Magnification::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetprintmagnification">external documentation</a>.
+setPrintMagnification(#wx_ref{type=ThisT,ref=ThisRef},Magnification)
+ when is_integer(Magnification) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetPrintMagnification,
+ <<ThisRef:32/?UI,Magnification:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetprintmagnification">external documentation</a>.
+getPrintMagnification(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetPrintMagnification,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetprintcolourmode">external documentation</a>.
+setPrintColourMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetPrintColourMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetprintcolourmode">external documentation</a>.
+getPrintColourMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetPrintColourMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), MinPos::integer(), MaxPos::integer(), Text::string()) -> integer()
+%% @equiv findText(This,MinPos,MaxPos,Text, [])
+findText(This,MinPos,MaxPos,Text)
+ when is_record(This, wx_ref),is_integer(MinPos),is_integer(MaxPos),is_list(Text) ->
+ findText(This,MinPos,MaxPos,Text, []).
+
+%% @spec (This::wxStyledTextCtrl(), MinPos::integer(), MaxPos::integer(), Text::string(), [Option]) -> integer()
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlfindtext">external documentation</a>.
+findText(#wx_ref{type=ThisT,ref=ThisRef},MinPos,MaxPos,Text, Options)
+ when is_integer(MinPos),is_integer(MaxPos),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStyledTextCtrl_FindText,
+ <<ThisRef:32/?UI,MinPos:32/?UI,MaxPos:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), DoDraw::bool(), StartPos::integer(), EndPos::integer(), Draw::wxDC:wxDC(), Target::wxDC:wxDC(), RenderRect::{X::integer(),Y::integer(),W::integer(),H::integer()}, PageRect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlformatrange">external documentation</a>.
+formatRange(#wx_ref{type=ThisT,ref=ThisRef},DoDraw,StartPos,EndPos,#wx_ref{type=DrawT,ref=DrawRef},#wx_ref{type=TargetT,ref=TargetRef},{RenderRectX,RenderRectY,RenderRectW,RenderRectH},{PageRectX,PageRectY,PageRectW,PageRectH})
+ when is_boolean(DoDraw),is_integer(StartPos),is_integer(EndPos),is_integer(RenderRectX),is_integer(RenderRectY),is_integer(RenderRectW),is_integer(RenderRectH),is_integer(PageRectX),is_integer(PageRectY),is_integer(PageRectW),is_integer(PageRectH) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(DrawT,wxDC),
+ ?CLASS(TargetT,wxDC),
+ wxe_util:call(?wxStyledTextCtrl_FormatRange,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(DoDraw)):32/?UI,StartPos:32/?UI,EndPos:32/?UI,DrawRef:32/?UI,TargetRef:32/?UI,RenderRectX:32/?UI,RenderRectY:32/?UI,RenderRectW:32/?UI,RenderRectH:32/?UI,PageRectX:32/?UI,PageRectY:32/?UI,PageRectW:32/?UI,PageRectH:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetfirstvisibleline">external documentation</a>.
+getFirstVisibleLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetFirstVisibleLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetline">external documentation</a>.
+getLine(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLine,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlinecount">external documentation</a>.
+getLineCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmarginleft">external documentation</a>.
+setMarginLeft(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth)
+ when is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginLeft,
+ <<ThisRef:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmarginleft">external documentation</a>.
+getMarginLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmarginright">external documentation</a>.
+setMarginRight(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth)
+ when is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMarginRight,
+ <<ThisRef:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmarginright">external documentation</a>.
+getMarginRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMarginRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmodify">external documentation</a>.
+getModify(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetModify,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},Start,End)
+ when is_integer(Start),is_integer(End) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelection,
+ <<ThisRef:32/?UI,Start:32/?UI,End:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselectedtext">external documentation</a>.
+getSelectedText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelectedText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettextrange">external documentation</a>.
+getTextRange(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos)
+ when is_integer(StartPos),is_integer(EndPos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTextRange,
+ <<ThisRef:32/?UI,StartPos:32/?UI,EndPos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Normal::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhideselection">external documentation</a>.
+hideSelection(#wx_ref{type=ThisT,ref=ThisRef},Normal)
+ when is_boolean(Normal) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HideSelection,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Normal)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinefromposition">external documentation</a>.
+lineFromPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_LineFromPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpositionfromline">external documentation</a>.
+positionFromLine(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PositionFromLine,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Columns::integer(), Lines::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinescroll">external documentation</a>.
+lineScroll(#wx_ref{type=ThisT,ref=ThisRef},Columns,Lines)
+ when is_integer(Columns),is_integer(Lines) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineScroll,
+ <<ThisRef:32/?UI,Columns:32/?UI,Lines:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlensurecaretvisible">external documentation</a>.
+ensureCaretVisible(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EnsureCaretVisible,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlreplaceselection">external documentation</a>.
+replaceSelection(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_ReplaceSelection,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), ReadOnly::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetreadonly">external documentation</a>.
+setReadOnly(#wx_ref{type=ThisT,ref=ThisRef},ReadOnly)
+ when is_boolean(ReadOnly) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetReadOnly,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(ReadOnly)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcanpaste">external documentation</a>.
+canPaste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_CanPaste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcanundo">external documentation</a>.
+canUndo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_CanUndo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlemptyundobuffer">external documentation</a>.
+emptyUndoBuffer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EmptyUndoBuffer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlundo">external documentation</a>.
+undo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Undo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcut">external documentation</a>.
+cut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Cut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcopy">external documentation</a>.
+copy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Copy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpaste">external documentation</a>.
+paste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Paste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettext">external documentation</a>.
+setText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettextlength">external documentation</a>.
+getTextLength(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTextLength,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetovertype">external documentation</a>.
+getOvertype(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetOvertype,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretwidth">external documentation</a>.
+setCaretWidth(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth)
+ when is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretWidth,
+ <<ThisRef:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretwidth">external documentation</a>.
+getCaretWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettargetstart">external documentation</a>.
+setTargetStart(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetTargetStart,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettargetstart">external documentation</a>.
+getTargetStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTargetStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettargetend">external documentation</a>.
+setTargetEnd(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetTargetEnd,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettargetend">external documentation</a>.
+getTargetEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTargetEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlreplacetarget">external documentation</a>.
+replaceTarget(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxStyledTextCtrl_ReplaceTarget,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsearchintarget">external documentation</a>.
+searchInTarget(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxStyledTextCtrl_SearchInTarget,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetsearchflags">external documentation</a>.
+setSearchFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSearchFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetsearchflags">external documentation</a>.
+getSearchFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSearchFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Definition::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipshow">external documentation</a>.
+callTipShow(#wx_ref{type=ThisT,ref=ThisRef},Pos,Definition)
+ when is_integer(Pos),is_list(Definition) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Definition_UC = unicode:characters_to_binary([Definition,0]),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipShow,
+ <<ThisRef:32/?UI,Pos:32/?UI,(byte_size(Definition_UC)):32/?UI,(Definition_UC)/binary, 0:(((8- ((4+byte_size(Definition_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipcancel">external documentation</a>.
+callTipCancel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipCancel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipactive">external documentation</a>.
+callTipActive(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_CallTipActive,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipposatstart">external documentation</a>.
+callTipPosAtStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_CallTipPosAtStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipsethighlight">external documentation</a>.
+callTipSetHighlight(#wx_ref{type=ThisT,ref=ThisRef},Start,End)
+ when is_integer(Start),is_integer(End) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipSetHighlight,
+ <<ThisRef:32/?UI,Start:32/?UI,End:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipsetbackground">external documentation</a>.
+callTipSetBackground(#wx_ref{type=ThisT,ref=ThisRef},Back)
+ when tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipSetBackground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipsetforeground">external documentation</a>.
+callTipSetForeground(#wx_ref{type=ThisT,ref=ThisRef},Fore)
+ when tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipSetForeground,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipsetforegroundhighlight">external documentation</a>.
+callTipSetForegroundHighlight(#wx_ref{type=ThisT,ref=ThisRef},Fore)
+ when tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipSetForegroundHighlight,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), TabSize::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcalltipusestyle">external documentation</a>.
+callTipUseStyle(#wx_ref{type=ThisT,ref=ThisRef},TabSize)
+ when is_integer(TabSize) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CallTipUseStyle,
+ <<ThisRef:32/?UI,TabSize:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvisiblefromdocline">external documentation</a>.
+visibleFromDocLine(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_VisibleFromDocLine,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), LineDisplay::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldoclinefromvisible">external documentation</a>.
+docLineFromVisible(#wx_ref{type=ThisT,ref=ThisRef},LineDisplay)
+ when is_integer(LineDisplay) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_DocLineFromVisible,
+ <<ThisRef:32/?UI,LineDisplay:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwrapcount">external documentation</a>.
+wrapCount(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_WrapCount,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), Level::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetfoldlevel">external documentation</a>.
+setFoldLevel(#wx_ref{type=ThisT,ref=ThisRef},Line,Level)
+ when is_integer(Line),is_integer(Level) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetFoldLevel,
+ <<ThisRef:32/?UI,Line:32/?UI,Level:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetfoldlevel">external documentation</a>.
+getFoldLevel(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetFoldLevel,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), Level::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlastchild">external documentation</a>.
+getLastChild(#wx_ref{type=ThisT,ref=ThisRef},Line,Level)
+ when is_integer(Line),is_integer(Level) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLastChild,
+ <<ThisRef:32/?UI,Line:32/?UI,Level:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetfoldparent">external documentation</a>.
+getFoldParent(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetFoldParent,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), LineEnd::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlshowlines">external documentation</a>.
+showLines(#wx_ref{type=ThisT,ref=ThisRef},LineStart,LineEnd)
+ when is_integer(LineStart),is_integer(LineEnd) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ShowLines,
+ <<ThisRef:32/?UI,LineStart:32/?UI,LineEnd:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), LineEnd::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhidelines">external documentation</a>.
+hideLines(#wx_ref{type=ThisT,ref=ThisRef},LineStart,LineEnd)
+ when is_integer(LineStart),is_integer(LineEnd) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HideLines,
+ <<ThisRef:32/?UI,LineStart:32/?UI,LineEnd:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlinevisible">external documentation</a>.
+getLineVisible(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineVisible,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), Expanded::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetfoldexpanded">external documentation</a>.
+setFoldExpanded(#wx_ref{type=ThisT,ref=ThisRef},Line,Expanded)
+ when is_integer(Line),is_boolean(Expanded) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetFoldExpanded,
+ <<ThisRef:32/?UI,Line:32/?UI,(wxe_util:from_bool(Expanded)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetfoldexpanded">external documentation</a>.
+getFoldExpanded(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetFoldExpanded,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltogglefold">external documentation</a>.
+toggleFold(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ToggleFold,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlensurevisible">external documentation</a>.
+ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EnsureVisible,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetfoldflags">external documentation</a>.
+setFoldFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetFoldFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlensurevisibleenforcepolicy">external documentation</a>.
+ensureVisibleEnforcePolicy(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EnsureVisibleEnforcePolicy,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), TabIndents::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettabindents">external documentation</a>.
+setTabIndents(#wx_ref{type=ThisT,ref=ThisRef},TabIndents)
+ when is_boolean(TabIndents) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetTabIndents,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(TabIndents)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettabindents">external documentation</a>.
+getTabIndents(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTabIndents,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), BsUnIndents::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetbackspaceunindents">external documentation</a>.
+setBackSpaceUnIndents(#wx_ref{type=ThisT,ref=ThisRef},BsUnIndents)
+ when is_boolean(BsUnIndents) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetBackSpaceUnIndents,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(BsUnIndents)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetbackspaceunindents">external documentation</a>.
+getBackSpaceUnIndents(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetBackSpaceUnIndents,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PeriodMilliseconds::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmousedwelltime">external documentation</a>.
+setMouseDwellTime(#wx_ref{type=ThisT,ref=ThisRef},PeriodMilliseconds)
+ when is_integer(PeriodMilliseconds) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMouseDwellTime,
+ <<ThisRef:32/?UI,PeriodMilliseconds:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmousedwelltime">external documentation</a>.
+getMouseDwellTime(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMouseDwellTime,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), OnlyWordCharacters::bool()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordstartposition">external documentation</a>.
+wordStartPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos,OnlyWordCharacters)
+ when is_integer(Pos),is_boolean(OnlyWordCharacters) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_WordStartPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI,(wxe_util:from_bool(OnlyWordCharacters)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), OnlyWordCharacters::bool()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordendposition">external documentation</a>.
+wordEndPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos,OnlyWordCharacters)
+ when is_integer(Pos),is_boolean(OnlyWordCharacters) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_WordEndPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI,(wxe_util:from_bool(OnlyWordCharacters)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwrapmode">external documentation</a>.
+setWrapMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWrapMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetwrapmode">external documentation</a>.
+getWrapMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetWrapMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), WrapVisualFlags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwrapvisualflags">external documentation</a>.
+setWrapVisualFlags(#wx_ref{type=ThisT,ref=ThisRef},WrapVisualFlags)
+ when is_integer(WrapVisualFlags) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWrapVisualFlags,
+ <<ThisRef:32/?UI,WrapVisualFlags:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetwrapvisualflags">external documentation</a>.
+getWrapVisualFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetWrapVisualFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), WrapVisualFlagsLocation::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwrapvisualflagslocation">external documentation</a>.
+setWrapVisualFlagsLocation(#wx_ref{type=ThisT,ref=ThisRef},WrapVisualFlagsLocation)
+ when is_integer(WrapVisualFlagsLocation) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWrapVisualFlagsLocation,
+ <<ThisRef:32/?UI,WrapVisualFlagsLocation:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetwrapvisualflagslocation">external documentation</a>.
+getWrapVisualFlagsLocation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetWrapVisualFlagsLocation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Indent::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwrapstartindent">external documentation</a>.
+setWrapStartIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent)
+ when is_integer(Indent) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetWrapStartIndent,
+ <<ThisRef:32/?UI,Indent:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetwrapstartindent">external documentation</a>.
+getWrapStartIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetWrapStartIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlayoutcache">external documentation</a>.
+setLayoutCache(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetLayoutCache,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlayoutcache">external documentation</a>.
+getLayoutCache(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLayoutCache,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetscrollwidth">external documentation</a>.
+setScrollWidth(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth)
+ when is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetScrollWidth,
+ <<ThisRef:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetscrollwidth">external documentation</a>.
+getScrollWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetScrollWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Text::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltextwidth">external documentation</a>.
+textWidth(#wx_ref{type=ThisT,ref=ThisRef},Style,Text)
+ when is_integer(Style),is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxStyledTextCtrl_TextWidth,
+ <<ThisRef:32/?UI,Style:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetendatlastline">external documentation</a>.
+getEndAtLastLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEndAtLastLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltextheight">external documentation</a>.
+textHeight(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_TextHeight,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetuseverticalscrollbar">external documentation</a>.
+setUseVerticalScrollBar(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetUseVerticalScrollBar,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetuseverticalscrollbar">external documentation</a>.
+getUseVerticalScrollBar(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetUseVerticalScrollBar,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlappendtext">external documentation</a>.
+appendText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_AppendText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettwophasedraw">external documentation</a>.
+getTwoPhaseDraw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTwoPhaseDraw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), TwoPhase::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettwophasedraw">external documentation</a>.
+setTwoPhaseDraw(#wx_ref{type=ThisT,ref=ThisRef},TwoPhase)
+ when is_boolean(TwoPhase) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetTwoPhaseDraw,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(TwoPhase)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltargetfromselection">external documentation</a>.
+targetFromSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_TargetFromSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinesjoin">external documentation</a>.
+linesJoin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LinesJoin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinessplit">external documentation</a>.
+linesSplit(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth)
+ when is_integer(PixelWidth) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LinesSplit,
+ <<ThisRef:32/?UI,PixelWidth:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetfoldmargincolour">external documentation</a>.
+setFoldMarginColour(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Back)
+ when is_boolean(UseSetting),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetFoldMarginColour,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetfoldmarginhicolour">external documentation</a>.
+setFoldMarginHiColour(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Fore)
+ when is_boolean(UseSetting),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetFoldMarginHiColour,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinedown">external documentation</a>.
+lineDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinedownextend">external documentation</a>.
+lineDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineDownExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineup">external documentation</a>.
+lineUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineupextend">external documentation</a>.
+lineUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineUpExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharleft">external documentation</a>.
+charLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharleftextend">external documentation</a>.
+charLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharLeftExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharright">external documentation</a>.
+charRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharrightextend">external documentation</a>.
+charRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharRightExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordleft">external documentation</a>.
+wordLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordleftextend">external documentation</a>.
+wordLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordLeftExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordright">external documentation</a>.
+wordRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordrightextend">external documentation</a>.
+wordRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordRightExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhome">external documentation</a>.
+home(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Home,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhomeextend">external documentation</a>.
+homeExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HomeExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineend">external documentation</a>.
+lineEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineendextend">external documentation</a>.
+lineEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldocumentstart">external documentation</a>.
+documentStart(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DocumentStart,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldocumentstartextend">external documentation</a>.
+documentStartExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DocumentStartExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldocumentend">external documentation</a>.
+documentEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DocumentEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldocumentendextend">external documentation</a>.
+documentEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DocumentEndExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpageup">external documentation</a>.
+pageUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpageupextend">external documentation</a>.
+pageUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageUpExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpagedown">external documentation</a>.
+pageDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpagedownextend">external documentation</a>.
+pageDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageDownExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrledittoggleovertype">external documentation</a>.
+editToggleOvertype(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_EditToggleOvertype,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcancel">external documentation</a>.
+cancel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Cancel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldeleteback">external documentation</a>.
+deleteBack(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DeleteBack,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltab">external documentation</a>.
+tab(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Tab,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlbacktab">external documentation</a>.
+backTab(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_BackTab,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlnewline">external documentation</a>.
+newLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_NewLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlformfeed">external documentation</a>.
+formFeed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_FormFeed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvchome">external documentation</a>.
+vCHome(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_VCHome,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvchomeextend">external documentation</a>.
+vCHomeExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_VCHomeExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlzoomin">external documentation</a>.
+zoomIn(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ZoomIn,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlzoomout">external documentation</a>.
+zoomOut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ZoomOut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldelwordleft">external documentation</a>.
+delWordLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DelWordLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldelwordright">external documentation</a>.
+delWordRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DelWordRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinecut">external documentation</a>.
+lineCut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineCut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinedelete">external documentation</a>.
+lineDelete(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineDelete,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinetranspose">external documentation</a>.
+lineTranspose(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineTranspose,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineduplicate">external documentation</a>.
+lineDuplicate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineDuplicate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllowercase">external documentation</a>.
+lowerCase(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LowerCase,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrluppercase">external documentation</a>.
+upperCase(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_UpperCase,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinescrolldown">external documentation</a>.
+lineScrollDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineScrollDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinescrollup">external documentation</a>.
+lineScrollUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineScrollUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldeletebacknotline">external documentation</a>.
+deleteBackNotLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DeleteBackNotLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhomedisplay">external documentation</a>.
+homeDisplay(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HomeDisplay,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhomedisplayextend">external documentation</a>.
+homeDisplayExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HomeDisplayExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineenddisplay">external documentation</a>.
+lineEndDisplay(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndDisplay,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineenddisplayextend">external documentation</a>.
+lineEndDisplayExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndDisplayExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhomewrapextend">external documentation</a>.
+homeWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HomeWrapExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineendwrap">external documentation</a>.
+lineEndWrap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndWrap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineendwrapextend">external documentation</a>.
+lineEndWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndWrapExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvchomewrap">external documentation</a>.
+vCHomeWrap(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_VCHomeWrap,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvchomewrapextend">external documentation</a>.
+vCHomeWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_VCHomeWrapExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinecopy">external documentation</a>.
+lineCopy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineCopy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlmovecaretinsideview">external documentation</a>.
+moveCaretInsideView(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_MoveCaretInsideView,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinelength">external documentation</a>.
+lineLength(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_LineLength,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos1::integer(), Pos2::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlbracehighlight">external documentation</a>.
+braceHighlight(#wx_ref{type=ThisT,ref=ThisRef},Pos1,Pos2)
+ when is_integer(Pos1),is_integer(Pos2) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_BraceHighlight,
+ <<ThisRef:32/?UI,Pos1:32/?UI,Pos2:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlbracebadlight">external documentation</a>.
+braceBadLight(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_BraceBadLight,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlbracematch">external documentation</a>.
+braceMatch(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_BraceMatch,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetvieweol">external documentation</a>.
+getViewEOL(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetViewEOL,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Visible::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetvieweol">external documentation</a>.
+setViewEOL(#wx_ref{type=ThisT,ref=ThisRef},Visible)
+ when is_boolean(Visible) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetViewEOL,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Visible)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Mask::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmodeventmask">external documentation</a>.
+setModEventMask(#wx_ref{type=ThisT,ref=ThisRef},Mask)
+ when is_integer(Mask) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetModEventMask,
+ <<ThisRef:32/?UI,Mask:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetedgecolumn">external documentation</a>.
+getEdgeColumn(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEdgeColumn,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetedgecolumn">external documentation</a>.
+setEdgeColumn(#wx_ref{type=ThisT,ref=ThisRef},Column)
+ when is_integer(Column) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetEdgeColumn,
+ <<ThisRef:32/?UI,Column:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetedgemode">external documentation</a>.
+getEdgeMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEdgeMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetedgecolour">external documentation</a>.
+getEdgeColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetEdgeColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), EdgeColour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetedgecolour">external documentation</a>.
+setEdgeColour(#wx_ref{type=ThisT,ref=ThisRef},EdgeColour)
+ when tuple_size(EdgeColour) =:= 3; tuple_size(EdgeColour) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetEdgeColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(EdgeColour)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsearchanchor">external documentation</a>.
+searchAnchor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SearchAnchor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Flags::integer(), Text::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsearchnext">external documentation</a>.
+searchNext(#wx_ref{type=ThisT,ref=ThisRef},Flags,Text)
+ when is_integer(Flags),is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxStyledTextCtrl_SearchNext,
+ <<ThisRef:32/?UI,Flags:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Flags::integer(), Text::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsearchprev">external documentation</a>.
+searchPrev(#wx_ref{type=ThisT,ref=ThisRef},Flags,Text)
+ when is_integer(Flags),is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:call(?wxStyledTextCtrl_SearchPrev,
+ <<ThisRef:32/?UI,Flags:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinesonscreen">external documentation</a>.
+linesOnScreen(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_LinesOnScreen,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), AllowPopUp::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlusepopup">external documentation</a>.
+usePopUp(#wx_ref{type=ThisT,ref=ThisRef},AllowPopUp)
+ when is_boolean(AllowPopUp) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_UsePopUp,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(AllowPopUp)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlselectionisrectangle">external documentation</a>.
+selectionIsRectangle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_SelectionIsRectangle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Zoom::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetzoom">external documentation</a>.
+setZoom(#wx_ref{type=ThisT,ref=ThisRef},Zoom)
+ when is_integer(Zoom) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetZoom,
+ <<ThisRef:32/?UI,Zoom:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetzoom">external documentation</a>.
+getZoom(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetZoom,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmodeventmask">external documentation</a>.
+getModEventMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetModEventMask,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Focus::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetstcfocus">external documentation</a>.
+setSTCFocus(#wx_ref{type=ThisT,ref=ThisRef},Focus)
+ when is_boolean(Focus) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSTCFocus,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Focus)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstcfocus">external documentation</a>.
+getSTCFocus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSTCFocus,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StatusCode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetstatus">external documentation</a>.
+setStatus(#wx_ref{type=ThisT,ref=ThisRef},StatusCode)
+ when is_integer(StatusCode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetStatus,
+ <<ThisRef:32/?UI,StatusCode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstatus">external documentation</a>.
+getStatus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetStatus,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Captures::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmousedowncaptures">external documentation</a>.
+setMouseDownCaptures(#wx_ref{type=ThisT,ref=ThisRef},Captures)
+ when is_boolean(Captures) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMouseDownCaptures,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Captures)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetmousedowncaptures">external documentation</a>.
+getMouseDownCaptures(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetMouseDownCaptures,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CursorType::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetstccursor">external documentation</a>.
+setSTCCursor(#wx_ref{type=ThisT,ref=ThisRef},CursorType)
+ when is_integer(CursorType) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSTCCursor,
+ <<ThisRef:32/?UI,CursorType:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstccursor">external documentation</a>.
+getSTCCursor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSTCCursor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Symbol::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcontrolcharsymbol">external documentation</a>.
+setControlCharSymbol(#wx_ref{type=ThisT,ref=ThisRef},Symbol)
+ when is_integer(Symbol) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetControlCharSymbol,
+ <<ThisRef:32/?UI,Symbol:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcontrolcharsymbol">external documentation</a>.
+getControlCharSymbol(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetControlCharSymbol,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordpartleft">external documentation</a>.
+wordPartLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordPartLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordpartleftextend">external documentation</a>.
+wordPartLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordPartLeftExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordpartright">external documentation</a>.
+wordPartRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordPartRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordpartrightextend">external documentation</a>.
+wordPartRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordPartRightExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), VisiblePolicy::integer(), VisibleSlop::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetvisiblepolicy">external documentation</a>.
+setVisiblePolicy(#wx_ref{type=ThisT,ref=ThisRef},VisiblePolicy,VisibleSlop)
+ when is_integer(VisiblePolicy),is_integer(VisibleSlop) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetVisiblePolicy,
+ <<ThisRef:32/?UI,VisiblePolicy:32/?UI,VisibleSlop:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldellineleft">external documentation</a>.
+delLineLeft(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DelLineLeft,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldellineright">external documentation</a>.
+delLineRight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_DelLineRight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetxoffset">external documentation</a>.
+getXOffset(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetXOffset,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlchoosecaretx">external documentation</a>.
+chooseCaretX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ChooseCaretX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CaretPolicy::integer(), CaretSlop::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetxcaretpolicy">external documentation</a>.
+setXCaretPolicy(#wx_ref{type=ThisT,ref=ThisRef},CaretPolicy,CaretSlop)
+ when is_integer(CaretPolicy),is_integer(CaretSlop) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetXCaretPolicy,
+ <<ThisRef:32/?UI,CaretPolicy:32/?UI,CaretSlop:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), CaretPolicy::integer(), CaretSlop::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetycaretpolicy">external documentation</a>.
+setYCaretPolicy(#wx_ref{type=ThisT,ref=ThisRef},CaretPolicy,CaretSlop)
+ when is_integer(CaretPolicy),is_integer(CaretSlop) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetYCaretPolicy,
+ <<ThisRef:32/?UI,CaretPolicy:32/?UI,CaretSlop:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetprintwrapmode">external documentation</a>.
+getPrintWrapMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetPrintWrapMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethotspotactiveforeground">external documentation</a>.
+setHotspotActiveForeground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Fore)
+ when is_boolean(UseSetting),tuple_size(Fore) =:= 3; tuple_size(Fore) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetHotspotActiveForeground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Fore)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethotspotactivebackground">external documentation</a>.
+setHotspotActiveBackground(#wx_ref{type=ThisT,ref=ThisRef},UseSetting,Back)
+ when is_boolean(UseSetting),tuple_size(Back) =:= 3; tuple_size(Back) =:= 4 ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetHotspotActiveBackground,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseSetting)):32/?UI,(wxe_util:colour_bin(Back)):16/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Underline::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethotspotactiveunderline">external documentation</a>.
+setHotspotActiveUnderline(#wx_ref{type=ThisT,ref=ThisRef},Underline)
+ when is_boolean(Underline) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetHotspotActiveUnderline,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Underline)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), SingleLine::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethotspotsingleline">external documentation</a>.
+setHotspotSingleLine(#wx_ref{type=ThisT,ref=ThisRef},SingleLine)
+ when is_boolean(SingleLine) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetHotspotSingleLine,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(SingleLine)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlparadownextend">external documentation</a>.
+paraDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ParaDownExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlparaup">external documentation</a>.
+paraUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ParaUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlparaupextend">external documentation</a>.
+paraUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ParaUpExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpositionbefore">external documentation</a>.
+positionBefore(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PositionBefore,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpositionafter">external documentation</a>.
+positionAfter(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PositionAfter,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcopyrange">external documentation</a>.
+copyRange(#wx_ref{type=ThisT,ref=ThisRef},Start,End)
+ when is_integer(Start),is_integer(End) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CopyRange,
+ <<ThisRef:32/?UI,Start:32/?UI,End:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Length::integer(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcopytext">external documentation</a>.
+copyText(#wx_ref{type=ThisT,ref=ThisRef},Length,Text)
+ when is_integer(Length),is_list(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxStyledTextCtrl_CopyText,
+ <<ThisRef:32/?UI,Length:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetselectionmode">external documentation</a>.
+setSelectionMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
+ when is_integer(Mode) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetSelectionMode,
+ <<ThisRef:32/?UI,Mode:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselectionmode">external documentation</a>.
+getSelectionMode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelectionMode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllinedownrectextend">external documentation</a>.
+lineDownRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineDownRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineuprectextend">external documentation</a>.
+lineUpRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineUpRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharleftrectextend">external documentation</a>.
+charLeftRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharLeftRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcharrightrectextend">external documentation</a>.
+charRightRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CharRightRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlhomerectextend">external documentation</a>.
+homeRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_HomeRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlvchomerectextend">external documentation</a>.
+vCHomeRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_VCHomeRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrllineendrectextend">external documentation</a>.
+lineEndRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_LineEndRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpageuprectextend">external documentation</a>.
+pageUpRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageUpRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpagedownrectextend">external documentation</a>.
+pageDownRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_PageDownRectExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstutteredpageup">external documentation</a>.
+stutteredPageUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StutteredPageUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstutteredpageupextend">external documentation</a>.
+stutteredPageUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StutteredPageUpExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstutteredpagedown">external documentation</a>.
+stutteredPageDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StutteredPageDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstutteredpagedownextend">external documentation</a>.
+stutteredPageDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StutteredPageDownExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordleftend">external documentation</a>.
+wordLeftEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordLeftEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordleftendextend">external documentation</a>.
+wordLeftEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordLeftEndExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordrightend">external documentation</a>.
+wordRightEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordRightEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlwordrightendextend">external documentation</a>.
+wordRightEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_WordRightEndExtend,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Characters::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetwhitespacechars">external documentation</a>.
+setWhitespaceChars(#wx_ref{type=ThisT,ref=ThisRef},Characters)
+ when is_list(Characters) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Characters_UC = unicode:characters_to_binary([Characters,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetWhitespaceChars,
+ <<ThisRef:32/?UI,(byte_size(Characters_UC)):32/?UI,(Characters_UC)/binary, 0:(((8- ((0+byte_size(Characters_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcharsdefault">external documentation</a>.
+setCharsDefault(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCharsDefault,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlautocompgetcurrent">external documentation</a>.
+autoCompGetCurrent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_AutoCompGetCurrent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Bytes::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlallocate">external documentation</a>.
+allocate(#wx_ref{type=ThisT,ref=ThisRef},Bytes)
+ when is_integer(Bytes) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Allocate,
+ <<ThisRef:32/?UI,Bytes:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer(), Column::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlfindcolumn">external documentation</a>.
+findColumn(#wx_ref{type=ThisT,ref=ThisRef},Line,Column)
+ when is_integer(Line),is_integer(Column) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_FindColumn,
+ <<ThisRef:32/?UI,Line:32/?UI,Column:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretsticky">external documentation</a>.
+getCaretSticky(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretSticky,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), UseCaretStickyBehaviour::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretsticky">external documentation</a>.
+setCaretSticky(#wx_ref{type=ThisT,ref=ThisRef},UseCaretStickyBehaviour)
+ when is_boolean(UseCaretStickyBehaviour) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretSticky,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(UseCaretStickyBehaviour)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrltogglecaretsticky">external documentation</a>.
+toggleCaretSticky(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ToggleCaretSticky,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Convert::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetpasteconvertendings">external documentation</a>.
+setPasteConvertEndings(#wx_ref{type=ThisT,ref=ThisRef},Convert)
+ when is_boolean(Convert) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetPasteConvertEndings,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Convert)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetpasteconvertendings">external documentation</a>.
+getPasteConvertEndings(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetPasteConvertEndings,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlselectionduplicate">external documentation</a>.
+selectionDuplicate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SelectionDuplicate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Alpha::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetcaretlinebackalpha">external documentation</a>.
+setCaretLineBackAlpha(#wx_ref{type=ThisT,ref=ThisRef},Alpha)
+ when is_integer(Alpha) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetCaretLineBackAlpha,
+ <<ThisRef:32/?UI,Alpha:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcaretlinebackalpha">external documentation</a>.
+getCaretLineBackAlpha(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCaretLineBackAlpha,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstartrecord">external documentation</a>.
+startRecord(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StartRecord,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstoprecord">external documentation</a>.
+stopRecord(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StopRecord,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Lexer::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlexer">external documentation</a>.
+setLexer(#wx_ref{type=ThisT,ref=ThisRef},Lexer)
+ when is_integer(Lexer) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetLexer,
+ <<ThisRef:32/?UI,Lexer:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlexer">external documentation</a>.
+getLexer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLexer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcolourise">external documentation</a>.
+colourise(#wx_ref{type=ThisT,ref=ThisRef},Start,End)
+ when is_integer(Start),is_integer(End) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_Colourise,
+ <<ThisRef:32/?UI,Start:32/?UI,End:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Key::string(), Value::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetproperty">external documentation</a>.
+setProperty(#wx_ref{type=ThisT,ref=ThisRef},Key,Value)
+ when is_list(Key),is_list(Value) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Key_UC = unicode:characters_to_binary([Key,0]),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetProperty,
+ <<ThisRef:32/?UI,(byte_size(Key_UC)):32/?UI,(Key_UC)/binary, 0:(((8- ((0+byte_size(Key_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((4+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), KeywordSet::integer(), KeyWords::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetkeywords">external documentation</a>.
+setKeyWords(#wx_ref{type=ThisT,ref=ThisRef},KeywordSet,KeyWords)
+ when is_integer(KeywordSet),is_list(KeyWords) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ KeyWords_UC = unicode:characters_to_binary([KeyWords,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetKeyWords,
+ <<ThisRef:32/?UI,KeywordSet:32/?UI,(byte_size(KeyWords_UC)):32/?UI,(KeyWords_UC)/binary, 0:(((8- ((4+byte_size(KeyWords_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Language::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlexerlanguage">external documentation</a>.
+setLexerLanguage(#wx_ref{type=ThisT,ref=ThisRef},Language)
+ when is_list(Language) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Language_UC = unicode:characters_to_binary([Language,0]),
+ wxe_util:cast(?wxStyledTextCtrl_SetLexerLanguage,
+ <<ThisRef:32/?UI,(byte_size(Language_UC)):32/?UI,(Language_UC)/binary, 0:(((8- ((0+byte_size(Language_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Key::string()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetproperty">external documentation</a>.
+getProperty(#wx_ref{type=ThisT,ref=ThisRef},Key)
+ when is_list(Key) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Key_UC = unicode:characters_to_binary([Key,0]),
+ wxe_util:call(?wxStyledTextCtrl_GetProperty,
+ <<ThisRef:32/?UI,(byte_size(Key_UC)):32/?UI,(Key_UC)/binary, 0:(((8- ((0+byte_size(Key_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetstylebitsneeded">external documentation</a>.
+getStyleBitsNeeded(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetStyleBitsNeeded,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcurrentline">external documentation</a>.
+getCurrentLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCurrentLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Spec::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetspec">external documentation</a>.
+styleSetSpec(#wx_ref{type=ThisT,ref=ThisRef},StyleNum,Spec)
+ when is_integer(StyleNum),is_list(Spec) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Spec_UC = unicode:characters_to_binary([Spec,0]),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetSpec,
+ <<ThisRef:32/?UI,StyleNum:32/?UI,(byte_size(Spec_UC)):32/?UI,(Spec_UC)/binary, 0:(((8- ((4+byte_size(Spec_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetfont">external documentation</a>.
+styleSetFont(#wx_ref{type=ThisT,ref=ThisRef},StyleNum,#wx_ref{type=FontT,ref=FontRef})
+ when is_integer(StyleNum) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetFont,
+ <<ThisRef:32/?UI,StyleNum:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Size::integer(), FaceName::string(), Bold::bool(), Italic::bool(), Underline::bool()) -> ok
+%% @equiv styleSetFontAttr(This,StyleNum,Size,FaceName,Bold,Italic,Underline, [])
+styleSetFontAttr(This,StyleNum,Size,FaceName,Bold,Italic,Underline)
+ when is_record(This, wx_ref),is_integer(StyleNum),is_integer(Size),is_list(FaceName),is_boolean(Bold),is_boolean(Italic),is_boolean(Underline) ->
+ styleSetFontAttr(This,StyleNum,Size,FaceName,Bold,Italic,Underline, []).
+
+%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Size::integer(), FaceName::string(), Bold::bool(), Italic::bool(), Underline::bool(), [Option]) -> ok
+%% Option = {encoding, WxFontEncoding}
+%% WxFontEncoding = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetfontattr">external documentation</a>.
+%%<br /> WxFontEncoding is one of ?wxFONTENCODING_SYSTEM | ?wxFONTENCODING_DEFAULT | ?wxFONTENCODING_ISO8859_1 | ?wxFONTENCODING_ISO8859_2 | ?wxFONTENCODING_ISO8859_3 | ?wxFONTENCODING_ISO8859_4 | ?wxFONTENCODING_ISO8859_5 | ?wxFONTENCODING_ISO8859_6 | ?wxFONTENCODING_ISO8859_7 | ?wxFONTENCODING_ISO8859_8 | ?wxFONTENCODING_ISO8859_9 | ?wxFONTENCODING_ISO8859_10 | ?wxFONTENCODING_ISO8859_11 | ?wxFONTENCODING_ISO8859_12 | ?wxFONTENCODING_ISO8859_13 | ?wxFONTENCODING_ISO8859_14 | ?wxFONTENCODING_ISO8859_15 | ?wxFONTENCODING_ISO8859_MAX | ?wxFONTENCODING_KOI8 | ?wxFONTENCODING_KOI8_U | ?wxFONTENCODING_ALTERNATIVE | ?wxFONTENCODING_BULGARIAN | ?wxFONTENCODING_CP437 | ?wxFONTENCODING_CP850 | ?wxFONTENCODING_CP852 | ?wxFONTENCODING_CP855 | ?wxFONTENCODING_CP866 | ?wxFONTENCODING_CP874 | ?wxFONTENCODING_CP932 | ?wxFONTENCODING_CP936 | ?wxFONTENCODING_CP949 | ?wxFONTENCODING_CP950 | ?wxFONTENCODING_CP1250 | ?wxFONTENCODING_CP1251 | ?wxFONTENCODING_CP1252 | ?wxFONTENCODING_CP1253 | ?wxFONTENCODING_CP1254 | ?wxFONTENCODING_CP1255 | ?wxFONTENCODING_CP1256 | ?wxFONTENCODING_CP1257 | ?wxFONTENCODING_CP12_MAX | ?wxFONTENCODING_UTF7 | ?wxFONTENCODING_UTF8 | ?wxFONTENCODING_EUC_JP | ?wxFONTENCODING_UTF16BE | ?wxFONTENCODING_UTF16LE | ?wxFONTENCODING_UTF32BE | ?wxFONTENCODING_UTF32LE | ?wxFONTENCODING_MACROMAN | ?wxFONTENCODING_MACJAPANESE | ?wxFONTENCODING_MACCHINESETRAD | ?wxFONTENCODING_MACKOREAN | ?wxFONTENCODING_MACARABIC | ?wxFONTENCODING_MACHEBREW | ?wxFONTENCODING_MACGREEK | ?wxFONTENCODING_MACCYRILLIC | ?wxFONTENCODING_MACDEVANAGARI | ?wxFONTENCODING_MACGURMUKHI | ?wxFONTENCODING_MACGUJARATI | ?wxFONTENCODING_MACORIYA | ?wxFONTENCODING_MACBENGALI | ?wxFONTENCODING_MACTAMIL | ?wxFONTENCODING_MACTELUGU | ?wxFONTENCODING_MACKANNADA | ?wxFONTENCODING_MACMALAJALAM | ?wxFONTENCODING_MACSINHALESE | ?wxFONTENCODING_MACBURMESE | ?wxFONTENCODING_MACKHMER | ?wxFONTENCODING_MACTHAI | ?wxFONTENCODING_MACLAOTIAN | ?wxFONTENCODING_MACGEORGIAN | ?wxFONTENCODING_MACARMENIAN | ?wxFONTENCODING_MACCHINESESIMP | ?wxFONTENCODING_MACTIBETAN | ?wxFONTENCODING_MACMONGOLIAN | ?wxFONTENCODING_MACETHIOPIC | ?wxFONTENCODING_MACCENTRALEUR | ?wxFONTENCODING_MACVIATNAMESE | ?wxFONTENCODING_MACARABICEXT | ?wxFONTENCODING_MACSYMBOL | ?wxFONTENCODING_MACDINGBATS | ?wxFONTENCODING_MACTURKISH | ?wxFONTENCODING_MACCROATIAN | ?wxFONTENCODING_MACICELANDIC | ?wxFONTENCODING_MACROMANIAN | ?wxFONTENCODING_MACCELTIC | ?wxFONTENCODING_MACGAELIC | ?wxFONTENCODING_MACKEYBOARD | ?wxFONTENCODING_MAX | ?wxFONTENCODING_MACMIN | ?wxFONTENCODING_MACMAX | ?wxFONTENCODING_UTF16 | ?wxFONTENCODING_UTF32 | ?wxFONTENCODING_UNICODE | ?wxFONTENCODING_GB2312 | ?wxFONTENCODING_BIG5 | ?wxFONTENCODING_SHIFT_JIS
+styleSetFontAttr(#wx_ref{type=ThisT,ref=ThisRef},StyleNum,Size,FaceName,Bold,Italic,Underline, Options)
+ when is_integer(StyleNum),is_integer(Size),is_list(FaceName),is_boolean(Bold),is_boolean(Italic),is_boolean(Underline),is_list(Options) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ FaceName_UC = unicode:characters_to_binary([FaceName,0]),
+ MOpts = fun({encoding, Encoding}, Acc) -> [<<1:32/?UI,Encoding:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetFontAttr,
+ <<ThisRef:32/?UI,StyleNum:32/?UI,Size:32/?UI,(byte_size(FaceName_UC)):32/?UI,(FaceName_UC)/binary, 0:(((8- ((0+byte_size(FaceName_UC)) band 16#7)) band 16#7))/unit:8,(wxe_util:from_bool(Bold)):32/?UI,(wxe_util:from_bool(Italic)):32/?UI,(wxe_util:from_bool(Underline)):32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), CharacterSet::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetcharacterset">external documentation</a>.
+styleSetCharacterSet(#wx_ref{type=ThisT,ref=ThisRef},Style,CharacterSet)
+ when is_integer(Style),is_integer(CharacterSet) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetCharacterSet,
+ <<ThisRef:32/?UI,Style:32/?UI,CharacterSet:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Style::integer(), Encoding::WxFontEncoding) -> ok
+%% WxFontEncoding = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlstylesetfontencoding">external documentation</a>.
+%%<br /> WxFontEncoding is one of ?wxFONTENCODING_SYSTEM | ?wxFONTENCODING_DEFAULT | ?wxFONTENCODING_ISO8859_1 | ?wxFONTENCODING_ISO8859_2 | ?wxFONTENCODING_ISO8859_3 | ?wxFONTENCODING_ISO8859_4 | ?wxFONTENCODING_ISO8859_5 | ?wxFONTENCODING_ISO8859_6 | ?wxFONTENCODING_ISO8859_7 | ?wxFONTENCODING_ISO8859_8 | ?wxFONTENCODING_ISO8859_9 | ?wxFONTENCODING_ISO8859_10 | ?wxFONTENCODING_ISO8859_11 | ?wxFONTENCODING_ISO8859_12 | ?wxFONTENCODING_ISO8859_13 | ?wxFONTENCODING_ISO8859_14 | ?wxFONTENCODING_ISO8859_15 | ?wxFONTENCODING_ISO8859_MAX | ?wxFONTENCODING_KOI8 | ?wxFONTENCODING_KOI8_U | ?wxFONTENCODING_ALTERNATIVE | ?wxFONTENCODING_BULGARIAN | ?wxFONTENCODING_CP437 | ?wxFONTENCODING_CP850 | ?wxFONTENCODING_CP852 | ?wxFONTENCODING_CP855 | ?wxFONTENCODING_CP866 | ?wxFONTENCODING_CP874 | ?wxFONTENCODING_CP932 | ?wxFONTENCODING_CP936 | ?wxFONTENCODING_CP949 | ?wxFONTENCODING_CP950 | ?wxFONTENCODING_CP1250 | ?wxFONTENCODING_CP1251 | ?wxFONTENCODING_CP1252 | ?wxFONTENCODING_CP1253 | ?wxFONTENCODING_CP1254 | ?wxFONTENCODING_CP1255 | ?wxFONTENCODING_CP1256 | ?wxFONTENCODING_CP1257 | ?wxFONTENCODING_CP12_MAX | ?wxFONTENCODING_UTF7 | ?wxFONTENCODING_UTF8 | ?wxFONTENCODING_EUC_JP | ?wxFONTENCODING_UTF16BE | ?wxFONTENCODING_UTF16LE | ?wxFONTENCODING_UTF32BE | ?wxFONTENCODING_UTF32LE | ?wxFONTENCODING_MACROMAN | ?wxFONTENCODING_MACJAPANESE | ?wxFONTENCODING_MACCHINESETRAD | ?wxFONTENCODING_MACKOREAN | ?wxFONTENCODING_MACARABIC | ?wxFONTENCODING_MACHEBREW | ?wxFONTENCODING_MACGREEK | ?wxFONTENCODING_MACCYRILLIC | ?wxFONTENCODING_MACDEVANAGARI | ?wxFONTENCODING_MACGURMUKHI | ?wxFONTENCODING_MACGUJARATI | ?wxFONTENCODING_MACORIYA | ?wxFONTENCODING_MACBENGALI | ?wxFONTENCODING_MACTAMIL | ?wxFONTENCODING_MACTELUGU | ?wxFONTENCODING_MACKANNADA | ?wxFONTENCODING_MACMALAJALAM | ?wxFONTENCODING_MACSINHALESE | ?wxFONTENCODING_MACBURMESE | ?wxFONTENCODING_MACKHMER | ?wxFONTENCODING_MACTHAI | ?wxFONTENCODING_MACLAOTIAN | ?wxFONTENCODING_MACGEORGIAN | ?wxFONTENCODING_MACARMENIAN | ?wxFONTENCODING_MACCHINESESIMP | ?wxFONTENCODING_MACTIBETAN | ?wxFONTENCODING_MACMONGOLIAN | ?wxFONTENCODING_MACETHIOPIC | ?wxFONTENCODING_MACCENTRALEUR | ?wxFONTENCODING_MACVIATNAMESE | ?wxFONTENCODING_MACARABICEXT | ?wxFONTENCODING_MACSYMBOL | ?wxFONTENCODING_MACDINGBATS | ?wxFONTENCODING_MACTURKISH | ?wxFONTENCODING_MACCROATIAN | ?wxFONTENCODING_MACICELANDIC | ?wxFONTENCODING_MACROMANIAN | ?wxFONTENCODING_MACCELTIC | ?wxFONTENCODING_MACGAELIC | ?wxFONTENCODING_MACKEYBOARD | ?wxFONTENCODING_MAX | ?wxFONTENCODING_MACMIN | ?wxFONTENCODING_MACMAX | ?wxFONTENCODING_UTF16 | ?wxFONTENCODING_UTF32 | ?wxFONTENCODING_UNICODE | ?wxFONTENCODING_GB2312 | ?wxFONTENCODING_BIG5 | ?wxFONTENCODING_SHIFT_JIS
+styleSetFontEncoding(#wx_ref{type=ThisT,ref=ThisRef},Style,Encoding)
+ when is_integer(Style),is_integer(Encoding) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_StyleSetFontEncoding,
+ <<ThisRef:32/?UI,Style:32/?UI,Encoding:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Cmd::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlcmdkeyexecute">external documentation</a>.
+cmdKeyExecute(#wx_ref{type=ThisT,ref=ThisRef},Cmd)
+ when is_integer(Cmd) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_CmdKeyExecute,
+ <<ThisRef:32/?UI,Cmd:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Left::integer(), Right::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetmargins">external documentation</a>.
+setMargins(#wx_ref{type=ThisT,ref=ThisRef},Left,Right)
+ when is_integer(Left),is_integer(Right) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetMargins,
+ <<ThisRef:32/?UI,Left:32/?UI,Right:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> {StartPos::integer(),EndPos::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlpointfromposition">external documentation</a>.
+pointFromPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_PointFromPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlscrolltoline">external documentation</a>.
+scrollToLine(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ScrollToLine,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlscrolltocolumn">external documentation</a>.
+scrollToColumn(#wx_ref{type=ThisT,ref=ThisRef},Column)
+ when is_integer(Column) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_ScrollToColumn,
+ <<ThisRef:32/?UI,Column:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Msg::integer()) -> integer()
+%% @equiv sendMsg(This,Msg, [])
+sendMsg(This,Msg)
+ when is_record(This, wx_ref),is_integer(Msg) ->
+ sendMsg(This,Msg, []).
+
+%% @spec (This::wxStyledTextCtrl(), Msg::integer(), [Option]) -> integer()
+%% Option = {wp, integer()} | {lp, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsendmsg">external documentation</a>.
+sendMsg(#wx_ref{type=ThisT,ref=ThisRef},Msg, Options)
+ when is_integer(Msg),is_list(Options) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ MOpts = fun({wp, Wp}, Acc) -> [<<1:32/?UI,Wp:32/?UI>>|Acc];
+ ({lp, Lp}, Acc) -> [<<2:32/?UI,Lp:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxStyledTextCtrl_SendMsg,
+ <<ThisRef:32/?UI,Msg:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxStyledTextCtrl(), Bar::wxScrollBar:wxScrollBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetvscrollbar">external documentation</a>.
+setVScrollBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BarT,ref=BarRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(BarT,wxScrollBar),
+ wxe_util:cast(?wxStyledTextCtrl_SetVScrollBar,
+ <<ThisRef:32/?UI,BarRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Bar::wxScrollBar:wxScrollBar()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsethscrollbar">external documentation</a>.
+setHScrollBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BarT,ref=BarRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ ?CLASS(BarT,wxScrollBar),
+ wxe_util:cast(?wxStyledTextCtrl_SetHScrollBar,
+ <<ThisRef:32/?UI,BarRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlastkeydownprocessed">external documentation</a>.
+getLastKeydownProcessed(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLastKeydownProcessed,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Val::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsetlastkeydownprocessed">external documentation</a>.
+setLastKeydownProcessed(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when is_boolean(Val) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:cast(?wxStyledTextCtrl_SetLastKeydownProcessed,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Val)):32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Filename::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsavefile">external documentation</a>.
+saveFile(#wx_ref{type=ThisT,ref=ThisRef},Filename)
+ when is_list(Filename) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ wxe_util:call(?wxStyledTextCtrl_SaveFile,
+ <<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), Filename::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlloadfile">external documentation</a>.
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename)
+ when is_list(Filename) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ wxe_util:call(?wxStyledTextCtrl_LoadFile,
+ <<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer(), Def::WxDragResult) -> WxDragResult
+%% WxDragResult = integer()
+%% WxDragResult = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldodragover">external documentation</a>.
+%%<br /> WxDragResult is one of ?wxDragError | ?wxDragNone | ?wxDragCopy | ?wxDragMove | ?wxDragLink | ?wxDragCancel
+%%<br /> WxDragResult is one of ?wxDragError | ?wxDragNone | ?wxDragCopy | ?wxDragMove | ?wxDragLink | ?wxDragCancel
+doDragOver(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Def)
+ when is_integer(X),is_integer(Y),is_integer(Def) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_DoDragOver,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,Def:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer(), Data::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrldodroptext">external documentation</a>.
+doDropText(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Data)
+ when is_integer(X),is_integer(Y),is_list(Data) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ Data_UC = unicode:characters_to_binary([Data,0]),
+ wxe_util:call(?wxStyledTextCtrl_DoDropText,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,(byte_size(Data_UC)):32/?UI,(Data_UC)/binary, 0:(((8- ((0+byte_size(Data_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetuseantialiasing">external documentation</a>.
+getUseAntiAliasing(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetUseAntiAliasing,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrladdtextraw">external documentation</a>.
+addTextRaw(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_binary(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:send_bin(Text),
+ wxe_util:cast(?wxStyledTextCtrl_AddTextRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Text::binary()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlinserttextraw">external documentation</a>.
+insertTextRaw(#wx_ref{type=ThisT,ref=ThisRef},Pos,Text)
+ when is_integer(Pos),is_binary(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:send_bin(Text),
+ wxe_util:cast(?wxStyledTextCtrl_InsertTextRaw,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> {binary(),LinePos::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetcurlineraw">external documentation</a>.
+getCurLineRaw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetCurLineRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetlineraw">external documentation</a>.
+getLineRaw(#wx_ref{type=ThisT,ref=ThisRef},Line)
+ when is_integer(Line) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetLineRaw,
+ <<ThisRef:32/?UI,Line:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgetselectedtextraw">external documentation</a>.
+getSelectedTextRaw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetSelectedTextRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettextrangeraw">external documentation</a>.
+getTextRangeRaw(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos)
+ when is_integer(StartPos),is_integer(EndPos) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTextRangeRaw,
+ <<ThisRef:32/?UI,StartPos:32/?UI,EndPos:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlsettextraw">external documentation</a>.
+setTextRaw(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_binary(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:send_bin(Text),
+ wxe_util:cast(?wxStyledTextCtrl_SetTextRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> binary()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlgettextraw">external documentation</a>.
+getTextRaw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:call(?wxStyledTextCtrl_GetTextRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextctrl.html#wxstyledtextctrlappendtextraw">external documentation</a>.
+appendTextRaw(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_binary(Text) ->
+ ?CLASS(ThisT,wxStyledTextCtrl),
+ wxe_util:send_bin(Text),
+ wxe_util:cast(?wxStyledTextCtrl_AppendTextRaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxStyledTextCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxStyledTextEvent.erl b/lib/wx/src/gen/wxStyledTextEvent.erl
new file mode 100644
index 0000000000..ed5788b6fd
--- /dev/null
+++ b/lib/wx/src/gen/wxStyledTextEvent.erl
@@ -0,0 +1,252 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html">wxStyledTextEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>stc_change</em>, <em>stc_styleneeded</em>, <em>stc_charadded</em>, <em>stc_savepointreached</em>, <em>stc_savepointleft</em>, <em>stc_romodifyattempt</em>, <em>stc_key</em>, <em>stc_doubleclick</em>, <em>stc_updateui</em>, <em>stc_modified</em>, <em>stc_macrorecord</em>, <em>stc_marginclick</em>, <em>stc_needshown</em>, <em>stc_painted</em>, <em>stc_userlistselection</em>, <em>stc_uridropped</em>, <em>stc_dwellstart</em>, <em>stc_dwellend</em>, <em>stc_start_drag</em>, <em>stc_drag_over</em>, <em>stc_do_drop</em>, <em>stc_zoom</em>, <em>stc_hotspot_click</em>, <em>stc_hotspot_dclick</em>, <em>stc_calltip_click</em>, <em>stc_autocomp_selection</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxStyledText(). #wxStyledText{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxStyledTextEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxStyledTextEvent).
+-include("wxe.hrl").
+-export([getAlt/1,getControl/1,getDragAllowMove/1,getDragResult/1,getDragText/1,
+ getFoldLevelNow/1,getFoldLevelPrev/1,getKey/1,getLParam/1,getLength/1,
+ getLine/1,getLinesAdded/1,getListType/1,getMargin/1,getMessage/1,getModificationType/1,
+ getModifiers/1,getPosition/1,getShift/1,getText/1,getWParam/1,getX/1,
+ getY/1]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetkey">external documentation</a>.
+getKey(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetKey,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetmodifiers">external documentation</a>.
+getModifiers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetModifiers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetmodificationtype">external documentation</a>.
+getModificationType(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetModificationType,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetlength">external documentation</a>.
+getLength(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetLength,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetlinesadded">external documentation</a>.
+getLinesAdded(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetLinesAdded,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetline">external documentation</a>.
+getLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetfoldlevelnow">external documentation</a>.
+getFoldLevelNow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetFoldLevelNow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetfoldlevelprev">external documentation</a>.
+getFoldLevelPrev(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetFoldLevelPrev,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetmargin">external documentation</a>.
+getMargin(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetMargin,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetmessage">external documentation</a>.
+getMessage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetMessage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetwparam">external documentation</a>.
+getWParam(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetWParam,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetlparam">external documentation</a>.
+getLParam(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetLParam,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetlisttype">external documentation</a>.
+getListType(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetListType,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetx">external documentation</a>.
+getX(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetX,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgety">external documentation</a>.
+getY(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetY,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetdragtext">external documentation</a>.
+getDragText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetDragText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetdragallowmove">external documentation</a>.
+getDragAllowMove(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetDragAllowMove,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> WxDragResult
+%% WxDragResult = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetdragresult">external documentation</a>.
+%%<br /> WxDragResult is one of ?wxDragError | ?wxDragNone | ?wxDragCopy | ?wxDragMove | ?wxDragLink | ?wxDragCancel
+getDragResult(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetDragResult,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetshift">external documentation</a>.
+getShift(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetShift,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetcontrol">external documentation</a>.
+getControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxStyledTextEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxstyledtextevent.html#wxstyledtexteventgetalt">external documentation</a>.
+getAlt(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxStyledTextEvent),
+ wxe_util:call(?wxStyledTextEvent_GetAlt,
+ <<ThisRef:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxSysColourChangedEvent.erl b/lib/wx/src/gen/wxSysColourChangedEvent.erl
new file mode 100644
index 0000000000..a90c7320d9
--- /dev/null
+++ b/lib/wx/src/gen/wxSysColourChangedEvent.erl
@@ -0,0 +1,62 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsyscolourchangedevent.html">wxSysColourChangedEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>sys_colour_changed</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxSysColourChanged(). #wxSysColourChanged{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxSysColourChangedEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxSysColourChangedEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
+ resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxTextAttr.erl b/lib/wx/src/gen/wxTextAttr.erl
new file mode 100644
index 0000000000..dea39c19d0
--- /dev/null
+++ b/lib/wx/src/gen/wxTextAttr.erl
@@ -0,0 +1,253 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html">wxTextAttr</a>.
+%% @type wxTextAttr(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTextAttr).
+-include("wxe.hrl").
+-export([destroy/1,getAlignment/1,getBackgroundColour/1,getFlags/1,getFont/1,
+ getLeftIndent/1,getLeftSubIndent/1,getRightIndent/1,getTabs/1,getTextColour/1,
+ hasBackgroundColour/1,hasFont/1,hasTextColour/1,isDefault/1,new/0,
+ new/1,new/2,setAlignment/2,setBackgroundColour/2,setFlags/2,setFont/2,
+ setFont/3,setLeftIndent/2,setLeftIndent/3,setRightIndent/2,setTabs/2,
+ setTextColour/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxTextAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrwxtextattr">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxTextAttr_new_0,
+ <<>>).
+
+%% @spec (ColText::wx:colour()) -> wxTextAttr()
+%% @equiv new(ColText, [])
+new(ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ new(ColText, []).
+
+%% @spec (ColText::wx:colour(), [Option]) -> wxTextAttr()
+%% Option = {colBack, wx:colour()} | {font, wxFont:wxFont()} | {alignment, WxTextAttrAlignment}
+%% WxTextAttrAlignment = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrwxtextattr">external documentation</a>.
+%%<br /> WxTextAttrAlignment is one of ?wxTEXT_ALIGNMENT_DEFAULT | ?wxTEXT_ALIGNMENT_LEFT | ?wxTEXT_ALIGNMENT_CENTRE | ?wxTEXT_ALIGNMENT_CENTER | ?wxTEXT_ALIGNMENT_RIGHT | ?wxTEXT_ALIGNMENT_JUSTIFIED
+new(ColText, Options)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4,is_list(Options) ->
+ MOpts = fun({colBack, ColBack}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary,0:32>>|Acc];
+ ({font, #wx_ref{type=FontT,ref=FontRef}}, Acc) -> ?CLASS(FontT,wxFont),[<<2:32/?UI,FontRef:32/?UI>>|Acc];
+ ({alignment, Alignment}, Acc) -> [<<3:32/?UI,Alignment:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTextAttr_new_2,
+ <<(wxe_util:colour_bin(ColText)):16/binary, BinOpt/binary>>).
+
+%% @spec (This::wxTextAttr()) -> WxTextAttrAlignment
+%% WxTextAttrAlignment = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetalignment">external documentation</a>.
+%%<br /> WxTextAttrAlignment is one of ?wxTEXT_ALIGNMENT_DEFAULT | ?wxTEXT_ALIGNMENT_LEFT | ?wxTEXT_ALIGNMENT_CENTRE | ?wxTEXT_ALIGNMENT_CENTER | ?wxTEXT_ALIGNMENT_RIGHT | ?wxTEXT_ALIGNMENT_JUSTIFIED
+getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetAlignment,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetbackgroundcolour">external documentation</a>.
+getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetleftindent">external documentation</a>.
+getLeftIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetLeftIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetleftsubindent">external documentation</a>.
+getLeftSubIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetLeftSubIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetrightindent">external documentation</a>.
+getRightIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetRightIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> [integer()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgettabs">external documentation</a>.
+getTabs(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetTabs,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgettextcolour">external documentation</a>.
+getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrhasbackgroundcolour">external documentation</a>.
+hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_HasBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrhasfont">external documentation</a>.
+hasFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_HasFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrhastextcolour">external documentation</a>.
+hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_HasTextColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrgetflags">external documentation</a>.
+getFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_GetFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrisdefault">external documentation</a>.
+isDefault(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:call(?wxTextAttr_IsDefault,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextAttr(), Alignment::WxTextAttrAlignment) -> ok
+%% WxTextAttrAlignment = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetalignment">external documentation</a>.
+%%<br /> WxTextAttrAlignment is one of ?wxTEXT_ALIGNMENT_DEFAULT | ?wxTEXT_ALIGNMENT_LEFT | ?wxTEXT_ALIGNMENT_CENTRE | ?wxTEXT_ALIGNMENT_CENTER | ?wxTEXT_ALIGNMENT_RIGHT | ?wxTEXT_ALIGNMENT_JUSTIFIED
+setAlignment(#wx_ref{type=ThisT,ref=ThisRef},Alignment)
+ when is_integer(Alignment) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetAlignment,
+ <<ThisRef:32/?UI,Alignment:32/?UI>>).
+
+%% @spec (This::wxTextAttr(), ColBack::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack)
+ when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary>>).
+
+%% @spec (This::wxTextAttr(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetflags">external documentation</a>.
+setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxTextAttr(), Font::wxFont:wxFont()) -> ok
+%% @equiv setFont(This,Font, [])
+setFont(This,Font)
+ when is_record(This, wx_ref),is_record(Font, wx_ref) ->
+ setFont(This,Font, []).
+
+%% @spec (This::wxTextAttr(), Font::wxFont:wxFont(), [Option]) -> ok
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTextAttr),
+ ?CLASS(FontT,wxFont),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTextAttr_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTextAttr(), Indent::integer()) -> ok
+%% @equiv setLeftIndent(This,Indent, [])
+setLeftIndent(This,Indent)
+ when is_record(This, wx_ref),is_integer(Indent) ->
+ setLeftIndent(This,Indent, []).
+
+%% @spec (This::wxTextAttr(), Indent::integer(), [Option]) -> ok
+%% Option = {subIndent, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetleftindent">external documentation</a>.
+setLeftIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent, Options)
+ when is_integer(Indent),is_list(Options) ->
+ ?CLASS(ThisT,wxTextAttr),
+ MOpts = fun({subIndent, SubIndent}, Acc) -> [<<1:32/?UI,SubIndent:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTextAttr_SetLeftIndent,
+ <<ThisRef:32/?UI,Indent:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTextAttr(), Indent::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsetrightindent">external documentation</a>.
+setRightIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent)
+ when is_integer(Indent) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetRightIndent,
+ <<ThisRef:32/?UI,Indent:32/?UI>>).
+
+%% @spec (This::wxTextAttr(), Tabs::[integer()]) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsettabs">external documentation</a>.
+setTabs(#wx_ref{type=ThisT,ref=ThisRef},Tabs)
+ when is_list(Tabs) ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetTabs,
+ <<ThisRef:32/?UI,(length(Tabs)):32/?UI,
+ (<< <<C:32/?I>> || C <- Tabs>>)/binary, 0:(((0+length(Tabs)) rem 2)*32)>>).
+
+%% @spec (This::wxTextAttr(), ColText::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextattr.html#wxtextattrsettextcolour">external documentation</a>.
+setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText)
+ when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
+ ?CLASS(ThisT,wxTextAttr),
+ wxe_util:cast(?wxTextAttr_SetTextColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(ColText)):16/binary>>).
+
+%% @spec (This::wxTextAttr()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTextAttr),
+ wxe_util:destroy(?wxTextAttr_destroy,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxTextCtrl.erl b/lib/wx/src/gen/wxTextCtrl.erl
new file mode 100644
index 0000000000..1df8accdaa
--- /dev/null
+++ b/lib/wx/src/gen/wxTextCtrl.erl
@@ -0,0 +1,876 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html">wxTextCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxTextCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTextCtrl).
+-include("wxe.hrl").
+-export([appendText/2,canCopy/1,canCut/1,canPaste/1,canRedo/1,canUndo/1,clear/1,
+ copy/1,create/3,create/4,cut/1,destroy/1,discardEdits/1,emulateKeyPress/2,
+ getDefaultStyle/1,getInsertionPoint/1,getLastPosition/1,getLineLength/2,
+ getLineText/2,getNumberOfLines/1,getRange/3,getSelection/1,getStringSelection/1,
+ getStyle/3,getValue/1,isEditable/1,isModified/1,isMultiLine/1,isSingleLine/1,
+ loadFile/2,loadFile/3,markDirty/1,new/0,new/2,new/3,paste/1,positionToXY/2,
+ redo/1,remove/3,replace/4,saveFile/1,saveFile/2,setDefaultStyle/2,setEditable/2,
+ setInsertionPoint/2,setInsertionPointEnd/1,setMaxLength/2,setSelection/3,
+ setStyle/4,setValue/2,showPosition/2,undo/1,writeText/2,xYToPosition/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxTextCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlwxtextctrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxTextCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxTextCtrl()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxTextCtrl()
+%% Option = {value, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlwxtextctrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<1:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTextCtrl_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlappendtext">external documentation</a>.
+appendText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxTextCtrl_AppendText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcancopy">external documentation</a>.
+canCopy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_CanCopy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcancut">external documentation</a>.
+canCut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_CanCut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcanpaste">external documentation</a>.
+canPaste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_CanPaste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcanredo">external documentation</a>.
+canRedo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_CanRedo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcanundo">external documentation</a>.
+canUndo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_CanUndo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlclear">external documentation</a>.
+clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Clear,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcopy">external documentation</a>.
+copy(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Copy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxTextCtrl(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {value, string()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<1:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTextCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlcut">external documentation</a>.
+cut(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Cut,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrldiscardedits">external documentation</a>.
+discardEdits(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_DiscardEdits,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Event::wxKeyEvent:wxKeyEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlemulatekeypress">external documentation</a>.
+emulateKeyPress(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ ?CLASS(EventT,wxKeyEvent),
+ wxe_util:call(?wxTextCtrl_EmulateKeyPress,
+ <<ThisRef:32/?UI,EventRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> wxTextAttr:wxTextAttr()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetdefaultstyle">external documentation</a>.
+getDefaultStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetDefaultStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetinsertionpoint">external documentation</a>.
+getInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetInsertionPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetlastposition">external documentation</a>.
+getLastPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetLastPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), LineNo::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetlinelength">external documentation</a>.
+getLineLength(#wx_ref{type=ThisT,ref=ThisRef},LineNo)
+ when is_integer(LineNo) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetLineLength,
+ <<ThisRef:32/?UI,LineNo:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), LineNo::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetlinetext">external documentation</a>.
+getLineText(#wx_ref{type=ThisT,ref=ThisRef},LineNo)
+ when is_integer(LineNo) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetLineText,
+ <<ThisRef:32/?UI,LineNo:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetnumberoflines">external documentation</a>.
+getNumberOfLines(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetNumberOfLines,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetrange">external documentation</a>.
+getRange(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetRange,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> {From::integer(),To::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetstringselection">external documentation</a>.
+getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetStringSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Position::integer(), Style::wxTextAttr:wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetstyle">external documentation</a>.
+getStyle(#wx_ref{type=ThisT,ref=ThisRef},Position,#wx_ref{type=StyleT,ref=StyleRef})
+ when is_integer(Position) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ ?CLASS(StyleT,wxTextAttr),
+ wxe_util:call(?wxTextCtrl_GetStyle,
+ <<ThisRef:32/?UI,Position:32/?UI,StyleRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlgetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrliseditable">external documentation</a>.
+isEditable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_IsEditable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlismodified">external documentation</a>.
+isModified(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_IsModified,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlismultiline">external documentation</a>.
+isMultiLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_IsMultiLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlissingleline">external documentation</a>.
+isSingleLine(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_IsSingleLine,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), File::string()) -> bool()
+%% @equiv loadFile(This,File, [])
+loadFile(This,File)
+ when is_record(This, wx_ref),is_list(File) ->
+ loadFile(This,File, []).
+
+%% @spec (This::wxTextCtrl(), File::string(), [Option]) -> bool()
+%% Option = {fileType, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlloadfile">external documentation</a>.
+loadFile(#wx_ref{type=ThisT,ref=ThisRef},File, Options)
+ when is_list(File),is_list(Options) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ File_UC = unicode:characters_to_binary([File,0]),
+ MOpts = fun({fileType, FileType}, Acc) -> [<<1:32/?UI,FileType:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTextCtrl_LoadFile,
+ <<ThisRef:32/?UI,(byte_size(File_UC)):32/?UI,(File_UC)/binary, 0:(((8- ((0+byte_size(File_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlmarkdirty">external documentation</a>.
+markDirty(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_MarkDirty,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlpaste">external documentation</a>.
+paste(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Paste,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Pos::integer()) -> {bool(),X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlpositiontoxy">external documentation</a>.
+positionToXY(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_PositionToXY,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlredo">external documentation</a>.
+redo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Redo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlremove">external documentation</a>.
+remove(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Remove,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), From::integer(), To::integer(), Value::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlreplace">external documentation</a>.
+replace(#wx_ref{type=ThisT,ref=ThisRef},From,To,Value)
+ when is_integer(From),is_integer(To),is_list(Value) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxTextCtrl_Replace,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextCtrl()) -> bool()
+%% @equiv saveFile(This, [])
+saveFile(This)
+ when is_record(This, wx_ref) ->
+ saveFile(This, []).
+
+%% @spec (This::wxTextCtrl(), [Option]) -> bool()
+%% Option = {file, string()} | {fileType, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsavefile">external documentation</a>.
+saveFile(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ MOpts = fun({file, File}, Acc) -> File_UC = unicode:characters_to_binary([File,0]),[<<1:32/?UI,(byte_size(File_UC)):32/?UI,(File_UC)/binary, 0:(((8- ((0+byte_size(File_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({fileType, FileType}, Acc) -> [<<2:32/?UI,FileType:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTextCtrl_SaveFile,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTextCtrl(), Style::wxTextAttr:wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetdefaultstyle">external documentation</a>.
+setDefaultStyle(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StyleT,ref=StyleRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ ?CLASS(StyleT,wxTextAttr),
+ wxe_util:call(?wxTextCtrl_SetDefaultStyle,
+ <<ThisRef:32/?UI,StyleRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Editable::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlseteditable">external documentation</a>.
+setEditable(#wx_ref{type=ThisT,ref=ThisRef},Editable)
+ when is_boolean(Editable) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_SetEditable,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Editable)):32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetinsertionpoint">external documentation</a>.
+setInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_SetInsertionPoint,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetinsertionpointend">external documentation</a>.
+setInsertionPointEnd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_SetInsertionPointEnd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Len::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetmaxlength">external documentation</a>.
+setMaxLength(#wx_ref{type=ThisT,ref=ThisRef},Len)
+ when is_integer(Len) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_SetMaxLength,
+ <<ThisRef:32/?UI,Len:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},From,To)
+ when is_integer(From),is_integer(To) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_SetSelection,
+ <<ThisRef:32/?UI,From:32/?UI,To:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Start::integer(), End::integer(), Style::wxTextAttr:wxTextAttr()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetstyle">external documentation</a>.
+setStyle(#wx_ref{type=ThisT,ref=ThisRef},Start,End,#wx_ref{type=StyleT,ref=StyleRef})
+ when is_integer(Start),is_integer(End) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ ?CLASS(StyleT,wxTextAttr),
+ wxe_util:call(?wxTextCtrl_SetStyle,
+ <<ThisRef:32/?UI,Start:32/?UI,End:32/?UI,StyleRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Value::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
+ when is_list(Value) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ Value_UC = unicode:characters_to_binary([Value,0]),
+ wxe_util:cast(?wxTextCtrl_SetValue,
+ <<ThisRef:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextCtrl(), Pos::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlshowposition">external documentation</a>.
+showPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_ShowPosition,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlundo">external documentation</a>.
+undo(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:cast(?wxTextCtrl_Undo,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextCtrl(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlwritetext">external documentation</a>.
+writeText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxTextCtrl_WriteText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextCtrl(), X::integer(), Y::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextctrl.html#wxtextctrlxytoposition">external documentation</a>.
+xYToPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxTextCtrl),
+ wxe_util:call(?wxTextCtrl_XYToPosition,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxTextCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTextCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxTextDataObject.erl b/lib/wx/src/gen/wxTextDataObject.erl
new file mode 100644
index 0000000000..1e4cee70aa
--- /dev/null
+++ b/lib/wx/src/gen/wxTextDataObject.erl
@@ -0,0 +1,84 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextdataobject.html">wxTextDataObject</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDataObject}
+%% </p>
+%% @type wxTextDataObject(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTextDataObject).
+-include("wxe.hrl").
+-export([destroy/1,getText/1,getTextLength/1,new/0,new/1,setText/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(wxDataObject) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxTextDataObject()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxTextDataObject()
+%% Option = {text, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextdataobject.html#wxtextdataobjectwxtextdataobject">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({text, Text}, Acc) -> Text_UC = unicode:characters_to_binary([Text,0]),[<<1:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTextDataObject_new,
+ <<BinOpt/binary>>).
+
+%% @spec (This::wxTextDataObject()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextdataobject.html#wxtextdataobjectgettextlength">external documentation</a>.
+getTextLength(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextDataObject),
+ wxe_util:call(?wxTextDataObject_GetTextLength,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextDataObject()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextdataobject.html#wxtextdataobjectgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextDataObject),
+ wxe_util:call(?wxTextDataObject_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextDataObject(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextdataobject.html#wxtextdataobjectsettext">external documentation</a>.
+setText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxTextDataObject),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxTextDataObject_SetText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextDataObject()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTextDataObject),
+ wxe_util:destroy(?wxTextDataObject_destroy,Obj),
+ ok.
+ %% From wxDataObject
diff --git a/lib/wx/src/gen/wxTextEntryDialog.erl b/lib/wx/src/gen/wxTextEntryDialog.erl
new file mode 100644
index 0000000000..42e7f41513
--- /dev/null
+++ b/lib/wx/src/gen/wxTextEntryDialog.erl
@@ -0,0 +1,558 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextentrydialog.html">wxTextEntryDialog</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDialog}
+%% <br />{@link wxTopLevelWindow}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxTextEntryDialog(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTextEntryDialog).
+-include("wxe.hrl").
+-export([destroy/1,getValue/1,new/2,new/3,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centerOnScreen/1,centerOnScreen/2,centre/1,centre/2,
+ centreOnParent/1,centreOnParent/2,centreOnScreen/1,centreOnScreen/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ createButtonSizer/2,createStdDialogButtonSizer/2,destroyChildren/1,
+ disable/1,disconnect/1,disconnect/2,disconnect/3,enable/1,enable/2,
+ endModal/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getAffirmativeId/1,getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getIcon/1,getIcons/1,getId/1,getLabel/1,getMaxSize/1,
+ getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getReturnCode/1,
+ getScreenPosition/1,getScreenRect/1,getScrollPos/2,getScrollRange/2,
+ getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,
+ getTitle/1,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,iconize/1,iconize/2,inheritAttributes/1,initDialog/1,invalidateBestSize/1,
+ isActive/1,isEnabled/1,isExposed/2,isExposed/3,isExposed/5,isFullScreen/1,
+ isIconized/1,isMaximized/1,isModal/1,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,maximize/1,
+ maximize/2,move/2,move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,
+ navigate/1,navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,
+ popEventHandler/2,popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,
+ refresh/2,refreshRect/2,refreshRect/3,releaseMouse/1,removeChild/2,
+ reparent/2,requestUserAttention/1,requestUserAttention/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAffirmativeId/2,setAutoLayout/2,setBackgroundColour/2,
+ setBackgroundStyle/2,setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,
+ setCursor/2,setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,
+ setFont/2,setForegroundColour/2,setHelpText/2,setIcon/2,setIcons/2,
+ setId/2,setLabel/2,setMaxSize/2,setMinSize/2,setName/2,setOwnBackgroundColour/2,
+ setOwnFont/2,setOwnForegroundColour/2,setPalette/2,setReturnCode/2,
+ setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,setShape/2,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setTitle/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,showFullScreen/2,showFullScreen/3,showModal/1,thaw/1,
+ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1,
+ updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxDialog) -> true;
+parent_class(wxTopLevelWindow) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string()) -> wxTextEntryDialog()
+%% @equiv new(Parent,Message, [])
+new(Parent,Message)
+ when is_record(Parent, wx_ref),is_list(Message) ->
+ new(Parent,Message, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Message::string(), [Option]) -> wxTextEntryDialog()
+%% Option = {caption, string()} | {value, string()} | {style, integer()} | {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextentrydialog.html#wxtextentrydialogwxtextentrydialog">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Message, Options)
+ when is_list(Message),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Message_UC = unicode:characters_to_binary([Message,0]),
+ MOpts = fun({caption, Caption}, Acc) -> Caption_UC = unicode:characters_to_binary([Caption,0]),[<<1:32/?UI,(byte_size(Caption_UC)):32/?UI,(Caption_UC)/binary, 0:(((8- ((0+byte_size(Caption_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({value, Value}, Acc) -> Value_UC = unicode:characters_to_binary([Value,0]),[<<2:32/?UI,(byte_size(Value_UC)):32/?UI,(Value_UC)/binary, 0:(((8- ((0+byte_size(Value_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<4:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTextEntryDialog_new,
+ <<ParentRef:32/?UI,(byte_size(Message_UC)):32/?UI,(Message_UC)/binary, 0:(((8- ((0+byte_size(Message_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTextEntryDialog()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextentrydialog.html#wxtextentrydialoggetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTextEntryDialog),
+ wxe_util:call(?wxTextEntryDialog_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTextEntryDialog(), Val::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtextentrydialog.html#wxtextentrydialogsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},Val)
+ when is_list(Val) ->
+ ?CLASS(ThisT,wxTextEntryDialog),
+ Val_UC = unicode:characters_to_binary([Val,0]),
+ wxe_util:cast(?wxTextEntryDialog_SetValue,
+ <<ThisRef:32/?UI,(byte_size(Val_UC)):32/?UI,(Val_UC)/binary, 0:(((8- ((0+byte_size(Val_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTextEntryDialog()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTextEntryDialog),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDialog
+%% @hidden
+showModal(This) -> wxDialog:showModal(This).
+%% @hidden
+show(This, Options) -> wxDialog:show(This, Options).
+%% @hidden
+show(This) -> wxDialog:show(This).
+%% @hidden
+setReturnCode(This,ReturnCode) -> wxDialog:setReturnCode(This,ReturnCode).
+%% @hidden
+setAffirmativeId(This,AffirmativeId) -> wxDialog:setAffirmativeId(This,AffirmativeId).
+%% @hidden
+isModal(This) -> wxDialog:isModal(This).
+%% @hidden
+getReturnCode(This) -> wxDialog:getReturnCode(This).
+%% @hidden
+getAffirmativeId(This) -> wxDialog:getAffirmativeId(This).
+%% @hidden
+endModal(This,RetCode) -> wxDialog:endModal(This,RetCode).
+%% @hidden
+createStdDialogButtonSizer(This,Flags) -> wxDialog:createStdDialogButtonSizer(This,Flags).
+%% @hidden
+createButtonSizer(This,Flags) -> wxDialog:createButtonSizer(This,Flags).
+ %% From wxTopLevelWindow
+%% @hidden
+showFullScreen(This,Show, Options) -> wxTopLevelWindow:showFullScreen(This,Show, Options).
+%% @hidden
+showFullScreen(This,Show) -> wxTopLevelWindow:showFullScreen(This,Show).
+%% @hidden
+setTitle(This,Title) -> wxTopLevelWindow:setTitle(This,Title).
+%% @hidden
+setShape(This,Region) -> wxTopLevelWindow:setShape(This,Region).
+%% @hidden
+centreOnScreen(This, Options) -> wxTopLevelWindow:centreOnScreen(This, Options).
+%% @hidden
+centreOnScreen(This) -> wxTopLevelWindow:centreOnScreen(This).
+%% @hidden
+centerOnScreen(This, Options) -> wxTopLevelWindow:centerOnScreen(This, Options).
+%% @hidden
+centerOnScreen(This) -> wxTopLevelWindow:centerOnScreen(This).
+%% @hidden
+setIcons(This,Icons) -> wxTopLevelWindow:setIcons(This,Icons).
+%% @hidden
+setIcon(This,Icon) -> wxTopLevelWindow:setIcon(This,Icon).
+%% @hidden
+requestUserAttention(This, Options) -> wxTopLevelWindow:requestUserAttention(This, Options).
+%% @hidden
+requestUserAttention(This) -> wxTopLevelWindow:requestUserAttention(This).
+%% @hidden
+maximize(This, Options) -> wxTopLevelWindow:maximize(This, Options).
+%% @hidden
+maximize(This) -> wxTopLevelWindow:maximize(This).
+%% @hidden
+isMaximized(This) -> wxTopLevelWindow:isMaximized(This).
+%% @hidden
+isIconized(This) -> wxTopLevelWindow:isIconized(This).
+%% @hidden
+isFullScreen(This) -> wxTopLevelWindow:isFullScreen(This).
+%% @hidden
+iconize(This, Options) -> wxTopLevelWindow:iconize(This, Options).
+%% @hidden
+iconize(This) -> wxTopLevelWindow:iconize(This).
+%% @hidden
+isActive(This) -> wxTopLevelWindow:isActive(This).
+%% @hidden
+getTitle(This) -> wxTopLevelWindow:getTitle(This).
+%% @hidden
+getIcons(This) -> wxTopLevelWindow:getIcons(This).
+%% @hidden
+getIcon(This) -> wxTopLevelWindow:getIcon(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxToggleButton.erl b/lib/wx/src/gen/wxToggleButton.erl
new file mode 100644
index 0000000000..0a8f4f1127
--- /dev/null
+++ b/lib/wx/src/gen/wxToggleButton.erl
@@ -0,0 +1,512 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html">wxToggleButton</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxToggleButton(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxToggleButton).
+-include("wxe.hrl").
+-export([create/4,create/5,destroy/1,getValue/1,new/0,new/3,new/4,setValue/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxToggleButton()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html#wxtogglebuttonwxtogglebutton">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxToggleButton_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> wxToggleButton()
+%% @equiv new(Parent,Id,Label, [])
+new(Parent,Id,Label)
+ when is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ new(Parent,Id,Label, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> wxToggleButton()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html#wxtogglebuttonwxtogglebutton">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxToggleButton_new_4,
+ <<ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxToggleButton(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string()) -> bool()
+%% @equiv create(This,Parent,Id,Label, [])
+create(This,Parent,Id,Label)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Label) ->
+ create(This,Parent,Id,Label, []).
+
+%% @spec (This::wxToggleButton(), Parent::wxWindow:wxWindow(), Id::integer(), Label::string(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html#wxtogglebuttoncreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Label, Options)
+ when is_integer(Id),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToggleButton),
+ ?CLASS(ParentT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<4:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToggleButton_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxToggleButton()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html#wxtogglebuttongetvalue">external documentation</a>.
+getValue(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToggleButton),
+ wxe_util:call(?wxToggleButton_GetValue,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToggleButton(), State::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtogglebutton.html#wxtogglebuttonsetvalue">external documentation</a>.
+setValue(#wx_ref{type=ThisT,ref=ThisRef},State)
+ when is_boolean(State) ->
+ ?CLASS(ThisT,wxToggleButton),
+ wxe_util:cast(?wxToggleButton_SetValue,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(State)):32/?UI>>).
+
+%% @spec (This::wxToggleButton()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxToggleButton),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxToolBar.erl b/lib/wx/src/gen/wxToolBar.erl
new file mode 100644
index 0000000000..c8392a10ca
--- /dev/null
+++ b/lib/wx/src/gen/wxToolBar.erl
@@ -0,0 +1,919 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html">wxToolBar</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxToolBar(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxToolBar).
+-include("wxe.hrl").
+-export([addCheckTool/4,addCheckTool/5,addControl/2,addRadioTool/4,addRadioTool/5,
+ addSeparator/1,addTool/2,addTool/3,addTool/4,addTool/5,addTool/6,addTool/7,
+ deleteTool/2,deleteToolByPos/2,enableTool/3,findById/2,findControl/2,
+ findToolForPosition/3,getMargins/1,getToolBitmapSize/1,getToolEnabled/2,
+ getToolLongHelp/2,getToolPacking/1,getToolPos/2,getToolSeparation/1,
+ getToolShortHelp/2,getToolSize/1,getToolState/2,insertControl/3,insertSeparator/2,
+ insertTool/3,insertTool/4,insertTool/5,insertTool/6,realize/1,removeTool/2,
+ setMargins/3,setToolBitmapSize/2,setToolLongHelp/3,setToolPacking/2,
+ setToolSeparation/2,setToolShortHelp/3,toggleTool/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxToolBar(), Control::wxControl:wxControl()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddcontrol">external documentation</a>.
+addControl(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ControlT,ref=ControlRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(ControlT,wxControl),
+ wxe_util:call(?wxToolBar_AddControl,
+ <<ThisRef:32/?UI,ControlRef:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddseparator">external documentation</a>.
+addSeparator(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_AddSeparator,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Tool::wx:wx()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddtool">external documentation</a>.
+addTool(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ToolT,ref=ToolRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(ToolT,wx),
+ wxe_util:call(?wxToolBar_AddTool_1,
+ <<ThisRef:32/?UI,ToolRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap()) -> wx:wx()
+%% @equiv addTool(This,Toolid,Bitmap, [])
+addTool(This,Toolid,Bitmap)
+ when is_record(This, wx_ref),is_integer(Toolid),is_record(Bitmap, wx_ref) ->
+ addTool(This,Toolid,Bitmap, []).
+
+%% @spec (This::wxToolBar(),Toolid::integer(),X::string()|term(),X::term()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddtool">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Label,Bitmap, []) </c></p>
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Bitmap,BmpDisabled, []) </c></p>
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() </c>
+%%<br /> Option = {shortHelpString, string()} | {longHelpString, string()}
+%% </p>
+
+addTool(This,Toolid,Label,Bitmap)
+ when is_record(This, wx_ref),is_integer(Toolid),is_list(Label),is_record(Bitmap, wx_ref) ->
+ addTool(This,Toolid,Label,Bitmap, []);
+
+addTool(This,Toolid,Bitmap,BmpDisabled)
+ when is_record(This, wx_ref),is_integer(Toolid),is_record(Bitmap, wx_ref),is_record(BmpDisabled, wx_ref) ->
+ addTool(This,Toolid,Bitmap,BmpDisabled, []);
+addTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Toolid),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({shortHelpString, ShortHelpString}, Acc) -> ShortHelpString_UC = unicode:characters_to_binary([ShortHelpString,0]),[<<1:32/?UI,(byte_size(ShortHelpString_UC)):32/?UI,(ShortHelpString_UC)/binary, 0:(((8- ((0+byte_size(ShortHelpString_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelpString, LongHelpString}, Acc) -> LongHelpString_UC = unicode:characters_to_binary([LongHelpString,0]),[<<2:32/?UI,(byte_size(LongHelpString_UC)):32/?UI,(LongHelpString_UC)/binary, 0:(((8- ((0+byte_size(LongHelpString_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddTool_3,
+ <<ThisRef:32/?UI,Toolid:32/?UI,BitmapRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(),Toolid::integer(),X::string()|term(),X::term(),X::term()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddtool">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Label,Bitmap,BmpDisabled, []) </c></p>
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() </c>
+%%<br /> Option = {shortHelp, string()} | {kind, WxItemKind}
+%%<br /> WxItemKind = integer()
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+%% </p>
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), [Option]) -> wx:wx() </c>
+%%<br /> Option = {toggle, bool()} | {clientData, wx:wx()} | {shortHelpString, string()} | {longHelpString, string()}
+%% </p>
+
+addTool(This,Toolid,Label,Bitmap,BmpDisabled)
+ when is_record(This, wx_ref),is_integer(Toolid),is_list(Label),is_record(Bitmap, wx_ref),is_record(BmpDisabled, wx_ref) ->
+ addTool(This,Toolid,Label,Bitmap,BmpDisabled, []);
+addTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Label,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Toolid),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<1:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({kind, Kind}, Acc) -> [<<2:32/?UI,Kind:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddTool_4_0,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,BitmapRef:32/?UI, 0:32,BinOpt/binary>>);
+addTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,#wx_ref{type=BitmapT,ref=BitmapRef},#wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}, Options)
+ when is_integer(Toolid),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(BmpDisabledT,wxBitmap),
+ MOpts = fun({toggle, Toggle}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Toggle)):32/?UI>>|Acc];
+ ({clientData, #wx_ref{type=ClientDataT,ref=ClientDataRef}}, Acc) -> ?CLASS(ClientDataT,wx),[<<2:32/?UI,ClientDataRef:32/?UI>>|Acc];
+ ({shortHelpString, ShortHelpString}, Acc) -> ShortHelpString_UC = unicode:characters_to_binary([ShortHelpString,0]),[<<3:32/?UI,(byte_size(ShortHelpString_UC)):32/?UI,(ShortHelpString_UC)/binary, 0:(((8- ((0+byte_size(ShortHelpString_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelpString, LongHelpString}, Acc) -> LongHelpString_UC = unicode:characters_to_binary([LongHelpString,0]),[<<4:32/?UI,(byte_size(LongHelpString_UC)):32/?UI,(LongHelpString_UC)/binary, 0:(((8- ((0+byte_size(LongHelpString_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddTool_4_1,
+ <<ThisRef:32/?UI,Toolid:32/?UI,BitmapRef:32/?UI,BmpDisabledRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(),Toolid::integer(),X::term()|string(),X::term(),X::bool()|term(),X::integer()|term()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddtool">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), Toggle::bool(), XPos::integer()) -> addTool(This,Toolid,Bitmap,BmpDisabled,Toggle,XPos, []) </c></p>
+%% <p><c>
+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), [Option]) -> wx:wx() </c>
+%%<br /> Option = {kind, WxItemKind} | {shortHelp, string()} | {longHelp, string()} | {data, wx:wx()}
+%%<br /> WxItemKind = integer()
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+%% </p>
+
+addTool(This,Toolid,Bitmap,BmpDisabled,Toggle,XPos)
+ when is_record(This, wx_ref),is_integer(Toolid),is_record(Bitmap, wx_ref),is_record(BmpDisabled, wx_ref),is_boolean(Toggle),is_integer(XPos) ->
+ addTool(This,Toolid,Bitmap,BmpDisabled,Toggle,XPos, []);
+addTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Label,#wx_ref{type=BitmapT,ref=BitmapRef},#wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}, Options)
+ when is_integer(Toolid),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(BmpDisabledT,wxBitmap),
+ MOpts = fun({kind, Kind}, Acc) -> [<<1:32/?UI,Kind:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<2:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<3:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wx),[<<4:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddTool_5,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,BitmapRef:32/?UI,BmpDisabledRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), Toggle::bool(), XPos::integer(), [Option]) -> wx:wx()
+%% Option = {yPos, integer()} | {clientData, wx:wx()} | {shortHelp, string()} | {longHelp, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddtool">external documentation</a>.
+addTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,#wx_ref{type=BitmapT,ref=BitmapRef},#wx_ref{type=BmpDisabledT,ref=BmpDisabledRef},Toggle,XPos, Options)
+ when is_integer(Toolid),is_boolean(Toggle),is_integer(XPos),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(BitmapT,wxBitmap),
+ ?CLASS(BmpDisabledT,wxBitmap),
+ MOpts = fun({yPos, YPos}, Acc) -> [<<1:32/?UI,YPos:32/?UI>>|Acc];
+ ({clientData, #wx_ref{type=ClientDataT,ref=ClientDataRef}}, Acc) -> ?CLASS(ClientDataT,wx),[<<2:32/?UI,ClientDataRef:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<3:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<4:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddTool_6,
+ <<ThisRef:32/?UI,Toolid:32/?UI,BitmapRef:32/?UI,BmpDisabledRef:32/?UI,(wxe_util:from_bool(Toggle)):32/?UI,XPos:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> wx:wx()
+%% @equiv addCheckTool(This,Toolid,Label,Bitmap, [])
+addCheckTool(This,Toolid,Label,Bitmap)
+ when is_record(This, wx_ref),is_integer(Toolid),is_list(Label),is_record(Bitmap, wx_ref) ->
+ addCheckTool(This,Toolid,Label,Bitmap, []).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx()
+%% Option = {bmpDisabled, wxBitmap:wxBitmap()} | {shortHelp, string()} | {longHelp, string()} | {data, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddchecktool">external documentation</a>.
+addCheckTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Label,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Toolid),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({bmpDisabled, #wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}}, Acc) -> ?CLASS(BmpDisabledT,wxBitmap),[<<1:32/?UI,BmpDisabledRef:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<2:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<3:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wx),[<<4:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddCheckTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,BitmapRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> wx:wx()
+%% @equiv addRadioTool(This,Toolid,Label,Bitmap, [])
+addRadioTool(This,Toolid,Label,Bitmap)
+ when is_record(This, wx_ref),is_integer(Toolid),is_list(Label),is_record(Bitmap, wx_ref) ->
+ addRadioTool(This,Toolid,Label,Bitmap, []).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx()
+%% Option = {bmpDisabled, wxBitmap:wxBitmap()} | {shortHelp, string()} | {longHelp, string()} | {data, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbaraddradiotool">external documentation</a>.
+addRadioTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Label,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Toolid),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({bmpDisabled, #wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}}, Acc) -> ?CLASS(BmpDisabledT,wxBitmap),[<<1:32/?UI,BmpDisabledRef:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<2:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<3:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({data, #wx_ref{type=DataT,ref=DataRef}}, Acc) -> ?CLASS(DataT,wx),[<<4:32/?UI,DataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_AddRadioTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,BitmapRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbardeletetool">external documentation</a>.
+deleteTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_DeleteTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Pos::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbardeletetoolbypos">external documentation</a>.
+deleteToolByPos(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_DeleteToolByPos,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Enable::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarenabletool">external documentation</a>.
+enableTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Enable)
+ when is_integer(Toolid),is_boolean(Enable) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_EnableTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarfindbyid">external documentation</a>.
+findById(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_FindById,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> wxControl:wxControl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarfindcontrol">external documentation</a>.
+findControl(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_FindControl,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), X::integer(), Y::integer()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarfindtoolforposition">external documentation</a>.
+findToolForPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_FindToolForPosition,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolsize">external documentation</a>.
+getToolSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolbitmapsize">external documentation</a>.
+getToolBitmapSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolBitmapSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargetmargins">external documentation</a>.
+getMargins(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetMargins,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolenabled">external documentation</a>.
+getToolEnabled(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolEnabled,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoollonghelp">external documentation</a>.
+getToolLongHelp(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolLongHelp,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolpacking">external documentation</a>.
+getToolPacking(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolPacking,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Id::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolpos">external documentation</a>.
+getToolPos(#wx_ref{type=ThisT,ref=ThisRef},Id)
+ when is_integer(Id) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolPos,
+ <<ThisRef:32/?UI,Id:32/?UI>>).
+
+%% @spec (This::wxToolBar()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolseparation">external documentation</a>.
+getToolSeparation(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolSeparation,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolshorthelp">external documentation</a>.
+getToolShortHelp(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolShortHelp,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbargettoolstate">external documentation</a>.
+getToolState(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_GetToolState,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Pos::integer(), Control::wxControl:wxControl()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarinsertcontrol">external documentation</a>.
+insertControl(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=ControlT,ref=ControlRef})
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(ControlT,wxControl),
+ wxe_util:call(?wxToolBar_InsertControl,
+ <<ThisRef:32/?UI,Pos:32/?UI,ControlRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Pos::integer()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarinsertseparator">external documentation</a>.
+insertSeparator(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_InsertSeparator,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Pos::integer(), Tool::wx:wx()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarinserttool">external documentation</a>.
+insertTool(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=ToolT,ref=ToolRef})
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(ToolT,wx),
+ wxe_util:call(?wxToolBar_InsertTool_2,
+ <<ThisRef:32/?UI,Pos:32/?UI,ToolRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Pos::integer(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap()) -> wx:wx()
+%% @equiv insertTool(This,Pos,Toolid,Bitmap, [])
+insertTool(This,Pos,Toolid,Bitmap)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Toolid),is_record(Bitmap, wx_ref) ->
+ insertTool(This,Pos,Toolid,Bitmap, []).
+
+%% @spec (This::wxToolBar(),Pos::integer(),Toolid::integer(),X::string()|term(),X::term()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarinserttool">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insertTool(This::wxToolBar(), Pos::integer(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> insertTool(This,Pos,Toolid,Label,Bitmap, []) </c></p>
+%% <p><c>
+%% insertTool(This::wxToolBar(), Pos::integer(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() </c>
+%%<br /> Option = {bmpDisabled, wxBitmap:wxBitmap()} | {toggle, bool()} | {clientData, wx:wx()} | {shortHelp, string()} | {longHelp, string()}
+%% </p>
+
+insertTool(This,Pos,Toolid,Label,Bitmap)
+ when is_record(This, wx_ref),is_integer(Pos),is_integer(Toolid),is_list(Label),is_record(Bitmap, wx_ref) ->
+ insertTool(This,Pos,Toolid,Label,Bitmap, []);
+insertTool(#wx_ref{type=ThisT,ref=ThisRef},Pos,Toolid,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Pos),is_integer(Toolid),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({bmpDisabled, #wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}}, Acc) -> ?CLASS(BmpDisabledT,wxBitmap),[<<1:32/?UI,BmpDisabledRef:32/?UI>>|Acc];
+ ({toggle, Toggle}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(Toggle)):32/?UI>>|Acc];
+ ({clientData, #wx_ref{type=ClientDataT,ref=ClientDataRef}}, Acc) -> ?CLASS(ClientDataT,wx),[<<3:32/?UI,ClientDataRef:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<4:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<5:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_InsertTool_4,
+ <<ThisRef:32/?UI,Pos:32/?UI,Toolid:32/?UI,BitmapRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxToolBar(), Pos::integer(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx()
+%% Option = {bmpDisabled, wxBitmap:wxBitmap()} | {kind, WxItemKind} | {shortHelp, string()} | {longHelp, string()} | {clientData, wx:wx()}
+%% WxItemKind = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarinserttool">external documentation</a>.
+%%<br /> WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX
+insertTool(#wx_ref{type=ThisT,ref=ThisRef},Pos,Toolid,Label,#wx_ref{type=BitmapT,ref=BitmapRef}, Options)
+ when is_integer(Pos),is_integer(Toolid),is_list(Label),is_list(Options) ->
+ ?CLASS(ThisT,wxToolBar),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ ?CLASS(BitmapT,wxBitmap),
+ MOpts = fun({bmpDisabled, #wx_ref{type=BmpDisabledT,ref=BmpDisabledRef}}, Acc) -> ?CLASS(BmpDisabledT,wxBitmap),[<<1:32/?UI,BmpDisabledRef:32/?UI>>|Acc];
+ ({kind, Kind}, Acc) -> [<<2:32/?UI,Kind:32/?UI>>|Acc];
+ ({shortHelp, ShortHelp}, Acc) -> ShortHelp_UC = unicode:characters_to_binary([ShortHelp,0]),[<<3:32/?UI,(byte_size(ShortHelp_UC)):32/?UI,(ShortHelp_UC)/binary, 0:(((8- ((0+byte_size(ShortHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({longHelp, LongHelp}, Acc) -> LongHelp_UC = unicode:characters_to_binary([LongHelp,0]),[<<4:32/?UI,(byte_size(LongHelp_UC)):32/?UI,(LongHelp_UC)/binary, 0:(((8- ((0+byte_size(LongHelp_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ ({clientData, #wx_ref{type=ClientDataT,ref=ClientDataRef}}, Acc) -> ?CLASS(ClientDataT,wx),[<<5:32/?UI,ClientDataRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolBar_InsertTool_5,
+ <<ThisRef:32/?UI,Pos:32/?UI,Toolid:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8,BitmapRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolBar()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarrealize">external documentation</a>.
+realize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_Realize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer()) -> wx:wx()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarremovetool">external documentation</a>.
+removeTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid)
+ when is_integer(Toolid) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:call(?wxToolBar_RemoveTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI>>).
+
+%% @spec (This::wxToolBar(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsetmargins">external documentation</a>.
+setMargins(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_SetMargins,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsettoolbitmapsize">external documentation</a>.
+setToolBitmapSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_SetToolBitmapSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), HelpString::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsettoollonghelp">external documentation</a>.
+setToolLongHelp(#wx_ref{type=ThisT,ref=ThisRef},Toolid,HelpString)
+ when is_integer(Toolid),is_list(HelpString) ->
+ ?CLASS(ThisT,wxToolBar),
+ HelpString_UC = unicode:characters_to_binary([HelpString,0]),
+ wxe_util:cast(?wxToolBar_SetToolLongHelp,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(byte_size(HelpString_UC)):32/?UI,(HelpString_UC)/binary, 0:(((8- ((4+byte_size(HelpString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxToolBar(), Packing::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsettoolpacking">external documentation</a>.
+setToolPacking(#wx_ref{type=ThisT,ref=ThisRef},Packing)
+ when is_integer(Packing) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_SetToolPacking,
+ <<ThisRef:32/?UI,Packing:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Id::integer(), HelpString::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsettoolshorthelp">external documentation</a>.
+setToolShortHelp(#wx_ref{type=ThisT,ref=ThisRef},Id,HelpString)
+ when is_integer(Id),is_list(HelpString) ->
+ ?CLASS(ThisT,wxToolBar),
+ HelpString_UC = unicode:characters_to_binary([HelpString,0]),
+ wxe_util:cast(?wxToolBar_SetToolShortHelp,
+ <<ThisRef:32/?UI,Id:32/?UI,(byte_size(HelpString_UC)):32/?UI,(HelpString_UC)/binary, 0:(((8- ((4+byte_size(HelpString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxToolBar(), Separation::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbarsettoolseparation">external documentation</a>.
+setToolSeparation(#wx_ref{type=ThisT,ref=ThisRef},Separation)
+ when is_integer(Separation) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_SetToolSeparation,
+ <<ThisRef:32/?UI,Separation:32/?UI>>).
+
+%% @spec (This::wxToolBar(), Toolid::integer(), Toggle::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbar.html#wxtoolbartoggletool">external documentation</a>.
+toggleTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Toggle)
+ when is_integer(Toolid),is_boolean(Toggle) ->
+ ?CLASS(ThisT,wxToolBar),
+ wxe_util:cast(?wxToolBar_ToggleTool,
+ <<ThisRef:32/?UI,Toolid:32/?UI,(wxe_util:from_bool(Toggle)):32/?UI>>).
+
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxToolTip.erl b/lib/wx/src/gen/wxToolTip.erl
new file mode 100644
index 0000000000..3a57ece765
--- /dev/null
+++ b/lib/wx/src/gen/wxToolTip.erl
@@ -0,0 +1,85 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html">wxToolTip</a>.
+%% @type wxToolTip(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxToolTip).
+-include("wxe.hrl").
+-export([destroy/1,enable/1,getTip/1,getWindow/1,new/1,setDelay/1,setTip/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Flag::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipenable">external documentation</a>.
+enable(Flag)
+ when is_boolean(Flag) ->
+ wxe_util:cast(?wxToolTip_Enable,
+ <<(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec (Msecs::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipsetdelay">external documentation</a>.
+setDelay(Msecs)
+ when is_integer(Msecs) ->
+ wxe_util:cast(?wxToolTip_SetDelay,
+ <<Msecs:32/?UI>>).
+
+%% @spec (Tip::string()) -> wxToolTip()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipwxtooltip">external documentation</a>.
+new(Tip)
+ when is_list(Tip) ->
+ Tip_UC = unicode:characters_to_binary([Tip,0]),
+ wxe_util:construct(?wxToolTip_new,
+ <<(byte_size(Tip_UC)):32/?UI,(Tip_UC)/binary, 0:(((8- ((4+byte_size(Tip_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxToolTip(), Tip::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipsettip">external documentation</a>.
+setTip(#wx_ref{type=ThisT,ref=ThisRef},Tip)
+ when is_list(Tip) ->
+ ?CLASS(ThisT,wxToolTip),
+ Tip_UC = unicode:characters_to_binary([Tip,0]),
+ wxe_util:cast(?wxToolTip_SetTip,
+ <<ThisRef:32/?UI,(byte_size(Tip_UC)):32/?UI,(Tip_UC)/binary, 0:(((8- ((0+byte_size(Tip_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxToolTip()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipgettip">external documentation</a>.
+getTip(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolTip),
+ wxe_util:call(?wxToolTip_GetTip,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolTip()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipgetwindow">external documentation</a>.
+getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolTip),
+ wxe_util:call(?wxToolTip_GetWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolTip()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxToolTip),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wxToolbook.erl b/lib/wx/src/gen/wxToolbook.erl
new file mode 100644
index 0000000000..44d3ea945d
--- /dev/null
+++ b/lib/wx/src/gen/wxToolbook.erl
@@ -0,0 +1,698 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html">wxToolbook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxToolbook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxToolbook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
+ changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
+ destroy/1,getCurrentPage/1,getImageList/1,getPage/2,getPageCount/1,
+ getPageImage/2,getPageText/2,getSelection/1,hitTest/2,insertPage/4,
+ insertPage/5,new/0,new/2,new/3,removePage/2,setImageList/2,setPageImage/3,
+ setPageSize/2,setPageText/3,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxToolbook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookwxtoolbook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxToolbook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxToolbook()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxToolbook()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookwxtoolbook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxToolbook_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxToolbook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv addPage(This,Page,Text, [])
+addPage(This,Page,Text)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
+ addPage(This,Page,Text, []).
+
+%% @spec (This::wxToolbook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxToolbook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolbook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxToolbook()) -> ok
+%% @equiv advanceSelection(This, [])
+advanceSelection(This)
+ when is_record(This, wx_ref) ->
+ advanceSelection(This, []).
+
+%% @spec (This::wxToolbook(), [Option]) -> ok
+%% Option = {forward, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookadvanceselection">external documentation</a>.
+advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxToolbook),
+ MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxToolbook_AdvanceSelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolbook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxToolbook_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxToolbook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxToolbook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolbook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxToolbook()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookdeleteallpages">external documentation</a>.
+deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_DeleteAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_DeletePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_RemovePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolbook()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetPage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetpageimage">external documentation</a>.
+getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetPageText,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_HitTest,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv insertPage(This,N,Page,Text, [])
+insertPage(This,N,Page,Text)
+ when is_record(This, wx_ref),is_integer(N),is_record(Page, wx_ref),is_list(Text) ->
+ insertPage(This,N,Page,Text, []).
+
+%% @spec (This::wxToolbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},N,#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_integer(N),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxToolbook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxToolbook_InsertPage,
+ <<ThisRef:32/?UI,N:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxToolbook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbooksetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxToolbook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxToolbook_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxToolbook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbooksetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:cast(?wxToolbook_SetPageSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer(), ImageId::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbooksetpageimage">external documentation</a>.
+setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId)
+ when is_integer(N),is_integer(ImageId) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_SetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI,ImageId:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer(), StrText::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},N,StrText)
+ when is_integer(N),is_list(StrText) ->
+ ?CLASS(ThisT,wxToolbook),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ wxe_util:call(?wxToolbook_SetPageText,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoolbook.html#wxtoolbookchangeselection">external documentation</a>.
+changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxToolbook),
+ wxe_util:call(?wxToolbook_ChangeSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxToolbook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxToolbook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxTopLevelWindow.erl b/lib/wx/src/gen/wxTopLevelWindow.erl
new file mode 100644
index 0000000000..3bb63886d9
--- /dev/null
+++ b/lib/wx/src/gen/wxTopLevelWindow.erl
@@ -0,0 +1,631 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html">wxTopLevelWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxTopLevelWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTopLevelWindow).
+-include("wxe.hrl").
+-export([centerOnScreen/1,centerOnScreen/2,centreOnScreen/1,centreOnScreen/2,
+ getIcon/1,getIcons/1,getTitle/1,iconize/1,iconize/2,isActive/1,isFullScreen/1,
+ isIconized/1,isMaximized/1,maximize/1,maximize/2,requestUserAttention/1,
+ requestUserAttention/2,setIcon/2,setIcons/2,setShape/2,setTitle/2,
+ showFullScreen/2,showFullScreen/3]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxTopLevelWindow()) -> wxIcon:wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowgeticon">external documentation</a>.
+getIcon(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_GetIcon,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> wxIconBundle:wxIconBundle()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowgeticons">external documentation</a>.
+getIcons(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_GetIcons,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowgettitle">external documentation</a>.
+getTitle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_GetTitle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowisactive">external documentation</a>.
+isActive(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_IsActive,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> ok
+%% @equiv iconize(This, [])
+iconize(This)
+ when is_record(This, wx_ref) ->
+ iconize(This, []).
+
+%% @spec (This::wxTopLevelWindow(), [Option]) -> ok
+%% Option = {iconize, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowiconize">external documentation</a>.
+iconize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({iconize, Iconize}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Iconize)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTopLevelWindow_Iconize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTopLevelWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowisfullscreen">external documentation</a>.
+isFullScreen(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_IsFullScreen,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowisiconized">external documentation</a>.
+isIconized(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_IsIconized,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowismaximized">external documentation</a>.
+isMaximized(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ wxe_util:call(?wxTopLevelWindow_IsMaximized,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> ok
+%% @equiv maximize(This, [])
+maximize(This)
+ when is_record(This, wx_ref) ->
+ maximize(This, []).
+
+%% @spec (This::wxTopLevelWindow(), [Option]) -> ok
+%% Option = {maximize, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowmaximize">external documentation</a>.
+maximize(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({maximize, Maximize}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Maximize)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTopLevelWindow_Maximize,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTopLevelWindow()) -> ok
+%% @equiv requestUserAttention(This, [])
+requestUserAttention(This)
+ when is_record(This, wx_ref) ->
+ requestUserAttention(This, []).
+
+%% @spec (This::wxTopLevelWindow(), [Option]) -> ok
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowrequestuserattention">external documentation</a>.
+requestUserAttention(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTopLevelWindow_RequestUserAttention,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTopLevelWindow(), Icon::wxIcon:wxIcon()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowseticon">external documentation</a>.
+setIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ ?CLASS(IconT,wxIcon),
+ wxe_util:cast(?wxTopLevelWindow_SetIcon,
+ <<ThisRef:32/?UI,IconRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow(), Icons::wxIconBundle:wxIconBundle()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowseticons">external documentation</a>.
+setIcons(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconsT,ref=IconsRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ ?CLASS(IconsT,wxIconBundle),
+ wxe_util:cast(?wxTopLevelWindow_SetIcons,
+ <<ThisRef:32/?UI,IconsRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow()) -> ok
+%% @equiv centerOnScreen(This, [])
+centerOnScreen(This)
+ when is_record(This, wx_ref) ->
+ centerOnScreen(This, []).
+
+%% @spec (This::wxTopLevelWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowcenteronscreen">external documentation</a>.
+centerOnScreen(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTopLevelWindow_CenterOnScreen,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTopLevelWindow()) -> ok
+%% @equiv centreOnScreen(This, [])
+centreOnScreen(This)
+ when is_record(This, wx_ref) ->
+ centreOnScreen(This, []).
+
+%% @spec (This::wxTopLevelWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowcentreonscreen">external documentation</a>.
+centreOnScreen(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTopLevelWindow_CentreOnScreen,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTopLevelWindow(), Region::wxRegion:wxRegion()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowsetshape">external documentation</a>.
+setShape(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ ?CLASS(RegionT,wxRegion),
+ wxe_util:call(?wxTopLevelWindow_SetShape,
+ <<ThisRef:32/?UI,RegionRef:32/?UI>>).
+
+%% @spec (This::wxTopLevelWindow(), Title::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowsettitle">external documentation</a>.
+setTitle(#wx_ref{type=ThisT,ref=ThisRef},Title)
+ when is_list(Title) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ Title_UC = unicode:characters_to_binary([Title,0]),
+ wxe_util:cast(?wxTopLevelWindow_SetTitle,
+ <<ThisRef:32/?UI,(byte_size(Title_UC)):32/?UI,(Title_UC)/binary, 0:(((8- ((0+byte_size(Title_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTopLevelWindow(), Show::bool()) -> bool()
+%% @equiv showFullScreen(This,Show, [])
+showFullScreen(This,Show)
+ when is_record(This, wx_ref),is_boolean(Show) ->
+ showFullScreen(This,Show, []).
+
+%% @spec (This::wxTopLevelWindow(), Show::bool(), [Option]) -> bool()
+%% Option = {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowshowfullscreen">external documentation</a>.
+showFullScreen(#wx_ref{type=ThisT,ref=ThisRef},Show, Options)
+ when is_boolean(Show),is_list(Options) ->
+ ?CLASS(ThisT,wxTopLevelWindow),
+ MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTopLevelWindow_ShowFullScreen,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI, BinOpt/binary>>).
+
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setLabel(This,Label) -> wxWindow:setLabel(This,Label).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getLabel(This) -> wxWindow:getLabel(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxTreeCtrl.erl b/lib/wx/src/gen/wxTreeCtrl.erl
new file mode 100644
index 0000000000..cc08c14754
--- /dev/null
+++ b/lib/wx/src/gen/wxTreeCtrl.erl
@@ -0,0 +1,1146 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html">wxTreeCtrl</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxTreeCtrl(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTreeCtrl).
+-include("wxe.hrl").
+-export([addRoot/2,addRoot/3,appendItem/3,appendItem/4,assignImageList/2,assignStateImageList/2,
+ collapse/2,collapseAndReset/2,create/2,create/3,delete/2,deleteAllItems/1,
+ deleteChildren/2,destroy/1,ensureVisible/2,expand/2,getBoundingRect/3,
+ getBoundingRect/4,getChildrenCount/2,getChildrenCount/3,getCount/1,
+ getEditControl/1,getFirstVisibleItem/1,getImageList/1,getIndent/1,
+ getItemBackgroundColour/2,getItemData/2,getItemFont/2,getItemImage/2,
+ getItemImage/3,getItemParent/2,getItemText/2,getItemTextColour/2,
+ getLastChild/2,getNextSibling/2,getNextVisible/2,getPrevSibling/2,
+ getPrevVisible/2,getRootItem/1,getSelection/1,getSelections/1,getStateImageList/1,
+ hitTest/2,insertItem/4,insertItem/5,isBold/2,isExpanded/2,isSelected/2,
+ isVisible/2,itemHasChildren/2,new/0,new/1,new/2,prependItem/3,prependItem/4,
+ scrollTo/2,selectItem/2,selectItem/3,setImageList/2,setIndent/2,setItemBackgroundColour/3,
+ setItemBold/2,setItemBold/3,setItemData/3,setItemDropHighlight/2,
+ setItemDropHighlight/3,setItemFont/3,setItemHasChildren/2,setItemHasChildren/3,
+ setItemImage/3,setItemImage/4,setItemText/3,setItemTextColour/3,setStateImageList/2,
+ setWindowStyle/2,sortChildren/2,toggle/2,toggleItemSelection/2,unselect/1,
+ unselectAll/1,unselectItem/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,show/1,
+ show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,update/1,
+ updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxTreeCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlwxtreectrl">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxTreeCtrl_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow()) -> wxTreeCtrl()
+%% @equiv new(Parent, [])
+new(Parent)
+ when is_record(Parent, wx_ref) ->
+ new(Parent, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxTreeCtrl()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlwxtreectrl">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTreeCtrl_new_2,
+ <<ParentRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Text::string()) -> wxTreeItemId()
+%% @equiv addRoot(This,Text, [])
+addRoot(This,Text)
+ when is_record(This, wx_ref),is_list(Text) ->
+ addRoot(This,Text, []).
+
+%% @spec (This::wxTreeCtrl(), Text::string(), [Option]) -> wxTreeItemId()
+%% Option = {image, integer()} | {selectedImage, integer()} | {data, term()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrladdroot">external documentation</a>.
+addRoot(#wx_ref{type=ThisT,ref=ThisRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({image, Image}, Acc) -> [<<1:32/?UI,Image:32/?UI>>|Acc];
+ ({selectedImage, SelectedImage}, Acc) -> [<<2:32/?UI,SelectedImage:32/?UI>>|Acc];
+ ({data, Data}, Acc) -> wxe_util:send_bin(term_to_binary(Data)),[<<3:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_AddRoot,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxTreeItemId(), Text::string()) -> wxTreeItemId()
+%% @equiv appendItem(This,Parent,Text, [])
+appendItem(This,Parent,Text)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_list(Text) ->
+ appendItem(This,Parent,Text, []).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxTreeItemId(), Text::string(), [Option]) -> wxTreeItemId()
+%% Option = {image, integer()} | {selectedImage, integer()} | {data, term()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlappenditem">external documentation</a>.
+appendItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ParentRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({image, Image}, Acc) -> [<<1:32/?UI,Image:32/?UI>>|Acc];
+ ({selectedImage, SelectedImage}, Acc) -> [<<2:32/?UI,SelectedImage:32/?UI>>|Acc];
+ ({data, Data}, Acc) -> wxe_util:send_bin(term_to_binary(Data)),[<<3:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_AppendItem,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreeCtrl_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlassignstateimagelist">external documentation</a>.
+assignStateImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreeCtrl_AssignStateImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlcollapse">external documentation</a>.
+collapse(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_Collapse,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlcollapseandreset">external documentation</a>.
+collapseAndReset(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_CollapseAndReset,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxWindow:wxWindow()) -> bool()
+%% @equiv create(This,Parent, [])
+create(This,Parent)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref) ->
+ create(This,Parent, []).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({id, Id}, Acc) -> [<<1:32/?UI,Id:32/?UI>>|Acc];
+ ({pos, {PosX,PosY}}, Acc) -> [<<2:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<3:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<4:32/?UI,Style:32/?UI>>|Acc];
+ ({validator, #wx_ref{type=ValidatorT,ref=ValidatorRef}}, Acc) -> ?CLASS(ValidatorT,wx),[<<5:32/?UI,ValidatorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrldelete">external documentation</a>.
+delete(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_Delete,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrldeleteallitems">external documentation</a>.
+deleteAllItems(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_DeleteAllItems,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrldeletechildren">external documentation</a>.
+deleteChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_DeleteChildren,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlensurevisible">external documentation</a>.
+ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_EnsureVisible,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlexpand">external documentation</a>.
+expand(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_Expand,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool()
+%% @equiv getBoundingRect(This,Item,Rect, [])
+getBoundingRect(This,Item,Rect={RectX,RectY,RectW,RectH})
+ when is_record(This, wx_ref),is_record(Item, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ getBoundingRect(This,Item,Rect, []).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> bool()
+%% Option = {textOnly, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetboundingrect">external documentation</a>.
+getBoundingRect(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},{RectX,RectY,RectW,RectH}, Options)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({textOnly, TextOnly}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(TextOnly)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_GetBoundingRect,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> integer()
+%% @equiv getChildrenCount(This,Item, [])
+getChildrenCount(This,Item)
+ when is_record(This, wx_ref),is_record(Item, wx_ref) ->
+ getChildrenCount(This,Item, []).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> integer()
+%% Option = {recursively, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetchildrencount">external documentation</a>.
+getChildrenCount(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({recursively, Recursively}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursively)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_GetChildrenCount,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetcount">external documentation</a>.
+getCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxTextCtrl:wxTextCtrl()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgeteditcontrol">external documentation</a>.
+getEditControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetEditControl,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetfirstvisibleitem">external documentation</a>.
+getFirstVisibleItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetFirstVisibleItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetindent">external documentation</a>.
+getIndent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetIndent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitembackgroundcolour">external documentation</a>.
+getItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemBackgroundColour,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> term()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemdata">external documentation</a>.
+getItemData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemData,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemfont">external documentation</a>.
+getItemFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemFont,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemimage">external documentation</a>.
+getItemImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemImage_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> integer()
+%% Option = {which, WxTreeItemIcon}
+%% WxTreeItemIcon = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemimage">external documentation</a>.
+%%<br /> WxTreeItemIcon is one of ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max
+getItemImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({which, Which}, Acc) -> [<<1:32/?UI,Which:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_GetItemImage_2,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemtext">external documentation</a>.
+getItemText(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemText,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemtextcolour">external documentation</a>.
+getItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemTextColour,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetlastchild">external documentation</a>.
+getLastChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetLastChild,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetnextsibling">external documentation</a>.
+getNextSibling(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetNextSibling,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetnextvisible">external documentation</a>.
+getNextVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetNextVisible,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetitemparent">external documentation</a>.
+getItemParent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetItemParent,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetprevsibling">external documentation</a>.
+getPrevSibling(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetPrevSibling,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetprevvisible">external documentation</a>.
+getPrevVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetPrevVisible,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetrootitem">external documentation</a>.
+getRootItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetRootItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> {integer(),Val::[wxTreeItemId()]}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetselections">external documentation</a>.
+getSelections(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetSelections,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlgetstateimagelist">external documentation</a>.
+getStateImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_GetStateImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Point::{X::integer(),Y::integer()}) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY})
+ when is_integer(PointX),is_integer(PointY) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_HitTest,
+ <<ThisRef:32/?UI,PointX:32/?UI,PointY:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(),Parent::wxTreeItemId(),X::integer()|wxTreeItemId(),Text::string()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlinsertitem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), Pos::integer(), Text::string()) -> insertItem(This,Parent,Pos,Text, []) </c></p>
+%% <p><c>
+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), IdPrevious::wxTreeItemId(), Text::string()) -> insertItem(This,Parent,IdPrevious,Text, []) </c></p>
+
+insertItem(This,Parent,Pos,Text)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Pos),is_list(Text) ->
+ insertItem(This,Parent,Pos,Text, []);
+
+insertItem(This,Parent,IdPrevious,Text)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_record(IdPrevious, wx_ref),is_list(Text) ->
+ insertItem(This,Parent,IdPrevious,Text, []).
+
+%% @spec (This::wxTreeCtrl(),Parent::wxTreeItemId(),X::integer()|wxTreeItemId(),Text::string(),[Option]) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlinsertitem">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), Pos::integer(), Text::string(), [Option]) -> wxTreeItemId() </c>
+%%<br /> Option = {image, integer()} | {selImage, integer()} | {data, term()}
+%% </p>
+%% <p><c>
+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), IdPrevious::wxTreeItemId(), Text::string(), [Option]) -> wxTreeItemId() </c>
+%%<br /> Option = {image, integer()} | {selectedImage, integer()} | {data, term()}
+%% </p>
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ParentRef},Pos,Text, Options)
+ when is_integer(Pos),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({image, Image}, Acc) -> [<<1:32/?UI,Image:32/?UI>>|Acc];
+ ({selImage, SelImage}, Acc) -> [<<2:32/?UI,SelImage:32/?UI>>|Acc];
+ ({data, Data}, Acc) -> wxe_util:send_bin(term_to_binary(Data)),[<<3:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_InsertItem_4_0,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Pos:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>);
+insertItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ParentRef},#wx_ref{type=wxTreeItemId,ref=IdPreviousRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({image, Image}, Acc) -> [<<1:32/?UI,Image:32/?UI>>|Acc];
+ ({selectedImage, SelectedImage}, Acc) -> [<<2:32/?UI,SelectedImage:32/?UI>>|Acc];
+ ({data, Data}, Acc) -> wxe_util:send_bin(term_to_binary(Data)),[<<3:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_InsertItem_4_1,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,IdPreviousRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlisbold">external documentation</a>.
+isBold(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_IsBold,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlisexpanded">external documentation</a>.
+isExpanded(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_IsExpanded,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlisselected">external documentation</a>.
+isSelected(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_IsSelected,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlisvisible">external documentation</a>.
+isVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_IsVisible,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlitemhaschildren">external documentation</a>.
+itemHasChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:call(?wxTreeCtrl_ItemHasChildren,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxTreeItemId(), Text::string()) -> wxTreeItemId()
+%% @equiv prependItem(This,Parent,Text, [])
+prependItem(This,Parent,Text)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_list(Text) ->
+ prependItem(This,Parent,Text, []).
+
+%% @spec (This::wxTreeCtrl(), Parent::wxTreeItemId(), Text::string(), [Option]) -> wxTreeItemId()
+%% Option = {image, integer()} | {selectedImage, integer()} | {data, term()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlprependitem">external documentation</a>.
+prependItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ParentRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({image, Image}, Acc) -> [<<1:32/?UI,Image:32/?UI>>|Acc];
+ ({selectedImage, SelectedImage}, Acc) -> [<<2:32/?UI,SelectedImage:32/?UI>>|Acc];
+ ({data, Data}, Acc) -> wxe_util:send_bin(term_to_binary(Data)),[<<3:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreeCtrl_PrependItem,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlscrollto">external documentation</a>.
+scrollTo(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_ScrollTo,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlselectitem">external documentation</a>.
+selectItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SelectItem_1,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> ok
+%% Option = {select, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlselectitem">external documentation</a>.
+selectItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({select, Select}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Select)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreeCtrl_SelectItem_2,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Indent::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetindent">external documentation</a>.
+setIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent)
+ when is_integer(Indent) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SetIndent,
+ <<ThisRef:32/?UI,Indent:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreeCtrl_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitembackgroundcolour">external documentation</a>.
+setItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SetItemBackgroundColour,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @equiv setItemBold(This,Item, [])
+setItemBold(This,Item)
+ when is_record(This, wx_ref),is_record(Item, wx_ref) ->
+ setItemBold(This,Item, []).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> ok
+%% Option = {bold, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitembold">external documentation</a>.
+setItemBold(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({bold, Bold}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Bold)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreeCtrl_SetItemBold,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Data::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemdata">external documentation</a>.
+setItemData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Data) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:send_bin(term_to_binary(Data)),
+ wxe_util:cast(?wxTreeCtrl_SetItemData,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @equiv setItemDropHighlight(This,Item, [])
+setItemDropHighlight(This,Item)
+ when is_record(This, wx_ref),is_record(Item, wx_ref) ->
+ setItemDropHighlight(This,Item, []).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> ok
+%% Option = {highlight, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemdrophighlight">external documentation</a>.
+setItemDropHighlight(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({highlight, Highlight}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Highlight)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreeCtrl_SetItemDropHighlight,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemfont">external documentation</a>.
+setItemFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxTreeCtrl_SetItemFont,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @equiv setItemHasChildren(This,Item, [])
+setItemHasChildren(This,Item)
+ when is_record(This, wx_ref),is_record(Item, wx_ref) ->
+ setItemHasChildren(This,Item, []).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> ok
+%% Option = {has, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemhaschildren">external documentation</a>.
+setItemHasChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({has, Has}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Has)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreeCtrl_SetItemHasChildren,
+ <<ThisRef:32/?UI,ItemRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Image::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemimage">external documentation</a>.
+setItemImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Image)
+ when is_integer(Image) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SetItemImage_2,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,Image:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Image::integer(), [Option]) -> ok
+%% Option = {which, WxTreeItemIcon}
+%% WxTreeItemIcon = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemimage">external documentation</a>.
+%%<br /> WxTreeItemIcon is one of ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max
+setItemImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Image, Options)
+ when is_integer(Image),is_list(Options) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ MOpts = fun({which, Which}, Acc) -> [<<1:32/?UI,Which:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreeCtrl_SetItemImage_3,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,Image:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemtext">external documentation</a>.
+setItemText(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxTreeCtrl_SetItemText,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Col::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetitemtextcolour">external documentation</a>.
+setItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef},Col)
+ when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SetItemTextColour,
+ <<ThisRef:32/?UI,ItemRef:32/?UI,(wxe_util:colour_bin(Col)):16/binary>>).
+
+%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetstateimagelist">external documentation</a>.
+setStateImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreeCtrl_SetStateImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Styles::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsetwindowstyle">external documentation</a>.
+setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Styles)
+ when is_integer(Styles) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SetWindowStyle,
+ <<ThisRef:32/?UI,Styles:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlsortchildren">external documentation</a>.
+sortChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_SortChildren,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrltoggle">external documentation</a>.
+toggle(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_Toggle,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrltoggleitemselection">external documentation</a>.
+toggleItemSelection(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_ToggleItemSelection,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlunselect">external documentation</a>.
+unselect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_Unselect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlunselectall">external documentation</a>.
+unselectAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_UnselectAll,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreectrl.html#wxtreectrlunselectitem">external documentation</a>.
+unselectItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) ->
+ ?CLASS(ThisT,wxTreeCtrl),
+ wxe_util:cast(?wxTreeCtrl_UnselectItem,
+ <<ThisRef:32/?UI,ItemRef:32/?UI>>).
+
+%% @spec (This::wxTreeCtrl()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTreeCtrl),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxTreeEvent.erl b/lib/wx/src/gen/wxTreeEvent.erl
new file mode 100644
index 0000000000..3f20e79b22
--- /dev/null
+++ b/lib/wx/src/gen/wxTreeEvent.erl
@@ -0,0 +1,153 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html">wxTreeEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>command_tree_begin_drag</em>, <em>command_tree_begin_rdrag</em>, <em>command_tree_begin_label_edit</em>, <em>command_tree_end_label_edit</em>, <em>command_tree_delete_item</em>, <em>command_tree_get_info</em>, <em>command_tree_set_info</em>, <em>command_tree_item_expanded</em>, <em>command_tree_item_expanding</em>, <em>command_tree_item_collapsed</em>, <em>command_tree_item_collapsing</em>, <em>command_tree_sel_changed</em>, <em>command_tree_sel_changing</em>, <em>command_tree_key_down</em>, <em>command_tree_item_activated</em>, <em>command_tree_item_right_click</em>, <em>command_tree_item_middle_click</em>, <em>command_tree_end_drag</em>, <em>command_tree_state_image_click</em>, <em>command_tree_item_gettooltip</em>, <em>command_tree_item_menu</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxTree(). #wxTree{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxNotifyEvent}
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxTreeEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTreeEvent).
+-include("wxe.hrl").
+-export([getItem/1,getKeyCode/1,getKeyEvent/1,getLabel/1,getOldItem/1,getPoint/1,
+ isEditCancelled/1,setToolTip/2]).
+
+%% inherited exports
+-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
+ getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
+ isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
+ shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
+
+%% @hidden
+parent_class(wxNotifyEvent) -> true;
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (This::wxTreeEvent()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetkeycode">external documentation</a>.
+getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetKeyCode,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetitem">external documentation</a>.
+getItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> wxKeyEvent:wxKeyEvent()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetkeyevent">external documentation</a>.
+getKeyEvent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetKeyEvent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> wxTreeItemId()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetolditem">external documentation</a>.
+getOldItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetOldItem,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventgetpoint">external documentation</a>.
+getPoint(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_GetPoint,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventiseditcancelled">external documentation</a>.
+isEditCancelled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ wxe_util:call(?wxTreeEvent_IsEditCancelled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreeEvent(), ToolTip::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreeevent.html#wxtreeeventsettooltip">external documentation</a>.
+setToolTip(#wx_ref{type=ThisT,ref=ThisRef},ToolTip)
+ when is_list(ToolTip) ->
+ ?CLASS(ThisT,wxTreeEvent),
+ ToolTip_UC = unicode:characters_to_binary([ToolTip,0]),
+ wxe_util:cast(?wxTreeEvent_SetToolTip,
+ <<ThisRef:32/?UI,(byte_size(ToolTip_UC)):32/?UI,(ToolTip_UC)/binary, 0:(((8- ((0+byte_size(ToolTip_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+ %% From wxNotifyEvent
+%% @hidden
+veto(This) -> wxNotifyEvent:veto(This).
+%% @hidden
+isAllowed(This) -> wxNotifyEvent:isAllowed(This).
+%% @hidden
+allow(This) -> wxNotifyEvent:allow(This).
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxTreebook.erl b/lib/wx/src/gen/wxTreebook.erl
new file mode 100644
index 0000000000..34b16a1cc6
--- /dev/null
+++ b/lib/wx/src/gen/wxTreebook.erl
@@ -0,0 +1,746 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html">wxTreebook</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxControl}
+%% <br />{@link wxWindow}
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxTreebook(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxTreebook).
+-include("wxe.hrl").
+-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
+ changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
+ destroy/1,expandNode/2,expandNode/3,getCurrentPage/1,getImageList/1,
+ getPage/2,getPageCount/1,getPageImage/2,getPageText/2,getSelection/1,
+ hitTest/2,insertPage/4,insertPage/5,insertSubPage/4,insertSubPage/5,
+ isNodeExpanded/2,new/0,new/2,new/3,removePage/2,setImageList/2,setPageImage/3,
+ setPageSize/2,setPageText/3,setSelection/2]).
+
+%% inherited exports
+-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
+ destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
+ enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
+ getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
+ getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
+ getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
+ getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
+ getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
+ getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
+ getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
+ getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
+ hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
+ isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
+ layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
+ move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
+ navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
+ popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
+ refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
+ screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
+ setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
+ setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% @hidden
+parent_class(wxControl) -> true;
+parent_class(wxWindow) -> true;
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxTreebook()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookwxtreebook">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxTreebook_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxTreebook()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxTreebook()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookwxtreebook">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxTreebook_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreebook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv addPage(This,Page,Text, [])
+addPage(This,Page,Text)
+ when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
+ addPage(This,Page,Text, []).
+
+%% @spec (This::wxTreebook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookaddpage">external documentation</a>.
+addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreebook_AddPage,
+ <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreebook()) -> ok
+%% @equiv advanceSelection(This, [])
+advanceSelection(This)
+ when is_record(This, wx_ref) ->
+ advanceSelection(This, []).
+
+%% @spec (This::wxTreebook(), [Option]) -> ok
+%% Option = {forward, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookadvanceselection">external documentation</a>.
+advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxTreebook_AdvanceSelection,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTreebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookassignimagelist">external documentation</a>.
+assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreebook_AssignImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
+%% @equiv create(This,Parent,Id, [])
+create(This,Parent,Id)
+ when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
+ create(This,Parent,Id, []).
+
+%% @spec (This::wxTreebook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookcreate">external documentation</a>.
+create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreebook_Create,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxTreebook()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookdeleteallpages">external documentation</a>.
+deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_DeleteAllPages,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Pos::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookdeletepage">external documentation</a>.
+deletePage(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_DeletePage,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookremovepage">external documentation</a>.
+removePage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_RemovePage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetcurrentpage">external documentation</a>.
+getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetCurrentPage,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreebook()) -> wxImageList:wxImageList()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetimagelist">external documentation</a>.
+getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetImageList,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetpage">external documentation</a>.
+getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetPage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetpagecount">external documentation</a>.
+getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetPageCount,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetpageimage">external documentation</a>.
+getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetpagetext">external documentation</a>.
+getPageText(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetPageText,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookgetselection">external documentation</a>.
+getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_GetSelection,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Pos::integer()) -> bool()
+%% @equiv expandNode(This,Pos, [])
+expandNode(This,Pos)
+ when is_record(This, wx_ref),is_integer(Pos) ->
+ expandNode(This,Pos, []).
+
+%% @spec (This::wxTreebook(), Pos::integer(), [Option]) -> bool()
+%% Option = {expand, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookexpandnode">external documentation</a>.
+expandNode(#wx_ref{type=ThisT,ref=ThisRef},Pos, Options)
+ when is_integer(Pos),is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ MOpts = fun({expand, Expand}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Expand)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreebook_ExpandNode,
+ <<ThisRef:32/?UI,Pos:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxTreebook(), Pos::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookisnodeexpanded">external documentation</a>.
+isNodeExpanded(#wx_ref{type=ThisT,ref=ThisRef},Pos)
+ when is_integer(Pos) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_IsNodeExpanded,
+ <<ThisRef:32/?UI,Pos:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookhittest">external documentation</a>.
+hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_HitTest,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Pos::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv insertPage(This,Pos,Page,Text, [])
+insertPage(This,Pos,Page,Text)
+ when is_record(This, wx_ref),is_integer(Pos),is_record(Page, wx_ref),is_list(Text) ->
+ insertPage(This,Pos,Page,Text, []).
+
+%% @spec (This::wxTreebook(), Pos::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookinsertpage">external documentation</a>.
+insertPage(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_integer(Pos),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreebook_InsertPage,
+ <<ThisRef:32/?UI,Pos:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreebook(), Pos::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
+%% @equiv insertSubPage(This,Pos,Page,Text, [])
+insertSubPage(This,Pos,Page,Text)
+ when is_record(This, wx_ref),is_integer(Pos),is_record(Page, wx_ref),is_list(Text) ->
+ insertSubPage(This,Pos,Page,Text, []).
+
+%% @spec (This::wxTreebook(), Pos::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
+%% Option = {bSelect, bool()} | {imageId, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookinsertsubpage">external documentation</a>.
+insertSubPage(#wx_ref{type=ThisT,ref=ThisRef},Pos,#wx_ref{type=PageT,ref=PageRef},Text, Options)
+ when is_integer(Pos),is_list(Text),is_list(Options) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(PageT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
+ ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxTreebook_InsertSubPage,
+ <<ThisRef:32/?UI,Pos:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxTreebook(), ImageList::wxImageList:wxImageList()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebooksetimagelist">external documentation</a>.
+setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
+ ?CLASS(ThisT,wxTreebook),
+ ?CLASS(ImageListT,wxImageList),
+ wxe_util:cast(?wxTreebook_SetImageList,
+ <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
+
+%% @spec (This::wxTreebook(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebooksetpagesize">external documentation</a>.
+setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:cast(?wxTreebook_SetPageSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer(), ImageId::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebooksetpageimage">external documentation</a>.
+setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId)
+ when is_integer(N),is_integer(ImageId) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_SetPageImage,
+ <<ThisRef:32/?UI,N:32/?UI,ImageId:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer(), StrText::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebooksetpagetext">external documentation</a>.
+setPageText(#wx_ref{type=ThisT,ref=ThisRef},N,StrText)
+ when is_integer(N),is_list(StrText) ->
+ ?CLASS(ThisT,wxTreebook),
+ StrText_UC = unicode:characters_to_binary([StrText,0]),
+ wxe_util:call(?wxTreebook_SetPageText,
+ <<ThisRef:32/?UI,N:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebooksetselection">external documentation</a>.
+setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_SetSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook(), N::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtreebook.html#wxtreebookchangeselection">external documentation</a>.
+changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
+ when is_integer(N) ->
+ ?CLASS(ThisT,wxTreebook),
+ wxe_util:call(?wxTreebook_ChangeSelection,
+ <<ThisRef:32/?UI,N:32/?UI>>).
+
+%% @spec (This::wxTreebook()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxTreebook),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxControl
+%% @hidden
+setLabel(This,Label) -> wxControl:setLabel(This,Label).
+%% @hidden
+getLabel(This) -> wxControl:getLabel(This).
+ %% From wxWindow
+%% @hidden
+warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
+%% @hidden
+validate(This) -> wxWindow:validate(This).
+%% @hidden
+updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
+%% @hidden
+updateWindowUI(This) -> wxWindow:updateWindowUI(This).
+%% @hidden
+update(This) -> wxWindow:update(This).
+%% @hidden
+transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
+%% @hidden
+transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
+%% @hidden
+thaw(This) -> wxWindow:thaw(This).
+%% @hidden
+show(This, Options) -> wxWindow:show(This, Options).
+%% @hidden
+show(This) -> wxWindow:show(This).
+%% @hidden
+shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
+%% @hidden
+setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
+%% @hidden
+setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
+%% @hidden
+setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
+%% @hidden
+setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
+%% @hidden
+setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
+%% @hidden
+setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
+%% @hidden
+setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
+%% @hidden
+setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
+%% @hidden
+setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
+%% @hidden
+setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
+%% @hidden
+setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
+%% @hidden
+setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
+%% @hidden
+setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
+%% @hidden
+setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
+%% @hidden
+setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
+%% @hidden
+setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
+%% @hidden
+setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
+%% @hidden
+setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
+%% @hidden
+setSize(This,Rect) -> wxWindow:setSize(This,Rect).
+%% @hidden
+setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
+%% @hidden
+setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
+%% @hidden
+setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
+%% @hidden
+setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
+%% @hidden
+setName(This,Name) -> wxWindow:setName(This,Name).
+%% @hidden
+setId(This,Winid) -> wxWindow:setId(This,Winid).
+%% @hidden
+setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
+%% @hidden
+setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
+%% @hidden
+setFont(This,Font) -> wxWindow:setFont(This,Font).
+%% @hidden
+setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
+%% @hidden
+setFocus(This) -> wxWindow:setFocus(This).
+%% @hidden
+setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
+%% @hidden
+setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
+%% @hidden
+setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
+%% @hidden
+setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
+%% @hidden
+setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
+%% @hidden
+setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
+%% @hidden
+setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
+%% @hidden
+setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
+%% @hidden
+setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
+%% @hidden
+setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
+%% @hidden
+setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
+%% @hidden
+setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
+%% @hidden
+setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
+%% @hidden
+setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
+%% @hidden
+setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
+%% @hidden
+setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
+%% @hidden
+scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
+%% @hidden
+scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
+%% @hidden
+scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
+%% @hidden
+scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
+%% @hidden
+screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
+%% @hidden
+screenToClient(This) -> wxWindow:screenToClient(This).
+%% @hidden
+reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
+%% @hidden
+removeChild(This,Child) -> wxWindow:removeChild(This,Child).
+%% @hidden
+releaseMouse(This) -> wxWindow:releaseMouse(This).
+%% @hidden
+refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
+%% @hidden
+refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
+%% @hidden
+refresh(This, Options) -> wxWindow:refresh(This, Options).
+%% @hidden
+refresh(This) -> wxWindow:refresh(This).
+%% @hidden
+raise(This) -> wxWindow:raise(This).
+%% @hidden
+popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
+%% @hidden
+popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
+%% @hidden
+popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
+%% @hidden
+popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
+%% @hidden
+popEventHandler(This) -> wxWindow:popEventHandler(This).
+%% @hidden
+pageUp(This) -> wxWindow:pageUp(This).
+%% @hidden
+pageDown(This) -> wxWindow:pageDown(This).
+%% @hidden
+navigate(This, Options) -> wxWindow:navigate(This, Options).
+%% @hidden
+navigate(This) -> wxWindow:navigate(This).
+%% @hidden
+moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
+%% @hidden
+moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
+%% @hidden
+move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
+%% @hidden
+move(This,X,Y) -> wxWindow:move(This,X,Y).
+%% @hidden
+move(This,Pt) -> wxWindow:move(This,Pt).
+%% @hidden
+makeModal(This, Options) -> wxWindow:makeModal(This, Options).
+%% @hidden
+makeModal(This) -> wxWindow:makeModal(This).
+%% @hidden
+lower(This) -> wxWindow:lower(This).
+%% @hidden
+lineUp(This) -> wxWindow:lineUp(This).
+%% @hidden
+lineDown(This) -> wxWindow:lineDown(This).
+%% @hidden
+layout(This) -> wxWindow:layout(This).
+%% @hidden
+isTopLevel(This) -> wxWindow:isTopLevel(This).
+%% @hidden
+isShown(This) -> wxWindow:isShown(This).
+%% @hidden
+isRetained(This) -> wxWindow:isRetained(This).
+%% @hidden
+isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
+%% @hidden
+isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
+%% @hidden
+isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
+%% @hidden
+isEnabled(This) -> wxWindow:isEnabled(This).
+%% @hidden
+invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
+%% @hidden
+initDialog(This) -> wxWindow:initDialog(This).
+%% @hidden
+inheritAttributes(This) -> wxWindow:inheritAttributes(This).
+%% @hidden
+hide(This) -> wxWindow:hide(This).
+%% @hidden
+hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
+%% @hidden
+hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
+%% @hidden
+hasCapture(This) -> wxWindow:hasCapture(This).
+%% @hidden
+getWindowVariant(This) -> wxWindow:getWindowVariant(This).
+%% @hidden
+getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
+%% @hidden
+getVirtualSize(This) -> wxWindow:getVirtualSize(This).
+%% @hidden
+getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
+%% @hidden
+getToolTip(This) -> wxWindow:getToolTip(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
+%% @hidden
+getSizer(This) -> wxWindow:getSizer(This).
+%% @hidden
+getSize(This) -> wxWindow:getSize(This).
+%% @hidden
+getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
+%% @hidden
+getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
+%% @hidden
+getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
+%% @hidden
+getScreenRect(This) -> wxWindow:getScreenRect(This).
+%% @hidden
+getScreenPosition(This) -> wxWindow:getScreenPosition(This).
+%% @hidden
+getRect(This) -> wxWindow:getRect(This).
+%% @hidden
+getPosition(This) -> wxWindow:getPosition(This).
+%% @hidden
+getParent(This) -> wxWindow:getParent(This).
+%% @hidden
+getName(This) -> wxWindow:getName(This).
+%% @hidden
+getMinSize(This) -> wxWindow:getMinSize(This).
+%% @hidden
+getMaxSize(This) -> wxWindow:getMaxSize(This).
+%% @hidden
+getId(This) -> wxWindow:getId(This).
+%% @hidden
+getHelpText(This) -> wxWindow:getHelpText(This).
+%% @hidden
+getHandle(This) -> wxWindow:getHandle(This).
+%% @hidden
+getGrandParent(This) -> wxWindow:getGrandParent(This).
+%% @hidden
+getForegroundColour(This) -> wxWindow:getForegroundColour(This).
+%% @hidden
+getFont(This) -> wxWindow:getFont(This).
+%% @hidden
+getExtraStyle(This) -> wxWindow:getExtraStyle(This).
+%% @hidden
+getEventHandler(This) -> wxWindow:getEventHandler(This).
+%% @hidden
+getDropTarget(This) -> wxWindow:getDropTarget(This).
+%% @hidden
+getCursor(This) -> wxWindow:getCursor(This).
+%% @hidden
+getContainingSizer(This) -> wxWindow:getContainingSizer(This).
+%% @hidden
+getClientSize(This) -> wxWindow:getClientSize(This).
+%% @hidden
+getChildren(This) -> wxWindow:getChildren(This).
+%% @hidden
+getCharWidth(This) -> wxWindow:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxWindow:getCharHeight(This).
+%% @hidden
+getCaret(This) -> wxWindow:getCaret(This).
+%% @hidden
+getBestSize(This) -> wxWindow:getBestSize(This).
+%% @hidden
+getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
+%% @hidden
+getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
+%% @hidden
+getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
+%% @hidden
+freeze(This) -> wxWindow:freeze(This).
+%% @hidden
+fitInside(This) -> wxWindow:fitInside(This).
+%% @hidden
+fit(This) -> wxWindow:fit(This).
+%% @hidden
+findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
+%% @hidden
+enable(This, Options) -> wxWindow:enable(This, Options).
+%% @hidden
+enable(This) -> wxWindow:enable(This).
+%% @hidden
+disable(This) -> wxWindow:disable(This).
+%% @hidden
+destroyChildren(This) -> wxWindow:destroyChildren(This).
+%% @hidden
+convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
+%% @hidden
+convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
+%% @hidden
+close(This, Options) -> wxWindow:close(This, Options).
+%% @hidden
+close(This) -> wxWindow:close(This).
+%% @hidden
+clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
+%% @hidden
+clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
+%% @hidden
+clearBackground(This) -> wxWindow:clearBackground(This).
+%% @hidden
+centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
+%% @hidden
+centreOnParent(This) -> wxWindow:centreOnParent(This).
+%% @hidden
+centre(This, Options) -> wxWindow:centre(This, Options).
+%% @hidden
+centre(This) -> wxWindow:centre(This).
+%% @hidden
+centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
+%% @hidden
+centerOnParent(This) -> wxWindow:centerOnParent(This).
+%% @hidden
+center(This, Options) -> wxWindow:center(This, Options).
+%% @hidden
+center(This) -> wxWindow:center(This).
+%% @hidden
+captureMouse(This) -> wxWindow:captureMouse(This).
+%% @hidden
+cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxUpdateUIEvent.erl b/lib/wx/src/gen/wxUpdateUIEvent.erl
new file mode 100644
index 0000000000..eddccd3575
--- /dev/null
+++ b/lib/wx/src/gen/wxUpdateUIEvent.erl
@@ -0,0 +1,219 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html">wxUpdateUIEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>update_ui</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxUpdateUI(). #wxUpdateUI{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxUpdateUIEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxUpdateUIEvent).
+-include("wxe.hrl").
+-export([canUpdate/1,check/2,enable/2,getChecked/1,getEnabled/1,getMode/0,getSetChecked/1,
+ getSetEnabled/1,getSetShown/1,getSetText/1,getShown/1,getText/1,getUpdateInterval/0,
+ resetUpdateTime/0,setMode/1,setText/2,setUpdateInterval/1,show/2]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec (Win::wxWindow:wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventcanupdate">external documentation</a>.
+canUpdate(#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(WinT,wxWindow),
+ wxe_util:call(?wxUpdateUIEvent_CanUpdate,
+ <<WinRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent(), Check::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventcheck">external documentation</a>.
+check(#wx_ref{type=ThisT,ref=ThisRef},Check)
+ when is_boolean(Check) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:cast(?wxUpdateUIEvent_Check,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Check)):32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent(), Enable::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef},Enable)
+ when is_boolean(Enable) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:cast(?wxUpdateUIEvent_Enable,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent(), Show::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef},Show)
+ when is_boolean(Show) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:cast(?wxUpdateUIEvent_Show,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetchecked">external documentation</a>.
+getChecked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetChecked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetenabled">external documentation</a>.
+getEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetshown">external documentation</a>.
+getShown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetShown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetsetchecked">external documentation</a>.
+getSetChecked(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetSetChecked,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetsetenabled">external documentation</a>.
+getSetEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetSetEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetsetshown">external documentation</a>.
+getSetShown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetSetShown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetsettext">external documentation</a>.
+getSetText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetSetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgettext">external documentation</a>.
+getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ wxe_util:call(?wxUpdateUIEvent_GetText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> WxUpdateUIMode
+%% WxUpdateUIMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetmode">external documentation</a>.
+%%<br /> WxUpdateUIMode is one of ?wxUPDATE_UI_PROCESS_ALL | ?wxUPDATE_UI_PROCESS_SPECIFIED
+getMode() ->
+ wxe_util:call(?wxUpdateUIEvent_GetMode,
+ <<>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventgetupdateinterval">external documentation</a>.
+getUpdateInterval() ->
+ wxe_util:call(?wxUpdateUIEvent_GetUpdateInterval,
+ <<>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventresetupdatetime">external documentation</a>.
+resetUpdateTime() ->
+ wxe_util:cast(?wxUpdateUIEvent_ResetUpdateTime,
+ <<>>).
+
+%% @spec (Mode::WxUpdateUIMode) -> ok
+%% WxUpdateUIMode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventsetmode">external documentation</a>.
+%%<br /> WxUpdateUIMode is one of ?wxUPDATE_UI_PROCESS_ALL | ?wxUPDATE_UI_PROCESS_SPECIFIED
+setMode(Mode)
+ when is_integer(Mode) ->
+ wxe_util:cast(?wxUpdateUIEvent_SetMode,
+ <<Mode:32/?UI>>).
+
+%% @spec (This::wxUpdateUIEvent(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventsettext">external documentation</a>.
+setText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxUpdateUIEvent),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxUpdateUIEvent_SetText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (UpdateInterval::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxupdateuievent.html#wxupdateuieventsetupdateinterval">external documentation</a>.
+setUpdateInterval(UpdateInterval)
+ when is_integer(UpdateInterval) ->
+ wxe_util:cast(?wxUpdateUIEvent_SetUpdateInterval,
+ <<UpdateInterval:32/?UI>>).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxWindow.erl b/lib/wx/src/gen/wxWindow.erl
new file mode 100644
index 0000000000..d431696660
--- /dev/null
+++ b/lib/wx/src/gen/wxWindow.erl
@@ -0,0 +1,1708 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html">wxWindow</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxEvtHandler}
+%% </p>
+%% @type wxWindow(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxWindow).
+-include("wxe.hrl").
+-export(['Destroy'/1,cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
+ centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
+ clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
+ convertDialogToPixels/2,convertPixelsToDialog/2,destroy/1,destroyChildren/1,
+ disable/1,enable/1,enable/2,findFocus/0,findWindow/2,findWindowById/1,
+ findWindowById/2,findWindowByLabel/1,findWindowByLabel/2,findWindowByName/1,
+ findWindowByName/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
+ getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCapture/0,
+ getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,
+ getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1,
+ getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1,
+ getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,getMinSize/1,
+ getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1,
+ getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2,
+ getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,getToolTip/1,
+ getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1,
+ hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,hide/1,inheritAttributes/1,
+ initDialog/1,invalidateBestSize/1,isEnabled/1,isExposed/2,isExposed/3,
+ isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1,
+ lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2,
+ moveBeforeInTabOrder/2,navigate/1,navigate/2,new/0,new/2,new/3,pageDown/1,
+ pageUp/1,popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3,
+ popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3,
+ releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,screenToClient/2,
+ scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2,
+ setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2,
+ setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
+ setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
+ setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
+ setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
+ setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
+ setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
+ setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
+ setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
+ setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
+ setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
+ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
+ update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
+
+%% inherited exports
+-export([connect/2,connect/3,disconnect/1,disconnect/2,disconnect/3,parent_class/1]).
+
+%% @hidden
+parent_class(wxEvtHandler) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowwxwindow">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxWindow_new_0,
+ <<>>).
+
+%% @spec (Parent::wxWindow(), Id::integer()) -> wxWindow()
+%% @equiv new(Parent,Id, [])
+new(Parent,Id)
+ when is_record(Parent, wx_ref),is_integer(Id) ->
+ new(Parent,Id, []).
+
+%% @spec (Parent::wxWindow(), Id::integer(), [Option]) -> wxWindow()
+%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowwxwindow">external documentation</a>.
+new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
+ when is_integer(Id),is_list(Options) ->
+ ?CLASS(ParentT,wxWindow),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
+ ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxWindow_new_3,
+ <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcachebestsize">external documentation</a>.
+cacheBestSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_CacheBestSize,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcapturemouse">external documentation</a>.
+captureMouse(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_CaptureMouse,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv center(This, [])
+center(This)
+ when is_record(This, wx_ref) ->
+ center(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcenter">external documentation</a>.
+center(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_Center,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv centerOnParent(This, [])
+centerOnParent(This)
+ when is_record(This, wx_ref) ->
+ centerOnParent(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcenteronparent">external documentation</a>.
+centerOnParent(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_CenterOnParent,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv centre(This, [])
+centre(This)
+ when is_record(This, wx_ref) ->
+ centre(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcentre">external documentation</a>.
+centre(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_Centre,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv centreOnParent(This, [])
+centreOnParent(This)
+ when is_record(This, wx_ref) ->
+ centreOnParent(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {dir, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowcentreonparent">external documentation</a>.
+centreOnParent(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_CentreOnParent,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowclearbackground">external documentation</a>.
+clearBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_ClearBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowclienttoscreen">external documentation</a>.
+clientToScreen(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ClientToScreen_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowclienttoscreen">external documentation</a>.
+clientToScreen(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ClientToScreen_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @equiv close(This, [])
+close(This)
+ when is_record(This, wx_ref) ->
+ close(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> bool()
+%% Option = {force, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowclose">external documentation</a>.
+close(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({force, Force}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Force)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_Close,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Sz::{W::integer(),H::integer()}) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowconvertdialogtopixels">external documentation</a>.
+convertDialogToPixels(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH})
+ when is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ConvertDialogToPixels,
+ <<ThisRef:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxWindow(), Sz::{W::integer(),H::integer()}) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowconvertpixelstodialog">external documentation</a>.
+convertPixelsToDialog(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH})
+ when is_integer(SzW),is_integer(SzH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ConvertPixelsToDialog,
+ <<ThisRef:32/?UI,SzW:32/?UI,SzH:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowdestroy">external documentation</a>.
+'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_Destroy,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowdestroychildren">external documentation</a>.
+destroyChildren(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_DestroyChildren,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowdisable">external documentation</a>.
+disable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_Disable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @equiv enable(This, [])
+enable(This)
+ when is_record(This, wx_ref) ->
+ enable(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> bool()
+%% Option = {enable, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowenable">external documentation</a>.
+enable(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_Enable,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec () -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfindfocus">external documentation</a>.
+findFocus() ->
+ wxe_util:call(?wxWindow_FindFocus,
+ <<>>).
+
+%% @spec (This::wxWindow(),X::integer()|string()) -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfindwindow">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% findWindow(This::wxWindow(), Winid::integer()) -> wxWindow() </c>
+%% </p>
+%% <p><c>
+%% findWindow(This::wxWindow(), Name::string()) -> wxWindow() </c>
+%% </p>
+findWindow(#wx_ref{type=ThisT,ref=ThisRef},Winid)
+ when is_integer(Winid) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_FindWindow_1_0,
+ <<ThisRef:32/?UI,Winid:32/?UI>>);
+findWindow(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxWindow_FindWindow_1_1,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (Winid::integer()) -> wxWindow()
+%% @equiv findWindowById(Winid, [])
+findWindowById(Winid)
+ when is_integer(Winid) ->
+ findWindowById(Winid, []).
+
+%% @spec (Winid::integer(), [Option]) -> wxWindow()
+%% Option = {parent, wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfindwindowbyid">external documentation</a>.
+findWindowById(Winid, Options)
+ when is_integer(Winid),is_list(Options) ->
+ MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_FindWindowById,
+ <<Winid:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (Name::string()) -> wxWindow()
+%% @equiv findWindowByName(Name, [])
+findWindowByName(Name)
+ when is_list(Name) ->
+ findWindowByName(Name, []).
+
+%% @spec (Name::string(), [Option]) -> wxWindow()
+%% Option = {parent, wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfindwindowbyname">external documentation</a>.
+findWindowByName(Name, Options)
+ when is_list(Name),is_list(Options) ->
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_FindWindowByName,
+ <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (Label::string()) -> wxWindow()
+%% @equiv findWindowByLabel(Label, [])
+findWindowByLabel(Label)
+ when is_list(Label) ->
+ findWindowByLabel(Label, []).
+
+%% @spec (Label::string(), [Option]) -> wxWindow()
+%% Option = {parent, wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfindwindowbylabel">external documentation</a>.
+findWindowByLabel(Label, Options)
+ when is_list(Label),is_list(Options) ->
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_FindWindowByLabel,
+ <<(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfit">external documentation</a>.
+fit(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Fit,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfitinside">external documentation</a>.
+fitInside(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_FitInside,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowfreeze">external documentation</a>.
+freeze(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Freeze,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxAcceleratorTable:wxAcceleratorTable()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetacceleratortable">external documentation</a>.
+getAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetAcceleratorTable,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetbackgroundcolour">external documentation</a>.
+getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetBackgroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> WxBackgroundStyle
+%% WxBackgroundStyle = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetbackgroundstyle">external documentation</a>.
+%%<br /> WxBackgroundStyle is one of ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM
+getBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetBackgroundStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetbestsize">external documentation</a>.
+getBestSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetBestSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxCaret:wxCaret()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcaret">external documentation</a>.
+getCaret(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetCaret,
+ <<ThisRef:32/?UI>>).
+
+%% @spec () -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcapture">external documentation</a>.
+getCapture() ->
+ wxe_util:call(?wxWindow_GetCapture,
+ <<>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcharheight">external documentation</a>.
+getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetCharHeight,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcharwidth">external documentation</a>.
+getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetCharWidth,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> [wxWindow()]
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetchildren">external documentation</a>.
+getChildren(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetChildren,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetclientsize">external documentation</a>.
+getClientSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetClientSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxSizer:wxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcontainingsizer">external documentation</a>.
+getContainingSizer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetContainingSizer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxCursor:wxCursor()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetcursor">external documentation</a>.
+getCursor(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetCursor,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxDropTarget:wxDropTarget()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetdroptarget">external documentation</a>.
+getDropTarget(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetDropTarget,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxEvtHandler:wxEvtHandler()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgeteventhandler">external documentation</a>.
+getEventHandler(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetEventHandler,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetextrastyle">external documentation</a>.
+getExtraStyle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetExtraStyle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxFont:wxFont()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetfont">external documentation</a>.
+getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetFont,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wx:colour()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetforegroundcolour">external documentation</a>.
+getForegroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetForegroundColour,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetgrandparent">external documentation</a>.
+getGrandParent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetGrandParent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgethandle">external documentation</a>.
+getHandle(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetHandle,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgethelptext">external documentation</a>.
+getHelpText(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetHelpText,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetid">external documentation</a>.
+getId(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetId,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetlabel">external documentation</a>.
+getLabel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetLabel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetmaxsize">external documentation</a>.
+getMaxSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetMaxSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetminsize">external documentation</a>.
+getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetMinSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetname">external documentation</a>.
+getName(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetName,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetparent">external documentation</a>.
+getParent(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetParent,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetposition">external documentation</a>.
+getPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetrect">external documentation</a>.
+getRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetscreenposition">external documentation</a>.
+getScreenPosition(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetScreenPosition,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {X::integer(),Y::integer(),W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetscreenrect">external documentation</a>.
+getScreenRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetScreenRect,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Orient::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetscrollpos">external documentation</a>.
+getScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetScrollPos,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxWindow(), Orient::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetscrollrange">external documentation</a>.
+getScrollRange(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetScrollRange,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxWindow(), Orient::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetscrollthumb">external documentation</a>.
+getScrollThumb(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetScrollThumb,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetsize">external documentation</a>.
+getSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxSizer:wxSizer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetsizer">external documentation</a>.
+getSizer(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetSizer,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), String::string()) -> {X::integer(),Y::integer(),Descent::integer(),ExternalLeading::integer()}
+%% @equiv getTextExtent(This,String, [])
+getTextExtent(This,String)
+ when is_record(This, wx_ref),is_list(String) ->
+ getTextExtent(This,String, []).
+
+%% @spec (This::wxWindow(), String::string(), [Option]) -> {X::integer(),Y::integer(),Descent::integer(),ExternalLeading::integer()}
+%% Option = {theFont, wxFont:wxFont()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgettextextent">external documentation</a>.
+getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String, Options)
+ when is_list(String),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ String_UC = unicode:characters_to_binary([String,0]),
+ MOpts = fun({theFont, #wx_ref{type=TheFontT,ref=TheFontRef}}, Acc) -> ?CLASS(TheFontT,wxFont),[<<1:32/?UI,TheFontRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_GetTextExtent,
+ <<ThisRef:32/?UI,(byte_size(String_UC)):32/?UI,(String_UC)/binary, 0:(((8- ((0+byte_size(String_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> wxToolTip:wxToolTip()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgettooltip">external documentation</a>.
+getToolTip(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetToolTip,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxRegion:wxRegion()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetupdateregion">external documentation</a>.
+getUpdateRegion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetUpdateRegion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {W::integer(),H::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetvirtualsize">external documentation</a>.
+getVirtualSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetVirtualSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetwindowstyleflag">external documentation</a>.
+getWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetWindowStyleFlag,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> WxWindowVariant
+%% WxWindowVariant = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowgetwindowvariant">external documentation</a>.
+%%<br /> WxWindowVariant is one of ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX
+getWindowVariant(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_GetWindowVariant,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowhascapture">external documentation</a>.
+hasCapture(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_HasCapture,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Orient::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowhasscrollbar">external documentation</a>.
+hasScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient)
+ when is_integer(Orient) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_HasScrollbar,
+ <<ThisRef:32/?UI,Orient:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowhastransparentbackground">external documentation</a>.
+hasTransparentBackground(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_HasTransparentBackground,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowhide">external documentation</a>.
+hide(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_Hide,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowinheritattributes">external documentation</a>.
+inheritAttributes(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_InheritAttributes,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowinitdialog">external documentation</a>.
+initDialog(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_InitDialog,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowinvalidatebestsize">external documentation</a>.
+invalidateBestSize(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_InvalidateBestSize,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisenabled">external documentation</a>.
+isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsEnabled,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(),X::term()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisexposed">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% isExposed(This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> bool() </c>
+%% </p>
+%% <p><c>
+%% isExposed(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() </c>
+%% </p>
+isExposed(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsExposed_1_0,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>);
+isExposed(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsExposed_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisexposed">external documentation</a>.
+isExposed(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsExposed_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisexposed">external documentation</a>.
+isExposed(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H)
+ when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsExposed_4,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,W:32/?UI,H:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisretained">external documentation</a>.
+isRetained(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsRetained,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowisshown">external documentation</a>.
+isShown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsShown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowistoplevel">external documentation</a>.
+isTopLevel(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_IsTopLevel,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowlayout">external documentation</a>.
+layout(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_Layout,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowlinedown">external documentation</a>.
+lineDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_LineDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowlineup">external documentation</a>.
+lineUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_LineUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowlower">external documentation</a>.
+lower(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Lower,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv makeModal(This, [])
+makeModal(This)
+ when is_record(This, wx_ref) ->
+ makeModal(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {modal, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowmakemodal">external documentation</a>.
+makeModal(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({modal, Modal}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Modal)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_MakeModal,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> ok
+%% @equiv move(This,Pt, [])
+move(This,Pt={PtX,PtY})
+ when is_record(This, wx_ref),is_integer(PtX),is_integer(PtY) ->
+ move(This,Pt, []).
+
+%% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowmove">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% move(This::wxWindow(), X::integer(), Y::integer()) -> move(This,X,Y, []) </c></p>
+%% <p><c>
+%% move(This::wxWindow(), Pt::{X::integer(),Y::integer()}, [Option]) -> ok </c>
+%%<br /> Option = {flags, integer()}
+%% </p>
+
+move(This,X,Y)
+ when is_record(This, wx_ref),is_integer(X),is_integer(Y) ->
+ move(This,X,Y, []);
+move(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}, Options)
+ when is_integer(PtX),is_integer(PtY),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_Move_2,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer(), [Option]) -> ok
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowmove">external documentation</a>.
+move(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options)
+ when is_integer(X),is_integer(Y),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_Move_3,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Win::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowmoveafterintaborder">external documentation</a>.
+moveAfterInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(WinT,wxWindow),
+ wxe_util:cast(?wxWindow_MoveAfterInTabOrder,
+ <<ThisRef:32/?UI,WinRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Win::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowmovebeforeintaborder">external documentation</a>.
+moveBeforeInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(WinT,wxWindow),
+ wxe_util:cast(?wxWindow_MoveBeforeInTabOrder,
+ <<ThisRef:32/?UI,WinRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @equiv navigate(This, [])
+navigate(This)
+ when is_record(This, wx_ref) ->
+ navigate(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> bool()
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindownavigate">external documentation</a>.
+navigate(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_Navigate,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowpagedown">external documentation</a>.
+pageDown(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_PageDown,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowpageup">external documentation</a>.
+pageUp(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_PageUp,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> wxEvtHandler:wxEvtHandler()
+%% @equiv popEventHandler(This, [])
+popEventHandler(This)
+ when is_record(This, wx_ref) ->
+ popEventHandler(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> wxEvtHandler:wxEvtHandler()
+%% Option = {deleteHandler, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowpopeventhandler">external documentation</a>.
+popEventHandler(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({deleteHandler, DeleteHandler}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteHandler)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_PopEventHandler,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Menu::wxMenu:wxMenu()) -> bool()
+%% @equiv popupMenu(This,Menu, [])
+popupMenu(This,Menu)
+ when is_record(This, wx_ref),is_record(Menu, wx_ref) ->
+ popupMenu(This,Menu, []).
+
+%% @spec (This::wxWindow(), Menu::wxMenu:wxMenu(), [Option]) -> bool()
+%% Option = {pos, {X::integer(),Y::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowpopupmenu">external documentation</a>.
+popupMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(MenuT,wxMenu),
+ MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_PopupMenu_2,
+ <<ThisRef:32/?UI,MenuRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Menu::wxMenu:wxMenu(), X::integer(), Y::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowpopupmenu">external documentation</a>.
+popupMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(MenuT,wxMenu),
+ wxe_util:call(?wxWindow_PopupMenu_3,
+ <<ThisRef:32/?UI,MenuRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowraise">external documentation</a>.
+raise(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Raise,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv refresh(This, [])
+refresh(This)
+ when is_record(This, wx_ref) ->
+ refresh(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {eraseBackground, bool()} | {rect, {X::integer(),Y::integer(),W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowrefresh">external documentation</a>.
+refresh(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({eraseBackground, EraseBackground}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(EraseBackground)):32/?UI>>|Acc];
+ ({rect, {RectX,RectY,RectW,RectH}}, Acc) -> [<<2:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_Refresh,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
+%% @equiv refreshRect(This,Rect, [])
+refreshRect(This,Rect={RectX,RectY,RectW,RectH})
+ when is_record(This, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ refreshRect(This,Rect, []).
+
+%% @spec (This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> ok
+%% Option = {eraseBackground, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowrefreshrect">external documentation</a>.
+refreshRect(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}, Options)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({eraseBackground, EraseBackground}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(EraseBackground)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_RefreshRect,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowreleasemouse">external documentation</a>.
+releaseMouse(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_ReleaseMouse,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Child::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowremovechild">external documentation</a>.
+removeChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ChildT,ref=ChildRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(ChildT,wxWindow),
+ wxe_util:cast(?wxWindow_RemoveChild,
+ <<ThisRef:32/?UI,ChildRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), NewParent::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowreparent">external documentation</a>.
+reparent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=NewParentT,ref=NewParentRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(NewParentT,wxWindow),
+ wxe_util:call(?wxWindow_Reparent,
+ <<ThisRef:32/?UI,NewParentRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowscreentoclient">external documentation</a>.
+screenToClient(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ScreenToClient_2,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowscreentoclient">external documentation</a>.
+screenToClient(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ScreenToClient_1,
+ <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (This::wxWindow(), Lines::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowscrolllines">external documentation</a>.
+scrollLines(#wx_ref{type=ThisT,ref=ThisRef},Lines)
+ when is_integer(Lines) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ScrollLines,
+ <<ThisRef:32/?UI,Lines:32/?UI>>).
+
+%% @spec (This::wxWindow(), Pages::integer()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowscrollpages">external documentation</a>.
+scrollPages(#wx_ref{type=ThisT,ref=ThisRef},Pages)
+ when is_integer(Pages) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ScrollPages,
+ <<ThisRef:32/?UI,Pages:32/?UI>>).
+
+%% @spec (This::wxWindow(), Dx::integer(), Dy::integer()) -> ok
+%% @equiv scrollWindow(This,Dx,Dy, [])
+scrollWindow(This,Dx,Dy)
+ when is_record(This, wx_ref),is_integer(Dx),is_integer(Dy) ->
+ scrollWindow(This,Dx,Dy, []).
+
+%% @spec (This::wxWindow(), Dx::integer(), Dy::integer(), [Option]) -> ok
+%% Option = {rect, {X::integer(),Y::integer(),W::integer(),H::integer()}}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowscrollwindow">external documentation</a>.
+scrollWindow(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy, Options)
+ when is_integer(Dx),is_integer(Dy),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({rect, {RectX,RectY,RectW,RectH}}, Acc) -> [<<1:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_ScrollWindow,
+ <<ThisRef:32/?UI,Dx:32/?UI,Dy:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Accel::wxAcceleratorTable:wxAcceleratorTable()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetacceleratortable">external documentation</a>.
+setAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=AccelT,ref=AccelRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(AccelT,wxAcceleratorTable),
+ wxe_util:cast(?wxWindow_SetAcceleratorTable,
+ <<ThisRef:32/?UI,AccelRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), AutoLayout::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetautolayout">external documentation</a>.
+setAutoLayout(#wx_ref{type=ThisT,ref=ThisRef},AutoLayout)
+ when is_boolean(AutoLayout) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetAutoLayout,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(AutoLayout)):32/?UI>>).
+
+%% @spec (This::wxWindow(), Colour::wx:colour()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetbackgroundcolour">external documentation</a>.
+setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_SetBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxWindow(), Style::WxBackgroundStyle) -> bool()
+%% WxBackgroundStyle = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetbackgroundstyle">external documentation</a>.
+%%<br /> WxBackgroundStyle is one of ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM
+setBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_SetBackgroundStyle,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxWindow(), Caret::wxCaret:wxCaret()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetcaret">external documentation</a>.
+setCaret(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CaretT,ref=CaretRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(CaretT,wxCaret),
+ wxe_util:cast(?wxWindow_SetCaret,
+ <<ThisRef:32/?UI,CaretRef:32/?UI>>).
+
+%% @spec (This::wxWindow(),X::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetclientsize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setClientSize(This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok </c>
+%% </p>
+%% <p><c>
+%% setClientSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok </c>
+%% </p>
+setClientSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetClientSize_1_0,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>);
+setClientSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetClientSize_1_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
+
+%% @spec (This::wxWindow(), Width::integer(), Height::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetclientsize">external documentation</a>.
+setClientSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetClientSize_2,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>).
+
+%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetcontainingsizer">external documentation</a>.
+setContainingSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(SizerT,wxSizer),
+ wxe_util:cast(?wxWindow_SetContainingSizer,
+ <<ThisRef:32/?UI,SizerRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Cursor::wxCursor:wxCursor()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetcursor">external documentation</a>.
+setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(CursorT,wxCursor),
+ wxe_util:call(?wxWindow_SetCursor,
+ <<ThisRef:32/?UI,CursorRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), MaxSize::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetmaxsize">external documentation</a>.
+setMaxSize(#wx_ref{type=ThisT,ref=ThisRef},{MaxSizeW,MaxSizeH})
+ when is_integer(MaxSizeW),is_integer(MaxSizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetMaxSize,
+ <<ThisRef:32/?UI,MaxSizeW:32/?UI,MaxSizeH:32/?UI>>).
+
+%% @spec (This::wxWindow(), MinSize::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetminsize">external documentation</a>.
+setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH})
+ when is_integer(MinSizeW),is_integer(MinSizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetMinSize,
+ <<ThisRef:32/?UI,MinSizeW:32/?UI,MinSizeH:32/?UI>>).
+
+%% @spec (This::wxWindow(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetownbackgroundcolour">external documentation</a>.
+setOwnBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetOwnBackgroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetownfont">external documentation</a>.
+setOwnFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(FontT,wxFont),
+ wxe_util:cast(?wxWindow_SetOwnFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Colour::wx:colour()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetownforegroundcolour">external documentation</a>.
+setOwnForegroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetOwnForegroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxWindow(), DropTarget::wxDropTarget:wxDropTarget()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetdroptarget">external documentation</a>.
+setDropTarget(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DropTargetT,ref=DropTargetRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(DropTargetT,wxDropTarget),
+ wxe_util:cast(?wxWindow_SetDropTarget,
+ <<ThisRef:32/?UI,DropTargetRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), ExStyle::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetextrastyle">external documentation</a>.
+setExtraStyle(#wx_ref{type=ThisT,ref=ThisRef},ExStyle)
+ when is_integer(ExStyle) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetExtraStyle,
+ <<ThisRef:32/?UI,ExStyle:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetfocus">external documentation</a>.
+setFocus(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetFocus,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetfocusfromkbd">external documentation</a>.
+setFocusFromKbd(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetFocusFromKbd,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetfont">external documentation</a>.
+setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(FontT,wxFont),
+ wxe_util:call(?wxWindow_SetFont,
+ <<ThisRef:32/?UI,FontRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Colour::wx:colour()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetforegroundcolour">external documentation</a>.
+setForegroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour)
+ when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_SetForegroundColour,
+ <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>).
+
+%% @spec (This::wxWindow(), Text::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsethelptext">external documentation</a>.
+setHelpText(#wx_ref{type=ThisT,ref=ThisRef},Text)
+ when is_list(Text) ->
+ ?CLASS(ThisT,wxWindow),
+ Text_UC = unicode:characters_to_binary([Text,0]),
+ wxe_util:cast(?wxWindow_SetHelpText,
+ <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxWindow(), Winid::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetid">external documentation</a>.
+setId(#wx_ref{type=ThisT,ref=ThisRef},Winid)
+ when is_integer(Winid) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetId,
+ <<ThisRef:32/?UI,Winid:32/?UI>>).
+
+%% @spec (This::wxWindow(), Label::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetlabel">external documentation</a>.
+setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label)
+ when is_list(Label) ->
+ ?CLASS(ThisT,wxWindow),
+ Label_UC = unicode:characters_to_binary([Label,0]),
+ wxe_util:cast(?wxWindow_SetLabel,
+ <<ThisRef:32/?UI,(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((0+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxWindow(), Name::string()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetname">external documentation</a>.
+setName(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:cast(?wxWindow_SetName,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxWindow(), Pal::wxPalette:wxPalette()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetpalette">external documentation</a>.
+setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PalT,ref=PalRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(PalT,wxPalette),
+ wxe_util:cast(?wxWindow_SetPalette,
+ <<ThisRef:32/?UI,PalRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer()) -> ok
+%% @equiv setScrollbar(This,Orient,Pos,ThumbVisible,Range, [])
+setScrollbar(This,Orient,Pos,ThumbVisible,Range)
+ when is_record(This, wx_ref),is_integer(Orient),is_integer(Pos),is_integer(ThumbVisible),is_integer(Range) ->
+ setScrollbar(This,Orient,Pos,ThumbVisible,Range, []).
+
+%% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer(), [Option]) -> ok
+%% Option = {refresh, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetscrollbar">external documentation</a>.
+setScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient,Pos,ThumbVisible,Range, Options)
+ when is_integer(Orient),is_integer(Pos),is_integer(ThumbVisible),is_integer(Range),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({refresh, Refresh}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Refresh)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetScrollbar,
+ <<ThisRef:32/?UI,Orient:32/?UI,Pos:32/?UI,ThumbVisible:32/?UI,Range:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Orient::integer(), Pos::integer()) -> ok
+%% @equiv setScrollPos(This,Orient,Pos, [])
+setScrollPos(This,Orient,Pos)
+ when is_record(This, wx_ref),is_integer(Orient),is_integer(Pos) ->
+ setScrollPos(This,Orient,Pos, []).
+
+%% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), [Option]) -> ok
+%% Option = {refresh, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetscrollpos">external documentation</a>.
+setScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient,Pos, Options)
+ when is_integer(Orient),is_integer(Pos),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({refresh, Refresh}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Refresh)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetScrollPos,
+ <<ThisRef:32/?UI,Orient:32/?UI,Pos:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(),X::term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> setSize(This,Rect, []) </c></p>
+%% <p><c>
+%% setSize(This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok </c>
+%% </p>
+
+setSize(This,Rect={RectX,RectY,RectW,RectH})
+ when is_record(This, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
+ setSize(This,Rect, []);
+setSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsize">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setSize(This::wxWindow(), Width::integer(), Height::integer()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> ok </c>
+%%<br /> Option = {sizeFlags, integer()}
+%% </p>
+setSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height)
+ when is_integer(Width),is_integer(Height) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetSize_2_0,
+ <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>);
+setSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}, Options)
+ when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({sizeFlags, SizeFlags}, Acc) -> [<<1:32/?UI,SizeFlags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSize_2_1,
+ <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> ok
+%% @equiv setSize(This,X,Y,Width,Height, [])
+setSize(This,X,Y,Width,Height)
+ when is_record(This, wx_ref),is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height) ->
+ setSize(This,X,Y,Width,Height, []).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer(), [Option]) -> ok
+%% Option = {sizeFlags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsize">external documentation</a>.
+setSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Width,Height, Options)
+ when is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({sizeFlags, SizeFlags}, Acc) -> [<<1:32/?UI,SizeFlags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSize_5,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI,Width:32/?UI,Height:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), MinSize::{W::integer(),H::integer()}) -> ok
+%% @equiv setSizeHints(This,MinSize, [])
+setSizeHints(This,MinSize={MinSizeW,MinSizeH})
+ when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) ->
+ setSizeHints(This,MinSize, []).
+
+%% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsizehints">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setSizeHints(This,MinW,MinH, []) </c></p>
+%% <p><c>
+%% setSizeHints(This::wxWindow(), MinSize::{W::integer(),H::integer()}, [Option]) -> ok </c>
+%%<br /> Option = {maxSize, {W::integer(),H::integer()}} | {incSize, {W::integer(),H::integer()}}
+%% </p>
+
+setSizeHints(This,MinW,MinH)
+ when is_record(This, wx_ref),is_integer(MinW),is_integer(MinH) ->
+ setSizeHints(This,MinW,MinH, []);
+setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}, Options)
+ when is_integer(MinSizeW),is_integer(MinSizeH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({maxSize, {MaxSizeW,MaxSizeH}}, Acc) -> [<<1:32/?UI,MaxSizeW:32/?UI,MaxSizeH:32/?UI,0:32>>|Acc];
+ ({incSize, {IncSizeW,IncSizeH}}, Acc) -> [<<2:32/?UI,IncSizeW:32/?UI,IncSizeH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSizeHints_2,
+ <<ThisRef:32/?UI,MinSizeW:32/?UI,MinSizeH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok
+%% Option = {maxW, integer()} | {maxH, integer()} | {incW, integer()} | {incH, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsizehints">external documentation</a>.
+setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},MinW,MinH, Options)
+ when is_integer(MinW),is_integer(MinH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({maxW, MaxW}, Acc) -> [<<1:32/?UI,MaxW:32/?UI>>|Acc];
+ ({maxH, MaxH}, Acc) -> [<<2:32/?UI,MaxH:32/?UI>>|Acc];
+ ({incW, IncW}, Acc) -> [<<3:32/?UI,IncW:32/?UI>>|Acc];
+ ({incH, IncH}, Acc) -> [<<4:32/?UI,IncH:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSizeHints_3,
+ <<ThisRef:32/?UI,MinW:32/?UI,MinH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok
+%% @equiv setSizer(This,Sizer, [])
+setSizer(This,Sizer)
+ when is_record(This, wx_ref),is_record(Sizer, wx_ref) ->
+ setSizer(This,Sizer, []).
+
+%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer(), [Option]) -> ok
+%% Option = {deleteOld, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsizer">external documentation</a>.
+setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(SizerT,wxSizer),
+ MOpts = fun({deleteOld, DeleteOld}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteOld)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSizer,
+ <<ThisRef:32/?UI,SizerRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok
+%% @equiv setSizerAndFit(This,Sizer, [])
+setSizerAndFit(This,Sizer)
+ when is_record(This, wx_ref),is_record(Sizer, wx_ref) ->
+ setSizerAndFit(This,Sizer, []).
+
+%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer(), [Option]) -> ok
+%% Option = {deleteOld, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetsizerandfit">external documentation</a>.
+setSizerAndFit(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(SizerT,wxSizer),
+ MOpts = fun({deleteOld, DeleteOld}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteOld)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetSizerAndFit,
+ <<ThisRef:32/?UI,SizerRef:32/?UI, BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), EnableTheme::bool()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetthemeenabled">external documentation</a>.
+setThemeEnabled(#wx_ref{type=ThisT,ref=ThisRef},EnableTheme)
+ when is_boolean(EnableTheme) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetThemeEnabled,
+ <<ThisRef:32/?UI,(wxe_util:from_bool(EnableTheme)):32/?UI>>).
+
+%% @spec (This::wxWindow(),X::string()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsettooltip">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setToolTip(This::wxWindow(), Tip::string()) -> ok </c>
+%% </p>
+%% <p><c>
+%% setToolTip(This::wxWindow(), Tip::wxToolTip:wxToolTip()) -> ok </c>
+%% </p>
+setToolTip(#wx_ref{type=ThisT,ref=ThisRef},Tip)
+ when is_list(Tip) ->
+ ?CLASS(ThisT,wxWindow),
+ Tip_UC = unicode:characters_to_binary([Tip,0]),
+ wxe_util:cast(?wxWindow_SetToolTip_1_0,
+ <<ThisRef:32/?UI,(byte_size(Tip_UC)):32/?UI,(Tip_UC)/binary, 0:(((8- ((0+byte_size(Tip_UC)) band 16#7)) band 16#7))/unit:8>>);
+setToolTip(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TipT,ref=TipRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ ?CLASS(TipT,wxToolTip),
+ wxe_util:cast(?wxWindow_SetToolTip_1_1,
+ <<ThisRef:32/?UI,TipRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetvirtualsize">external documentation</a>.
+setVirtualSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
+ when is_integer(SizeW),is_integer(SizeH) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetVirtualSize_1,
+ <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetvirtualsize">external documentation</a>.
+setVirtualSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetVirtualSize_2,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxWindow(), MinSize::{W::integer(),H::integer()}) -> ok
+%% @equiv setVirtualSizeHints(This,MinSize, [])
+setVirtualSizeHints(This,MinSize={MinSizeW,MinSizeH})
+ when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) ->
+ setVirtualSizeHints(This,MinSize, []).
+
+%% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetvirtualsizehints">external documentation</a>.
+%% <br /> Alternatives:
+%% <p><c>
+%% setVirtualSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setVirtualSizeHints(This,MinW,MinH, []) </c></p>
+%% <p><c>
+%% setVirtualSizeHints(This::wxWindow(), MinSize::{W::integer(),H::integer()}, [Option]) -> ok </c>
+%%<br /> Option = {maxSize, {W::integer(),H::integer()}}
+%% </p>
+
+setVirtualSizeHints(This,MinW,MinH)
+ when is_record(This, wx_ref),is_integer(MinW),is_integer(MinH) ->
+ setVirtualSizeHints(This,MinW,MinH, []);
+setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}, Options)
+ when is_integer(MinSizeW),is_integer(MinSizeH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({maxSize, {MaxSizeW,MaxSizeH}}, Acc) -> [<<1:32/?UI,MaxSizeW:32/?UI,MaxSizeH:32/?UI,0:32>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetVirtualSizeHints_2,
+ <<ThisRef:32/?UI,MinSizeW:32/?UI,MinSizeH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok
+%% Option = {maxW, integer()} | {maxH, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetvirtualsizehints">external documentation</a>.
+setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},MinW,MinH, Options)
+ when is_integer(MinW),is_integer(MinH),is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({maxW, MaxW}, Acc) -> [<<1:32/?UI,MaxW:32/?UI>>|Acc];
+ ({maxH, MaxH}, Acc) -> [<<2:32/?UI,MaxH:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_SetVirtualSizeHints_3,
+ <<ThisRef:32/?UI,MinW:32/?UI,MinH:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetwindowstyle">external documentation</a>.
+setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetWindowStyle,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxWindow(), Style::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetwindowstyleflag">external documentation</a>.
+setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style)
+ when is_integer(Style) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetWindowStyleFlag,
+ <<ThisRef:32/?UI,Style:32/?UI>>).
+
+%% @spec (This::wxWindow(), Variant::WxWindowVariant) -> ok
+%% WxWindowVariant = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowsetwindowvariant">external documentation</a>.
+%%<br /> WxWindowVariant is one of ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX
+setWindowVariant(#wx_ref{type=ThisT,ref=ThisRef},Variant)
+ when is_integer(Variant) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_SetWindowVariant,
+ <<ThisRef:32/?UI,Variant:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowshouldinheritcolours">external documentation</a>.
+shouldInheritColours(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_ShouldInheritColours,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @equiv show(This, [])
+show(This)
+ when is_record(This, wx_ref) ->
+ show(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> bool()
+%% Option = {show, bool()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowshow">external documentation</a>.
+show(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxWindow_Show,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowthaw">external documentation</a>.
+thaw(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Thaw,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowtransferdatafromwindow">external documentation</a>.
+transferDataFromWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_TransferDataFromWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowtransferdatatowindow">external documentation</a>.
+transferDataToWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_TransferDataToWindow,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowupdate">external documentation</a>.
+update(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_Update,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @equiv updateWindowUI(This, [])
+updateWindowUI(This)
+ when is_record(This, wx_ref) ->
+ updateWindowUI(This, []).
+
+%% @spec (This::wxWindow(), [Option]) -> ok
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowupdatewindowui">external documentation</a>.
+updateWindowUI(#wx_ref{type=ThisT,ref=ThisRef}, Options)
+ when is_list(Options) ->
+ ?CLASS(ThisT,wxWindow),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?wxWindow_UpdateWindowUI,
+ <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxWindow()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowvalidate">external documentation</a>.
+validate(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:call(?wxWindow_Validate,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html#wxwindowwarppointer">external documentation</a>.
+warpPointer(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
+ when is_integer(X),is_integer(Y) ->
+ ?CLASS(ThisT,wxWindow),
+ wxe_util:cast(?wxWindow_WarpPointer,
+ <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>).
+
+%% @spec (This::wxWindow()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxWindow),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxEvtHandler
+%% @hidden
+disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
+%% @hidden
+disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
+%% @hidden
+disconnect(This) -> wxEvtHandler:disconnect(This).
+%% @hidden
+connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
+%% @hidden
+connect(This,EventType) -> wxEvtHandler:connect(This,EventType).
diff --git a/lib/wx/src/gen/wxWindowCreateEvent.erl b/lib/wx/src/gen/wxWindowCreateEvent.erl
new file mode 100644
index 0000000000..0503bdfef4
--- /dev/null
+++ b/lib/wx/src/gen/wxWindowCreateEvent.erl
@@ -0,0 +1,85 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindowcreateevent.html">wxWindowCreateEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>create</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxWindowCreate(). #wxWindowCreate{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxWindowCreateEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxWindowCreateEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxWindowDC.erl b/lib/wx/src/gen/wxWindowDC.erl
new file mode 100644
index 0000000000..63b2249844
--- /dev/null
+++ b/lib/wx/src/gen/wxWindowDC.erl
@@ -0,0 +1,264 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindowdc.html">wxWindowDC</a>.
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxDC}
+%% </p>
+%% @type wxWindowDC(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxWindowDC).
+-include("wxe.hrl").
+-export([destroy/1,new/0,new/1]).
+
+%% inherited exports
+-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
+ destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
+ deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
+ drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
+ drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
+ drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
+ drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
+ drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
+ getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
+ getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
+ getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
+ getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
+ getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
+ gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
+ isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,
+ logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,
+ setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
+ setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
+ setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
+ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
+ startPage/1]).
+
+%% @hidden
+parent_class(wxDC) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxWindowDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindowdc.html#wxwindowdcwxwindowdc">external documentation</a>.
+new() ->
+ wxe_util:construct(?wxWindowDC_new_0,
+ <<>>).
+
+%% @spec (Win::wxWindow:wxWindow()) -> wxWindowDC()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindowdc.html#wxwindowdcwxwindowdc">external documentation</a>.
+new(#wx_ref{type=WinT,ref=WinRef}) ->
+ ?CLASS(WinT,wxWindow),
+ wxe_util:construct(?wxWindowDC_new_1,
+ <<WinRef:32/?UI>>).
+
+%% @spec (This::wxWindowDC()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxWindowDC),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
+ %% From wxDC
+%% @hidden
+startPage(This) -> wxDC:startPage(This).
+%% @hidden
+startDoc(This,Message) -> wxDC:startDoc(This,Message).
+%% @hidden
+setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
+%% @hidden
+setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
+%% @hidden
+setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
+%% @hidden
+setPen(This,Pen) -> wxDC:setPen(This,Pen).
+%% @hidden
+setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
+%% @hidden
+setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
+%% @hidden
+setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
+%% @hidden
+setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
+%% @hidden
+setFont(This,Font) -> wxDC:setFont(This,Font).
+%% @hidden
+setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
+%% @hidden
+setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
+%% @hidden
+setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
+%% @hidden
+setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
+%% @hidden
+setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
+%% @hidden
+setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
+%% @hidden
+setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
+%% @hidden
+resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
+%% @hidden
+isOk(This) -> wxDC:isOk(This).
+%% @hidden
+minY(This) -> wxDC:minY(This).
+%% @hidden
+minX(This) -> wxDC:minX(This).
+%% @hidden
+maxY(This) -> wxDC:maxY(This).
+%% @hidden
+maxX(This) -> wxDC:maxX(This).
+%% @hidden
+logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
+%% @hidden
+logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
+%% @hidden
+logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
+%% @hidden
+logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
+%% @hidden
+gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
+%% @hidden
+gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
+%% @hidden
+getUserScale(This) -> wxDC:getUserScale(This).
+%% @hidden
+getTextForeground(This) -> wxDC:getTextForeground(This).
+%% @hidden
+getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
+%% @hidden
+getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
+%% @hidden
+getTextBackground(This) -> wxDC:getTextBackground(This).
+%% @hidden
+getSizeMM(This) -> wxDC:getSizeMM(This).
+%% @hidden
+getSize(This) -> wxDC:getSize(This).
+%% @hidden
+getPPI(This) -> wxDC:getPPI(This).
+%% @hidden
+getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
+%% @hidden
+getPen(This) -> wxDC:getPen(This).
+%% @hidden
+getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
+%% @hidden
+getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
+%% @hidden
+getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
+%% @hidden
+getMapMode(This) -> wxDC:getMapMode(This).
+%% @hidden
+getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
+%% @hidden
+getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
+%% @hidden
+getFont(This) -> wxDC:getFont(This).
+%% @hidden
+getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
+%% @hidden
+getCharWidth(This) -> wxDC:getCharWidth(This).
+%% @hidden
+getCharHeight(This) -> wxDC:getCharHeight(This).
+%% @hidden
+getBrush(This) -> wxDC:getBrush(This).
+%% @hidden
+getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
+%% @hidden
+getBackground(This) -> wxDC:getBackground(This).
+%% @hidden
+floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
+%% @hidden
+floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
+%% @hidden
+endPage(This) -> wxDC:endPage(This).
+%% @hidden
+endDoc(This) -> wxDC:endDoc(This).
+%% @hidden
+drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
+%% @hidden
+drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
+%% @hidden
+drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
+%% @hidden
+drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
+%% @hidden
+drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
+%% @hidden
+drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
+%% @hidden
+drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
+%% @hidden
+drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
+%% @hidden
+drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
+%% @hidden
+drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
+%% @hidden
+drawLines(This,Points) -> wxDC:drawLines(This,Points).
+%% @hidden
+drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
+%% @hidden
+drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
+%% @hidden
+drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
+%% @hidden
+drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
+%% @hidden
+drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
+%% @hidden
+drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
+%% @hidden
+drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
+%% @hidden
+drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
+%% @hidden
+drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
+%% @hidden
+drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
+%% @hidden
+drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
+%% @hidden
+drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
+%% @hidden
+deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
+%% @hidden
+deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
+%% @hidden
+deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
+%% @hidden
+deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
+%% @hidden
+destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
+%% @hidden
+crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
+%% @hidden
+computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
+%% @hidden
+clear(This) -> wxDC:clear(This).
+%% @hidden
+calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
+%% @hidden
+blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).
diff --git a/lib/wx/src/gen/wxWindowDestroyEvent.erl b/lib/wx/src/gen/wxWindowDestroyEvent.erl
new file mode 100644
index 0000000000..8d98b36f68
--- /dev/null
+++ b/lib/wx/src/gen/wxWindowDestroyEvent.erl
@@ -0,0 +1,85 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxwindowdestroyevent.html">wxWindowDestroyEvent</a>.
+%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
+%% <dd><em>destroy</em></dd></dl>
+%% See also the message variant {@link wxEvtHandler:wxWindowDestroy(). #wxWindowDestroy{}} event record type.
+%%
+%% <p>This class is derived (and can use functions) from:
+%% <br />{@link wxCommandEvent}
+%% <br />{@link wxEvent}
+%% </p>
+%% @type wxWindowDestroyEvent(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxWindowDestroyEvent).
+-include("wxe.hrl").
+-export([]).
+
+%% inherited exports
+-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
+ getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
+ parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
+ skip/1,skip/2,stopPropagation/1]).
+
+%% @hidden
+parent_class(wxCommandEvent) -> true;
+parent_class(wxEvent) -> true;
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+ %% From wxCommandEvent
+%% @hidden
+setString(This,S) -> wxCommandEvent:setString(This,S).
+%% @hidden
+setInt(This,I) -> wxCommandEvent:setInt(This,I).
+%% @hidden
+isSelection(This) -> wxCommandEvent:isSelection(This).
+%% @hidden
+isChecked(This) -> wxCommandEvent:isChecked(This).
+%% @hidden
+getString(This) -> wxCommandEvent:getString(This).
+%% @hidden
+getSelection(This) -> wxCommandEvent:getSelection(This).
+%% @hidden
+getInt(This) -> wxCommandEvent:getInt(This).
+%% @hidden
+getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
+%% @hidden
+getClientData(This) -> wxCommandEvent:getClientData(This).
+ %% From wxEvent
+%% @hidden
+stopPropagation(This) -> wxEvent:stopPropagation(This).
+%% @hidden
+skip(This, Options) -> wxEvent:skip(This, Options).
+%% @hidden
+skip(This) -> wxEvent:skip(This).
+%% @hidden
+shouldPropagate(This) -> wxEvent:shouldPropagate(This).
+%% @hidden
+resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
+%% @hidden
+isCommandEvent(This) -> wxEvent:isCommandEvent(This).
+%% @hidden
+getTimestamp(This) -> wxEvent:getTimestamp(This).
+%% @hidden
+getSkipped(This) -> wxEvent:getSkipped(This).
+%% @hidden
+getId(This) -> wxEvent:getId(This).
diff --git a/lib/wx/src/gen/wxXmlResource.erl b/lib/wx/src/gen/wxXmlResource.erl
new file mode 100644
index 0000000000..c9f396e608
--- /dev/null
+++ b/lib/wx/src/gen/wxXmlResource.erl
@@ -0,0 +1,326 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html">wxXmlResource</a>.
+%% @type wxXmlResource(). An object reference, The representation is internal
+%% and can be changed without notice. It can't be used for comparsion
+%% stored on disc or distributed for use on other nodes.
+
+-module(wxXmlResource).
+-include("wxe.hrl").
+-export([ xrcctrl/3 ,attachUnknownControl/3,attachUnknownControl/4,clearHandlers/1,
+ compareVersion/5,destroy/1,get/0,getFlags/1,getVersion/1,getXRCID/1,
+ getXRCID/2,initAllHandlers/1,load/2,loadBitmap/2,loadDialog/3,loadDialog/4,
+ loadFrame/3,loadFrame/4,loadIcon/2,loadMenu/2,loadMenuBar/2,loadMenuBar/3,
+ loadPanel/3,loadPanel/4,loadToolBar/3,new/0,new/1,new/2,set/1,setFlags/2,
+ unload/2]).
+
+%% inherited exports
+-export([parent_class/1]).
+
+%% @hidden
+parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
+
+%% @spec () -> wxXmlResource()
+%% @equiv new([])
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxXmlResource()
+%% Option = {flags, integer()} | {domain, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcewxxmlresource">external documentation</a>.
+new(Options)
+ when is_list(Options) ->
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ ({domain, Domain}, Acc) -> Domain_UC = unicode:characters_to_binary([Domain,0]),[<<2:32/?UI,(byte_size(Domain_UC)):32/?UI,(Domain_UC)/binary, 0:(((8- ((0+byte_size(Domain_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxXmlResource_new_1,
+ <<BinOpt/binary>>).
+
+%% @spec (Filemask::string(), [Option]) -> wxXmlResource()
+%% Option = {flags, integer()} | {domain, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcewxxmlresource">external documentation</a>.
+new(Filemask, Options)
+ when is_list(Filemask),is_list(Options) ->
+ Filemask_UC = unicode:characters_to_binary([Filemask,0]),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ ({domain, Domain}, Acc) -> Domain_UC = unicode:characters_to_binary([Domain,0]),[<<2:32/?UI,(byte_size(Domain_UC)):32/?UI,(Domain_UC)/binary, 0:(((8- ((0+byte_size(Domain_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:construct(?wxXmlResource_new_2,
+ <<(byte_size(Filemask_UC)):32/?UI,(Filemask_UC)/binary, 0:(((8- ((4+byte_size(Filemask_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxXmlResource(), Name::string(), Control::wxWindow:wxWindow()) -> bool()
+%% @equiv attachUnknownControl(This,Name,Control, [])
+attachUnknownControl(This,Name,Control)
+ when is_record(This, wx_ref),is_list(Name),is_record(Control, wx_ref) ->
+ attachUnknownControl(This,Name,Control, []).
+
+%% @spec (This::wxXmlResource(), Name::string(), Control::wxWindow:wxWindow(), [Option]) -> bool()
+%% Option = {parent, wxWindow:wxWindow()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceattachunknowncontrol">external documentation</a>.
+attachUnknownControl(#wx_ref{type=ThisT,ref=ThisRef},Name,#wx_ref{type=ControlT,ref=ControlRef}, Options)
+ when is_list(Name),is_list(Options) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ ?CLASS(ControlT,wxWindow),
+ MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxXmlResource_AttachUnknownControl,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8,ControlRef:32/?UI, 0:32,BinOpt/binary>>).
+
+%% @spec (This::wxXmlResource()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceclearhandlers">external documentation</a>.
+clearHandlers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:cast(?wxXmlResource_ClearHandlers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxXmlResource(), Major::integer(), Minor::integer(), Release::integer(), Revision::integer()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcecompareversion">external documentation</a>.
+compareVersion(#wx_ref{type=ThisT,ref=ThisRef},Major,Minor,Release,Revision)
+ when is_integer(Major),is_integer(Minor),is_integer(Release),is_integer(Revision) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:call(?wxXmlResource_CompareVersion,
+ <<ThisRef:32/?UI,Major:32/?UI,Minor:32/?UI,Release:32/?UI,Revision:32/?UI>>).
+
+%% @spec () -> wxXmlResource()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceget">external documentation</a>.
+get() ->
+ wxe_util:call(?wxXmlResource_Get,
+ <<>>).
+
+%% @spec (This::wxXmlResource()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcegetflags">external documentation</a>.
+getFlags(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:call(?wxXmlResource_GetFlags,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxXmlResource()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcegetversion">external documentation</a>.
+getVersion(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:call(?wxXmlResource_GetVersion,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (Str_id::[string()]) -> integer()
+%% @equiv getXRCID(Str_id, [])
+getXRCID(Str_id)
+ when is_list(Str_id) ->
+ getXRCID(Str_id, []).
+
+%% @spec (Str_id::[string()], [Option]) -> integer()
+%% Option = {value_if_not_found, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcegetxrcid">external documentation</a>.
+getXRCID(Str_id, Options)
+ when is_list(Str_id),is_list(Options) ->
+ Str_id_UC = unicode:characters_to_binary([Str_id,0]),
+ MOpts = fun({value_if_not_found, Value_if_not_found}, Acc) -> [<<1:32/?UI,Value_if_not_found:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?wxXmlResource_GetXRCID,
+ <<(byte_size(Str_id_UC)):32/?UI,(Str_id_UC)/binary, 0:(((8- ((4+byte_size(Str_id_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec (This::wxXmlResource()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceinitallhandlers">external documentation</a>.
+initAllHandlers(#wx_ref{type=ThisT,ref=ThisRef}) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:cast(?wxXmlResource_InitAllHandlers,
+ <<ThisRef:32/?UI>>).
+
+%% @spec (This::wxXmlResource(), Filemask::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceload">external documentation</a>.
+load(#wx_ref{type=ThisT,ref=ThisRef},Filemask)
+ when is_list(Filemask) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Filemask_UC = unicode:characters_to_binary([Filemask,0]),
+ wxe_util:call(?wxXmlResource_Load,
+ <<ThisRef:32/?UI,(byte_size(Filemask_UC)):32/?UI,(Filemask_UC)/binary, 0:(((8- ((0+byte_size(Filemask_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Name::string()) -> wxBitmap:wxBitmap()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadbitmap">external documentation</a>.
+loadBitmap(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadBitmap,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxDialog:wxDialog()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloaddialog">external documentation</a>.
+loadDialog(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadDialog_2,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Dlg::wxDialog:wxDialog(), Parent::wxWindow:wxWindow(), Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloaddialog">external documentation</a>.
+loadDialog(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DlgT,ref=DlgRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(DlgT,wxDialog),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadDialog_3,
+ <<ThisRef:32/?UI,DlgRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxFrame:wxFrame()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadframe">external documentation</a>.
+loadFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadFrame_2,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Frame::wxFrame:wxFrame(), Parent::wxWindow:wxWindow(), Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadframe">external documentation</a>.
+loadFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(FrameT,wxFrame),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadFrame_3,
+ <<ThisRef:32/?UI,FrameRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Name::string()) -> wxIcon:wxIcon()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadicon">external documentation</a>.
+loadIcon(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadIcon,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Name::string()) -> wxMenu:wxMenu()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadmenu">external documentation</a>.
+loadMenu(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadMenu,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Name::string()) -> wxMenuBar:wxMenuBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadmenubar">external documentation</a>.
+loadMenuBar(#wx_ref{type=ThisT,ref=ThisRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadMenuBar_1,
+ <<ThisRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxMenuBar:wxMenuBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadmenubar">external documentation</a>.
+loadMenuBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadMenuBar_2,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxPanel:wxPanel()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadpanel">external documentation</a>.
+loadPanel(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadPanel_2,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Panel::wxPanel:wxPanel(), Parent::wxWindow:wxWindow(), Name::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadpanel">external documentation</a>.
+loadPanel(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PanelT,ref=PanelRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(PanelT,wxPanel),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadPanel_3,
+ <<ThisRef:32/?UI,PanelRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((0+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxToolBar:wxToolBar()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceloadtoolbar">external documentation</a>.
+loadToolBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Name)
+ when is_list(Name) ->
+ ?CLASS(ThisT,wxXmlResource),
+ ?CLASS(ParentT,wxWindow),
+ Name_UC = unicode:characters_to_binary([Name,0]),
+ wxe_util:call(?wxXmlResource_LoadToolBar,
+ <<ThisRef:32/?UI,ParentRef:32/?UI,(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (Res::wxXmlResource()) -> wxXmlResource()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceset">external documentation</a>.
+set(#wx_ref{type=ResT,ref=ResRef}) ->
+ ?CLASS(ResT,wxXmlResource),
+ wxe_util:call(?wxXmlResource_Set,
+ <<ResRef:32/?UI>>).
+
+%% @spec (This::wxXmlResource(), Flags::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourcesetflags">external documentation</a>.
+setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags)
+ when is_integer(Flags) ->
+ ?CLASS(ThisT,wxXmlResource),
+ wxe_util:cast(?wxXmlResource_SetFlags,
+ <<ThisRef:32/?UI,Flags:32/?UI>>).
+
+%% @spec (This::wxXmlResource(), Filename::string()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxxmlresource.html#wxxmlresourceunload">external documentation</a>.
+unload(#wx_ref{type=ThisT,ref=ThisRef},Filename)
+ when is_list(Filename) ->
+ ?CLASS(ThisT,wxXmlResource),
+ Filename_UC = unicode:characters_to_binary([Filename,0]),
+ wxe_util:call(?wxXmlResource_Unload,
+ <<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+
+%% @spec (Window::wxWindow:wxWindow(),Name::string(), Type::atom()) -> wx:wxObject()
+
+%% @doc Looks up a control with Name in a window created with XML
+%% resources. You can use it to set/get values from controls.
+%% The object is type casted to <b>Type</b>.
+%% Example: <br />
+%% Xrc = wxXmlResource:get(), <br />
+%% Dlg = wxDialog:new(), <br />
+%% true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"), <br />
+%% LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl), <br />
+%% wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]), <br />
+
+xrcctrl(Window = #wx_ref{}, Name, Type) when is_list(Name), is_atom(Type) ->
+ %% Func Id ?wxXmlResource_xrcctrl
+ ID = wxXmlResource:getXRCID(Name),
+ Res = wxWindow:findWindow(Window,ID),
+ wx:typeCast(Res, Type).
+
+%% @spec (This::wxXmlResource()) -> ok
+%% @doc Destroys this object, do not use object again
+destroy(Obj=#wx_ref{type=Type}) ->
+ ?CLASS(Type,wxXmlResource),
+ wxe_util:destroy(?DESTROY_OBJECT,Obj),
+ ok.
diff --git a/lib/wx/src/gen/wx_misc.erl b/lib/wx/src/gen/wx_misc.erl
new file mode 100644
index 0000000000..ef50e22e99
--- /dev/null
+++ b/lib/wx/src/gen/wx_misc.erl
@@ -0,0 +1,216 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html">Misc</a>.
+
+%% This module contains wxWidgets utility functions.
+
+-module(wx_misc).
+-include("wxe.hrl").
+-export([beginBusyCursor/0,beginBusyCursor/1,bell/0,endBusyCursor/0,findMenuItemId/3,
+ findWindowAtPoint/1,genericFindWindowAtPoint/1,getCurrentId/0,getEmailAddress/0,
+ getHomeDir/0,getKeyState/1,getMousePosition/0,getMouseState/0,getOsDescription/0,
+ getUserId/0,isBusy/0,isPlatform64Bit/0,isPlatformLittleEndian/0,launchDefaultBrowser/1,
+ launchDefaultBrowser/2,newId/0,registerId/1,setDetectableAutoRepeat/1,
+ shell/0,shell/1,shutdown/1]).
+
+%% @spec (Key::WxKeyCode) -> bool()
+%% WxKeyCode = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetkeystate">external documentation</a>.
+%%<br /> WxKeyCode is one of ?WXK_BACK | ?WXK_TAB | ?WXK_RETURN | ?WXK_ESCAPE | ?WXK_SPACE | ?WXK_DELETE | ?WXK_START | ?WXK_LBUTTON | ?WXK_RBUTTON | ?WXK_CANCEL | ?WXK_MBUTTON | ?WXK_CLEAR | ?WXK_SHIFT | ?WXK_ALT | ?WXK_CONTROL | ?WXK_MENU | ?WXK_PAUSE | ?WXK_CAPITAL | ?WXK_END | ?WXK_HOME | ?WXK_LEFT | ?WXK_UP | ?WXK_RIGHT | ?WXK_DOWN | ?WXK_SELECT | ?WXK_PRINT | ?WXK_EXECUTE | ?WXK_SNAPSHOT | ?WXK_INSERT | ?WXK_HELP | ?WXK_NUMPAD0 | ?WXK_NUMPAD1 | ?WXK_NUMPAD2 | ?WXK_NUMPAD3 | ?WXK_NUMPAD4 | ?WXK_NUMPAD5 | ?WXK_NUMPAD6 | ?WXK_NUMPAD7 | ?WXK_NUMPAD8 | ?WXK_NUMPAD9 | ?WXK_MULTIPLY | ?WXK_ADD | ?WXK_SEPARATOR | ?WXK_SUBTRACT | ?WXK_DECIMAL | ?WXK_DIVIDE | ?WXK_F1 | ?WXK_F2 | ?WXK_F3 | ?WXK_F4 | ?WXK_F5 | ?WXK_F6 | ?WXK_F7 | ?WXK_F8 | ?WXK_F9 | ?WXK_F10 | ?WXK_F11 | ?WXK_F12 | ?WXK_F13 | ?WXK_F14 | ?WXK_F15 | ?WXK_F16 | ?WXK_F17 | ?WXK_F18 | ?WXK_F19 | ?WXK_F20 | ?WXK_F21 | ?WXK_F22 | ?WXK_F23 | ?WXK_F24 | ?WXK_NUMLOCK | ?WXK_SCROLL | ?WXK_PAGEUP | ?WXK_PAGEDOWN | ?WXK_NUMPAD_SPACE | ?WXK_NUMPAD_TAB | ?WXK_NUMPAD_ENTER | ?WXK_NUMPAD_F1 | ?WXK_NUMPAD_F2 | ?WXK_NUMPAD_F3 | ?WXK_NUMPAD_F4 | ?WXK_NUMPAD_HOME | ?WXK_NUMPAD_LEFT | ?WXK_NUMPAD_UP | ?WXK_NUMPAD_RIGHT | ?WXK_NUMPAD_DOWN | ?WXK_NUMPAD_PAGEUP | ?WXK_NUMPAD_PAGEDOWN | ?WXK_NUMPAD_END | ?WXK_NUMPAD_BEGIN | ?WXK_NUMPAD_INSERT | ?WXK_NUMPAD_DELETE | ?WXK_NUMPAD_EQUAL | ?WXK_NUMPAD_MULTIPLY | ?WXK_NUMPAD_ADD | ?WXK_NUMPAD_SEPARATOR | ?WXK_NUMPAD_SUBTRACT | ?WXK_NUMPAD_DECIMAL | ?WXK_NUMPAD_DIVIDE | ?WXK_WINDOWS_LEFT | ?WXK_WINDOWS_RIGHT | ?WXK_WINDOWS_MENU | ?WXK_COMMAND | ?WXK_SPECIAL1 | ?WXK_SPECIAL2 | ?WXK_SPECIAL3 | ?WXK_SPECIAL4 | ?WXK_SPECIAL5 | ?WXK_SPECIAL6 | ?WXK_SPECIAL7 | ?WXK_SPECIAL8 | ?WXK_SPECIAL9 | ?WXK_SPECIAL10 | ?WXK_SPECIAL11 | ?WXK_SPECIAL12 | ?WXK_SPECIAL13 | ?WXK_SPECIAL14 | ?WXK_SPECIAL15 | ?WXK_SPECIAL16 | ?WXK_SPECIAL17 | ?WXK_SPECIAL18 | ?WXK_SPECIAL19 | ?WXK_SPECIAL20
+getKeyState(Key)
+ when is_integer(Key) ->
+ wxe_util:call(?utils_wxGetKeyState,
+ <<Key:32/?UI>>).
+
+%% @spec () -> {X::integer(),Y::integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetmouseposition">external documentation</a>.
+getMousePosition() ->
+ wxe_util:call(?utils_wxGetMousePosition,
+ <<>>).
+
+%% @spec () -> wx:wxMouseState()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetmousestate">external documentation</a>.
+getMouseState() ->
+ wxe_util:call(?utils_wxGetMouseState,
+ <<>>).
+
+%% @spec (Flag::bool()) -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxsetdetectableautorepeat">external documentation</a>.
+setDetectableAutoRepeat(Flag)
+ when is_boolean(Flag) ->
+ wxe_util:call(?utils_wxSetDetectableAutoRepeat,
+ <<(wxe_util:from_bool(Flag)):32/?UI>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxbell">external documentation</a>.
+bell() ->
+ wxe_util:cast(?utils_wxBell,
+ <<>>).
+
+%% @spec (Frame::wxFrame:wxFrame(), MenuString::string(), ItemString::string()) -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxfindmenuitemid">external documentation</a>.
+findMenuItemId(#wx_ref{type=FrameT,ref=FrameRef},MenuString,ItemString)
+ when is_list(MenuString),is_list(ItemString) ->
+ ?CLASS(FrameT,wxFrame),
+ MenuString_UC = unicode:characters_to_binary([MenuString,0]),
+ ItemString_UC = unicode:characters_to_binary([ItemString,0]),
+ wxe_util:call(?utils_wxFindMenuItemId,
+ <<FrameRef:32/?UI,(byte_size(MenuString_UC)):32/?UI,(MenuString_UC)/binary, 0:(((8- ((0+byte_size(MenuString_UC)) band 16#7)) band 16#7))/unit:8,(byte_size(ItemString_UC)):32/?UI,(ItemString_UC)/binary, 0:(((8- ((4+byte_size(ItemString_UC)) band 16#7)) band 16#7))/unit:8>>).
+
+%% @spec (Pt::{X::integer(),Y::integer()}) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgenericfindwindowatpoint">external documentation</a>.
+genericFindWindowAtPoint({PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ wxe_util:call(?utils_wxGenericFindWindowAtPoint,
+ <<PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec (Pt::{X::integer(),Y::integer()}) -> wxWindow:wxWindow()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxfindwindowatpoint">external documentation</a>.
+findWindowAtPoint({PtX,PtY})
+ when is_integer(PtX),is_integer(PtY) ->
+ wxe_util:call(?utils_wxFindWindowAtPoint,
+ <<PtX:32/?UI,PtY:32/?UI>>).
+
+%% @spec () -> ok
+%% @equiv beginBusyCursor([])
+beginBusyCursor() ->
+ beginBusyCursor([]).
+
+%% @spec ([Option]) -> ok
+%% Option = {cursor, wxCursor:wxCursor()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxbeginbusycursor">external documentation</a>.
+beginBusyCursor(Options)
+ when is_list(Options) ->
+ MOpts = fun({cursor, #wx_ref{type=CursorT,ref=CursorRef}}, Acc) -> ?CLASS(CursorT,wxCursor),[<<1:32/?UI,CursorRef:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:cast(?utils_wxBeginBusyCursor,
+ <<BinOpt/binary>>).
+
+%% @spec () -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxendbusycursor">external documentation</a>.
+endBusyCursor() ->
+ wxe_util:cast(?utils_wxEndBusyCursor,
+ <<>>).
+
+%% @spec () -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxisbusy">external documentation</a>.
+isBusy() ->
+ wxe_util:call(?utils_wxIsBusy,
+ <<>>).
+
+%% @spec (WFlags::WxShutdownFlags) -> bool()
+%% WxShutdownFlags = integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxshutdown">external documentation</a>.
+%%<br /> WxShutdownFlags is one of ?wxSHUTDOWN_POWEROFF | ?wxSHUTDOWN_REBOOT
+shutdown(WFlags)
+ when is_integer(WFlags) ->
+ wxe_util:call(?utils_wxShutdown,
+ <<WFlags:32/?UI>>).
+
+%% @spec () -> bool()
+%% @equiv shell([])
+shell() ->
+ shell([]).
+
+%% @spec ([Option]) -> bool()
+%% Option = {command, string()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxshell">external documentation</a>.
+shell(Options)
+ when is_list(Options) ->
+ MOpts = fun({command, Command}, Acc) -> Command_UC = unicode:characters_to_binary([Command,0]),[<<1:32/?UI,(byte_size(Command_UC)):32/?UI,(Command_UC)/binary, 0:(((8- ((0+byte_size(Command_UC)) band 16#7)) band 16#7))/unit:8>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?utils_wxShell,
+ <<BinOpt/binary>>).
+
+%% @spec (Url::string()) -> bool()
+%% @equiv launchDefaultBrowser(Url, [])
+launchDefaultBrowser(Url)
+ when is_list(Url) ->
+ launchDefaultBrowser(Url, []).
+
+%% @spec (Url::string(), [Option]) -> bool()
+%% Option = {flags, integer()}
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxlaunchdefaultbrowser">external documentation</a>.
+launchDefaultBrowser(Url, Options)
+ when is_list(Url),is_list(Options) ->
+ Url_UC = unicode:characters_to_binary([Url,0]),
+ MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc];
+ (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
+ BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
+ wxe_util:call(?utils_wxLaunchDefaultBrowser,
+ <<(byte_size(Url_UC)):32/?UI,(Url_UC)/binary, 0:(((8- ((4+byte_size(Url_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
+
+%% @spec () -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetemailaddress">external documentation</a>.
+getEmailAddress() ->
+ wxe_util:call(?utils_wxGetEmailAddress,
+ <<>>).
+
+%% @spec () -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetuserid">external documentation</a>.
+getUserId() ->
+ wxe_util:call(?utils_wxGetUserId,
+ <<>>).
+
+%% @spec () -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgethomedir">external documentation</a>.
+getHomeDir() ->
+ wxe_util:call(?utils_wxGetHomeDir,
+ <<>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxnewid">external documentation</a>.
+newId() ->
+ wxe_util:call(?utils_wxNewId,
+ <<>>).
+
+%% @spec (Id::integer()) -> ok
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxregisterid">external documentation</a>.
+registerId(Id)
+ when is_integer(Id) ->
+ wxe_util:cast(?utils_wxRegisterId,
+ <<Id:32/?UI>>).
+
+%% @spec () -> integer()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetcurrentid">external documentation</a>.
+getCurrentId() ->
+ wxe_util:call(?utils_wxGetCurrentId,
+ <<>>).
+
+%% @spec () -> string()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxgetosdescription">external documentation</a>.
+getOsDescription() ->
+ wxe_util:call(?utils_wxGetOsDescription,
+ <<>>).
+
+%% @spec () -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxisplatformlittleendian">external documentation</a>.
+isPlatformLittleEndian() ->
+ wxe_util:call(?utils_wxIsPlatformLittleEndian,
+ <<>>).
+
+%% @spec () -> bool()
+%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_miscellany.html#wxisplatform64bit">external documentation</a>.
+isPlatform64Bit() ->
+ wxe_util:call(?utils_wxIsPlatform64Bit,
+ <<>>).
+
diff --git a/lib/wx/src/gen/wxe_debug.hrl b/lib/wx/src/gen/wxe_debug.hrl
new file mode 100644
index 0000000000..11f5b9e781
--- /dev/null
+++ b/lib/wx/src/gen/wxe_debug.hrl
@@ -0,0 +1,3279 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+wxdebug_table() ->
+[
+ {0, {wx, internal_batch_start, 0}},
+ {1, {wx, internal_batch_end, 0}},
+ {4, {wxObject, internal_destroy, 1}},
+ {100, {wxEvtHandler, connect, 2}},
+ {101, {wxEvtHandler, disconnect_2, 2}},
+ {102, {wxEvtHandler, disconnect_1, 1}},
+ {103, {wxEvtHandler, disconnect_0, 0}},
+ {105, {wxWindow, new_0, 0}},
+ {106, {wxWindow, new_3, 3}},
+ {108, {wxWindow, destruct, 0}},
+ {109, {wxWindow, cacheBestSize, 1}},
+ {110, {wxWindow, captureMouse, 0}},
+ {111, {wxWindow, center, 1}},
+ {112, {wxWindow, centerOnParent, 1}},
+ {113, {wxWindow, centre, 1}},
+ {114, {wxWindow, centreOnParent, 1}},
+ {115, {wxWindow, clearBackground, 0}},
+ {116, {wxWindow, clientToScreen_2, 2}},
+ {117, {wxWindow, clientToScreen_1, 1}},
+ {118, {wxWindow, close, 1}},
+ {120, {wxWindow, convertDialogToPixels, 1}},
+ {122, {wxWindow, convertPixelsToDialog, 1}},
+ {123, {wxWindow, 'Destroy', 0}},
+ {124, {wxWindow, destroyChildren, 0}},
+ {125, {wxWindow, disable, 0}},
+ {126, {wxWindow, enable, 1}},
+ {127, {wxWindow, findFocus, 0}},
+ {128, {wxWindow, findWindow_1_0, 1}},
+ {129, {wxWindow, findWindow_1_1, 1}},
+ {130, {wxWindow, findWindowById, 2}},
+ {131, {wxWindow, findWindowByName, 2}},
+ {132, {wxWindow, findWindowByLabel, 2}},
+ {133, {wxWindow, fit, 0}},
+ {134, {wxWindow, fitInside, 0}},
+ {135, {wxWindow, freeze, 0}},
+ {136, {wxWindow, getAcceleratorTable, 0}},
+ {137, {wxWindow, getBackgroundColour, 0}},
+ {138, {wxWindow, getBackgroundStyle, 0}},
+ {139, {wxWindow, getBestSize, 0}},
+ {141, {wxWindow, getCaret, 0}},
+ {142, {wxWindow, getCapture, 0}},
+ {143, {wxWindow, getCharHeight, 0}},
+ {144, {wxWindow, getCharWidth, 0}},
+ {145, {wxWindow, getChildren, 0}},
+ {148, {wxWindow, getClientSize, 0}},
+ {149, {wxWindow, getContainingSizer, 0}},
+ {150, {wxWindow, getCursor, 0}},
+ {151, {wxWindow, getDropTarget, 0}},
+ {152, {wxWindow, getEventHandler, 0}},
+ {153, {wxWindow, getExtraStyle, 0}},
+ {154, {wxWindow, getFont, 0}},
+ {155, {wxWindow, getForegroundColour, 0}},
+ {156, {wxWindow, getGrandParent, 0}},
+ {157, {wxWindow, getHandle, 0}},
+ {158, {wxWindow, getHelpText, 0}},
+ {159, {wxWindow, getId, 0}},
+ {160, {wxWindow, getLabel, 0}},
+ {161, {wxWindow, getMaxSize, 0}},
+ {162, {wxWindow, getMinSize, 0}},
+ {163, {wxWindow, getName, 0}},
+ {164, {wxWindow, getParent, 0}},
+ {166, {wxWindow, getPosition, 0}},
+ {167, {wxWindow, getRect, 0}},
+ {169, {wxWindow, getScreenPosition, 0}},
+ {170, {wxWindow, getScreenRect, 0}},
+ {171, {wxWindow, getScrollPos, 1}},
+ {172, {wxWindow, getScrollRange, 1}},
+ {173, {wxWindow, getScrollThumb, 1}},
+ {175, {wxWindow, getSize, 0}},
+ {176, {wxWindow, getSizer, 0}},
+ {177, {wxWindow, getTextExtent, 4}},
+ {178, {wxWindow, getToolTip, 0}},
+ {179, {wxWindow, getUpdateRegion, 0}},
+ {181, {wxWindow, getVirtualSize, 0}},
+ {183, {wxWindow, getWindowStyleFlag, 0}},
+ {184, {wxWindow, getWindowVariant, 0}},
+ {185, {wxWindow, hasCapture, 0}},
+ {186, {wxWindow, hasScrollbar, 1}},
+ {187, {wxWindow, hasTransparentBackground, 0}},
+ {188, {wxWindow, hide, 0}},
+ {189, {wxWindow, inheritAttributes, 0}},
+ {190, {wxWindow, initDialog, 0}},
+ {191, {wxWindow, invalidateBestSize, 0}},
+ {192, {wxWindow, isEnabled, 0}},
+ {193, {wxWindow, isExposed_2, 2}},
+ {194, {wxWindow, isExposed_4, 4}},
+ {195, {wxWindow, isExposed_1_0, 1}},
+ {196, {wxWindow, isExposed_1_1, 1}},
+ {197, {wxWindow, isRetained, 0}},
+ {198, {wxWindow, isShown, 0}},
+ {199, {wxWindow, isTopLevel, 0}},
+ {200, {wxWindow, layout, 0}},
+ {201, {wxWindow, lineDown, 0}},
+ {202, {wxWindow, lineUp, 0}},
+ {203, {wxWindow, lower, 0}},
+ {204, {wxWindow, makeModal, 1}},
+ {205, {wxWindow, move_3, 3}},
+ {206, {wxWindow, move_2, 2}},
+ {207, {wxWindow, moveAfterInTabOrder, 1}},
+ {208, {wxWindow, moveBeforeInTabOrder, 1}},
+ {209, {wxWindow, navigate, 1}},
+ {210, {wxWindow, pageDown, 0}},
+ {211, {wxWindow, pageUp, 0}},
+ {212, {wxWindow, popEventHandler, 1}},
+ {213, {wxWindow, popupMenu_2, 2}},
+ {214, {wxWindow, popupMenu_3, 3}},
+ {215, {wxWindow, raise, 0}},
+ {216, {wxWindow, refresh, 1}},
+ {217, {wxWindow, refreshRect, 2}},
+ {218, {wxWindow, releaseMouse, 0}},
+ {219, {wxWindow, removeChild, 1}},
+ {220, {wxWindow, reparent, 1}},
+ {221, {wxWindow, screenToClient_2, 2}},
+ {222, {wxWindow, screenToClient_1, 1}},
+ {224, {wxWindow, scrollLines, 1}},
+ {226, {wxWindow, scrollPages, 1}},
+ {227, {wxWindow, scrollWindow, 3}},
+ {228, {wxWindow, setAcceleratorTable, 1}},
+ {229, {wxWindow, setAutoLayout, 1}},
+ {230, {wxWindow, setBackgroundColour, 1}},
+ {231, {wxWindow, setBackgroundStyle, 1}},
+ {232, {wxWindow, setCaret, 1}},
+ {233, {wxWindow, setClientSize_2, 2}},
+ {234, {wxWindow, setClientSize_1_0, 1}},
+ {235, {wxWindow, setClientSize_1_1, 1}},
+ {236, {wxWindow, setContainingSizer, 1}},
+ {237, {wxWindow, setCursor, 1}},
+ {238, {wxWindow, setMaxSize, 1}},
+ {239, {wxWindow, setMinSize, 1}},
+ {240, {wxWindow, setOwnBackgroundColour, 1}},
+ {241, {wxWindow, setOwnFont, 1}},
+ {242, {wxWindow, setOwnForegroundColour, 1}},
+ {243, {wxWindow, setDropTarget, 1}},
+ {244, {wxWindow, setExtraStyle, 1}},
+ {245, {wxWindow, setFocus, 0}},
+ {246, {wxWindow, setFocusFromKbd, 0}},
+ {247, {wxWindow, setFont, 1}},
+ {248, {wxWindow, setForegroundColour, 1}},
+ {249, {wxWindow, setHelpText, 1}},
+ {250, {wxWindow, setId, 1}},
+ {252, {wxWindow, setLabel, 1}},
+ {253, {wxWindow, setName, 1}},
+ {254, {wxWindow, setPalette, 1}},
+ {255, {wxWindow, setScrollbar, 5}},
+ {256, {wxWindow, setScrollPos, 3}},
+ {257, {wxWindow, setSize_5, 5}},
+ {258, {wxWindow, setSize_2_0, 2}},
+ {259, {wxWindow, setSize_1, 1}},
+ {260, {wxWindow, setSize_2_1, 2}},
+ {261, {wxWindow, setSizeHints_3, 3}},
+ {262, {wxWindow, setSizeHints_2, 2}},
+ {263, {wxWindow, setSizer, 2}},
+ {264, {wxWindow, setSizerAndFit, 2}},
+ {265, {wxWindow, setThemeEnabled, 1}},
+ {266, {wxWindow, setToolTip_1_0, 1}},
+ {267, {wxWindow, setToolTip_1_1, 1}},
+ {268, {wxWindow, setVirtualSize_1, 1}},
+ {269, {wxWindow, setVirtualSize_2, 2}},
+ {270, {wxWindow, setVirtualSizeHints_3, 3}},
+ {271, {wxWindow, setVirtualSizeHints_2, 2}},
+ {272, {wxWindow, setWindowStyle, 1}},
+ {273, {wxWindow, setWindowStyleFlag, 1}},
+ {274, {wxWindow, setWindowVariant, 1}},
+ {275, {wxWindow, shouldInheritColours, 0}},
+ {276, {wxWindow, show, 1}},
+ {277, {wxWindow, thaw, 0}},
+ {278, {wxWindow, transferDataFromWindow, 0}},
+ {279, {wxWindow, transferDataToWindow, 0}},
+ {280, {wxWindow, update, 0}},
+ {281, {wxWindow, updateWindowUI, 1}},
+ {282, {wxWindow, validate, 0}},
+ {283, {wxWindow, warpPointer, 2}},
+ {284, {wxTopLevelWindow, getIcon, 0}},
+ {285, {wxTopLevelWindow, getIcons, 0}},
+ {286, {wxTopLevelWindow, getTitle, 0}},
+ {287, {wxTopLevelWindow, isActive, 0}},
+ {288, {wxTopLevelWindow, iconize, 1}},
+ {289, {wxTopLevelWindow, isFullScreen, 0}},
+ {290, {wxTopLevelWindow, isIconized, 0}},
+ {291, {wxTopLevelWindow, isMaximized, 0}},
+ {292, {wxTopLevelWindow, maximize, 1}},
+ {293, {wxTopLevelWindow, requestUserAttention, 1}},
+ {294, {wxTopLevelWindow, setIcon, 1}},
+ {295, {wxTopLevelWindow, setIcons, 1}},
+ {296, {wxTopLevelWindow, centerOnScreen, 1}},
+ {297, {wxTopLevelWindow, centreOnScreen, 1}},
+ {299, {wxTopLevelWindow, setShape, 1}},
+ {300, {wxTopLevelWindow, setTitle, 1}},
+ {301, {wxTopLevelWindow, showFullScreen, 2}},
+ {303, {wxFrame, new_4, 4}},
+ {304, {wxFrame, new_0, 0}},
+ {306, {wxFrame, destruct, 0}},
+ {307, {wxFrame, create, 4}},
+ {308, {wxFrame, createStatusBar, 1}},
+ {309, {wxFrame, createToolBar, 1}},
+ {310, {wxFrame, getClientAreaOrigin, 0}},
+ {311, {wxFrame, getMenuBar, 0}},
+ {312, {wxFrame, getStatusBar, 0}},
+ {313, {wxFrame, getStatusBarPane, 0}},
+ {314, {wxFrame, getToolBar, 0}},
+ {315, {wxFrame, processCommand, 1}},
+ {316, {wxFrame, sendSizeEvent, 0}},
+ {317, {wxFrame, setMenuBar, 1}},
+ {318, {wxFrame, setStatusBar, 1}},
+ {319, {wxFrame, setStatusBarPane, 1}},
+ {320, {wxFrame, setStatusText, 2}},
+ {321, {wxFrame, setStatusWidths, 2}},
+ {322, {wxFrame, setToolBar, 1}},
+ {323, {wxMiniFrame, new_0, 0}},
+ {324, {wxMiniFrame, new_4, 4}},
+ {325, {wxMiniFrame, create, 4}},
+ {326, {wxMiniFrame, 'Destroy', undefined}},
+ {327, {wxSplashScreen, new_0, 0}},
+ {328, {wxSplashScreen, new_6, 6}},
+ {329, {wxSplashScreen, destruct, 0}},
+ {330, {wxSplashScreen, getSplashStyle, 0}},
+ {331, {wxSplashScreen, getTimeout, 0}},
+ {332, {wxPanel, new_0, 0}},
+ {333, {wxPanel, new_6, 6}},
+ {334, {wxPanel, new_2, 2}},
+ {335, {wxPanel, destruct, 0}},
+ {336, {wxPanel, initDialog, 0}},
+ {337, {wxScrolledWindow, new_0, 0}},
+ {338, {wxScrolledWindow, new_2, 2}},
+ {339, {wxScrolledWindow, destruct, 0}},
+ {340, {wxScrolledWindow, calcScrolledPosition_4, 4}},
+ {341, {wxScrolledWindow, calcScrolledPosition_1, 1}},
+ {342, {wxScrolledWindow, calcUnscrolledPosition_4, 4}},
+ {343, {wxScrolledWindow, calcUnscrolledPosition_1, 1}},
+ {344, {wxScrolledWindow, enableScrolling, 2}},
+ {345, {wxScrolledWindow, getScrollPixelsPerUnit, 2}},
+ {346, {wxScrolledWindow, getViewStart, 2}},
+ {347, {wxScrolledWindow, doPrepareDC, 1}},
+ {348, {wxScrolledWindow, prepareDC, 1}},
+ {349, {wxScrolledWindow, scroll, 2}},
+ {350, {wxScrolledWindow, setScrollbars, 5}},
+ {351, {wxScrolledWindow, setScrollRate, 2}},
+ {352, {wxScrolledWindow, setTargetWindow, 1}},
+ {353, {wxSashWindow, new_0, 0}},
+ {354, {wxSashWindow, new_2, 2}},
+ {355, {wxSashWindow, destruct, 0}},
+ {356, {wxSashWindow, getSashVisible, 1}},
+ {357, {wxSashWindow, getMaximumSizeX, 0}},
+ {358, {wxSashWindow, getMaximumSizeY, 0}},
+ {359, {wxSashWindow, getMinimumSizeX, 0}},
+ {360, {wxSashWindow, getMinimumSizeY, 0}},
+ {361, {wxSashWindow, setMaximumSizeX, 1}},
+ {362, {wxSashWindow, setMaximumSizeY, 1}},
+ {363, {wxSashWindow, setMinimumSizeX, 1}},
+ {364, {wxSashWindow, setMinimumSizeY, 1}},
+ {365, {wxSashWindow, setSashVisible, 2}},
+ {366, {wxSashLayoutWindow, new_0, 0}},
+ {367, {wxSashLayoutWindow, new_2, 2}},
+ {368, {wxSashLayoutWindow, create, 2}},
+ {369, {wxSashLayoutWindow, getAlignment, 0}},
+ {370, {wxSashLayoutWindow, getOrientation, 0}},
+ {371, {wxSashLayoutWindow, setAlignment, 1}},
+ {372, {wxSashLayoutWindow, setDefaultSize, 1}},
+ {373, {wxSashLayoutWindow, setOrientation, 1}},
+ {374, {wxSashLayoutWindow, 'Destroy', undefined}},
+ {375, {wxGrid, new_0, 0}},
+ {376, {wxGrid, new_3, 3}},
+ {377, {wxGrid, new_4, 4}},
+ {378, {wxGrid, destruct, 0}},
+ {379, {wxGrid, appendCols, 1}},
+ {380, {wxGrid, appendRows, 1}},
+ {381, {wxGrid, autoSize, 0}},
+ {382, {wxGrid, autoSizeColumn, 2}},
+ {383, {wxGrid, autoSizeColumns, 1}},
+ {384, {wxGrid, autoSizeRow, 2}},
+ {385, {wxGrid, autoSizeRows, 1}},
+ {386, {wxGrid, beginBatch, 0}},
+ {387, {wxGrid, blockToDeviceRect, 2}},
+ {388, {wxGrid, canDragColSize, 0}},
+ {389, {wxGrid, canDragRowSize, 0}},
+ {390, {wxGrid, canDragGridSize, 0}},
+ {391, {wxGrid, canEnableCellControl, 0}},
+ {392, {wxGrid, cellToRect_2, 2}},
+ {393, {wxGrid, cellToRect_1, 1}},
+ {394, {wxGrid, clearGrid, 0}},
+ {395, {wxGrid, clearSelection, 0}},
+ {396, {wxGrid, createGrid, 3}},
+ {397, {wxGrid, deleteCols, 1}},
+ {398, {wxGrid, deleteRows, 1}},
+ {399, {wxGrid, disableCellEditControl, 0}},
+ {400, {wxGrid, disableDragColSize, 0}},
+ {401, {wxGrid, disableDragGridSize, 0}},
+ {402, {wxGrid, disableDragRowSize, 0}},
+ {403, {wxGrid, enableCellEditControl, 1}},
+ {404, {wxGrid, enableDragColSize, 1}},
+ {405, {wxGrid, enableDragGridSize, 1}},
+ {406, {wxGrid, enableDragRowSize, 1}},
+ {407, {wxGrid, enableEditing, 1}},
+ {408, {wxGrid, enableGridLines, 1}},
+ {409, {wxGrid, endBatch, 0}},
+ {410, {wxGrid, fit, 0}},
+ {411, {wxGrid, forceRefresh, 0}},
+ {412, {wxGrid, getBatchCount, 0}},
+ {413, {wxGrid, getCellAlignment, 4}},
+ {414, {wxGrid, getCellBackgroundColour, 2}},
+ {415, {wxGrid, getCellEditor, 2}},
+ {416, {wxGrid, getCellFont, 2}},
+ {417, {wxGrid, getCellRenderer, 2}},
+ {418, {wxGrid, getCellTextColour, 2}},
+ {419, {wxGrid, getCellValue_2, 2}},
+ {420, {wxGrid, getCellValue_1, 1}},
+ {421, {wxGrid, getColLabelAlignment, 2}},
+ {422, {wxGrid, getColLabelSize, 0}},
+ {423, {wxGrid, getColLabelValue, 1}},
+ {424, {wxGrid, getColMinimalAcceptableWidth, 0}},
+ {425, {wxGrid, getDefaultCellAlignment, 2}},
+ {426, {wxGrid, getDefaultCellBackgroundColour, 0}},
+ {427, {wxGrid, getDefaultCellFont, 0}},
+ {428, {wxGrid, getDefaultCellTextColour, 0}},
+ {429, {wxGrid, getDefaultColLabelSize, 0}},
+ {430, {wxGrid, getDefaultColSize, 0}},
+ {431, {wxGrid, getDefaultEditor, 0}},
+ {432, {wxGrid, getDefaultEditorForCell_2, 2}},
+ {433, {wxGrid, getDefaultEditorForCell_1, 1}},
+ {434, {wxGrid, getDefaultEditorForType, 1}},
+ {435, {wxGrid, getDefaultRenderer, 0}},
+ {436, {wxGrid, getDefaultRendererForCell, 2}},
+ {437, {wxGrid, getDefaultRendererForType, 1}},
+ {438, {wxGrid, getDefaultRowLabelSize, 0}},
+ {439, {wxGrid, getDefaultRowSize, 0}},
+ {440, {wxGrid, getGridCursorCol, 0}},
+ {441, {wxGrid, getGridCursorRow, 0}},
+ {442, {wxGrid, getGridLineColour, 0}},
+ {443, {wxGrid, gridLinesEnabled, 0}},
+ {444, {wxGrid, getLabelBackgroundColour, 0}},
+ {445, {wxGrid, getLabelFont, 0}},
+ {446, {wxGrid, getLabelTextColour, 0}},
+ {447, {wxGrid, getNumberCols, 0}},
+ {448, {wxGrid, getNumberRows, 0}},
+ {449, {wxGrid, getOrCreateCellAttr, 2}},
+ {450, {wxGrid, getRowMinimalAcceptableHeight, 0}},
+ {451, {wxGrid, getRowLabelAlignment, 2}},
+ {452, {wxGrid, getRowLabelSize, 0}},
+ {453, {wxGrid, getRowLabelValue, 1}},
+ {454, {wxGrid, getRowSize, 1}},
+ {455, {wxGrid, getScrollLineX, 0}},
+ {456, {wxGrid, getScrollLineY, 0}},
+ {457, {wxGrid, getSelectedCells, 0}},
+ {458, {wxGrid, getSelectedCols, 0}},
+ {459, {wxGrid, getSelectedRows, 0}},
+ {460, {wxGrid, getSelectionBackground, 0}},
+ {461, {wxGrid, getSelectionBlockTopLeft, 0}},
+ {462, {wxGrid, getSelectionBlockBottomRight, 0}},
+ {463, {wxGrid, getSelectionForeground, 0}},
+ {464, {wxGrid, getViewWidth, 0}},
+ {465, {wxGrid, getGridWindow, 0}},
+ {466, {wxGrid, getGridRowLabelWindow, 0}},
+ {467, {wxGrid, getGridColLabelWindow, 0}},
+ {468, {wxGrid, getGridCornerLabelWindow, 0}},
+ {469, {wxGrid, hideCellEditControl, 0}},
+ {470, {wxGrid, insertCols, 1}},
+ {471, {wxGrid, insertRows, 1}},
+ {472, {wxGrid, isCellEditControlEnabled, 0}},
+ {473, {wxGrid, isCurrentCellReadOnly, 0}},
+ {474, {wxGrid, isEditable, 0}},
+ {475, {wxGrid, isInSelection_2, 2}},
+ {476, {wxGrid, isInSelection_1, 1}},
+ {477, {wxGrid, isReadOnly, 2}},
+ {478, {wxGrid, isSelection, 0}},
+ {479, {wxGrid, isVisible_3, 3}},
+ {480, {wxGrid, isVisible_2, 2}},
+ {481, {wxGrid, makeCellVisible_2, 2}},
+ {482, {wxGrid, makeCellVisible_1, 1}},
+ {483, {wxGrid, moveCursorDown, 1}},
+ {484, {wxGrid, moveCursorLeft, 1}},
+ {485, {wxGrid, moveCursorRight, 1}},
+ {486, {wxGrid, moveCursorUp, 1}},
+ {487, {wxGrid, moveCursorDownBlock, 1}},
+ {488, {wxGrid, moveCursorLeftBlock, 1}},
+ {489, {wxGrid, moveCursorRightBlock, 1}},
+ {490, {wxGrid, moveCursorUpBlock, 1}},
+ {491, {wxGrid, movePageDown, 0}},
+ {492, {wxGrid, movePageUp, 0}},
+ {493, {wxGrid, registerDataType, 3}},
+ {494, {wxGrid, saveEditControlValue, 0}},
+ {495, {wxGrid, selectAll, 0}},
+ {496, {wxGrid, selectBlock_5, 5}},
+ {497, {wxGrid, selectBlock_3, 3}},
+ {498, {wxGrid, selectCol, 2}},
+ {499, {wxGrid, selectRow, 2}},
+ {500, {wxGrid, setCellAlignment_4, 4}},
+ {501, {wxGrid, setCellAlignment_3, 3}},
+ {502, {wxGrid, setCellAlignment_1, 1}},
+ {503, {wxGrid, setCellBackgroundColour_3_0, 3}},
+ {504, {wxGrid, setCellBackgroundColour_1, 1}},
+ {505, {wxGrid, setCellBackgroundColour_3_1, 3}},
+ {506, {wxGrid, setCellEditor, 3}},
+ {507, {wxGrid, setCellFont, 3}},
+ {508, {wxGrid, setCellRenderer, 3}},
+ {509, {wxGrid, setCellTextColour_3_0, 3}},
+ {510, {wxGrid, setCellTextColour_3_1, 3}},
+ {511, {wxGrid, setCellTextColour_1, 1}},
+ {512, {wxGrid, setCellValue_3_0, 3}},
+ {513, {wxGrid, setCellValue_2, 2}},
+ {514, {wxGrid, setCellValue_3_1, 3}},
+ {515, {wxGrid, setColAttr, 2}},
+ {516, {wxGrid, setColFormatBool, 1}},
+ {517, {wxGrid, setColFormatNumber, 1}},
+ {518, {wxGrid, setColFormatFloat, 2}},
+ {519, {wxGrid, setColFormatCustom, 2}},
+ {520, {wxGrid, setColLabelAlignment, 2}},
+ {521, {wxGrid, setColLabelSize, 1}},
+ {522, {wxGrid, setColLabelValue, 2}},
+ {523, {wxGrid, setColMinimalWidth, 2}},
+ {524, {wxGrid, setColMinimalAcceptableWidth, 1}},
+ {525, {wxGrid, setColSize, 2}},
+ {526, {wxGrid, setDefaultCellAlignment, 2}},
+ {527, {wxGrid, setDefaultCellBackgroundColour, 1}},
+ {528, {wxGrid, setDefaultCellFont, 1}},
+ {529, {wxGrid, setDefaultCellTextColour, 1}},
+ {530, {wxGrid, setDefaultEditor, 1}},
+ {531, {wxGrid, setDefaultRenderer, 1}},
+ {532, {wxGrid, setDefaultColSize, 2}},
+ {533, {wxGrid, setDefaultRowSize, 2}},
+ {534, {wxGrid, setGridCursor, 2}},
+ {535, {wxGrid, setGridLineColour, 1}},
+ {536, {wxGrid, setLabelBackgroundColour, 1}},
+ {537, {wxGrid, setLabelFont, 1}},
+ {538, {wxGrid, setLabelTextColour, 1}},
+ {539, {wxGrid, setMargins, 2}},
+ {540, {wxGrid, setReadOnly, 3}},
+ {541, {wxGrid, setRowAttr, 2}},
+ {542, {wxGrid, setRowLabelAlignment, 2}},
+ {543, {wxGrid, setRowLabelSize, 1}},
+ {544, {wxGrid, setRowLabelValue, 2}},
+ {545, {wxGrid, setRowMinimalHeight, 2}},
+ {546, {wxGrid, setRowMinimalAcceptableHeight, 1}},
+ {547, {wxGrid, setRowSize, 2}},
+ {548, {wxGrid, setScrollLineX, 1}},
+ {549, {wxGrid, setScrollLineY, 1}},
+ {550, {wxGrid, setSelectionBackground, 1}},
+ {551, {wxGrid, setSelectionForeground, 1}},
+ {552, {wxGrid, setSelectionMode, 1}},
+ {553, {wxGrid, showCellEditControl, 0}},
+ {554, {wxGrid, xToCol, 2}},
+ {555, {wxGrid, xToEdgeOfCol, 1}},
+ {556, {wxGrid, yToEdgeOfRow, 1}},
+ {557, {wxGrid, yToRow, 1}},
+ {558, {wxGridCellRenderer, draw, 7}},
+ {559, {wxGridCellRenderer, getBestSize, 5}},
+ {560, {wxGridCellEditor, create, 3}},
+ {561, {wxGridCellEditor, isCreated, 0}},
+ {562, {wxGridCellEditor, setSize, 1}},
+ {563, {wxGridCellEditor, show, 2}},
+ {564, {wxGridCellEditor, paintBackground, 2}},
+ {565, {wxGridCellEditor, beginEdit, 3}},
+ {566, {wxGridCellEditor, endEdit, 3}},
+ {567, {wxGridCellEditor, reset, 0}},
+ {568, {wxGridCellEditor, startingKey, 1}},
+ {569, {wxGridCellEditor, startingClick, 0}},
+ {570, {wxGridCellEditor, handleReturn, 1}},
+ {571, {wxGridCellBoolRenderer, new, 0}},
+ {572, {wxGridCellBoolRenderer, 'Destroy', undefined}},
+ {573, {wxGridCellBoolEditor, new, 0}},
+ {574, {wxGridCellBoolEditor, isTrueValue, 1}},
+ {575, {wxGridCellBoolEditor, useStringValues, 1}},
+ {576, {wxGridCellBoolEditor, 'Destroy', undefined}},
+ {577, {wxGridCellFloatRenderer, new, 1}},
+ {578, {wxGridCellFloatRenderer, getPrecision, 0}},
+ {579, {wxGridCellFloatRenderer, getWidth, 0}},
+ {580, {wxGridCellFloatRenderer, setParameters, 1}},
+ {581, {wxGridCellFloatRenderer, setPrecision, 1}},
+ {582, {wxGridCellFloatRenderer, setWidth, 1}},
+ {583, {wxGridCellFloatRenderer, 'Destroy', undefined}},
+ {584, {wxGridCellFloatEditor, new, 1}},
+ {585, {wxGridCellFloatEditor, setParameters, 1}},
+ {586, {wxGridCellFloatEditor, 'Destroy', undefined}},
+ {587, {wxGridCellStringRenderer, new, 0}},
+ {588, {wxGridCellStringRenderer, 'Destroy', undefined}},
+ {589, {wxGridCellTextEditor, new, 0}},
+ {590, {wxGridCellTextEditor, setParameters, 1}},
+ {591, {wxGridCellTextEditor, 'Destroy', undefined}},
+ {593, {wxGridCellChoiceEditor, new, 2}},
+ {594, {wxGridCellChoiceEditor, setParameters, 1}},
+ {595, {wxGridCellChoiceEditor, 'Destroy', undefined}},
+ {596, {wxGridCellNumberRenderer, new, 0}},
+ {597, {wxGridCellNumberRenderer, 'Destroy', undefined}},
+ {598, {wxGridCellNumberEditor, new, 1}},
+ {599, {wxGridCellNumberEditor, getValue, 0}},
+ {600, {wxGridCellNumberEditor, setParameters, 1}},
+ {601, {wxGridCellNumberEditor, 'Destroy', undefined}},
+ {602, {wxGridCellAttr, setTextColour, 1}},
+ {603, {wxGridCellAttr, setBackgroundColour, 1}},
+ {604, {wxGridCellAttr, setFont, 1}},
+ {605, {wxGridCellAttr, setAlignment, 2}},
+ {606, {wxGridCellAttr, setReadOnly, 1}},
+ {607, {wxGridCellAttr, setRenderer, 1}},
+ {608, {wxGridCellAttr, setEditor, 1}},
+ {609, {wxGridCellAttr, hasTextColour, 0}},
+ {610, {wxGridCellAttr, hasBackgroundColour, 0}},
+ {611, {wxGridCellAttr, hasFont, 0}},
+ {612, {wxGridCellAttr, hasAlignment, 0}},
+ {613, {wxGridCellAttr, hasRenderer, 0}},
+ {614, {wxGridCellAttr, hasEditor, 0}},
+ {615, {wxGridCellAttr, getTextColour, 0}},
+ {616, {wxGridCellAttr, getBackgroundColour, 0}},
+ {617, {wxGridCellAttr, getFont, 0}},
+ {618, {wxGridCellAttr, getAlignment, 2}},
+ {619, {wxGridCellAttr, getRenderer, 3}},
+ {620, {wxGridCellAttr, getEditor, 3}},
+ {621, {wxGridCellAttr, isReadOnly, 0}},
+ {622, {wxGridCellAttr, setDefAttr, 1}},
+ {623, {wxDC, blit, 5}},
+ {624, {wxDC, calcBoundingBox, 2}},
+ {625, {wxDC, clear, 0}},
+ {626, {wxDC, computeScaleAndOrigin, 0}},
+ {627, {wxDC, crossHair, 1}},
+ {628, {wxDC, destroyClippingRegion, 0}},
+ {629, {wxDC, deviceToLogicalX, 1}},
+ {630, {wxDC, deviceToLogicalXRel, 1}},
+ {631, {wxDC, deviceToLogicalY, 1}},
+ {632, {wxDC, deviceToLogicalYRel, 1}},
+ {633, {wxDC, drawArc, 3}},
+ {634, {wxDC, drawBitmap, 3}},
+ {635, {wxDC, drawCheckMark, 1}},
+ {636, {wxDC, drawCircle, 2}},
+ {638, {wxDC, drawEllipse_2, 2}},
+ {639, {wxDC, drawEllipse_1, 1}},
+ {640, {wxDC, drawEllipticArc, 4}},
+ {641, {wxDC, drawIcon, 2}},
+ {642, {wxDC, drawLabel, 3}},
+ {643, {wxDC, drawLine, 2}},
+ {644, {wxDC, drawLines, 3}},
+ {646, {wxDC, drawPolygon, 3}},
+ {648, {wxDC, drawPoint, 1}},
+ {650, {wxDC, drawRectangle_2, 2}},
+ {651, {wxDC, drawRectangle_1, 1}},
+ {652, {wxDC, drawRotatedText, 3}},
+ {654, {wxDC, drawRoundedRectangle_3, 3}},
+ {655, {wxDC, drawRoundedRectangle_2, 2}},
+ {656, {wxDC, drawText, 2}},
+ {657, {wxDC, endDoc, 0}},
+ {658, {wxDC, endPage, 0}},
+ {659, {wxDC, floodFill, 3}},
+ {660, {wxDC, getBackground, 0}},
+ {661, {wxDC, getBackgroundMode, 0}},
+ {662, {wxDC, getBrush, 0}},
+ {663, {wxDC, getCharHeight, 0}},
+ {664, {wxDC, getCharWidth, 0}},
+ {665, {wxDC, getClippingBox, 1}},
+ {666, {wxDC, getFont, 0}},
+ {667, {wxDC, getLayoutDirection, 0}},
+ {668, {wxDC, getLogicalFunction, 0}},
+ {669, {wxDC, getMapMode, 0}},
+ {670, {wxDC, getMultiLineTextExtent_4, 4}},
+ {671, {wxDC, getMultiLineTextExtent_1, 1}},
+ {672, {wxDC, getPartialTextExtents, 2}},
+ {673, {wxDC, getPen, 0}},
+ {674, {wxDC, getPixel, 2}},
+ {675, {wxDC, getPPI, 0}},
+ {677, {wxDC, getSize, 0}},
+ {679, {wxDC, getSizeMM, 0}},
+ {680, {wxDC, getTextBackground, 0}},
+ {681, {wxDC, getTextExtent_4, 4}},
+ {682, {wxDC, getTextExtent_1, 1}},
+ {684, {wxDC, getTextForeground, 0}},
+ {685, {wxDC, getUserScale, 2}},
+ {686, {wxDC, gradientFillConcentric_3, 3}},
+ {687, {wxDC, gradientFillConcentric_4, 4}},
+ {688, {wxDC, gradientFillLinear, 4}},
+ {689, {wxDC, logicalToDeviceX, 1}},
+ {690, {wxDC, logicalToDeviceXRel, 1}},
+ {691, {wxDC, logicalToDeviceY, 1}},
+ {692, {wxDC, logicalToDeviceYRel, 1}},
+ {693, {wxDC, maxX, 0}},
+ {694, {wxDC, maxY, 0}},
+ {695, {wxDC, minX, 0}},
+ {696, {wxDC, minY, 0}},
+ {697, {wxDC, isOk, 0}},
+ {698, {wxDC, resetBoundingBox, 0}},
+ {699, {wxDC, setAxisOrientation, 2}},
+ {700, {wxDC, setBackground, 1}},
+ {701, {wxDC, setBackgroundMode, 1}},
+ {702, {wxDC, setBrush, 1}},
+ {704, {wxDC, setClippingRegion_2, 2}},
+ {705, {wxDC, setClippingRegion_1_1, 1}},
+ {706, {wxDC, setClippingRegion_1_0, 1}},
+ {707, {wxDC, setDeviceOrigin, 2}},
+ {708, {wxDC, setFont, 1}},
+ {709, {wxDC, setLayoutDirection, 1}},
+ {710, {wxDC, setLogicalFunction, 1}},
+ {711, {wxDC, setMapMode, 1}},
+ {712, {wxDC, setPalette, 1}},
+ {713, {wxDC, setPen, 1}},
+ {714, {wxDC, setTextBackground, 1}},
+ {715, {wxDC, setTextForeground, 1}},
+ {716, {wxDC, setUserScale, 2}},
+ {717, {wxDC, startDoc, 1}},
+ {718, {wxDC, startPage, 0}},
+ {719, {wxMirrorDC, new, 2}},
+ {720, {wxMirrorDC, 'Destroy', undefined}},
+ {721, {wxScreenDC, new, 0}},
+ {722, {wxScreenDC, destruct, 0}},
+ {723, {wxPostScriptDC, new_0, 0}},
+ {724, {wxPostScriptDC, new_1, 1}},
+ {725, {wxPostScriptDC, destruct, 0}},
+ {726, {wxPostScriptDC, setResolution, 1}},
+ {727, {wxPostScriptDC, getResolution, 0}},
+ {728, {wxWindowDC, new_0, 0}},
+ {729, {wxWindowDC, new_1, 1}},
+ {730, {wxWindowDC, destruct, 0}},
+ {731, {wxClientDC, new_0, 0}},
+ {732, {wxClientDC, new_1, 1}},
+ {733, {wxClientDC, 'Destroy', undefined}},
+ {734, {wxPaintDC, new_0, 0}},
+ {735, {wxPaintDC, new_1, 1}},
+ {736, {wxPaintDC, 'Destroy', undefined}},
+ {738, {wxMemoryDC, new_1_0, 1}},
+ {739, {wxMemoryDC, new_1_1, 1}},
+ {740, {wxMemoryDC, new_0, 0}},
+ {742, {wxMemoryDC, destruct, 0}},
+ {743, {wxMemoryDC, selectObject, 1}},
+ {744, {wxMemoryDC, selectObjectAsSource, 1}},
+ {745, {wxBufferedDC, new_0, 0}},
+ {746, {wxBufferedDC, new_2, 2}},
+ {747, {wxBufferedDC, new_3, 3}},
+ {748, {wxBufferedDC, destruct, 0}},
+ {749, {wxBufferedDC, init_2, 2}},
+ {750, {wxBufferedDC, init_3, 3}},
+ {751, {wxBufferedPaintDC, new_3, 3}},
+ {752, {wxBufferedPaintDC, new_2, 2}},
+ {753, {wxBufferedPaintDC, destruct, 0}},
+ {754, {wxGraphicsObject, getRenderer, 0}},
+ {755, {wxGraphicsObject, isNull, 0}},
+ {756, {wxGraphicsContext, create_1_1, 1}},
+ {757, {wxGraphicsContext, create_1_0, 1}},
+ {758, {wxGraphicsContext, create_0, 0}},
+ {759, {wxGraphicsContext, createPen, 1}},
+ {760, {wxGraphicsContext, createBrush, 1}},
+ {761, {wxGraphicsContext, createRadialGradientBrush, 7}},
+ {762, {wxGraphicsContext, createLinearGradientBrush, 6}},
+ {763, {wxGraphicsContext, createFont, 2}},
+ {764, {wxGraphicsContext, createMatrix, 1}},
+ {765, {wxGraphicsContext, createPath, 0}},
+ {766, {wxGraphicsContext, clip_1, 1}},
+ {767, {wxGraphicsContext, clip_4, 4}},
+ {768, {wxGraphicsContext, resetClip, 0}},
+ {769, {wxGraphicsContext, drawBitmap, 5}},
+ {770, {wxGraphicsContext, drawEllipse, 4}},
+ {771, {wxGraphicsContext, drawIcon, 5}},
+ {772, {wxGraphicsContext, drawLines, 3}},
+ {773, {wxGraphicsContext, drawPath, 2}},
+ {774, {wxGraphicsContext, drawRectangle, 4}},
+ {775, {wxGraphicsContext, drawRoundedRectangle, 5}},
+ {776, {wxGraphicsContext, drawText_3, 3}},
+ {777, {wxGraphicsContext, drawText_4_0, 4}},
+ {778, {wxGraphicsContext, drawText_4_1, 4}},
+ {779, {wxGraphicsContext, drawText_5, 5}},
+ {780, {wxGraphicsContext, fillPath, 2}},
+ {781, {wxGraphicsContext, strokePath, 1}},
+ {782, {wxGraphicsContext, getNativeContext, 0}},
+ {783, {wxGraphicsContext, getPartialTextExtents, 2}},
+ {784, {wxGraphicsContext, getTextExtent, 5}},
+ {785, {wxGraphicsContext, rotate, 1}},
+ {786, {wxGraphicsContext, scale, 2}},
+ {787, {wxGraphicsContext, translate, 2}},
+ {788, {wxGraphicsContext, getTransform, 0}},
+ {789, {wxGraphicsContext, setTransform, 1}},
+ {790, {wxGraphicsContext, concatTransform, 1}},
+ {791, {wxGraphicsContext, setBrush_1_1, 1}},
+ {792, {wxGraphicsContext, setBrush_1_0, 1}},
+ {793, {wxGraphicsContext, setFont_1, 1}},
+ {794, {wxGraphicsContext, setFont_2, 2}},
+ {795, {wxGraphicsContext, setPen_1_0, 1}},
+ {796, {wxGraphicsContext, setPen_1_1, 1}},
+ {797, {wxGraphicsContext, strokeLine, 4}},
+ {798, {wxGraphicsContext, strokeLines_2, 2}},
+ {799, {wxGraphicsContext, strokeLines_3, 3}},
+ {800, {wxGraphicsMatrix, concat, 1}},
+ {802, {wxGraphicsMatrix, get, 1}},
+ {803, {wxGraphicsMatrix, getNativeMatrix, 0}},
+ {804, {wxGraphicsMatrix, invert, 0}},
+ {805, {wxGraphicsMatrix, isEqual, 1}},
+ {807, {wxGraphicsMatrix, isIdentity, 0}},
+ {808, {wxGraphicsMatrix, rotate, 1}},
+ {809, {wxGraphicsMatrix, scale, 2}},
+ {810, {wxGraphicsMatrix, translate, 2}},
+ {811, {wxGraphicsMatrix, set, 1}},
+ {812, {wxGraphicsMatrix, transformPoint, 2}},
+ {813, {wxGraphicsMatrix, transformDistance, 2}},
+ {814, {wxGraphicsPath, moveToPoint_2, 2}},
+ {815, {wxGraphicsPath, moveToPoint_1, 1}},
+ {816, {wxGraphicsPath, addArc_6, 6}},
+ {817, {wxGraphicsPath, addArc_5, 5}},
+ {818, {wxGraphicsPath, addArcToPoint, 5}},
+ {819, {wxGraphicsPath, addCircle, 3}},
+ {820, {wxGraphicsPath, addCurveToPoint_6, 6}},
+ {821, {wxGraphicsPath, addCurveToPoint_3, 3}},
+ {822, {wxGraphicsPath, addEllipse, 4}},
+ {823, {wxGraphicsPath, addLineToPoint_2, 2}},
+ {824, {wxGraphicsPath, addLineToPoint_1, 1}},
+ {825, {wxGraphicsPath, addPath, 1}},
+ {826, {wxGraphicsPath, addQuadCurveToPoint, 4}},
+ {827, {wxGraphicsPath, addRectangle, 4}},
+ {828, {wxGraphicsPath, addRoundedRectangle, 5}},
+ {829, {wxGraphicsPath, closeSubpath, 0}},
+ {830, {wxGraphicsPath, contains_3, 3}},
+ {831, {wxGraphicsPath, contains_2, 2}},
+ {833, {wxGraphicsPath, getBox, 0}},
+ {835, {wxGraphicsPath, getCurrentPoint, 0}},
+ {836, {wxGraphicsPath, transform, 1}},
+ {837, {wxGraphicsRenderer, getDefaultRenderer, 0}},
+ {838, {wxGraphicsRenderer, createContext_1_1, 1}},
+ {839, {wxGraphicsRenderer, createContext_1_0, 1}},
+ {840, {wxGraphicsRenderer, createPen, 1}},
+ {841, {wxGraphicsRenderer, createBrush, 1}},
+ {842, {wxGraphicsRenderer, createLinearGradientBrush, 6}},
+ {843, {wxGraphicsRenderer, createRadialGradientBrush, 7}},
+ {844, {wxGraphicsRenderer, createFont, 2}},
+ {845, {wxGraphicsRenderer, createMatrix, 1}},
+ {846, {wxGraphicsRenderer, createPath, 0}},
+ {848, {wxMenuBar, new_1, 1}},
+ {850, {wxMenuBar, new_0, 0}},
+ {852, {wxMenuBar, destruct, 0}},
+ {853, {wxMenuBar, append, 2}},
+ {854, {wxMenuBar, check, 2}},
+ {855, {wxMenuBar, enable_2, 2}},
+ {856, {wxMenuBar, enable_1, 1}},
+ {857, {wxMenuBar, enableTop, 2}},
+ {858, {wxMenuBar, findMenu, 1}},
+ {859, {wxMenuBar, findMenuItem, 2}},
+ {860, {wxMenuBar, findItem, 2}},
+ {861, {wxMenuBar, getHelpString, 1}},
+ {862, {wxMenuBar, getLabel_1, 1}},
+ {863, {wxMenuBar, getLabel_0, 0}},
+ {864, {wxMenuBar, getLabelTop, 1}},
+ {865, {wxMenuBar, getMenu, 1}},
+ {866, {wxMenuBar, getMenuCount, 0}},
+ {867, {wxMenuBar, insert, 3}},
+ {868, {wxMenuBar, isChecked, 1}},
+ {869, {wxMenuBar, isEnabled_1, 1}},
+ {870, {wxMenuBar, isEnabled_0, 0}},
+ {871, {wxMenuBar, remove, 1}},
+ {872, {wxMenuBar, replace, 3}},
+ {873, {wxMenuBar, setHelpString, 2}},
+ {874, {wxMenuBar, setLabel_2, 2}},
+ {875, {wxMenuBar, setLabel_1, 1}},
+ {876, {wxMenuBar, setLabelTop, 2}},
+ {877, {wxControl, getLabel, 0}},
+ {878, {wxControl, setLabel, 1}},
+ {879, {wxControlWithItems, append_1, 1}},
+ {880, {wxControlWithItems, append_2, 2}},
+ {881, {wxControlWithItems, appendStrings_1, 1}},
+ {882, {wxControlWithItems, clear, 0}},
+ {883, {wxControlWithItems, delete, 1}},
+ {884, {wxControlWithItems, findString, 2}},
+ {886, {wxControlWithItems, getClientData, 1}},
+ {888, {wxControlWithItems, setClientData, 2}},
+ {889, {wxControlWithItems, getCount, 0}},
+ {890, {wxControlWithItems, getSelection, 0}},
+ {891, {wxControlWithItems, getString, 1}},
+ {892, {wxControlWithItems, getStringSelection, 0}},
+ {893, {wxControlWithItems, insert_2, 2}},
+ {894, {wxControlWithItems, insert_3, 3}},
+ {895, {wxControlWithItems, isEmpty, 0}},
+ {896, {wxControlWithItems, select, 1}},
+ {897, {wxControlWithItems, setSelection, 1}},
+ {898, {wxControlWithItems, setString, 2}},
+ {899, {wxControlWithItems, setStringSelection, 1}},
+ {902, {wxMenu, new_2, 2}},
+ {903, {wxMenu, new_1, 1}},
+ {905, {wxMenu, destruct, 0}},
+ {906, {wxMenu, append_3, 3}},
+ {907, {wxMenu, append_1, 1}},
+ {908, {wxMenu, append_4_0, 4}},
+ {909, {wxMenu, append_4_1, 4}},
+ {910, {wxMenu, appendCheckItem, 3}},
+ {911, {wxMenu, appendRadioItem, 3}},
+ {912, {wxMenu, appendSeparator, 0}},
+ {913, {wxMenu, break, 0}},
+ {914, {wxMenu, check, 2}},
+ {915, {wxMenu, delete_1_0, 1}},
+ {916, {wxMenu, delete_1_1, 1}},
+ {917, {wxMenu, destroy_1_0, 1}},
+ {918, {wxMenu, destroy_1_1, 1}},
+ {919, {wxMenu, enable, 2}},
+ {920, {wxMenu, findItem_1, 1}},
+ {921, {wxMenu, findItem_2, 2}},
+ {922, {wxMenu, findItemByPosition, 1}},
+ {923, {wxMenu, getHelpString, 1}},
+ {924, {wxMenu, getLabel, 1}},
+ {925, {wxMenu, getMenuItemCount, 0}},
+ {926, {wxMenu, getMenuItems, 0}},
+ {928, {wxMenu, getTitle, 0}},
+ {929, {wxMenu, insert_2, 2}},
+ {930, {wxMenu, insert_3, 3}},
+ {931, {wxMenu, insert_5_1, 5}},
+ {932, {wxMenu, insert_5_0, 5}},
+ {933, {wxMenu, insertCheckItem, 4}},
+ {934, {wxMenu, insertRadioItem, 4}},
+ {935, {wxMenu, insertSeparator, 1}},
+ {936, {wxMenu, isChecked, 1}},
+ {937, {wxMenu, isEnabled, 1}},
+ {938, {wxMenu, prepend_1, 1}},
+ {939, {wxMenu, prepend_2, 2}},
+ {940, {wxMenu, prepend_4_1, 4}},
+ {941, {wxMenu, prepend_4_0, 4}},
+ {942, {wxMenu, prependCheckItem, 3}},
+ {943, {wxMenu, prependRadioItem, 3}},
+ {944, {wxMenu, prependSeparator, 0}},
+ {945, {wxMenu, remove_1_0, 1}},
+ {946, {wxMenu, remove_1_1, 1}},
+ {947, {wxMenu, setHelpString, 2}},
+ {948, {wxMenu, setLabel, 2}},
+ {949, {wxMenu, setTitle, 1}},
+ {950, {wxMenuItem, new, 1}},
+ {952, {wxMenuItem, destruct, 0}},
+ {953, {wxMenuItem, check, 1}},
+ {954, {wxMenuItem, enable, 1}},
+ {955, {wxMenuItem, getBitmap, 0}},
+ {956, {wxMenuItem, getHelp, 0}},
+ {957, {wxMenuItem, getId, 0}},
+ {958, {wxMenuItem, getKind, 0}},
+ {959, {wxMenuItem, getLabel, 0}},
+ {960, {wxMenuItem, getLabelFromText, 1}},
+ {961, {wxMenuItem, getMenu, 0}},
+ {962, {wxMenuItem, getText, 0}},
+ {963, {wxMenuItem, getSubMenu, 0}},
+ {964, {wxMenuItem, isCheckable, 0}},
+ {965, {wxMenuItem, isChecked, 0}},
+ {966, {wxMenuItem, isEnabled, 0}},
+ {967, {wxMenuItem, isSeparator, 0}},
+ {968, {wxMenuItem, isSubMenu, 0}},
+ {969, {wxMenuItem, setBitmap, 1}},
+ {970, {wxMenuItem, setHelp, 1}},
+ {971, {wxMenuItem, setMenu, 1}},
+ {972, {wxMenuItem, setSubMenu, 1}},
+ {973, {wxMenuItem, setText, 1}},
+ {974, {wxToolBar, addControl, 1}},
+ {975, {wxToolBar, addSeparator, 0}},
+ {976, {wxToolBar, addTool_5, 5}},
+ {977, {wxToolBar, addTool_4_0, 4}},
+ {978, {wxToolBar, addTool_1, 1}},
+ {979, {wxToolBar, addTool_4_1, 4}},
+ {980, {wxToolBar, addTool_3, 3}},
+ {981, {wxToolBar, addTool_6, 6}},
+ {982, {wxToolBar, addCheckTool, 4}},
+ {983, {wxToolBar, addRadioTool, 4}},
+ {984, {wxToolBar, deleteTool, 1}},
+ {985, {wxToolBar, deleteToolByPos, 1}},
+ {986, {wxToolBar, enableTool, 2}},
+ {987, {wxToolBar, findById, 1}},
+ {988, {wxToolBar, findControl, 1}},
+ {989, {wxToolBar, findToolForPosition, 2}},
+ {990, {wxToolBar, getToolSize, 0}},
+ {991, {wxToolBar, getToolBitmapSize, 0}},
+ {992, {wxToolBar, getMargins, 0}},
+ {993, {wxToolBar, getToolEnabled, 1}},
+ {994, {wxToolBar, getToolLongHelp, 1}},
+ {995, {wxToolBar, getToolPacking, 0}},
+ {996, {wxToolBar, getToolPos, 1}},
+ {997, {wxToolBar, getToolSeparation, 0}},
+ {998, {wxToolBar, getToolShortHelp, 1}},
+ {999, {wxToolBar, getToolState, 1}},
+ {1000, {wxToolBar, insertControl, 2}},
+ {1001, {wxToolBar, insertSeparator, 1}},
+ {1002, {wxToolBar, insertTool_5, 5}},
+ {1003, {wxToolBar, insertTool_2, 2}},
+ {1004, {wxToolBar, insertTool_4, 4}},
+ {1005, {wxToolBar, realize, 0}},
+ {1006, {wxToolBar, removeTool, 1}},
+ {1007, {wxToolBar, setMargins, 2}},
+ {1008, {wxToolBar, setToolBitmapSize, 1}},
+ {1009, {wxToolBar, setToolLongHelp, 2}},
+ {1010, {wxToolBar, setToolPacking, 1}},
+ {1011, {wxToolBar, setToolShortHelp, 2}},
+ {1012, {wxToolBar, setToolSeparation, 1}},
+ {1013, {wxToolBar, toggleTool, 2}},
+ {1015, {wxStatusBar, new_0, 0}},
+ {1016, {wxStatusBar, new_2, 2}},
+ {1018, {wxStatusBar, destruct, 0}},
+ {1019, {wxStatusBar, create, 2}},
+ {1020, {wxStatusBar, getFieldRect, 2}},
+ {1021, {wxStatusBar, getFieldsCount, 0}},
+ {1022, {wxStatusBar, getStatusText, 1}},
+ {1023, {wxStatusBar, popStatusText, 1}},
+ {1024, {wxStatusBar, pushStatusText, 2}},
+ {1025, {wxStatusBar, setFieldsCount, 2}},
+ {1026, {wxStatusBar, setMinHeight, 1}},
+ {1027, {wxStatusBar, setStatusText, 2}},
+ {1028, {wxStatusBar, setStatusWidths, 2}},
+ {1029, {wxStatusBar, setStatusStyles, 2}},
+ {1030, {wxBitmap, new_0, 0}},
+ {1031, {wxBitmap, new_3, 3}},
+ {1032, {wxBitmap, new_4, 4}},
+ {1033, {wxBitmap, new_2_0, 2}},
+ {1034, {wxBitmap, new_2_1, 2}},
+ {1035, {wxBitmap, destruct, 0}},
+ {1036, {wxBitmap, convertToImage, 0}},
+ {1037, {wxBitmap, copyFromIcon, 1}},
+ {1038, {wxBitmap, create, 3}},
+ {1039, {wxBitmap, getDepth, 0}},
+ {1040, {wxBitmap, getHeight, 0}},
+ {1041, {wxBitmap, getPalette, 0}},
+ {1042, {wxBitmap, getMask, 0}},
+ {1043, {wxBitmap, getWidth, 0}},
+ {1044, {wxBitmap, getSubBitmap, 1}},
+ {1045, {wxBitmap, loadFile, 2}},
+ {1046, {wxBitmap, ok, 0}},
+ {1047, {wxBitmap, saveFile, 3}},
+ {1048, {wxBitmap, setDepth, 1}},
+ {1049, {wxBitmap, setHeight, 1}},
+ {1050, {wxBitmap, setMask, 1}},
+ {1051, {wxBitmap, setPalette, 1}},
+ {1052, {wxBitmap, setWidth, 1}},
+ {1053, {wxIcon, new_0, 0}},
+ {1054, {wxIcon, new_2, 2}},
+ {1055, {wxIcon, new_1, 1}},
+ {1056, {wxIcon, copyFromBitmap, 1}},
+ {1057, {wxIcon, 'Destroy', undefined}},
+ {1058, {wxIconBundle, new_0, 0}},
+ {1059, {wxIconBundle, new_2, 2}},
+ {1060, {wxIconBundle, new_1_0, 1}},
+ {1061, {wxIconBundle, new_1_1, 1}},
+ {1062, {wxIconBundle, destruct, 0}},
+ {1063, {wxIconBundle, addIcon_2, 2}},
+ {1064, {wxIconBundle, addIcon_1, 1}},
+ {1065, {wxIconBundle, getIcon_1_1, 1}},
+ {1066, {wxIconBundle, getIcon_1_0, 1}},
+ {1067, {wxCursor, new_0, 0}},
+ {1068, {wxCursor, new_1_0, 1}},
+ {1069, {wxCursor, new_1_1, 1}},
+ {1070, {wxCursor, new_4, 4}},
+ {1071, {wxCursor, destruct, 0}},
+ {1072, {wxCursor, ok, 0}},
+ {1073, {wxMask, new_0, 0}},
+ {1074, {wxMask, new_2_1, 2}},
+ {1075, {wxMask, new_2_0, 2}},
+ {1076, {wxMask, new_1, 1}},
+ {1077, {wxMask, destruct, 0}},
+ {1078, {wxMask, create_2_1, 2}},
+ {1079, {wxMask, create_2_0, 2}},
+ {1080, {wxMask, create_1, 1}},
+ {1081, {wxImage, new_0, 0}},
+ {1082, {wxImage, new_3_0, 3}},
+ {1083, {wxImage, new_4, 4}},
+ {1084, {wxImage, new_5, 5}},
+ {1085, {wxImage, new_2, 2}},
+ {1086, {wxImage, new_3_1, 3}},
+ {1087, {wxImage, blur, 1}},
+ {1088, {wxImage, blurHorizontal, 1}},
+ {1089, {wxImage, blurVertical, 1}},
+ {1090, {wxImage, convertAlphaToMask, 1}},
+ {1091, {wxImage, convertToGreyscale, 1}},
+ {1092, {wxImage, convertToMono, 3}},
+ {1093, {wxImage, copy, 0}},
+ {1094, {wxImage, create_3, 3}},
+ {1095, {wxImage, create_4, 4}},
+ {1096, {wxImage, create_5, 5}},
+ {1097, {wxImage, 'Destroy', 0}},
+ {1098, {wxImage, findFirstUnusedColour, 4}},
+ {1099, {wxImage, getImageExtWildcard, 0}},
+ {1100, {wxImage, getAlpha_2, 2}},
+ {1101, {wxImage, getAlpha_0, 0}},
+ {1102, {wxImage, getBlue, 2}},
+ {1103, {wxImage, getData, 0}},
+ {1104, {wxImage, getGreen, 2}},
+ {1105, {wxImage, getImageCount, 2}},
+ {1106, {wxImage, getHeight, 0}},
+ {1107, {wxImage, getMaskBlue, 0}},
+ {1108, {wxImage, getMaskGreen, 0}},
+ {1109, {wxImage, getMaskRed, 0}},
+ {1110, {wxImage, getOrFindMaskColour, 3}},
+ {1111, {wxImage, getPalette, 0}},
+ {1112, {wxImage, getRed, 2}},
+ {1113, {wxImage, getSubImage, 1}},
+ {1114, {wxImage, getWidth, 0}},
+ {1115, {wxImage, hasAlpha, 0}},
+ {1116, {wxImage, hasMask, 0}},
+ {1117, {wxImage, getOption, 1}},
+ {1118, {wxImage, getOptionInt, 1}},
+ {1119, {wxImage, hasOption, 1}},
+ {1120, {wxImage, initAlpha, 0}},
+ {1121, {wxImage, initStandardHandlers, 0}},
+ {1122, {wxImage, isTransparent, 3}},
+ {1123, {wxImage, loadFile_2, 2}},
+ {1124, {wxImage, loadFile_3, 3}},
+ {1125, {wxImage, ok, 0}},
+ {1126, {wxImage, removeHandler, 1}},
+ {1127, {wxImage, mirror, 1}},
+ {1128, {wxImage, replace, 6}},
+ {1129, {wxImage, rescale, 3}},
+ {1130, {wxImage, resize, 3}},
+ {1131, {wxImage, rotate, 3}},
+ {1132, {wxImage, rotateHue, 1}},
+ {1133, {wxImage, rotate90, 1}},
+ {1134, {wxImage, saveFile_1, 1}},
+ {1135, {wxImage, saveFile_2_0, 2}},
+ {1136, {wxImage, saveFile_2_1, 2}},
+ {1137, {wxImage, scale, 3}},
+ {1138, {wxImage, size, 3}},
+ {1139, {wxImage, setAlpha_3, 3}},
+ {1140, {wxImage, setAlpha_2, 2}},
+ {1141, {wxImage, setData_2, 2}},
+ {1142, {wxImage, setData_4, 4}},
+ {1143, {wxImage, setMask, 1}},
+ {1144, {wxImage, setMaskColour, 3}},
+ {1145, {wxImage, setMaskFromImage, 4}},
+ {1146, {wxImage, setOption_2_1, 2}},
+ {1147, {wxImage, setOption_2_0, 2}},
+ {1148, {wxImage, setPalette, 1}},
+ {1149, {wxImage, setRGB_5, 5}},
+ {1150, {wxImage, setRGB_4, 4}},
+ {1151, {wxImage, 'Destroy', undefined}},
+ {1152, {wxBrush, new_0, 0}},
+ {1153, {wxBrush, new_2, 2}},
+ {1154, {wxBrush, new_1, 1}},
+ {1156, {wxBrush, destruct, 0}},
+ {1157, {wxBrush, getColour, 0}},
+ {1158, {wxBrush, getStipple, 0}},
+ {1159, {wxBrush, getStyle, 0}},
+ {1160, {wxBrush, isHatch, 0}},
+ {1161, {wxBrush, isOk, 0}},
+ {1162, {wxBrush, setColour_1, 1}},
+ {1163, {wxBrush, setColour_3, 3}},
+ {1164, {wxBrush, setStipple, 1}},
+ {1165, {wxBrush, setStyle, 1}},
+ {1166, {wxPen, new_0, 0}},
+ {1167, {wxPen, new_2, 2}},
+ {1168, {wxPen, destruct, 0}},
+ {1169, {wxPen, getCap, 0}},
+ {1170, {wxPen, getColour, 0}},
+ {1171, {wxPen, getJoin, 0}},
+ {1172, {wxPen, getStyle, 0}},
+ {1173, {wxPen, getWidth, 0}},
+ {1174, {wxPen, isOk, 0}},
+ {1175, {wxPen, setCap, 1}},
+ {1176, {wxPen, setColour_1, 1}},
+ {1177, {wxPen, setColour_3, 3}},
+ {1178, {wxPen, setJoin, 1}},
+ {1179, {wxPen, setStyle, 1}},
+ {1180, {wxPen, setWidth, 1}},
+ {1181, {wxRegion, new_0, 0}},
+ {1182, {wxRegion, new_4, 4}},
+ {1183, {wxRegion, new_2, 2}},
+ {1184, {wxRegion, new_1_1, 1}},
+ {1186, {wxRegion, new_1_0, 1}},
+ {1188, {wxRegion, destruct, 0}},
+ {1189, {wxRegion, clear, 0}},
+ {1190, {wxRegion, contains_2, 2}},
+ {1191, {wxRegion, contains_1_0, 1}},
+ {1192, {wxRegion, contains_4, 4}},
+ {1193, {wxRegion, contains_1_1, 1}},
+ {1194, {wxRegion, convertToBitmap, 0}},
+ {1195, {wxRegion, getBox, 0}},
+ {1196, {wxRegion, intersect_4, 4}},
+ {1197, {wxRegion, intersect_1_1, 1}},
+ {1198, {wxRegion, intersect_1_0, 1}},
+ {1199, {wxRegion, isEmpty, 0}},
+ {1200, {wxRegion, subtract_4, 4}},
+ {1201, {wxRegion, subtract_1_1, 1}},
+ {1202, {wxRegion, subtract_1_0, 1}},
+ {1203, {wxRegion, offset_2, 2}},
+ {1204, {wxRegion, offset_1, 1}},
+ {1205, {wxRegion, union_4, 4}},
+ {1206, {wxRegion, union_1_2, 1}},
+ {1207, {wxRegion, union_1_1, 1}},
+ {1208, {wxRegion, union_1_0, 1}},
+ {1209, {wxRegion, union_3, 3}},
+ {1210, {wxRegion, xor_4, 4}},
+ {1211, {wxRegion, xor_1_1, 1}},
+ {1212, {wxRegion, xor_1_0, 1}},
+ {1213, {wxAcceleratorTable, new_0, 0}},
+ {1214, {wxAcceleratorTable, new_2, 2}},
+ {1215, {wxAcceleratorTable, destruct, 0}},
+ {1216, {wxAcceleratorTable, ok, 0}},
+ {1217, {wxAcceleratorEntry, new_1_0, 1}},
+ {1218, {wxAcceleratorEntry, new_1_1, 1}},
+ {1219, {wxAcceleratorEntry, getCommand, 0}},
+ {1220, {wxAcceleratorEntry, getFlags, 0}},
+ {1221, {wxAcceleratorEntry, getKeyCode, 0}},
+ {1222, {wxAcceleratorEntry, set, 4}},
+ {1223, {wxAcceleratorEntry, 'Destroy', undefined}},
+ {1228, {wxCaret, new_3, 3}},
+ {1229, {wxCaret, new_2, 2}},
+ {1231, {wxCaret, destruct, 0}},
+ {1232, {wxCaret, create_3, 3}},
+ {1233, {wxCaret, create_2, 2}},
+ {1234, {wxCaret, getBlinkTime, 0}},
+ {1236, {wxCaret, getPosition, 0}},
+ {1238, {wxCaret, getSize, 0}},
+ {1239, {wxCaret, getWindow, 0}},
+ {1240, {wxCaret, hide, 0}},
+ {1241, {wxCaret, isOk, 0}},
+ {1242, {wxCaret, isVisible, 0}},
+ {1243, {wxCaret, move_2, 2}},
+ {1244, {wxCaret, move_1, 1}},
+ {1245, {wxCaret, setBlinkTime, 1}},
+ {1246, {wxCaret, setSize_2, 2}},
+ {1247, {wxCaret, setSize_1, 1}},
+ {1248, {wxCaret, show, 1}},
+ {1249, {wxSizer, add_2_1, 2}},
+ {1250, {wxSizer, add_2_0, 2}},
+ {1251, {wxSizer, add_3, 3}},
+ {1252, {wxSizer, add_2_3, 2}},
+ {1253, {wxSizer, add_2_2, 2}},
+ {1254, {wxSizer, addSpacer, 1}},
+ {1255, {wxSizer, addStretchSpacer, 1}},
+ {1256, {wxSizer, calcMin, 0}},
+ {1257, {wxSizer, clear, 1}},
+ {1258, {wxSizer, detach_1_2, 1}},
+ {1259, {wxSizer, detach_1_1, 1}},
+ {1260, {wxSizer, detach_1_0, 1}},
+ {1261, {wxSizer, fit, 1}},
+ {1262, {wxSizer, fitInside, 1}},
+ {1263, {wxSizer, getChildren, 0}},
+ {1264, {wxSizer, getItem_2_1, 2}},
+ {1265, {wxSizer, getItem_2_0, 2}},
+ {1266, {wxSizer, getItem_1, 1}},
+ {1267, {wxSizer, getSize, 0}},
+ {1268, {wxSizer, getPosition, 0}},
+ {1269, {wxSizer, getMinSize, 0}},
+ {1270, {wxSizer, hide_2_0, 2}},
+ {1271, {wxSizer, hide_2_1, 2}},
+ {1272, {wxSizer, hide_1, 1}},
+ {1273, {wxSizer, insert_3_1, 3}},
+ {1274, {wxSizer, insert_3_0, 3}},
+ {1275, {wxSizer, insert_4, 4}},
+ {1276, {wxSizer, insert_3_3, 3}},
+ {1277, {wxSizer, insert_3_2, 3}},
+ {1278, {wxSizer, insert_2, 2}},
+ {1279, {wxSizer, insertSpacer, 2}},
+ {1280, {wxSizer, insertStretchSpacer, 2}},
+ {1281, {wxSizer, isShown_1_2, 1}},
+ {1282, {wxSizer, isShown_1_1, 1}},
+ {1283, {wxSizer, isShown_1_0, 1}},
+ {1284, {wxSizer, layout, 0}},
+ {1285, {wxSizer, prepend_2_1, 2}},
+ {1286, {wxSizer, prepend_2_0, 2}},
+ {1287, {wxSizer, prepend_3, 3}},
+ {1288, {wxSizer, prepend_2_3, 2}},
+ {1289, {wxSizer, prepend_2_2, 2}},
+ {1290, {wxSizer, prepend_1, 1}},
+ {1291, {wxSizer, prependSpacer, 1}},
+ {1292, {wxSizer, prependStretchSpacer, 1}},
+ {1293, {wxSizer, recalcSizes, 0}},
+ {1294, {wxSizer, remove_1_1, 1}},
+ {1295, {wxSizer, remove_1_0, 1}},
+ {1296, {wxSizer, replace_3_1, 3}},
+ {1297, {wxSizer, replace_3_0, 3}},
+ {1298, {wxSizer, replace_2, 2}},
+ {1299, {wxSizer, setDimension, 4}},
+ {1300, {wxSizer, setMinSize_2, 2}},
+ {1301, {wxSizer, setMinSize_1, 1}},
+ {1302, {wxSizer, setItemMinSize_3_2, 3}},
+ {1303, {wxSizer, setItemMinSize_2_2, 2}},
+ {1304, {wxSizer, setItemMinSize_3_1, 3}},
+ {1305, {wxSizer, setItemMinSize_2_1, 2}},
+ {1306, {wxSizer, setItemMinSize_3_0, 3}},
+ {1307, {wxSizer, setItemMinSize_2_0, 2}},
+ {1308, {wxSizer, setSizeHints, 1}},
+ {1309, {wxSizer, setVirtualSizeHints, 1}},
+ {1310, {wxSizer, show_2_2, 2}},
+ {1311, {wxSizer, show_2_1, 2}},
+ {1312, {wxSizer, show_2_0, 2}},
+ {1313, {wxSizer, show_1, 1}},
+ {1314, {wxSizerFlags, new, 1}},
+ {1315, {wxSizerFlags, align, 1}},
+ {1316, {wxSizerFlags, border_2, 2}},
+ {1317, {wxSizerFlags, border_1, 1}},
+ {1318, {wxSizerFlags, center, 0}},
+ {1319, {wxSizerFlags, centre, 0}},
+ {1320, {wxSizerFlags, expand, 0}},
+ {1321, {wxSizerFlags, left, 0}},
+ {1322, {wxSizerFlags, proportion, 1}},
+ {1323, {wxSizerFlags, right, 0}},
+ {1324, {wxSizerFlags, 'Destroy', undefined}},
+ {1325, {wxSizerItem, new_5_1, 5}},
+ {1326, {wxSizerItem, new_2_1, 2}},
+ {1327, {wxSizerItem, new_5_0, 5}},
+ {1328, {wxSizerItem, new_2_0, 2}},
+ {1329, {wxSizerItem, new_6, 6}},
+ {1330, {wxSizerItem, new_3, 3}},
+ {1331, {wxSizerItem, new_0, 0}},
+ {1332, {wxSizerItem, destruct, 0}},
+ {1333, {wxSizerItem, calcMin, 0}},
+ {1334, {wxSizerItem, deleteWindows, 0}},
+ {1335, {wxSizerItem, detachSizer, 0}},
+ {1336, {wxSizerItem, getBorder, 0}},
+ {1337, {wxSizerItem, getFlag, 0}},
+ {1338, {wxSizerItem, getMinSize, 0}},
+ {1339, {wxSizerItem, getPosition, 0}},
+ {1340, {wxSizerItem, getProportion, 0}},
+ {1341, {wxSizerItem, getRatio, 0}},
+ {1342, {wxSizerItem, getRect, 0}},
+ {1343, {wxSizerItem, getSize, 0}},
+ {1344, {wxSizerItem, getSizer, 0}},
+ {1345, {wxSizerItem, getSpacer, 0}},
+ {1346, {wxSizerItem, getUserData, 0}},
+ {1347, {wxSizerItem, getWindow, 0}},
+ {1348, {wxSizerItem, isSizer, 0}},
+ {1349, {wxSizerItem, isShown, 0}},
+ {1350, {wxSizerItem, isSpacer, 0}},
+ {1351, {wxSizerItem, isWindow, 0}},
+ {1352, {wxSizerItem, setBorder, 1}},
+ {1353, {wxSizerItem, setDimension, 2}},
+ {1354, {wxSizerItem, setFlag, 1}},
+ {1355, {wxSizerItem, setInitSize, 2}},
+ {1356, {wxSizerItem, setMinSize_1, 1}},
+ {1357, {wxSizerItem, setMinSize_2, 2}},
+ {1358, {wxSizerItem, setProportion, 1}},
+ {1359, {wxSizerItem, setRatio_2, 2}},
+ {1360, {wxSizerItem, setRatio_1_1, 1}},
+ {1361, {wxSizerItem, setRatio_1_0, 1}},
+ {1362, {wxSizerItem, setSizer, 1}},
+ {1363, {wxSizerItem, setSpacer_1, 1}},
+ {1364, {wxSizerItem, setSpacer_2, 2}},
+ {1365, {wxSizerItem, setWindow, 1}},
+ {1366, {wxSizerItem, show, 1}},
+ {1367, {wxBoxSizer, new, 1}},
+ {1368, {wxBoxSizer, getOrientation, 0}},
+ {1369, {wxBoxSizer, 'Destroy', undefined}},
+ {1370, {wxStaticBoxSizer, new_2, 2}},
+ {1371, {wxStaticBoxSizer, new_3, 3}},
+ {1372, {wxStaticBoxSizer, getStaticBox, 0}},
+ {1373, {wxStaticBoxSizer, 'Destroy', undefined}},
+ {1374, {wxGridSizer, new_4, 4}},
+ {1375, {wxGridSizer, new_2, 2}},
+ {1376, {wxGridSizer, getCols, 0}},
+ {1377, {wxGridSizer, getHGap, 0}},
+ {1378, {wxGridSizer, getRows, 0}},
+ {1379, {wxGridSizer, getVGap, 0}},
+ {1380, {wxGridSizer, setCols, 1}},
+ {1381, {wxGridSizer, setHGap, 1}},
+ {1382, {wxGridSizer, setRows, 1}},
+ {1383, {wxGridSizer, setVGap, 1}},
+ {1384, {wxGridSizer, 'Destroy', undefined}},
+ {1385, {wxFlexGridSizer, new_4, 4}},
+ {1386, {wxFlexGridSizer, new_2, 2}},
+ {1387, {wxFlexGridSizer, addGrowableCol, 2}},
+ {1388, {wxFlexGridSizer, addGrowableRow, 2}},
+ {1389, {wxFlexGridSizer, getFlexibleDirection, 0}},
+ {1390, {wxFlexGridSizer, getNonFlexibleGrowMode, 0}},
+ {1391, {wxFlexGridSizer, removeGrowableCol, 1}},
+ {1392, {wxFlexGridSizer, removeGrowableRow, 1}},
+ {1393, {wxFlexGridSizer, setFlexibleDirection, 1}},
+ {1394, {wxFlexGridSizer, setNonFlexibleGrowMode, 1}},
+ {1395, {wxFlexGridSizer, 'Destroy', undefined}},
+ {1396, {wxGridBagSizer, new, 1}},
+ {1397, {wxGridBagSizer, add_3_2, 3}},
+ {1398, {wxGridBagSizer, add_3_1, 3}},
+ {1399, {wxGridBagSizer, add_4, 4}},
+ {1400, {wxGridBagSizer, add_1_0, 1}},
+ {1401, {wxGridBagSizer, add_2_1, 2}},
+ {1402, {wxGridBagSizer, add_2_0, 2}},
+ {1403, {wxGridBagSizer, add_3_0, 3}},
+ {1404, {wxGridBagSizer, add_1_1, 1}},
+ {1405, {wxGridBagSizer, calcMin, 0}},
+ {1406, {wxGridBagSizer, checkForIntersection_2, 2}},
+ {1407, {wxGridBagSizer, checkForIntersection_3, 3}},
+ {1408, {wxGridBagSizer, findItem_1_1, 1}},
+ {1409, {wxGridBagSizer, findItem_1_0, 1}},
+ {1410, {wxGridBagSizer, findItemAtPoint, 1}},
+ {1411, {wxGridBagSizer, findItemAtPosition, 1}},
+ {1412, {wxGridBagSizer, findItemWithData, 1}},
+ {1413, {wxGridBagSizer, getCellSize, 2}},
+ {1414, {wxGridBagSizer, getEmptyCellSize, 0}},
+ {1415, {wxGridBagSizer, getItemPosition_1_2, 1}},
+ {1416, {wxGridBagSizer, getItemPosition_1_1, 1}},
+ {1417, {wxGridBagSizer, getItemPosition_1_0, 1}},
+ {1418, {wxGridBagSizer, getItemSpan_1_2, 1}},
+ {1419, {wxGridBagSizer, getItemSpan_1_1, 1}},
+ {1420, {wxGridBagSizer, getItemSpan_1_0, 1}},
+ {1421, {wxGridBagSizer, setEmptyCellSize, 1}},
+ {1422, {wxGridBagSizer, setItemPosition_2_2, 2}},
+ {1423, {wxGridBagSizer, setItemPosition_2_1, 2}},
+ {1424, {wxGridBagSizer, setItemPosition_2_0, 2}},
+ {1425, {wxGridBagSizer, setItemSpan_2_2, 2}},
+ {1426, {wxGridBagSizer, setItemSpan_2_1, 2}},
+ {1427, {wxGridBagSizer, setItemSpan_2_0, 2}},
+ {1428, {wxGridBagSizer, 'Destroy', undefined}},
+ {1429, {wxStdDialogButtonSizer, new, 0}},
+ {1430, {wxStdDialogButtonSizer, addButton, 1}},
+ {1431, {wxStdDialogButtonSizer, realize, 0}},
+ {1432, {wxStdDialogButtonSizer, setAffirmativeButton, 1}},
+ {1433, {wxStdDialogButtonSizer, setCancelButton, 1}},
+ {1434, {wxStdDialogButtonSizer, setNegativeButton, 1}},
+ {1435, {wxStdDialogButtonSizer, 'Destroy', undefined}},
+ {1436, {wxFont, new_0, 0}},
+ {1437, {wxFont, new_1, 1}},
+ {1438, {wxFont, new_5, 5}},
+ {1440, {wxFont, destruct, 0}},
+ {1441, {wxFont, isFixedWidth, 0}},
+ {1442, {wxFont, getDefaultEncoding, 0}},
+ {1443, {wxFont, getFaceName, 0}},
+ {1444, {wxFont, getFamily, 0}},
+ {1445, {wxFont, getNativeFontInfoDesc, 0}},
+ {1446, {wxFont, getNativeFontInfoUserDesc, 0}},
+ {1447, {wxFont, getPointSize, 0}},
+ {1448, {wxFont, getStyle, 0}},
+ {1449, {wxFont, getUnderlined, 0}},
+ {1450, {wxFont, getWeight, 0}},
+ {1451, {wxFont, ok, 0}},
+ {1452, {wxFont, setDefaultEncoding, 1}},
+ {1453, {wxFont, setFaceName, 1}},
+ {1454, {wxFont, setFamily, 1}},
+ {1455, {wxFont, setPointSize, 1}},
+ {1456, {wxFont, setStyle, 1}},
+ {1457, {wxFont, setUnderlined, 1}},
+ {1458, {wxFont, setWeight, 1}},
+ {1459, {wxToolTip, enable, 1}},
+ {1460, {wxToolTip, setDelay, 1}},
+ {1461, {wxToolTip, new, 1}},
+ {1462, {wxToolTip, setTip, 1}},
+ {1463, {wxToolTip, getTip, 0}},
+ {1464, {wxToolTip, getWindow, 0}},
+ {1465, {wxToolTip, 'Destroy', undefined}},
+ {1467, {wxButton, new_3, 3}},
+ {1468, {wxButton, new_0, 0}},
+ {1469, {wxButton, destruct, 0}},
+ {1470, {wxButton, create, 3}},
+ {1471, {wxButton, getDefaultSize, 0}},
+ {1472, {wxButton, setDefault, 0}},
+ {1473, {wxButton, setLabel, 1}},
+ {1475, {wxBitmapButton, new_4, 4}},
+ {1476, {wxBitmapButton, new_0, 0}},
+ {1477, {wxBitmapButton, create, 4}},
+ {1478, {wxBitmapButton, getBitmapDisabled, 0}},
+ {1480, {wxBitmapButton, getBitmapFocus, 0}},
+ {1482, {wxBitmapButton, getBitmapLabel, 0}},
+ {1484, {wxBitmapButton, getBitmapSelected, 0}},
+ {1486, {wxBitmapButton, setBitmapDisabled, 1}},
+ {1487, {wxBitmapButton, setBitmapFocus, 1}},
+ {1488, {wxBitmapButton, setBitmapLabel, 1}},
+ {1489, {wxBitmapButton, setBitmapSelected, 1}},
+ {1490, {wxBitmapButton, 'Destroy', undefined}},
+ {1491, {wxToggleButton, new_0, 0}},
+ {1492, {wxToggleButton, new_4, 4}},
+ {1493, {wxToggleButton, create, 4}},
+ {1494, {wxToggleButton, getValue, 0}},
+ {1495, {wxToggleButton, setValue, 1}},
+ {1496, {wxToggleButton, 'Destroy', undefined}},
+ {1497, {wxCalendarCtrl, new_0, 0}},
+ {1498, {wxCalendarCtrl, new_3, 3}},
+ {1499, {wxCalendarCtrl, create, 3}},
+ {1500, {wxCalendarCtrl, destruct, 0}},
+ {1501, {wxCalendarCtrl, setDate, 1}},
+ {1502, {wxCalendarCtrl, getDate, 0}},
+ {1503, {wxCalendarCtrl, enableYearChange, 1}},
+ {1504, {wxCalendarCtrl, enableMonthChange, 1}},
+ {1505, {wxCalendarCtrl, enableHolidayDisplay, 1}},
+ {1506, {wxCalendarCtrl, setHeaderColours, 2}},
+ {1507, {wxCalendarCtrl, getHeaderColourFg, 0}},
+ {1508, {wxCalendarCtrl, getHeaderColourBg, 0}},
+ {1509, {wxCalendarCtrl, setHighlightColours, 2}},
+ {1510, {wxCalendarCtrl, getHighlightColourFg, 0}},
+ {1511, {wxCalendarCtrl, getHighlightColourBg, 0}},
+ {1512, {wxCalendarCtrl, setHolidayColours, 2}},
+ {1513, {wxCalendarCtrl, getHolidayColourFg, 0}},
+ {1514, {wxCalendarCtrl, getHolidayColourBg, 0}},
+ {1515, {wxCalendarCtrl, getAttr, 1}},
+ {1516, {wxCalendarCtrl, setAttr, 2}},
+ {1517, {wxCalendarCtrl, setHoliday, 1}},
+ {1518, {wxCalendarCtrl, resetAttr, 1}},
+ {1519, {wxCalendarCtrl, hitTest, 2}},
+ {1520, {wxCalendarDateAttr, new_0, 0}},
+ {1521, {wxCalendarDateAttr, new_2_1, 2}},
+ {1522, {wxCalendarDateAttr, new_2_0, 2}},
+ {1523, {wxCalendarDateAttr, setTextColour, 1}},
+ {1524, {wxCalendarDateAttr, setBackgroundColour, 1}},
+ {1525, {wxCalendarDateAttr, setBorderColour, 1}},
+ {1526, {wxCalendarDateAttr, setFont, 1}},
+ {1527, {wxCalendarDateAttr, setBorder, 1}},
+ {1528, {wxCalendarDateAttr, setHoliday, 1}},
+ {1529, {wxCalendarDateAttr, hasTextColour, 0}},
+ {1530, {wxCalendarDateAttr, hasBackgroundColour, 0}},
+ {1531, {wxCalendarDateAttr, hasBorderColour, 0}},
+ {1532, {wxCalendarDateAttr, hasFont, 0}},
+ {1533, {wxCalendarDateAttr, hasBorder, 0}},
+ {1534, {wxCalendarDateAttr, isHoliday, 0}},
+ {1535, {wxCalendarDateAttr, getTextColour, 0}},
+ {1536, {wxCalendarDateAttr, getBackgroundColour, 0}},
+ {1537, {wxCalendarDateAttr, getBorderColour, 0}},
+ {1538, {wxCalendarDateAttr, getFont, 0}},
+ {1539, {wxCalendarDateAttr, getBorder, 0}},
+ {1540, {wxCalendarDateAttr, 'Destroy', undefined}},
+ {1542, {wxCheckBox, new_4, 4}},
+ {1543, {wxCheckBox, new_0, 0}},
+ {1544, {wxCheckBox, create, 4}},
+ {1545, {wxCheckBox, getValue, 0}},
+ {1546, {wxCheckBox, get3StateValue, 0}},
+ {1547, {wxCheckBox, is3rdStateAllowedForUser, 0}},
+ {1548, {wxCheckBox, is3State, 0}},
+ {1549, {wxCheckBox, isChecked, 0}},
+ {1550, {wxCheckBox, setValue, 1}},
+ {1551, {wxCheckBox, set3StateValue, 1}},
+ {1552, {wxCheckBox, 'Destroy', undefined}},
+ {1553, {wxCheckListBox, new_0, 0}},
+ {1555, {wxCheckListBox, new_3, 3}},
+ {1556, {wxCheckListBox, check, 2}},
+ {1557, {wxCheckListBox, isChecked, 1}},
+ {1558, {wxCheckListBox, 'Destroy', undefined}},
+ {1561, {wxChoice, new_3, 3}},
+ {1562, {wxChoice, new_0, 0}},
+ {1564, {wxChoice, destruct, 0}},
+ {1566, {wxChoice, create, 6}},
+ {1567, {wxChoice, delete, 1}},
+ {1568, {wxChoice, getColumns, 0}},
+ {1569, {wxChoice, setColumns, 1}},
+ {1570, {wxComboBox, new_0, 0}},
+ {1572, {wxComboBox, new_3, 3}},
+ {1573, {wxComboBox, destruct, 0}},
+ {1575, {wxComboBox, create, 7}},
+ {1576, {wxComboBox, canCopy, 0}},
+ {1577, {wxComboBox, canCut, 0}},
+ {1578, {wxComboBox, canPaste, 0}},
+ {1579, {wxComboBox, canRedo, 0}},
+ {1580, {wxComboBox, canUndo, 0}},
+ {1581, {wxComboBox, copy, 0}},
+ {1582, {wxComboBox, cut, 0}},
+ {1583, {wxComboBox, getInsertionPoint, 0}},
+ {1584, {wxComboBox, getLastPosition, 0}},
+ {1585, {wxComboBox, getValue, 0}},
+ {1586, {wxComboBox, paste, 0}},
+ {1587, {wxComboBox, redo, 0}},
+ {1588, {wxComboBox, replace, 3}},
+ {1589, {wxComboBox, remove, 2}},
+ {1590, {wxComboBox, setInsertionPoint, 1}},
+ {1591, {wxComboBox, setInsertionPointEnd, 0}},
+ {1592, {wxComboBox, setSelection_1, 1}},
+ {1593, {wxComboBox, setSelection_2, 2}},
+ {1594, {wxComboBox, setValue, 1}},
+ {1595, {wxComboBox, undo, 0}},
+ {1596, {wxGauge, new_0, 0}},
+ {1597, {wxGauge, new_4, 4}},
+ {1598, {wxGauge, create, 4}},
+ {1599, {wxGauge, getBezelFace, 0}},
+ {1600, {wxGauge, getRange, 0}},
+ {1601, {wxGauge, getShadowWidth, 0}},
+ {1602, {wxGauge, getValue, 0}},
+ {1603, {wxGauge, isVertical, 0}},
+ {1604, {wxGauge, setBezelFace, 1}},
+ {1605, {wxGauge, setRange, 1}},
+ {1606, {wxGauge, setShadowWidth, 1}},
+ {1607, {wxGauge, setValue, 1}},
+ {1608, {wxGauge, pulse, 0}},
+ {1609, {wxGauge, 'Destroy', undefined}},
+ {1610, {wxGenericDirCtrl, new_0, 0}},
+ {1611, {wxGenericDirCtrl, new_2, 2}},
+ {1612, {wxGenericDirCtrl, destruct, 0}},
+ {1613, {wxGenericDirCtrl, create, 2}},
+ {1614, {wxGenericDirCtrl, init, 0}},
+ {1615, {wxGenericDirCtrl, collapseTree, 0}},
+ {1616, {wxGenericDirCtrl, expandPath, 1}},
+ {1617, {wxGenericDirCtrl, getDefaultPath, 0}},
+ {1618, {wxGenericDirCtrl, getPath, 0}},
+ {1619, {wxGenericDirCtrl, getFilePath, 0}},
+ {1620, {wxGenericDirCtrl, getFilter, 0}},
+ {1621, {wxGenericDirCtrl, getFilterIndex, 0}},
+ {1622, {wxGenericDirCtrl, getRootId, 0}},
+ {1623, {wxGenericDirCtrl, getTreeCtrl, 0}},
+ {1624, {wxGenericDirCtrl, reCreateTree, 0}},
+ {1625, {wxGenericDirCtrl, setDefaultPath, 1}},
+ {1626, {wxGenericDirCtrl, setFilter, 1}},
+ {1627, {wxGenericDirCtrl, setFilterIndex, 1}},
+ {1628, {wxGenericDirCtrl, setPath, 1}},
+ {1630, {wxStaticBox, new_4, 4}},
+ {1631, {wxStaticBox, new_0, 0}},
+ {1632, {wxStaticBox, create, 4}},
+ {1633, {wxStaticBox, 'Destroy', undefined}},
+ {1635, {wxStaticLine, new_2, 2}},
+ {1636, {wxStaticLine, new_0, 0}},
+ {1637, {wxStaticLine, create, 2}},
+ {1638, {wxStaticLine, isVertical, 0}},
+ {1639, {wxStaticLine, getDefaultSize, 0}},
+ {1640, {wxStaticLine, 'Destroy', undefined}},
+ {1643, {wxListBox, new_3, 3}},
+ {1644, {wxListBox, new_0, 0}},
+ {1646, {wxListBox, destruct, 0}},
+ {1648, {wxListBox, create, 6}},
+ {1649, {wxListBox, deselect, 1}},
+ {1650, {wxListBox, getSelections, 1}},
+ {1651, {wxListBox, insertItems, 2}},
+ {1652, {wxListBox, isSelected, 1}},
+ {1654, {wxListBox, set, 2}},
+ {1655, {wxListBox, hitTest, 1}},
+ {1656, {wxListBox, setFirstItem_1_0, 1}},
+ {1657, {wxListBox, setFirstItem_1_1, 1}},
+ {1658, {wxListCtrl, new_0, 0}},
+ {1659, {wxListCtrl, new_2, 2}},
+ {1660, {wxListCtrl, arrange, 1}},
+ {1661, {wxListCtrl, assignImageList, 2}},
+ {1662, {wxListCtrl, clearAll, 0}},
+ {1663, {wxListCtrl, create, 2}},
+ {1664, {wxListCtrl, deleteAllItems, 0}},
+ {1665, {wxListCtrl, deleteColumn, 1}},
+ {1666, {wxListCtrl, deleteItem, 1}},
+ {1667, {wxListCtrl, editLabel, 1}},
+ {1668, {wxListCtrl, ensureVisible, 1}},
+ {1669, {wxListCtrl, findItem_3_0, 3}},
+ {1670, {wxListCtrl, findItem_3_1, 3}},
+ {1671, {wxListCtrl, getColumn, 2}},
+ {1672, {wxListCtrl, getColumnCount, 0}},
+ {1673, {wxListCtrl, getColumnWidth, 1}},
+ {1674, {wxListCtrl, getCountPerPage, 0}},
+ {1675, {wxListCtrl, getImageList, 1}},
+ {1676, {wxListCtrl, getItem, 1}},
+ {1677, {wxListCtrl, getItemBackgroundColour, 1}},
+ {1678, {wxListCtrl, getItemCount, 0}},
+ {1679, {wxListCtrl, getItemData, 1}},
+ {1680, {wxListCtrl, getItemFont, 1}},
+ {1681, {wxListCtrl, getItemPosition, 2}},
+ {1682, {wxListCtrl, getItemRect, 3}},
+ {1683, {wxListCtrl, getItemSpacing, 0}},
+ {1684, {wxListCtrl, getItemState, 2}},
+ {1685, {wxListCtrl, getItemText, 1}},
+ {1686, {wxListCtrl, getItemTextColour, 1}},
+ {1687, {wxListCtrl, getNextItem, 2}},
+ {1688, {wxListCtrl, getSelectedItemCount, 0}},
+ {1689, {wxListCtrl, getTextColour, 0}},
+ {1690, {wxListCtrl, getTopItem, 0}},
+ {1691, {wxListCtrl, getViewRect, 0}},
+ {1692, {wxListCtrl, hitTest, 2}},
+ {1693, {wxListCtrl, insertColumn_2, 2}},
+ {1694, {wxListCtrl, insertColumn_3, 3}},
+ {1695, {wxListCtrl, insertItem_1, 1}},
+ {1696, {wxListCtrl, insertItem_2_1, 2}},
+ {1697, {wxListCtrl, insertItem_2_0, 2}},
+ {1698, {wxListCtrl, insertItem_3, 3}},
+ {1699, {wxListCtrl, refreshItem, 1}},
+ {1700, {wxListCtrl, refreshItems, 2}},
+ {1701, {wxListCtrl, scrollList, 2}},
+ {1702, {wxListCtrl, setBackgroundColour, 1}},
+ {1703, {wxListCtrl, setColumn, 2}},
+ {1704, {wxListCtrl, setColumnWidth, 2}},
+ {1705, {wxListCtrl, setImageList, 2}},
+ {1706, {wxListCtrl, setItem_1, 1}},
+ {1707, {wxListCtrl, setItem_4, 4}},
+ {1708, {wxListCtrl, setItemBackgroundColour, 2}},
+ {1709, {wxListCtrl, setItemCount, 1}},
+ {1710, {wxListCtrl, setItemData, 2}},
+ {1711, {wxListCtrl, setItemFont, 2}},
+ {1712, {wxListCtrl, setItemImage, 3}},
+ {1713, {wxListCtrl, setItemColumnImage, 3}},
+ {1714, {wxListCtrl, setItemPosition, 2}},
+ {1715, {wxListCtrl, setItemState, 3}},
+ {1716, {wxListCtrl, setItemText, 2}},
+ {1717, {wxListCtrl, setItemTextColour, 2}},
+ {1718, {wxListCtrl, setSingleStyle, 2}},
+ {1719, {wxListCtrl, setTextColour, 1}},
+ {1720, {wxListCtrl, setWindowStyleFlag, 1}},
+ {1721, {wxListCtrl, sortItems, 2}},
+ {1722, {wxListCtrl, 'Destroy', undefined}},
+ {1723, {wxListView, clearColumnImage, 1}},
+ {1724, {wxListView, focus, 1}},
+ {1725, {wxListView, getFirstSelected, 0}},
+ {1726, {wxListView, getFocusedItem, 0}},
+ {1727, {wxListView, getNextSelected, 1}},
+ {1728, {wxListView, isSelected, 1}},
+ {1729, {wxListView, select, 2}},
+ {1730, {wxListView, setColumnImage, 2}},
+ {1731, {wxListItem, new_0, 0}},
+ {1732, {wxListItem, new_1, 1}},
+ {1733, {wxListItem, destruct, 0}},
+ {1734, {wxListItem, clear, 0}},
+ {1735, {wxListItem, getAlign, 0}},
+ {1736, {wxListItem, getBackgroundColour, 0}},
+ {1737, {wxListItem, getColumn, 0}},
+ {1738, {wxListItem, getFont, 0}},
+ {1739, {wxListItem, getId, 0}},
+ {1740, {wxListItem, getImage, 0}},
+ {1741, {wxListItem, getMask, 0}},
+ {1742, {wxListItem, getState, 0}},
+ {1743, {wxListItem, getText, 0}},
+ {1744, {wxListItem, getTextColour, 0}},
+ {1745, {wxListItem, getWidth, 0}},
+ {1746, {wxListItem, setAlign, 1}},
+ {1747, {wxListItem, setBackgroundColour, 1}},
+ {1748, {wxListItem, setColumn, 1}},
+ {1749, {wxListItem, setFont, 1}},
+ {1750, {wxListItem, setId, 1}},
+ {1751, {wxListItem, setImage, 1}},
+ {1752, {wxListItem, setMask, 1}},
+ {1753, {wxListItem, setState, 1}},
+ {1754, {wxListItem, setStateMask, 1}},
+ {1755, {wxListItem, setText, 1}},
+ {1756, {wxListItem, setTextColour, 1}},
+ {1757, {wxListItem, setWidth, 1}},
+ {1758, {wxImageList, new_0, 0}},
+ {1759, {wxImageList, new_3, 3}},
+ {1760, {wxImageList, add_1, 1}},
+ {1761, {wxImageList, add_2_0, 2}},
+ {1762, {wxImageList, add_2_1, 2}},
+ {1763, {wxImageList, create, 3}},
+ {1765, {wxImageList, draw, 5}},
+ {1766, {wxImageList, getBitmap, 1}},
+ {1767, {wxImageList, getIcon, 1}},
+ {1768, {wxImageList, getImageCount, 0}},
+ {1769, {wxImageList, getSize, 3}},
+ {1770, {wxImageList, remove, 1}},
+ {1771, {wxImageList, removeAll, 0}},
+ {1772, {wxImageList, replace_2, 2}},
+ {1773, {wxImageList, replace_3, 3}},
+ {1774, {wxImageList, 'Destroy', undefined}},
+ {1775, {wxTextAttr, new_0, 0}},
+ {1776, {wxTextAttr, new_2, 2}},
+ {1777, {wxTextAttr, getAlignment, 0}},
+ {1778, {wxTextAttr, getBackgroundColour, 0}},
+ {1779, {wxTextAttr, getFont, 0}},
+ {1780, {wxTextAttr, getLeftIndent, 0}},
+ {1781, {wxTextAttr, getLeftSubIndent, 0}},
+ {1782, {wxTextAttr, getRightIndent, 0}},
+ {1783, {wxTextAttr, getTabs, 0}},
+ {1784, {wxTextAttr, getTextColour, 0}},
+ {1785, {wxTextAttr, hasBackgroundColour, 0}},
+ {1786, {wxTextAttr, hasFont, 0}},
+ {1787, {wxTextAttr, hasTextColour, 0}},
+ {1788, {wxTextAttr, getFlags, 0}},
+ {1789, {wxTextAttr, isDefault, 0}},
+ {1790, {wxTextAttr, setAlignment, 1}},
+ {1791, {wxTextAttr, setBackgroundColour, 1}},
+ {1792, {wxTextAttr, setFlags, 1}},
+ {1793, {wxTextAttr, setFont, 2}},
+ {1794, {wxTextAttr, setLeftIndent, 2}},
+ {1795, {wxTextAttr, setRightIndent, 1}},
+ {1796, {wxTextAttr, setTabs, 1}},
+ {1797, {wxTextAttr, setTextColour, 1}},
+ {1798, {wxTextAttr, 'Destroy', undefined}},
+ {1800, {wxTextCtrl, new_3, 3}},
+ {1801, {wxTextCtrl, new_0, 0}},
+ {1803, {wxTextCtrl, destruct, 0}},
+ {1804, {wxTextCtrl, appendText, 1}},
+ {1805, {wxTextCtrl, canCopy, 0}},
+ {1806, {wxTextCtrl, canCut, 0}},
+ {1807, {wxTextCtrl, canPaste, 0}},
+ {1808, {wxTextCtrl, canRedo, 0}},
+ {1809, {wxTextCtrl, canUndo, 0}},
+ {1810, {wxTextCtrl, clear, 0}},
+ {1811, {wxTextCtrl, copy, 0}},
+ {1812, {wxTextCtrl, create, 3}},
+ {1813, {wxTextCtrl, cut, 0}},
+ {1814, {wxTextCtrl, discardEdits, 0}},
+ {1815, {wxTextCtrl, emulateKeyPress, 1}},
+ {1816, {wxTextCtrl, getDefaultStyle, 0}},
+ {1817, {wxTextCtrl, getInsertionPoint, 0}},
+ {1818, {wxTextCtrl, getLastPosition, 0}},
+ {1819, {wxTextCtrl, getLineLength, 1}},
+ {1820, {wxTextCtrl, getLineText, 1}},
+ {1821, {wxTextCtrl, getNumberOfLines, 0}},
+ {1822, {wxTextCtrl, getRange, 2}},
+ {1823, {wxTextCtrl, getSelection, 2}},
+ {1824, {wxTextCtrl, getStringSelection, 0}},
+ {1825, {wxTextCtrl, getStyle, 2}},
+ {1826, {wxTextCtrl, getValue, 0}},
+ {1827, {wxTextCtrl, isEditable, 0}},
+ {1828, {wxTextCtrl, isModified, 0}},
+ {1829, {wxTextCtrl, isMultiLine, 0}},
+ {1830, {wxTextCtrl, isSingleLine, 0}},
+ {1831, {wxTextCtrl, loadFile, 2}},
+ {1832, {wxTextCtrl, markDirty, 0}},
+ {1833, {wxTextCtrl, paste, 0}},
+ {1834, {wxTextCtrl, positionToXY, 3}},
+ {1835, {wxTextCtrl, redo, 0}},
+ {1836, {wxTextCtrl, remove, 2}},
+ {1837, {wxTextCtrl, replace, 3}},
+ {1838, {wxTextCtrl, saveFile, 1}},
+ {1839, {wxTextCtrl, setDefaultStyle, 1}},
+ {1840, {wxTextCtrl, setEditable, 1}},
+ {1841, {wxTextCtrl, setInsertionPoint, 1}},
+ {1842, {wxTextCtrl, setInsertionPointEnd, 0}},
+ {1844, {wxTextCtrl, setMaxLength, 1}},
+ {1845, {wxTextCtrl, setSelection, 2}},
+ {1846, {wxTextCtrl, setStyle, 3}},
+ {1847, {wxTextCtrl, setValue, 1}},
+ {1848, {wxTextCtrl, showPosition, 1}},
+ {1849, {wxTextCtrl, undo, 0}},
+ {1850, {wxTextCtrl, writeText, 1}},
+ {1851, {wxTextCtrl, xYToPosition, 2}},
+ {1854, {wxNotebook, new_0, 0}},
+ {1855, {wxNotebook, new_3, 3}},
+ {1856, {wxNotebook, destruct, 0}},
+ {1857, {wxNotebook, addPage, 3}},
+ {1858, {wxNotebook, advanceSelection, 1}},
+ {1859, {wxNotebook, assignImageList, 1}},
+ {1860, {wxNotebook, create, 3}},
+ {1861, {wxNotebook, deleteAllPages, 0}},
+ {1862, {wxNotebook, deletePage, 1}},
+ {1863, {wxNotebook, removePage, 1}},
+ {1864, {wxNotebook, getCurrentPage, 0}},
+ {1865, {wxNotebook, getImageList, 0}},
+ {1867, {wxNotebook, getPage, 1}},
+ {1868, {wxNotebook, getPageCount, 0}},
+ {1869, {wxNotebook, getPageImage, 1}},
+ {1870, {wxNotebook, getPageText, 1}},
+ {1871, {wxNotebook, getRowCount, 0}},
+ {1872, {wxNotebook, getSelection, 0}},
+ {1873, {wxNotebook, getThemeBackgroundColour, 0}},
+ {1875, {wxNotebook, hitTest, 2}},
+ {1877, {wxNotebook, insertPage, 4}},
+ {1878, {wxNotebook, setImageList, 1}},
+ {1879, {wxNotebook, setPadding, 1}},
+ {1880, {wxNotebook, setPageSize, 1}},
+ {1881, {wxNotebook, setPageImage, 2}},
+ {1882, {wxNotebook, setPageText, 2}},
+ {1883, {wxNotebook, setSelection, 1}},
+ {1884, {wxNotebook, changeSelection, 1}},
+ {1885, {wxChoicebook, new_0, 0}},
+ {1886, {wxChoicebook, new_3, 3}},
+ {1887, {wxChoicebook, addPage, 3}},
+ {1888, {wxChoicebook, advanceSelection, 1}},
+ {1889, {wxChoicebook, assignImageList, 1}},
+ {1890, {wxChoicebook, create, 3}},
+ {1891, {wxChoicebook, deleteAllPages, 0}},
+ {1892, {wxChoicebook, deletePage, 1}},
+ {1893, {wxChoicebook, removePage, 1}},
+ {1894, {wxChoicebook, getCurrentPage, 0}},
+ {1895, {wxChoicebook, getImageList, 0}},
+ {1897, {wxChoicebook, getPage, 1}},
+ {1898, {wxChoicebook, getPageCount, 0}},
+ {1899, {wxChoicebook, getPageImage, 1}},
+ {1900, {wxChoicebook, getPageText, 1}},
+ {1901, {wxChoicebook, getSelection, 0}},
+ {1902, {wxChoicebook, hitTest, 2}},
+ {1903, {wxChoicebook, insertPage, 4}},
+ {1904, {wxChoicebook, setImageList, 1}},
+ {1905, {wxChoicebook, setPageSize, 1}},
+ {1906, {wxChoicebook, setPageImage, 2}},
+ {1907, {wxChoicebook, setPageText, 2}},
+ {1908, {wxChoicebook, setSelection, 1}},
+ {1909, {wxChoicebook, changeSelection, 1}},
+ {1910, {wxChoicebook, 'Destroy', undefined}},
+ {1911, {wxToolbook, new_0, 0}},
+ {1912, {wxToolbook, new_3, 3}},
+ {1913, {wxToolbook, addPage, 3}},
+ {1914, {wxToolbook, advanceSelection, 1}},
+ {1915, {wxToolbook, assignImageList, 1}},
+ {1916, {wxToolbook, create, 3}},
+ {1917, {wxToolbook, deleteAllPages, 0}},
+ {1918, {wxToolbook, deletePage, 1}},
+ {1919, {wxToolbook, removePage, 1}},
+ {1920, {wxToolbook, getCurrentPage, 0}},
+ {1921, {wxToolbook, getImageList, 0}},
+ {1923, {wxToolbook, getPage, 1}},
+ {1924, {wxToolbook, getPageCount, 0}},
+ {1925, {wxToolbook, getPageImage, 1}},
+ {1926, {wxToolbook, getPageText, 1}},
+ {1927, {wxToolbook, getSelection, 0}},
+ {1929, {wxToolbook, hitTest, 2}},
+ {1930, {wxToolbook, insertPage, 4}},
+ {1931, {wxToolbook, setImageList, 1}},
+ {1932, {wxToolbook, setPageSize, 1}},
+ {1933, {wxToolbook, setPageImage, 2}},
+ {1934, {wxToolbook, setPageText, 2}},
+ {1935, {wxToolbook, setSelection, 1}},
+ {1936, {wxToolbook, changeSelection, 1}},
+ {1937, {wxToolbook, 'Destroy', undefined}},
+ {1938, {wxListbook, new_0, 0}},
+ {1939, {wxListbook, new_3, 3}},
+ {1940, {wxListbook, addPage, 3}},
+ {1941, {wxListbook, advanceSelection, 1}},
+ {1942, {wxListbook, assignImageList, 1}},
+ {1943, {wxListbook, create, 3}},
+ {1944, {wxListbook, deleteAllPages, 0}},
+ {1945, {wxListbook, deletePage, 1}},
+ {1946, {wxListbook, removePage, 1}},
+ {1947, {wxListbook, getCurrentPage, 0}},
+ {1948, {wxListbook, getImageList, 0}},
+ {1950, {wxListbook, getPage, 1}},
+ {1951, {wxListbook, getPageCount, 0}},
+ {1952, {wxListbook, getPageImage, 1}},
+ {1953, {wxListbook, getPageText, 1}},
+ {1954, {wxListbook, getSelection, 0}},
+ {1956, {wxListbook, hitTest, 2}},
+ {1957, {wxListbook, insertPage, 4}},
+ {1958, {wxListbook, setImageList, 1}},
+ {1959, {wxListbook, setPageSize, 1}},
+ {1960, {wxListbook, setPageImage, 2}},
+ {1961, {wxListbook, setPageText, 2}},
+ {1962, {wxListbook, setSelection, 1}},
+ {1963, {wxListbook, changeSelection, 1}},
+ {1964, {wxListbook, 'Destroy', undefined}},
+ {1965, {wxTreebook, new_0, 0}},
+ {1966, {wxTreebook, new_3, 3}},
+ {1967, {wxTreebook, addPage, 3}},
+ {1968, {wxTreebook, advanceSelection, 1}},
+ {1969, {wxTreebook, assignImageList, 1}},
+ {1970, {wxTreebook, create, 3}},
+ {1971, {wxTreebook, deleteAllPages, 0}},
+ {1972, {wxTreebook, deletePage, 1}},
+ {1973, {wxTreebook, removePage, 1}},
+ {1974, {wxTreebook, getCurrentPage, 0}},
+ {1975, {wxTreebook, getImageList, 0}},
+ {1977, {wxTreebook, getPage, 1}},
+ {1978, {wxTreebook, getPageCount, 0}},
+ {1979, {wxTreebook, getPageImage, 1}},
+ {1980, {wxTreebook, getPageText, 1}},
+ {1981, {wxTreebook, getSelection, 0}},
+ {1982, {wxTreebook, expandNode, 2}},
+ {1983, {wxTreebook, isNodeExpanded, 1}},
+ {1985, {wxTreebook, hitTest, 2}},
+ {1986, {wxTreebook, insertPage, 4}},
+ {1987, {wxTreebook, insertSubPage, 4}},
+ {1988, {wxTreebook, setImageList, 1}},
+ {1989, {wxTreebook, setPageSize, 1}},
+ {1990, {wxTreebook, setPageImage, 2}},
+ {1991, {wxTreebook, setPageText, 2}},
+ {1992, {wxTreebook, setSelection, 1}},
+ {1993, {wxTreebook, changeSelection, 1}},
+ {1994, {wxTreebook, 'Destroy', undefined}},
+ {1997, {wxTreeCtrl, new_2, 2}},
+ {1998, {wxTreeCtrl, new_0, 0}},
+ {2000, {wxTreeCtrl, destruct, 0}},
+ {2001, {wxTreeCtrl, addRoot, 2}},
+ {2002, {wxTreeCtrl, appendItem, 3}},
+ {2003, {wxTreeCtrl, assignImageList, 1}},
+ {2004, {wxTreeCtrl, assignStateImageList, 1}},
+ {2005, {wxTreeCtrl, collapse, 1}},
+ {2006, {wxTreeCtrl, collapseAndReset, 1}},
+ {2007, {wxTreeCtrl, create, 2}},
+ {2008, {wxTreeCtrl, delete, 1}},
+ {2009, {wxTreeCtrl, deleteAllItems, 0}},
+ {2010, {wxTreeCtrl, deleteChildren, 1}},
+ {2011, {wxTreeCtrl, ensureVisible, 1}},
+ {2012, {wxTreeCtrl, expand, 1}},
+ {2013, {wxTreeCtrl, getBoundingRect, 3}},
+ {2015, {wxTreeCtrl, getChildrenCount, 2}},
+ {2016, {wxTreeCtrl, getCount, 0}},
+ {2017, {wxTreeCtrl, getEditControl, 0}},
+ {2018, {wxTreeCtrl, getFirstVisibleItem, 0}},
+ {2019, {wxTreeCtrl, getImageList, 0}},
+ {2020, {wxTreeCtrl, getIndent, 0}},
+ {2021, {wxTreeCtrl, getItemBackgroundColour, 1}},
+ {2022, {wxTreeCtrl, getItemData, 1}},
+ {2023, {wxTreeCtrl, getItemFont, 1}},
+ {2024, {wxTreeCtrl, getItemImage_1, 1}},
+ {2025, {wxTreeCtrl, getItemImage_2, 2}},
+ {2026, {wxTreeCtrl, getItemText, 1}},
+ {2027, {wxTreeCtrl, getItemTextColour, 1}},
+ {2028, {wxTreeCtrl, getLastChild, 1}},
+ {2029, {wxTreeCtrl, getNextSibling, 1}},
+ {2030, {wxTreeCtrl, getNextVisible, 1}},
+ {2031, {wxTreeCtrl, getItemParent, 1}},
+ {2032, {wxTreeCtrl, getPrevSibling, 1}},
+ {2033, {wxTreeCtrl, getPrevVisible, 1}},
+ {2034, {wxTreeCtrl, getRootItem, 0}},
+ {2035, {wxTreeCtrl, getSelection, 0}},
+ {2036, {wxTreeCtrl, getSelections, 1}},
+ {2037, {wxTreeCtrl, getStateImageList, 0}},
+ {2038, {wxTreeCtrl, hitTest, 1}},
+ {2039, {wxTreeCtrl, insertItem_4_1, 4}},
+ {2040, {wxTreeCtrl, insertItem_4_0, 4}},
+ {2041, {wxTreeCtrl, isBold, 1}},
+ {2042, {wxTreeCtrl, isExpanded, 1}},
+ {2043, {wxTreeCtrl, isSelected, 1}},
+ {2044, {wxTreeCtrl, isVisible, 1}},
+ {2045, {wxTreeCtrl, itemHasChildren, 1}},
+ {2046, {wxTreeCtrl, prependItem, 3}},
+ {2047, {wxTreeCtrl, scrollTo, 1}},
+ {2048, {wxTreeCtrl, selectItem_1, 1}},
+ {2049, {wxTreeCtrl, selectItem_2, 2}},
+ {2050, {wxTreeCtrl, setIndent, 1}},
+ {2051, {wxTreeCtrl, setImageList, 1}},
+ {2052, {wxTreeCtrl, setItemBackgroundColour, 2}},
+ {2053, {wxTreeCtrl, setItemBold, 2}},
+ {2054, {wxTreeCtrl, setItemData, 2}},
+ {2055, {wxTreeCtrl, setItemDropHighlight, 2}},
+ {2056, {wxTreeCtrl, setItemFont, 2}},
+ {2057, {wxTreeCtrl, setItemHasChildren, 2}},
+ {2058, {wxTreeCtrl, setItemImage_2, 2}},
+ {2059, {wxTreeCtrl, setItemImage_3, 3}},
+ {2060, {wxTreeCtrl, setItemText, 2}},
+ {2061, {wxTreeCtrl, setItemTextColour, 2}},
+ {2062, {wxTreeCtrl, setStateImageList, 1}},
+ {2063, {wxTreeCtrl, setWindowStyle, 1}},
+ {2064, {wxTreeCtrl, sortChildren, 1}},
+ {2065, {wxTreeCtrl, toggle, 1}},
+ {2066, {wxTreeCtrl, toggleItemSelection, 1}},
+ {2067, {wxTreeCtrl, unselect, 0}},
+ {2068, {wxTreeCtrl, unselectAll, 0}},
+ {2069, {wxTreeCtrl, unselectItem, 1}},
+ {2070, {wxScrollBar, new_0, 0}},
+ {2071, {wxScrollBar, new_3, 3}},
+ {2072, {wxScrollBar, destruct, 0}},
+ {2073, {wxScrollBar, create, 3}},
+ {2074, {wxScrollBar, getRange, 0}},
+ {2075, {wxScrollBar, getPageSize, 0}},
+ {2076, {wxScrollBar, getThumbPosition, 0}},
+ {2077, {wxScrollBar, getThumbSize, 0}},
+ {2078, {wxScrollBar, setThumbPosition, 1}},
+ {2079, {wxScrollBar, setScrollbar, 5}},
+ {2081, {wxSpinButton, new_2, 2}},
+ {2082, {wxSpinButton, new_0, 0}},
+ {2083, {wxSpinButton, create, 2}},
+ {2084, {wxSpinButton, getMax, 0}},
+ {2085, {wxSpinButton, getMin, 0}},
+ {2086, {wxSpinButton, getValue, 0}},
+ {2087, {wxSpinButton, setRange, 2}},
+ {2088, {wxSpinButton, setValue, 1}},
+ {2089, {wxSpinButton, 'Destroy', undefined}},
+ {2090, {wxSpinCtrl, new_0, 0}},
+ {2091, {wxSpinCtrl, new_2, 2}},
+ {2093, {wxSpinCtrl, create, 2}},
+ {2096, {wxSpinCtrl, setValue_1_1, 1}},
+ {2097, {wxSpinCtrl, setValue_1_0, 1}},
+ {2099, {wxSpinCtrl, getValue, 0}},
+ {2101, {wxSpinCtrl, setRange, 2}},
+ {2102, {wxSpinCtrl, setSelection, 2}},
+ {2104, {wxSpinCtrl, getMin, 0}},
+ {2106, {wxSpinCtrl, getMax, 0}},
+ {2107, {wxSpinCtrl, 'Destroy', undefined}},
+ {2108, {wxStaticText, new_0, 0}},
+ {2109, {wxStaticText, new_4, 4}},
+ {2110, {wxStaticText, create, 4}},
+ {2111, {wxStaticText, getLabel, 0}},
+ {2112, {wxStaticText, setLabel, 1}},
+ {2113, {wxStaticText, wrap, 1}},
+ {2114, {wxStaticText, 'Destroy', undefined}},
+ {2115, {wxStaticBitmap, new_0, 0}},
+ {2116, {wxStaticBitmap, new_4, 4}},
+ {2117, {wxStaticBitmap, create, 4}},
+ {2118, {wxStaticBitmap, getBitmap, 0}},
+ {2119, {wxStaticBitmap, setBitmap, 1}},
+ {2120, {wxStaticBitmap, 'Destroy', undefined}},
+ {2121, {wxRadioBox, new, 7}},
+ {2123, {wxRadioBox, destruct, 0}},
+ {2124, {wxRadioBox, create, 7}},
+ {2125, {wxRadioBox, enable_2, 2}},
+ {2126, {wxRadioBox, enable_1, 1}},
+ {2127, {wxRadioBox, getSelection, 0}},
+ {2128, {wxRadioBox, getString, 1}},
+ {2129, {wxRadioBox, setSelection, 1}},
+ {2130, {wxRadioBox, show_2, 2}},
+ {2131, {wxRadioBox, show_1, 1}},
+ {2132, {wxRadioBox, getColumnCount, 0}},
+ {2133, {wxRadioBox, getItemHelpText, 1}},
+ {2134, {wxRadioBox, getItemToolTip, 1}},
+ {2136, {wxRadioBox, getItemFromPoint, 1}},
+ {2137, {wxRadioBox, getRowCount, 0}},
+ {2138, {wxRadioBox, isItemEnabled, 1}},
+ {2139, {wxRadioBox, isItemShown, 1}},
+ {2140, {wxRadioBox, setItemHelpText, 2}},
+ {2141, {wxRadioBox, setItemToolTip, 2}},
+ {2142, {wxRadioButton, new_0, 0}},
+ {2143, {wxRadioButton, new_4, 4}},
+ {2144, {wxRadioButton, create, 4}},
+ {2145, {wxRadioButton, getValue, 0}},
+ {2146, {wxRadioButton, setValue, 1}},
+ {2147, {wxRadioButton, 'Destroy', undefined}},
+ {2149, {wxSlider, new_6, 6}},
+ {2150, {wxSlider, new_0, 0}},
+ {2151, {wxSlider, create, 6}},
+ {2152, {wxSlider, getLineSize, 0}},
+ {2153, {wxSlider, getMax, 0}},
+ {2154, {wxSlider, getMin, 0}},
+ {2155, {wxSlider, getPageSize, 0}},
+ {2156, {wxSlider, getThumbLength, 0}},
+ {2157, {wxSlider, getValue, 0}},
+ {2158, {wxSlider, setLineSize, 1}},
+ {2159, {wxSlider, setPageSize, 1}},
+ {2160, {wxSlider, setRange, 2}},
+ {2161, {wxSlider, setThumbLength, 1}},
+ {2162, {wxSlider, setValue, 1}},
+ {2163, {wxSlider, 'Destroy', undefined}},
+ {2165, {wxDialog, new_4, 4}},
+ {2166, {wxDialog, new_0, 0}},
+ {2168, {wxDialog, destruct, 0}},
+ {2169, {wxDialog, create, 4}},
+ {2170, {wxDialog, createButtonSizer, 1}},
+ {2171, {wxDialog, createStdDialogButtonSizer, 1}},
+ {2172, {wxDialog, endModal, 1}},
+ {2173, {wxDialog, getAffirmativeId, 0}},
+ {2174, {wxDialog, getReturnCode, 0}},
+ {2175, {wxDialog, isModal, 0}},
+ {2176, {wxDialog, setAffirmativeId, 1}},
+ {2177, {wxDialog, setReturnCode, 1}},
+ {2178, {wxDialog, show, 1}},
+ {2179, {wxDialog, showModal, 0}},
+ {2180, {wxColourDialog, new_0, 0}},
+ {2181, {wxColourDialog, new_2, 2}},
+ {2182, {wxColourDialog, destruct, 0}},
+ {2183, {wxColourDialog, create, 2}},
+ {2184, {wxColourDialog, getColourData, 0}},
+ {2185, {wxColourData, new_0, 0}},
+ {2186, {wxColourData, new_1, 1}},
+ {2187, {wxColourData, destruct, 0}},
+ {2188, {wxColourData, getChooseFull, 0}},
+ {2189, {wxColourData, getColour, 0}},
+ {2191, {wxColourData, getCustomColour, 1}},
+ {2192, {wxColourData, setChooseFull, 1}},
+ {2193, {wxColourData, setColour, 1}},
+ {2194, {wxColourData, setCustomColour, 2}},
+ {2195, {wxPalette, new_0, 0}},
+ {2196, {wxPalette, new_4, 4}},
+ {2198, {wxPalette, destruct, 0}},
+ {2199, {wxPalette, create, 4}},
+ {2200, {wxPalette, getColoursCount, 0}},
+ {2201, {wxPalette, getPixel, 3}},
+ {2202, {wxPalette, getRGB, 4}},
+ {2203, {wxPalette, isOk, 0}},
+ {2207, {wxDirDialog, new, 2}},
+ {2208, {wxDirDialog, destruct, 0}},
+ {2209, {wxDirDialog, getPath, 0}},
+ {2210, {wxDirDialog, getMessage, 0}},
+ {2211, {wxDirDialog, setMessage, 1}},
+ {2212, {wxDirDialog, setPath, 1}},
+ {2216, {wxFileDialog, new, 2}},
+ {2217, {wxFileDialog, destruct, 0}},
+ {2218, {wxFileDialog, getDirectory, 0}},
+ {2219, {wxFileDialog, getFilename, 0}},
+ {2220, {wxFileDialog, getFilenames, 1}},
+ {2221, {wxFileDialog, getFilterIndex, 0}},
+ {2222, {wxFileDialog, getMessage, 0}},
+ {2223, {wxFileDialog, getPath, 0}},
+ {2224, {wxFileDialog, getPaths, 1}},
+ {2225, {wxFileDialog, getWildcard, 0}},
+ {2226, {wxFileDialog, setDirectory, 1}},
+ {2227, {wxFileDialog, setFilename, 1}},
+ {2228, {wxFileDialog, setFilterIndex, 1}},
+ {2229, {wxFileDialog, setMessage, 1}},
+ {2230, {wxFileDialog, setPath, 1}},
+ {2231, {wxFileDialog, setWildcard, 1}},
+ {2232, {wxPickerBase, setInternalMargin, 1}},
+ {2233, {wxPickerBase, getInternalMargin, 0}},
+ {2234, {wxPickerBase, setTextCtrlProportion, 1}},
+ {2235, {wxPickerBase, setPickerCtrlProportion, 1}},
+ {2236, {wxPickerBase, getTextCtrlProportion, 0}},
+ {2237, {wxPickerBase, getPickerCtrlProportion, 0}},
+ {2238, {wxPickerBase, hasTextCtrl, 0}},
+ {2239, {wxPickerBase, getTextCtrl, 0}},
+ {2240, {wxPickerBase, isTextCtrlGrowable, 0}},
+ {2241, {wxPickerBase, setPickerCtrlGrowable, 1}},
+ {2242, {wxPickerBase, setTextCtrlGrowable, 1}},
+ {2243, {wxPickerBase, isPickerCtrlGrowable, 0}},
+ {2244, {wxFilePickerCtrl, new_0, 0}},
+ {2245, {wxFilePickerCtrl, new_3, 3}},
+ {2246, {wxFilePickerCtrl, create, 3}},
+ {2247, {wxFilePickerCtrl, getPath, 0}},
+ {2248, {wxFilePickerCtrl, setPath, 1}},
+ {2249, {wxFilePickerCtrl, 'Destroy', undefined}},
+ {2250, {wxDirPickerCtrl, new_0, 0}},
+ {2251, {wxDirPickerCtrl, new_3, 3}},
+ {2252, {wxDirPickerCtrl, create, 3}},
+ {2253, {wxDirPickerCtrl, getPath, 0}},
+ {2254, {wxDirPickerCtrl, setPath, 1}},
+ {2255, {wxDirPickerCtrl, 'Destroy', undefined}},
+ {2256, {wxColourPickerCtrl, new_0, 0}},
+ {2257, {wxColourPickerCtrl, new_3, 3}},
+ {2258, {wxColourPickerCtrl, create, 3}},
+ {2259, {wxColourPickerCtrl, getColour, 0}},
+ {2260, {wxColourPickerCtrl, setColour_1_1, 1}},
+ {2261, {wxColourPickerCtrl, setColour_1_0, 1}},
+ {2262, {wxColourPickerCtrl, 'Destroy', undefined}},
+ {2263, {wxDatePickerCtrl, new_0, 0}},
+ {2264, {wxDatePickerCtrl, new_3, 3}},
+ {2265, {wxDatePickerCtrl, getRange, 2}},
+ {2266, {wxDatePickerCtrl, getValue, 0}},
+ {2267, {wxDatePickerCtrl, setRange, 2}},
+ {2268, {wxDatePickerCtrl, setValue, 1}},
+ {2269, {wxDatePickerCtrl, 'Destroy', undefined}},
+ {2270, {wxFontPickerCtrl, new_0, 0}},
+ {2271, {wxFontPickerCtrl, new_3, 3}},
+ {2272, {wxFontPickerCtrl, create, 3}},
+ {2273, {wxFontPickerCtrl, getSelectedFont, 0}},
+ {2274, {wxFontPickerCtrl, setSelectedFont, 1}},
+ {2275, {wxFontPickerCtrl, getMaxPointSize, 0}},
+ {2276, {wxFontPickerCtrl, setMaxPointSize, 1}},
+ {2277, {wxFontPickerCtrl, 'Destroy', undefined}},
+ {2280, {wxFindReplaceDialog, new_0, 0}},
+ {2281, {wxFindReplaceDialog, new_4, 4}},
+ {2282, {wxFindReplaceDialog, destruct, 0}},
+ {2283, {wxFindReplaceDialog, create, 4}},
+ {2284, {wxFindReplaceDialog, getData, 0}},
+ {2285, {wxFindReplaceData, new_0, 0}},
+ {2286, {wxFindReplaceData, new_1, 1}},
+ {2287, {wxFindReplaceData, getFindString, 0}},
+ {2288, {wxFindReplaceData, getReplaceString, 0}},
+ {2289, {wxFindReplaceData, getFlags, 0}},
+ {2290, {wxFindReplaceData, setFlags, 1}},
+ {2291, {wxFindReplaceData, setFindString, 1}},
+ {2292, {wxFindReplaceData, setReplaceString, 1}},
+ {2293, {wxFindReplaceData, 'Destroy', undefined}},
+ {2294, {wxMultiChoiceDialog, new_0, 0}},
+ {2296, {wxMultiChoiceDialog, new_5, 5}},
+ {2297, {wxMultiChoiceDialog, getSelections, 0}},
+ {2298, {wxMultiChoiceDialog, setSelections, 1}},
+ {2299, {wxMultiChoiceDialog, 'Destroy', undefined}},
+ {2300, {wxSingleChoiceDialog, new_0, 0}},
+ {2302, {wxSingleChoiceDialog, new_5, 5}},
+ {2303, {wxSingleChoiceDialog, getSelection, 0}},
+ {2304, {wxSingleChoiceDialog, getStringSelection, 0}},
+ {2305, {wxSingleChoiceDialog, setSelection, 1}},
+ {2306, {wxSingleChoiceDialog, 'Destroy', undefined}},
+ {2307, {wxTextEntryDialog, new, 3}},
+ {2308, {wxTextEntryDialog, getValue, 0}},
+ {2309, {wxTextEntryDialog, setValue, 1}},
+ {2310, {wxTextEntryDialog, 'Destroy', undefined}},
+ {2311, {wxPasswordEntryDialog, new, 3}},
+ {2312, {wxPasswordEntryDialog, 'Destroy', undefined}},
+ {2313, {wxFontData, new_0, 0}},
+ {2314, {wxFontData, new_1, 1}},
+ {2315, {wxFontData, destruct, 0}},
+ {2316, {wxFontData, enableEffects, 1}},
+ {2317, {wxFontData, getAllowSymbols, 0}},
+ {2318, {wxFontData, getColour, 0}},
+ {2319, {wxFontData, getChosenFont, 0}},
+ {2320, {wxFontData, getEnableEffects, 0}},
+ {2321, {wxFontData, getInitialFont, 0}},
+ {2322, {wxFontData, getShowHelp, 0}},
+ {2323, {wxFontData, setAllowSymbols, 1}},
+ {2324, {wxFontData, setChosenFont, 1}},
+ {2325, {wxFontData, setColour, 1}},
+ {2326, {wxFontData, setInitialFont, 1}},
+ {2327, {wxFontData, setRange, 2}},
+ {2328, {wxFontData, setShowHelp, 1}},
+ {2332, {wxFontDialog, new_0, 0}},
+ {2334, {wxFontDialog, new_2, 2}},
+ {2336, {wxFontDialog, create, 2}},
+ {2337, {wxFontDialog, getFontData, 0}},
+ {2339, {wxFontDialog, 'Destroy', undefined}},
+ {2340, {wxProgressDialog, new, 3}},
+ {2341, {wxProgressDialog, destruct, 0}},
+ {2342, {wxProgressDialog, resume, 0}},
+ {2343, {wxProgressDialog, update_2, 2}},
+ {2344, {wxProgressDialog, update_0, 0}},
+ {2345, {wxMessageDialog, new, 3}},
+ {2346, {wxMessageDialog, destruct, 0}},
+ {2347, {wxPageSetupDialog, new, 2}},
+ {2348, {wxPageSetupDialog, destruct, 0}},
+ {2349, {wxPageSetupDialog, getPageSetupData, 0}},
+ {2350, {wxPageSetupDialog, showModal, 0}},
+ {2351, {wxPageSetupDialogData, new_0, 0}},
+ {2352, {wxPageSetupDialogData, new_1_0, 1}},
+ {2353, {wxPageSetupDialogData, new_1_1, 1}},
+ {2354, {wxPageSetupDialogData, destruct, 0}},
+ {2355, {wxPageSetupDialogData, enableHelp, 1}},
+ {2356, {wxPageSetupDialogData, enableMargins, 1}},
+ {2357, {wxPageSetupDialogData, enableOrientation, 1}},
+ {2358, {wxPageSetupDialogData, enablePaper, 1}},
+ {2359, {wxPageSetupDialogData, enablePrinter, 1}},
+ {2360, {wxPageSetupDialogData, getDefaultMinMargins, 0}},
+ {2361, {wxPageSetupDialogData, getEnableMargins, 0}},
+ {2362, {wxPageSetupDialogData, getEnableOrientation, 0}},
+ {2363, {wxPageSetupDialogData, getEnablePaper, 0}},
+ {2364, {wxPageSetupDialogData, getEnablePrinter, 0}},
+ {2365, {wxPageSetupDialogData, getEnableHelp, 0}},
+ {2366, {wxPageSetupDialogData, getDefaultInfo, 0}},
+ {2367, {wxPageSetupDialogData, getMarginTopLeft, 0}},
+ {2368, {wxPageSetupDialogData, getMarginBottomRight, 0}},
+ {2369, {wxPageSetupDialogData, getMinMarginTopLeft, 0}},
+ {2370, {wxPageSetupDialogData, getMinMarginBottomRight, 0}},
+ {2371, {wxPageSetupDialogData, getPaperId, 0}},
+ {2372, {wxPageSetupDialogData, getPaperSize, 0}},
+ {2374, {wxPageSetupDialogData, getPrintData, 0}},
+ {2375, {wxPageSetupDialogData, isOk, 0}},
+ {2376, {wxPageSetupDialogData, setDefaultInfo, 1}},
+ {2377, {wxPageSetupDialogData, setDefaultMinMargins, 1}},
+ {2378, {wxPageSetupDialogData, setMarginTopLeft, 1}},
+ {2379, {wxPageSetupDialogData, setMarginBottomRight, 1}},
+ {2380, {wxPageSetupDialogData, setMinMarginTopLeft, 1}},
+ {2381, {wxPageSetupDialogData, setMinMarginBottomRight, 1}},
+ {2382, {wxPageSetupDialogData, setPaperId, 1}},
+ {2383, {wxPageSetupDialogData, setPaperSize_1_1, 1}},
+ {2384, {wxPageSetupDialogData, setPaperSize_1_0, 1}},
+ {2385, {wxPageSetupDialogData, setPrintData, 1}},
+ {2386, {wxPrintDialog, new_2_0, 2}},
+ {2387, {wxPrintDialog, new_2_1, 2}},
+ {2388, {wxPrintDialog, destruct, 0}},
+ {2389, {wxPrintDialog, getPrintDialogData, 0}},
+ {2390, {wxPrintDialog, getPrintDC, 0}},
+ {2391, {wxPrintDialogData, new_0, 0}},
+ {2392, {wxPrintDialogData, new_1_1, 1}},
+ {2393, {wxPrintDialogData, new_1_0, 1}},
+ {2394, {wxPrintDialogData, destruct, 0}},
+ {2395, {wxPrintDialogData, enableHelp, 1}},
+ {2396, {wxPrintDialogData, enablePageNumbers, 1}},
+ {2397, {wxPrintDialogData, enablePrintToFile, 1}},
+ {2398, {wxPrintDialogData, enableSelection, 1}},
+ {2399, {wxPrintDialogData, getAllPages, 0}},
+ {2400, {wxPrintDialogData, getCollate, 0}},
+ {2401, {wxPrintDialogData, getFromPage, 0}},
+ {2402, {wxPrintDialogData, getMaxPage, 0}},
+ {2403, {wxPrintDialogData, getMinPage, 0}},
+ {2404, {wxPrintDialogData, getNoCopies, 0}},
+ {2405, {wxPrintDialogData, getPrintData, 0}},
+ {2406, {wxPrintDialogData, getPrintToFile, 0}},
+ {2407, {wxPrintDialogData, getSelection, 0}},
+ {2408, {wxPrintDialogData, getToPage, 0}},
+ {2409, {wxPrintDialogData, isOk, 0}},
+ {2410, {wxPrintDialogData, setCollate, 1}},
+ {2411, {wxPrintDialogData, setFromPage, 1}},
+ {2412, {wxPrintDialogData, setMaxPage, 1}},
+ {2413, {wxPrintDialogData, setMinPage, 1}},
+ {2414, {wxPrintDialogData, setNoCopies, 1}},
+ {2415, {wxPrintDialogData, setPrintData, 1}},
+ {2416, {wxPrintDialogData, setPrintToFile, 1}},
+ {2417, {wxPrintDialogData, setSelection, 1}},
+ {2418, {wxPrintDialogData, setToPage, 1}},
+ {2419, {wxPrintData, new_0, 0}},
+ {2420, {wxPrintData, new_1, 1}},
+ {2421, {wxPrintData, destruct, 0}},
+ {2422, {wxPrintData, getCollate, 0}},
+ {2423, {wxPrintData, getBin, 0}},
+ {2424, {wxPrintData, getColour, 0}},
+ {2425, {wxPrintData, getDuplex, 0}},
+ {2426, {wxPrintData, getNoCopies, 0}},
+ {2427, {wxPrintData, getOrientation, 0}},
+ {2428, {wxPrintData, getPaperId, 0}},
+ {2429, {wxPrintData, getPrinterName, 0}},
+ {2430, {wxPrintData, getQuality, 0}},
+ {2431, {wxPrintData, isOk, 0}},
+ {2432, {wxPrintData, setBin, 1}},
+ {2433, {wxPrintData, setCollate, 1}},
+ {2434, {wxPrintData, setColour, 1}},
+ {2435, {wxPrintData, setDuplex, 1}},
+ {2436, {wxPrintData, setNoCopies, 1}},
+ {2437, {wxPrintData, setOrientation, 1}},
+ {2438, {wxPrintData, setPaperId, 1}},
+ {2439, {wxPrintData, setPrinterName, 1}},
+ {2440, {wxPrintData, setQuality, 1}},
+ {2443, {wxPrintPreview, new_2, 2}},
+ {2444, {wxPrintPreview, new_3, 3}},
+ {2446, {wxPrintPreview, destruct, 0}},
+ {2447, {wxPrintPreview, getCanvas, 0}},
+ {2448, {wxPrintPreview, getCurrentPage, 0}},
+ {2449, {wxPrintPreview, getFrame, 0}},
+ {2450, {wxPrintPreview, getMaxPage, 0}},
+ {2451, {wxPrintPreview, getMinPage, 0}},
+ {2452, {wxPrintPreview, getPrintout, 0}},
+ {2453, {wxPrintPreview, getPrintoutForPrinting, 0}},
+ {2454, {wxPrintPreview, isOk, 0}},
+ {2455, {wxPrintPreview, paintPage, 2}},
+ {2456, {wxPrintPreview, print, 1}},
+ {2457, {wxPrintPreview, renderPage, 1}},
+ {2458, {wxPrintPreview, setCanvas, 1}},
+ {2459, {wxPrintPreview, setCurrentPage, 1}},
+ {2460, {wxPrintPreview, setFrame, 1}},
+ {2461, {wxPrintPreview, setPrintout, 1}},
+ {2462, {wxPrintPreview, setZoom, 1}},
+ {2463, {wxPreviewFrame, new, 3}},
+ {2464, {wxPreviewFrame, destruct, 0}},
+ {2465, {wxPreviewFrame, createControlBar, 0}},
+ {2466, {wxPreviewFrame, createCanvas, 0}},
+ {2467, {wxPreviewFrame, initialize, 0}},
+ {2468, {wxPreviewFrame, onCloseWindow, 1}},
+ {2469, {wxPreviewControlBar, new, 4}},
+ {2470, {wxPreviewControlBar, destruct, 0}},
+ {2471, {wxPreviewControlBar, createButtons, 0}},
+ {2472, {wxPreviewControlBar, getPrintPreview, 0}},
+ {2473, {wxPreviewControlBar, getZoomControl, 0}},
+ {2474, {wxPreviewControlBar, setZoomControl, 1}},
+ {2476, {wxPrinter, new, 1}},
+ {2477, {wxPrinter, createAbortWindow, 2}},
+ {2478, {wxPrinter, getAbort, 0}},
+ {2479, {wxPrinter, getLastError, 0}},
+ {2480, {wxPrinter, getPrintDialogData, 0}},
+ {2481, {wxPrinter, print, 3}},
+ {2482, {wxPrinter, printDialog, 1}},
+ {2483, {wxPrinter, reportError, 3}},
+ {2484, {wxPrinter, setup, 1}},
+ {2485, {wxPrinter, 'Destroy', undefined}},
+ {2486, {wxXmlResource, new_1, 1}},
+ {2487, {wxXmlResource, new_2, 2}},
+ {2488, {wxXmlResource, destruct, 0}},
+ {2489, {wxXmlResource, attachUnknownControl, 3}},
+ {2490, {wxXmlResource, clearHandlers, 0}},
+ {2491, {wxXmlResource, compareVersion, 4}},
+ {2492, {wxXmlResource, get, 0}},
+ {2493, {wxXmlResource, getFlags, 0}},
+ {2494, {wxXmlResource, getVersion, 0}},
+ {2495, {wxXmlResource, getXRCID, 2}},
+ {2496, {wxXmlResource, initAllHandlers, 0}},
+ {2497, {wxXmlResource, load, 1}},
+ {2498, {wxXmlResource, loadBitmap, 1}},
+ {2499, {wxXmlResource, loadDialog_2, 2}},
+ {2500, {wxXmlResource, loadDialog_3, 3}},
+ {2501, {wxXmlResource, loadFrame_2, 2}},
+ {2502, {wxXmlResource, loadFrame_3, 3}},
+ {2503, {wxXmlResource, loadIcon, 1}},
+ {2504, {wxXmlResource, loadMenu, 1}},
+ {2505, {wxXmlResource, loadMenuBar_2, 2}},
+ {2506, {wxXmlResource, loadMenuBar_1, 1}},
+ {2507, {wxXmlResource, loadPanel_2, 2}},
+ {2508, {wxXmlResource, loadPanel_3, 3}},
+ {2509, {wxXmlResource, loadToolBar, 2}},
+ {2510, {wxXmlResource, set, 1}},
+ {2511, {wxXmlResource, setFlags, 1}},
+ {2512, {wxXmlResource, unload, 1}},
+ {2513, {wxXmlResource, xrcctrl, 3}},
+ {2514, {wxHtmlEasyPrinting, new, 1}},
+ {2515, {wxHtmlEasyPrinting, destruct, 0}},
+ {2516, {wxHtmlEasyPrinting, getPrintData, 0}},
+ {2517, {wxHtmlEasyPrinting, getPageSetupData, 0}},
+ {2518, {wxHtmlEasyPrinting, previewFile, 1}},
+ {2519, {wxHtmlEasyPrinting, previewText, 2}},
+ {2520, {wxHtmlEasyPrinting, printFile, 1}},
+ {2521, {wxHtmlEasyPrinting, printText, 2}},
+ {2522, {wxHtmlEasyPrinting, pageSetup, 0}},
+ {2523, {wxHtmlEasyPrinting, setFonts, 3}},
+ {2524, {wxHtmlEasyPrinting, setHeader, 2}},
+ {2525, {wxHtmlEasyPrinting, setFooter, 2}},
+ {2527, {wxGLCanvas, new_2, 2}},
+ {2528, {wxGLCanvas, new_3_1, 3}},
+ {2529, {wxGLCanvas, new_3_0, 3}},
+ {2530, {wxGLCanvas, getContext, 0}},
+ {2532, {wxGLCanvas, setCurrent, 0}},
+ {2533, {wxGLCanvas, swapBuffers, 0}},
+ {2534, {wxGLCanvas, 'Destroy', undefined}},
+ {2535, {wxAuiManager, new, 1}},
+ {2536, {wxAuiManager, destruct, 0}},
+ {2537, {wxAuiManager, addPane_2_1, 2}},
+ {2538, {wxAuiManager, addPane_3, 3}},
+ {2539, {wxAuiManager, addPane_2_0, 2}},
+ {2540, {wxAuiManager, detachPane, 1}},
+ {2541, {wxAuiManager, getAllPanes, 0}},
+ {2542, {wxAuiManager, getArtProvider, 0}},
+ {2543, {wxAuiManager, getDockSizeConstraint, 2}},
+ {2544, {wxAuiManager, getFlags, 0}},
+ {2545, {wxAuiManager, getManagedWindow, 0}},
+ {2546, {wxAuiManager, getManager, 1}},
+ {2547, {wxAuiManager, getPane_1_1, 1}},
+ {2548, {wxAuiManager, getPane_1_0, 1}},
+ {2549, {wxAuiManager, hideHint, 0}},
+ {2550, {wxAuiManager, insertPane, 3}},
+ {2551, {wxAuiManager, loadPaneInfo, 2}},
+ {2552, {wxAuiManager, loadPerspective, 2}},
+ {2553, {wxAuiManager, savePaneInfo, 1}},
+ {2554, {wxAuiManager, savePerspective, 0}},
+ {2555, {wxAuiManager, setArtProvider, 1}},
+ {2556, {wxAuiManager, setDockSizeConstraint, 2}},
+ {2557, {wxAuiManager, setFlags, 1}},
+ {2558, {wxAuiManager, setManagedWindow, 1}},
+ {2559, {wxAuiManager, showHint, 1}},
+ {2560, {wxAuiManager, unInit, 0}},
+ {2561, {wxAuiManager, update, 0}},
+ {2562, {wxAuiPaneInfo, new_0, 0}},
+ {2563, {wxAuiPaneInfo, new_1, 1}},
+ {2564, {wxAuiPaneInfo, destruct, 0}},
+ {2565, {wxAuiPaneInfo, bestSize_1, 1}},
+ {2566, {wxAuiPaneInfo, bestSize_2, 2}},
+ {2567, {wxAuiPaneInfo, bottom, 0}},
+ {2568, {wxAuiPaneInfo, bottomDockable, 1}},
+ {2569, {wxAuiPaneInfo, caption, 1}},
+ {2570, {wxAuiPaneInfo, captionVisible, 1}},
+ {2571, {wxAuiPaneInfo, centre, 0}},
+ {2572, {wxAuiPaneInfo, centrePane, 0}},
+ {2573, {wxAuiPaneInfo, closeButton, 1}},
+ {2574, {wxAuiPaneInfo, defaultPane, 0}},
+ {2575, {wxAuiPaneInfo, destroyOnClose, 1}},
+ {2576, {wxAuiPaneInfo, direction, 1}},
+ {2577, {wxAuiPaneInfo, dock, 0}},
+ {2578, {wxAuiPaneInfo, dockable, 1}},
+ {2579, {wxAuiPaneInfo, fixed, 0}},
+ {2580, {wxAuiPaneInfo, float, 0}},
+ {2581, {wxAuiPaneInfo, floatable, 1}},
+ {2582, {wxAuiPaneInfo, floatingPosition_1, 1}},
+ {2583, {wxAuiPaneInfo, floatingPosition_2, 2}},
+ {2584, {wxAuiPaneInfo, floatingSize_1, 1}},
+ {2585, {wxAuiPaneInfo, floatingSize_2, 2}},
+ {2586, {wxAuiPaneInfo, gripper, 1}},
+ {2587, {wxAuiPaneInfo, gripperTop, 1}},
+ {2588, {wxAuiPaneInfo, hasBorder, 0}},
+ {2589, {wxAuiPaneInfo, hasCaption, 0}},
+ {2590, {wxAuiPaneInfo, hasCloseButton, 0}},
+ {2591, {wxAuiPaneInfo, hasFlag, 1}},
+ {2592, {wxAuiPaneInfo, hasGripper, 0}},
+ {2593, {wxAuiPaneInfo, hasGripperTop, 0}},
+ {2594, {wxAuiPaneInfo, hasMaximizeButton, 0}},
+ {2595, {wxAuiPaneInfo, hasMinimizeButton, 0}},
+ {2596, {wxAuiPaneInfo, hasPinButton, 0}},
+ {2597, {wxAuiPaneInfo, hide, 0}},
+ {2598, {wxAuiPaneInfo, isBottomDockable, 0}},
+ {2599, {wxAuiPaneInfo, isDocked, 0}},
+ {2600, {wxAuiPaneInfo, isFixed, 0}},
+ {2601, {wxAuiPaneInfo, isFloatable, 0}},
+ {2602, {wxAuiPaneInfo, isFloating, 0}},
+ {2603, {wxAuiPaneInfo, isLeftDockable, 0}},
+ {2604, {wxAuiPaneInfo, isMovable, 0}},
+ {2605, {wxAuiPaneInfo, isOk, 0}},
+ {2606, {wxAuiPaneInfo, isResizable, 0}},
+ {2607, {wxAuiPaneInfo, isRightDockable, 0}},
+ {2608, {wxAuiPaneInfo, isShown, 0}},
+ {2609, {wxAuiPaneInfo, isToolbar, 0}},
+ {2610, {wxAuiPaneInfo, isTopDockable, 0}},
+ {2611, {wxAuiPaneInfo, layer, 1}},
+ {2612, {wxAuiPaneInfo, left, 0}},
+ {2613, {wxAuiPaneInfo, leftDockable, 1}},
+ {2614, {wxAuiPaneInfo, maxSize_1, 1}},
+ {2615, {wxAuiPaneInfo, maxSize_2, 2}},
+ {2616, {wxAuiPaneInfo, maximizeButton, 1}},
+ {2617, {wxAuiPaneInfo, minSize_1, 1}},
+ {2618, {wxAuiPaneInfo, minSize_2, 2}},
+ {2619, {wxAuiPaneInfo, minimizeButton, 1}},
+ {2620, {wxAuiPaneInfo, movable, 1}},
+ {2621, {wxAuiPaneInfo, name, 1}},
+ {2622, {wxAuiPaneInfo, paneBorder, 1}},
+ {2623, {wxAuiPaneInfo, pinButton, 1}},
+ {2624, {wxAuiPaneInfo, position, 1}},
+ {2625, {wxAuiPaneInfo, resizable, 1}},
+ {2626, {wxAuiPaneInfo, right, 0}},
+ {2627, {wxAuiPaneInfo, rightDockable, 1}},
+ {2628, {wxAuiPaneInfo, row, 1}},
+ {2629, {wxAuiPaneInfo, safeSet, 1}},
+ {2630, {wxAuiPaneInfo, setFlag, 2}},
+ {2631, {wxAuiPaneInfo, show, 1}},
+ {2632, {wxAuiPaneInfo, toolbarPane, 0}},
+ {2633, {wxAuiPaneInfo, top, 0}},
+ {2634, {wxAuiPaneInfo, topDockable, 1}},
+ {2635, {wxAuiPaneInfo, window, 1}},
+ {2636, {wxAuiNotebook, new_0, 0}},
+ {2637, {wxAuiNotebook, new_2, 2}},
+ {2638, {wxAuiNotebook, addPage, 3}},
+ {2639, {wxAuiNotebook, create, 2}},
+ {2640, {wxAuiNotebook, deletePage, 1}},
+ {2641, {wxAuiNotebook, getArtProvider, 0}},
+ {2642, {wxAuiNotebook, getPage, 1}},
+ {2643, {wxAuiNotebook, getPageBitmap, 1}},
+ {2644, {wxAuiNotebook, getPageCount, 0}},
+ {2645, {wxAuiNotebook, getPageIndex, 1}},
+ {2646, {wxAuiNotebook, getPageText, 1}},
+ {2647, {wxAuiNotebook, getSelection, 0}},
+ {2648, {wxAuiNotebook, insertPage, 4}},
+ {2649, {wxAuiNotebook, removePage, 1}},
+ {2650, {wxAuiNotebook, setArtProvider, 1}},
+ {2651, {wxAuiNotebook, setFont, 1}},
+ {2652, {wxAuiNotebook, setPageBitmap, 2}},
+ {2653, {wxAuiNotebook, setPageText, 2}},
+ {2654, {wxAuiNotebook, setSelection, 1}},
+ {2655, {wxAuiNotebook, setTabCtrlHeight, 1}},
+ {2656, {wxAuiNotebook, setUniformBitmapSize, 1}},
+ {2657, {wxAuiNotebook, 'Destroy', undefined}},
+ {2658, {wxMDIParentFrame, new_0, 0}},
+ {2659, {wxMDIParentFrame, new_4, 4}},
+ {2660, {wxMDIParentFrame, destruct, 0}},
+ {2661, {wxMDIParentFrame, activateNext, 0}},
+ {2662, {wxMDIParentFrame, activatePrevious, 0}},
+ {2663, {wxMDIParentFrame, arrangeIcons, 0}},
+ {2664, {wxMDIParentFrame, cascade, 0}},
+ {2665, {wxMDIParentFrame, create, 4}},
+ {2666, {wxMDIParentFrame, getActiveChild, 0}},
+ {2667, {wxMDIParentFrame, getClientWindow, 0}},
+ {2668, {wxMDIParentFrame, tile, 1}},
+ {2669, {wxMDIChildFrame, new_0, 0}},
+ {2670, {wxMDIChildFrame, new_4, 4}},
+ {2671, {wxMDIChildFrame, destruct, 0}},
+ {2672, {wxMDIChildFrame, activate, 0}},
+ {2673, {wxMDIChildFrame, create, 4}},
+ {2674, {wxMDIChildFrame, maximize, 1}},
+ {2675, {wxMDIChildFrame, restore, 0}},
+ {2676, {wxMDIClientWindow, new_0, 0}},
+ {2677, {wxMDIClientWindow, new_2, 2}},
+ {2678, {wxMDIClientWindow, destruct, 0}},
+ {2679, {wxMDIClientWindow, createClient, 2}},
+ {2680, {wxLayoutAlgorithm, new, 0}},
+ {2681, {wxLayoutAlgorithm, layoutFrame, 2}},
+ {2682, {wxLayoutAlgorithm, layoutMDIFrame, 2}},
+ {2683, {wxLayoutAlgorithm, layoutWindow, 2}},
+ {2684, {wxLayoutAlgorithm, 'Destroy', undefined}},
+ {2685, {wxEvent, getId, 0}},
+ {2686, {wxEvent, getSkipped, 0}},
+ {2687, {wxEvent, getTimestamp, 0}},
+ {2688, {wxEvent, isCommandEvent, 0}},
+ {2689, {wxEvent, resumePropagation, 1}},
+ {2690, {wxEvent, shouldPropagate, 0}},
+ {2691, {wxEvent, skip, 1}},
+ {2692, {wxEvent, stopPropagation, 0}},
+ {2693, {wxCommandEvent, getClientData, 0}},
+ {2694, {wxCommandEvent, getExtraLong, 0}},
+ {2695, {wxCommandEvent, getInt, 0}},
+ {2696, {wxCommandEvent, getSelection, 0}},
+ {2697, {wxCommandEvent, getString, 0}},
+ {2698, {wxCommandEvent, isChecked, 0}},
+ {2699, {wxCommandEvent, isSelection, 0}},
+ {2700, {wxCommandEvent, setInt, 1}},
+ {2701, {wxCommandEvent, setString, 1}},
+ {2702, {wxScrollEvent, getOrientation, 0}},
+ {2703, {wxScrollEvent, getPosition, 0}},
+ {2704, {wxScrollWinEvent, getOrientation, 0}},
+ {2705, {wxScrollWinEvent, getPosition, 0}},
+ {2706, {wxMouseEvent, altDown, 0}},
+ {2707, {wxMouseEvent, button, 1}},
+ {2708, {wxMouseEvent, buttonDClick, 1}},
+ {2709, {wxMouseEvent, buttonDown, 1}},
+ {2710, {wxMouseEvent, buttonUp, 1}},
+ {2711, {wxMouseEvent, cmdDown, 0}},
+ {2712, {wxMouseEvent, controlDown, 0}},
+ {2713, {wxMouseEvent, dragging, 0}},
+ {2714, {wxMouseEvent, entering, 0}},
+ {2715, {wxMouseEvent, getButton, 0}},
+ {2718, {wxMouseEvent, getPosition, 0}},
+ {2719, {wxMouseEvent, getLogicalPosition, 1}},
+ {2720, {wxMouseEvent, getLinesPerAction, 0}},
+ {2721, {wxMouseEvent, getWheelRotation, 0}},
+ {2722, {wxMouseEvent, getWheelDelta, 0}},
+ {2723, {wxMouseEvent, getX, 0}},
+ {2724, {wxMouseEvent, getY, 0}},
+ {2725, {wxMouseEvent, isButton, 0}},
+ {2726, {wxMouseEvent, isPageScroll, 0}},
+ {2727, {wxMouseEvent, leaving, 0}},
+ {2728, {wxMouseEvent, leftDClick, 0}},
+ {2729, {wxMouseEvent, leftDown, 0}},
+ {2730, {wxMouseEvent, leftIsDown, 0}},
+ {2731, {wxMouseEvent, leftUp, 0}},
+ {2732, {wxMouseEvent, metaDown, 0}},
+ {2733, {wxMouseEvent, middleDClick, 0}},
+ {2734, {wxMouseEvent, middleDown, 0}},
+ {2735, {wxMouseEvent, middleIsDown, 0}},
+ {2736, {wxMouseEvent, middleUp, 0}},
+ {2737, {wxMouseEvent, moving, 0}},
+ {2738, {wxMouseEvent, rightDClick, 0}},
+ {2739, {wxMouseEvent, rightDown, 0}},
+ {2740, {wxMouseEvent, rightIsDown, 0}},
+ {2741, {wxMouseEvent, rightUp, 0}},
+ {2742, {wxMouseEvent, shiftDown, 0}},
+ {2743, {wxSetCursorEvent, getCursor, 0}},
+ {2744, {wxSetCursorEvent, getX, 0}},
+ {2745, {wxSetCursorEvent, getY, 0}},
+ {2746, {wxSetCursorEvent, hasCursor, 0}},
+ {2747, {wxSetCursorEvent, setCursor, 1}},
+ {2748, {wxKeyEvent, altDown, 0}},
+ {2749, {wxKeyEvent, cmdDown, 0}},
+ {2750, {wxKeyEvent, controlDown, 0}},
+ {2751, {wxKeyEvent, getKeyCode, 0}},
+ {2752, {wxKeyEvent, getModifiers, 0}},
+ {2755, {wxKeyEvent, getPosition, 0}},
+ {2756, {wxKeyEvent, getRawKeyCode, 0}},
+ {2757, {wxKeyEvent, getRawKeyFlags, 0}},
+ {2758, {wxKeyEvent, getUnicodeKey, 0}},
+ {2759, {wxKeyEvent, getX, 0}},
+ {2760, {wxKeyEvent, getY, 0}},
+ {2761, {wxKeyEvent, hasModifiers, 0}},
+ {2762, {wxKeyEvent, metaDown, 0}},
+ {2763, {wxKeyEvent, shiftDown, 0}},
+ {2764, {wxSizeEvent, getSize, 0}},
+ {2765, {wxMoveEvent, getPosition, 0}},
+ {2766, {wxEraseEvent, getDC, 0}},
+ {2767, {wxFocusEvent, getWindow, 0}},
+ {2768, {wxChildFocusEvent, getWindow, 0}},
+ {2769, {wxMenuEvent, getMenu, 0}},
+ {2770, {wxMenuEvent, getMenuId, 0}},
+ {2771, {wxMenuEvent, isPopup, 0}},
+ {2772, {wxCloseEvent, canVeto, 0}},
+ {2773, {wxCloseEvent, getLoggingOff, 0}},
+ {2774, {wxCloseEvent, setCanVeto, 1}},
+ {2775, {wxCloseEvent, setLoggingOff, 1}},
+ {2776, {wxCloseEvent, veto, 1}},
+ {2777, {wxShowEvent, setShow, 1}},
+ {2778, {wxShowEvent, getShow, 0}},
+ {2779, {wxIconizeEvent, iconized, 0}},
+ {2780, {wxJoystickEvent, buttonDown, 1}},
+ {2781, {wxJoystickEvent, buttonIsDown, 1}},
+ {2782, {wxJoystickEvent, buttonUp, 1}},
+ {2783, {wxJoystickEvent, getButtonChange, 0}},
+ {2784, {wxJoystickEvent, getButtonState, 0}},
+ {2785, {wxJoystickEvent, getJoystick, 0}},
+ {2786, {wxJoystickEvent, getPosition, 0}},
+ {2787, {wxJoystickEvent, getZPosition, 0}},
+ {2788, {wxJoystickEvent, isButton, 0}},
+ {2789, {wxJoystickEvent, isMove, 0}},
+ {2790, {wxJoystickEvent, isZMove, 0}},
+ {2791, {wxUpdateUIEvent, canUpdate, 1}},
+ {2792, {wxUpdateUIEvent, check, 1}},
+ {2793, {wxUpdateUIEvent, enable, 1}},
+ {2794, {wxUpdateUIEvent, show, 1}},
+ {2795, {wxUpdateUIEvent, getChecked, 0}},
+ {2796, {wxUpdateUIEvent, getEnabled, 0}},
+ {2797, {wxUpdateUIEvent, getShown, 0}},
+ {2798, {wxUpdateUIEvent, getSetChecked, 0}},
+ {2799, {wxUpdateUIEvent, getSetEnabled, 0}},
+ {2800, {wxUpdateUIEvent, getSetShown, 0}},
+ {2801, {wxUpdateUIEvent, getSetText, 0}},
+ {2802, {wxUpdateUIEvent, getText, 0}},
+ {2803, {wxUpdateUIEvent, getMode, 0}},
+ {2804, {wxUpdateUIEvent, getUpdateInterval, 0}},
+ {2805, {wxUpdateUIEvent, resetUpdateTime, 0}},
+ {2806, {wxUpdateUIEvent, setMode, 1}},
+ {2807, {wxUpdateUIEvent, setText, 1}},
+ {2808, {wxUpdateUIEvent, setUpdateInterval, 1}},
+ {2809, {wxMouseCaptureChangedEvent, getCapturedWindow, 0}},
+ {2810, {wxPaletteChangedEvent, setChangedWindow, 1}},
+ {2811, {wxPaletteChangedEvent, getChangedWindow, 0}},
+ {2812, {wxQueryNewPaletteEvent, setPaletteRealized, 1}},
+ {2813, {wxQueryNewPaletteEvent, getPaletteRealized, 0}},
+ {2814, {wxNavigationKeyEvent, getDirection, 0}},
+ {2815, {wxNavigationKeyEvent, setDirection, 1}},
+ {2816, {wxNavigationKeyEvent, isWindowChange, 0}},
+ {2817, {wxNavigationKeyEvent, setWindowChange, 1}},
+ {2818, {wxNavigationKeyEvent, isFromTab, 0}},
+ {2819, {wxNavigationKeyEvent, setFromTab, 1}},
+ {2820, {wxNavigationKeyEvent, getCurrentFocus, 0}},
+ {2821, {wxNavigationKeyEvent, setCurrentFocus, 1}},
+ {2822, {wxHelpEvent, getOrigin, 0}},
+ {2823, {wxHelpEvent, getPosition, 0}},
+ {2824, {wxHelpEvent, setOrigin, 1}},
+ {2825, {wxHelpEvent, setPosition, 1}},
+ {2826, {wxContextMenuEvent, getPosition, 0}},
+ {2827, {wxContextMenuEvent, setPosition, 1}},
+ {2828, {wxIdleEvent, canSend, 1}},
+ {2829, {wxIdleEvent, getMode, 0}},
+ {2830, {wxIdleEvent, requestMore, 1}},
+ {2831, {wxIdleEvent, moreRequested, 0}},
+ {2832, {wxIdleEvent, setMode, 1}},
+ {2833, {wxGridEvent, altDown, 0}},
+ {2834, {wxGridEvent, controlDown, 0}},
+ {2835, {wxGridEvent, getCol, 0}},
+ {2836, {wxGridEvent, getPosition, 0}},
+ {2837, {wxGridEvent, getRow, 0}},
+ {2838, {wxGridEvent, metaDown, 0}},
+ {2839, {wxGridEvent, selecting, 0}},
+ {2840, {wxGridEvent, shiftDown, 0}},
+ {2841, {wxNotifyEvent, allow, 0}},
+ {2842, {wxNotifyEvent, isAllowed, 0}},
+ {2843, {wxNotifyEvent, veto, 0}},
+ {2844, {wxSashEvent, getEdge, 0}},
+ {2845, {wxSashEvent, getDragRect, 0}},
+ {2846, {wxSashEvent, getDragStatus, 0}},
+ {2847, {wxListEvent, getCacheFrom, 0}},
+ {2848, {wxListEvent, getCacheTo, 0}},
+ {2849, {wxListEvent, getKeyCode, 0}},
+ {2850, {wxListEvent, getIndex, 0}},
+ {2851, {wxListEvent, getColumn, 0}},
+ {2852, {wxListEvent, getPoint, 0}},
+ {2853, {wxListEvent, getLabel, 0}},
+ {2854, {wxListEvent, getText, 0}},
+ {2855, {wxListEvent, getImage, 0}},
+ {2856, {wxListEvent, getData, 0}},
+ {2857, {wxListEvent, getMask, 0}},
+ {2858, {wxListEvent, getItem, 0}},
+ {2859, {wxListEvent, isEditCancelled, 0}},
+ {2860, {wxDateEvent, getDate, 0}},
+ {2861, {wxCalendarEvent, getWeekDay, 0}},
+ {2862, {wxFileDirPickerEvent, getPath, 0}},
+ {2863, {wxColourPickerEvent, getColour, 0}},
+ {2864, {wxFontPickerEvent, getFont, 0}},
+ {2865, {wxStyledTextEvent, getPosition, 0}},
+ {2866, {wxStyledTextEvent, getKey, 0}},
+ {2867, {wxStyledTextEvent, getModifiers, 0}},
+ {2868, {wxStyledTextEvent, getModificationType, 0}},
+ {2869, {wxStyledTextEvent, getText, 0}},
+ {2870, {wxStyledTextEvent, getLength, 0}},
+ {2871, {wxStyledTextEvent, getLinesAdded, 0}},
+ {2872, {wxStyledTextEvent, getLine, 0}},
+ {2873, {wxStyledTextEvent, getFoldLevelNow, 0}},
+ {2874, {wxStyledTextEvent, getFoldLevelPrev, 0}},
+ {2875, {wxStyledTextEvent, getMargin, 0}},
+ {2876, {wxStyledTextEvent, getMessage, 0}},
+ {2877, {wxStyledTextEvent, getWParam, 0}},
+ {2878, {wxStyledTextEvent, getLParam, 0}},
+ {2879, {wxStyledTextEvent, getListType, 0}},
+ {2880, {wxStyledTextEvent, getX, 0}},
+ {2881, {wxStyledTextEvent, getY, 0}},
+ {2882, {wxStyledTextEvent, getDragText, 0}},
+ {2883, {wxStyledTextEvent, getDragAllowMove, 0}},
+ {2884, {wxStyledTextEvent, getDragResult, 0}},
+ {2885, {wxStyledTextEvent, getShift, 0}},
+ {2886, {wxStyledTextEvent, getControl, 0}},
+ {2887, {wxStyledTextEvent, getAlt, 0}},
+ {2888, {utils, getKeyState, 1}},
+ {2889, {utils, getMousePosition, 2}},
+ {2890, {utils, getMouseState, 0}},
+ {2891, {utils, setDetectableAutoRepeat, 1}},
+ {2892, {utils, bell, 0}},
+ {2893, {utils, findMenuItemId, 3}},
+ {2894, {utils, genericFindWindowAtPoint, 1}},
+ {2895, {utils, findWindowAtPoint, 1}},
+ {2896, {utils, beginBusyCursor, 1}},
+ {2897, {utils, endBusyCursor, 0}},
+ {2898, {utils, isBusy, 0}},
+ {2899, {utils, shutdown, 1}},
+ {2900, {utils, shell, 1}},
+ {2901, {utils, launchDefaultBrowser, 2}},
+ {2902, {utils, getEmailAddress, 0}},
+ {2903, {utils, getUserId, 0}},
+ {2904, {utils, getHomeDir, 0}},
+ {2905, {utils, newId, 0}},
+ {2906, {utils, registerId, 1}},
+ {2907, {utils, getCurrentId, 0}},
+ {2908, {utils, getOsDescription, 0}},
+ {2909, {utils, isPlatformLittleEndian, 0}},
+ {2910, {utils, isPlatform64Bit, 0}},
+ {2911, {wxPrintout, new, 1}},
+ {2912, {wxPrintout, destruct, 0}},
+ {2913, {wxPrintout, getDC, 0}},
+ {2914, {wxPrintout, getPageSizeMM, 2}},
+ {2915, {wxPrintout, getPageSizePixels, 2}},
+ {2916, {wxPrintout, getPaperRectPixels, 0}},
+ {2917, {wxPrintout, getPPIPrinter, 2}},
+ {2918, {wxPrintout, getPPIScreen, 2}},
+ {2919, {wxPrintout, getTitle, 0}},
+ {2920, {wxPrintout, isPreview, 0}},
+ {2921, {wxPrintout, fitThisSizeToPaper, 1}},
+ {2922, {wxPrintout, fitThisSizeToPage, 1}},
+ {2923, {wxPrintout, fitThisSizeToPageMargins, 2}},
+ {2924, {wxPrintout, mapScreenSizeToPaper, 0}},
+ {2925, {wxPrintout, mapScreenSizeToPage, 0}},
+ {2926, {wxPrintout, mapScreenSizeToPageMargins, 1}},
+ {2927, {wxPrintout, mapScreenSizeToDevice, 0}},
+ {2928, {wxPrintout, getLogicalPaperRect, 0}},
+ {2929, {wxPrintout, getLogicalPageRect, 0}},
+ {2930, {wxPrintout, getLogicalPageMarginsRect, 1}},
+ {2931, {wxPrintout, setLogicalOrigin, 2}},
+ {2932, {wxPrintout, offsetLogicalOrigin, 2}},
+ {2933, {wxStyledTextCtrl, new_2, 2}},
+ {2934, {wxStyledTextCtrl, new_0, 0}},
+ {2935, {wxStyledTextCtrl, destruct, 0}},
+ {2936, {wxStyledTextCtrl, create, 2}},
+ {2937, {wxStyledTextCtrl, addText, 1}},
+ {2938, {wxStyledTextCtrl, addStyledText, 1}},
+ {2939, {wxStyledTextCtrl, insertText, 2}},
+ {2940, {wxStyledTextCtrl, clearAll, 0}},
+ {2941, {wxStyledTextCtrl, clearDocumentStyle, 0}},
+ {2942, {wxStyledTextCtrl, getLength, 0}},
+ {2943, {wxStyledTextCtrl, getCharAt, 1}},
+ {2944, {wxStyledTextCtrl, getCurrentPos, 0}},
+ {2945, {wxStyledTextCtrl, getAnchor, 0}},
+ {2946, {wxStyledTextCtrl, getStyleAt, 1}},
+ {2947, {wxStyledTextCtrl, redo, 0}},
+ {2948, {wxStyledTextCtrl, setUndoCollection, 1}},
+ {2949, {wxStyledTextCtrl, selectAll, 0}},
+ {2950, {wxStyledTextCtrl, setSavePoint, 0}},
+ {2951, {wxStyledTextCtrl, getStyledText, 2}},
+ {2952, {wxStyledTextCtrl, canRedo, 0}},
+ {2953, {wxStyledTextCtrl, markerLineFromHandle, 1}},
+ {2954, {wxStyledTextCtrl, markerDeleteHandle, 1}},
+ {2955, {wxStyledTextCtrl, getUndoCollection, 0}},
+ {2956, {wxStyledTextCtrl, getViewWhiteSpace, 0}},
+ {2957, {wxStyledTextCtrl, setViewWhiteSpace, 1}},
+ {2958, {wxStyledTextCtrl, positionFromPoint, 1}},
+ {2959, {wxStyledTextCtrl, positionFromPointClose, 2}},
+ {2960, {wxStyledTextCtrl, gotoLine, 1}},
+ {2961, {wxStyledTextCtrl, gotoPos, 1}},
+ {2962, {wxStyledTextCtrl, setAnchor, 1}},
+ {2963, {wxStyledTextCtrl, getCurLine, 1}},
+ {2964, {wxStyledTextCtrl, getEndStyled, 0}},
+ {2965, {wxStyledTextCtrl, convertEOLs, 1}},
+ {2966, {wxStyledTextCtrl, getEOLMode, 0}},
+ {2967, {wxStyledTextCtrl, setEOLMode, 1}},
+ {2968, {wxStyledTextCtrl, startStyling, 2}},
+ {2969, {wxStyledTextCtrl, setStyling, 2}},
+ {2970, {wxStyledTextCtrl, getBufferedDraw, 0}},
+ {2971, {wxStyledTextCtrl, setBufferedDraw, 1}},
+ {2972, {wxStyledTextCtrl, setTabWidth, 1}},
+ {2973, {wxStyledTextCtrl, getTabWidth, 0}},
+ {2974, {wxStyledTextCtrl, setCodePage, 1}},
+ {2975, {wxStyledTextCtrl, markerDefine, 3}},
+ {2976, {wxStyledTextCtrl, markerSetForeground, 2}},
+ {2977, {wxStyledTextCtrl, markerSetBackground, 2}},
+ {2978, {wxStyledTextCtrl, markerAdd, 2}},
+ {2979, {wxStyledTextCtrl, markerDelete, 2}},
+ {2980, {wxStyledTextCtrl, markerDeleteAll, 1}},
+ {2981, {wxStyledTextCtrl, markerGet, 1}},
+ {2982, {wxStyledTextCtrl, markerNext, 2}},
+ {2983, {wxStyledTextCtrl, markerPrevious, 2}},
+ {2984, {wxStyledTextCtrl, markerDefineBitmap, 2}},
+ {2985, {wxStyledTextCtrl, markerAddSet, 2}},
+ {2986, {wxStyledTextCtrl, markerSetAlpha, 2}},
+ {2987, {wxStyledTextCtrl, setMarginType, 2}},
+ {2988, {wxStyledTextCtrl, getMarginType, 1}},
+ {2989, {wxStyledTextCtrl, setMarginWidth, 2}},
+ {2990, {wxStyledTextCtrl, getMarginWidth, 1}},
+ {2991, {wxStyledTextCtrl, setMarginMask, 2}},
+ {2992, {wxStyledTextCtrl, getMarginMask, 1}},
+ {2993, {wxStyledTextCtrl, setMarginSensitive, 2}},
+ {2994, {wxStyledTextCtrl, getMarginSensitive, 1}},
+ {2995, {wxStyledTextCtrl, styleClearAll, 0}},
+ {2996, {wxStyledTextCtrl, styleSetForeground, 2}},
+ {2997, {wxStyledTextCtrl, styleSetBackground, 2}},
+ {2998, {wxStyledTextCtrl, styleSetBold, 2}},
+ {2999, {wxStyledTextCtrl, styleSetItalic, 2}},
+ {3000, {wxStyledTextCtrl, styleSetSize, 2}},
+ {3001, {wxStyledTextCtrl, styleSetFaceName, 2}},
+ {3002, {wxStyledTextCtrl, styleSetEOLFilled, 2}},
+ {3003, {wxStyledTextCtrl, styleResetDefault, 0}},
+ {3004, {wxStyledTextCtrl, styleSetUnderline, 2}},
+ {3005, {wxStyledTextCtrl, styleSetCase, 2}},
+ {3006, {wxStyledTextCtrl, styleSetHotSpot, 2}},
+ {3007, {wxStyledTextCtrl, setSelForeground, 2}},
+ {3008, {wxStyledTextCtrl, setSelBackground, 2}},
+ {3009, {wxStyledTextCtrl, getSelAlpha, 0}},
+ {3010, {wxStyledTextCtrl, setSelAlpha, 1}},
+ {3011, {wxStyledTextCtrl, setCaretForeground, 1}},
+ {3012, {wxStyledTextCtrl, cmdKeyAssign, 3}},
+ {3013, {wxStyledTextCtrl, cmdKeyClear, 2}},
+ {3014, {wxStyledTextCtrl, cmdKeyClearAll, 0}},
+ {3015, {wxStyledTextCtrl, setStyleBytes, 2}},
+ {3016, {wxStyledTextCtrl, styleSetVisible, 2}},
+ {3017, {wxStyledTextCtrl, getCaretPeriod, 0}},
+ {3018, {wxStyledTextCtrl, setCaretPeriod, 1}},
+ {3019, {wxStyledTextCtrl, setWordChars, 1}},
+ {3020, {wxStyledTextCtrl, beginUndoAction, 0}},
+ {3021, {wxStyledTextCtrl, endUndoAction, 0}},
+ {3022, {wxStyledTextCtrl, indicatorSetStyle, 2}},
+ {3023, {wxStyledTextCtrl, indicatorGetStyle, 1}},
+ {3024, {wxStyledTextCtrl, indicatorSetForeground, 2}},
+ {3025, {wxStyledTextCtrl, indicatorGetForeground, 1}},
+ {3026, {wxStyledTextCtrl, setWhitespaceForeground, 2}},
+ {3027, {wxStyledTextCtrl, setWhitespaceBackground, 2}},
+ {3028, {wxStyledTextCtrl, getStyleBits, 0}},
+ {3029, {wxStyledTextCtrl, setLineState, 2}},
+ {3030, {wxStyledTextCtrl, getLineState, 1}},
+ {3031, {wxStyledTextCtrl, getMaxLineState, 0}},
+ {3032, {wxStyledTextCtrl, getCaretLineVisible, 0}},
+ {3033, {wxStyledTextCtrl, setCaretLineVisible, 1}},
+ {3034, {wxStyledTextCtrl, getCaretLineBackground, 0}},
+ {3035, {wxStyledTextCtrl, setCaretLineBackground, 1}},
+ {3036, {wxStyledTextCtrl, autoCompShow, 2}},
+ {3037, {wxStyledTextCtrl, autoCompCancel, 0}},
+ {3038, {wxStyledTextCtrl, autoCompActive, 0}},
+ {3039, {wxStyledTextCtrl, autoCompPosStart, 0}},
+ {3040, {wxStyledTextCtrl, autoCompComplete, 0}},
+ {3041, {wxStyledTextCtrl, autoCompStops, 1}},
+ {3042, {wxStyledTextCtrl, autoCompSetSeparator, 1}},
+ {3043, {wxStyledTextCtrl, autoCompGetSeparator, 0}},
+ {3044, {wxStyledTextCtrl, autoCompSelect, 1}},
+ {3045, {wxStyledTextCtrl, autoCompSetCancelAtStart, 1}},
+ {3046, {wxStyledTextCtrl, autoCompGetCancelAtStart, 0}},
+ {3047, {wxStyledTextCtrl, autoCompSetFillUps, 1}},
+ {3048, {wxStyledTextCtrl, autoCompSetChooseSingle, 1}},
+ {3049, {wxStyledTextCtrl, autoCompGetChooseSingle, 0}},
+ {3050, {wxStyledTextCtrl, autoCompSetIgnoreCase, 1}},
+ {3051, {wxStyledTextCtrl, autoCompGetIgnoreCase, 0}},
+ {3052, {wxStyledTextCtrl, userListShow, 2}},
+ {3053, {wxStyledTextCtrl, autoCompSetAutoHide, 1}},
+ {3054, {wxStyledTextCtrl, autoCompGetAutoHide, 0}},
+ {3055, {wxStyledTextCtrl, autoCompSetDropRestOfWord, 1}},
+ {3056, {wxStyledTextCtrl, autoCompGetDropRestOfWord, 0}},
+ {3057, {wxStyledTextCtrl, registerImage, 2}},
+ {3058, {wxStyledTextCtrl, clearRegisteredImages, 0}},
+ {3059, {wxStyledTextCtrl, autoCompGetTypeSeparator, 0}},
+ {3060, {wxStyledTextCtrl, autoCompSetTypeSeparator, 1}},
+ {3061, {wxStyledTextCtrl, autoCompSetMaxWidth, 1}},
+ {3062, {wxStyledTextCtrl, autoCompGetMaxWidth, 0}},
+ {3063, {wxStyledTextCtrl, autoCompSetMaxHeight, 1}},
+ {3064, {wxStyledTextCtrl, autoCompGetMaxHeight, 0}},
+ {3065, {wxStyledTextCtrl, setIndent, 1}},
+ {3066, {wxStyledTextCtrl, getIndent, 0}},
+ {3067, {wxStyledTextCtrl, setUseTabs, 1}},
+ {3068, {wxStyledTextCtrl, getUseTabs, 0}},
+ {3069, {wxStyledTextCtrl, setLineIndentation, 2}},
+ {3070, {wxStyledTextCtrl, getLineIndentation, 1}},
+ {3071, {wxStyledTextCtrl, getLineIndentPosition, 1}},
+ {3072, {wxStyledTextCtrl, getColumn, 1}},
+ {3073, {wxStyledTextCtrl, setUseHorizontalScrollBar, 1}},
+ {3074, {wxStyledTextCtrl, getUseHorizontalScrollBar, 0}},
+ {3075, {wxStyledTextCtrl, setIndentationGuides, 1}},
+ {3076, {wxStyledTextCtrl, getIndentationGuides, 0}},
+ {3077, {wxStyledTextCtrl, setHighlightGuide, 1}},
+ {3078, {wxStyledTextCtrl, getHighlightGuide, 0}},
+ {3079, {wxStyledTextCtrl, getLineEndPosition, 1}},
+ {3080, {wxStyledTextCtrl, getCodePage, 0}},
+ {3081, {wxStyledTextCtrl, getCaretForeground, 0}},
+ {3082, {wxStyledTextCtrl, getReadOnly, 0}},
+ {3083, {wxStyledTextCtrl, setCurrentPos, 1}},
+ {3084, {wxStyledTextCtrl, setSelectionStart, 1}},
+ {3085, {wxStyledTextCtrl, getSelectionStart, 0}},
+ {3086, {wxStyledTextCtrl, setSelectionEnd, 1}},
+ {3087, {wxStyledTextCtrl, getSelectionEnd, 0}},
+ {3088, {wxStyledTextCtrl, setPrintMagnification, 1}},
+ {3089, {wxStyledTextCtrl, getPrintMagnification, 0}},
+ {3090, {wxStyledTextCtrl, setPrintColourMode, 1}},
+ {3091, {wxStyledTextCtrl, getPrintColourMode, 0}},
+ {3092, {wxStyledTextCtrl, findText, 4}},
+ {3093, {wxStyledTextCtrl, formatRange, 7}},
+ {3094, {wxStyledTextCtrl, getFirstVisibleLine, 0}},
+ {3095, {wxStyledTextCtrl, getLine, 1}},
+ {3096, {wxStyledTextCtrl, getLineCount, 0}},
+ {3097, {wxStyledTextCtrl, setMarginLeft, 1}},
+ {3098, {wxStyledTextCtrl, getMarginLeft, 0}},
+ {3099, {wxStyledTextCtrl, setMarginRight, 1}},
+ {3100, {wxStyledTextCtrl, getMarginRight, 0}},
+ {3101, {wxStyledTextCtrl, getModify, 0}},
+ {3102, {wxStyledTextCtrl, setSelection, 2}},
+ {3103, {wxStyledTextCtrl, getSelectedText, 0}},
+ {3104, {wxStyledTextCtrl, getTextRange, 2}},
+ {3105, {wxStyledTextCtrl, hideSelection, 1}},
+ {3106, {wxStyledTextCtrl, lineFromPosition, 1}},
+ {3107, {wxStyledTextCtrl, positionFromLine, 1}},
+ {3108, {wxStyledTextCtrl, lineScroll, 2}},
+ {3109, {wxStyledTextCtrl, ensureCaretVisible, 0}},
+ {3110, {wxStyledTextCtrl, replaceSelection, 1}},
+ {3111, {wxStyledTextCtrl, setReadOnly, 1}},
+ {3112, {wxStyledTextCtrl, canPaste, 0}},
+ {3113, {wxStyledTextCtrl, canUndo, 0}},
+ {3114, {wxStyledTextCtrl, emptyUndoBuffer, 0}},
+ {3115, {wxStyledTextCtrl, undo, 0}},
+ {3116, {wxStyledTextCtrl, cut, 0}},
+ {3117, {wxStyledTextCtrl, copy, 0}},
+ {3118, {wxStyledTextCtrl, paste, 0}},
+ {3119, {wxStyledTextCtrl, clear, 0}},
+ {3120, {wxStyledTextCtrl, setText, 1}},
+ {3121, {wxStyledTextCtrl, getText, 0}},
+ {3122, {wxStyledTextCtrl, getTextLength, 0}},
+ {3123, {wxStyledTextCtrl, getOvertype, 0}},
+ {3124, {wxStyledTextCtrl, setCaretWidth, 1}},
+ {3125, {wxStyledTextCtrl, getCaretWidth, 0}},
+ {3126, {wxStyledTextCtrl, setTargetStart, 1}},
+ {3127, {wxStyledTextCtrl, getTargetStart, 0}},
+ {3128, {wxStyledTextCtrl, setTargetEnd, 1}},
+ {3129, {wxStyledTextCtrl, getTargetEnd, 0}},
+ {3130, {wxStyledTextCtrl, replaceTarget, 1}},
+ {3131, {wxStyledTextCtrl, searchInTarget, 1}},
+ {3132, {wxStyledTextCtrl, setSearchFlags, 1}},
+ {3133, {wxStyledTextCtrl, getSearchFlags, 0}},
+ {3134, {wxStyledTextCtrl, callTipShow, 2}},
+ {3135, {wxStyledTextCtrl, callTipCancel, 0}},
+ {3136, {wxStyledTextCtrl, callTipActive, 0}},
+ {3137, {wxStyledTextCtrl, callTipPosAtStart, 0}},
+ {3138, {wxStyledTextCtrl, callTipSetHighlight, 2}},
+ {3139, {wxStyledTextCtrl, callTipSetBackground, 1}},
+ {3140, {wxStyledTextCtrl, callTipSetForeground, 1}},
+ {3141, {wxStyledTextCtrl, callTipSetForegroundHighlight, 1}},
+ {3142, {wxStyledTextCtrl, callTipUseStyle, 1}},
+ {3143, {wxStyledTextCtrl, visibleFromDocLine, 1}},
+ {3144, {wxStyledTextCtrl, docLineFromVisible, 1}},
+ {3145, {wxStyledTextCtrl, wrapCount, 1}},
+ {3146, {wxStyledTextCtrl, setFoldLevel, 2}},
+ {3147, {wxStyledTextCtrl, getFoldLevel, 1}},
+ {3148, {wxStyledTextCtrl, getLastChild, 2}},
+ {3149, {wxStyledTextCtrl, getFoldParent, 1}},
+ {3150, {wxStyledTextCtrl, showLines, 2}},
+ {3151, {wxStyledTextCtrl, hideLines, 2}},
+ {3152, {wxStyledTextCtrl, getLineVisible, 1}},
+ {3153, {wxStyledTextCtrl, setFoldExpanded, 2}},
+ {3154, {wxStyledTextCtrl, getFoldExpanded, 1}},
+ {3155, {wxStyledTextCtrl, toggleFold, 1}},
+ {3156, {wxStyledTextCtrl, ensureVisible, 1}},
+ {3157, {wxStyledTextCtrl, setFoldFlags, 1}},
+ {3158, {wxStyledTextCtrl, ensureVisibleEnforcePolicy, 1}},
+ {3159, {wxStyledTextCtrl, setTabIndents, 1}},
+ {3160, {wxStyledTextCtrl, getTabIndents, 0}},
+ {3161, {wxStyledTextCtrl, setBackSpaceUnIndents, 1}},
+ {3162, {wxStyledTextCtrl, getBackSpaceUnIndents, 0}},
+ {3163, {wxStyledTextCtrl, setMouseDwellTime, 1}},
+ {3164, {wxStyledTextCtrl, getMouseDwellTime, 0}},
+ {3165, {wxStyledTextCtrl, wordStartPosition, 2}},
+ {3166, {wxStyledTextCtrl, wordEndPosition, 2}},
+ {3167, {wxStyledTextCtrl, setWrapMode, 1}},
+ {3168, {wxStyledTextCtrl, getWrapMode, 0}},
+ {3169, {wxStyledTextCtrl, setWrapVisualFlags, 1}},
+ {3170, {wxStyledTextCtrl, getWrapVisualFlags, 0}},
+ {3171, {wxStyledTextCtrl, setWrapVisualFlagsLocation, 1}},
+ {3172, {wxStyledTextCtrl, getWrapVisualFlagsLocation, 0}},
+ {3173, {wxStyledTextCtrl, setWrapStartIndent, 1}},
+ {3174, {wxStyledTextCtrl, getWrapStartIndent, 0}},
+ {3175, {wxStyledTextCtrl, setLayoutCache, 1}},
+ {3176, {wxStyledTextCtrl, getLayoutCache, 0}},
+ {3177, {wxStyledTextCtrl, setScrollWidth, 1}},
+ {3178, {wxStyledTextCtrl, getScrollWidth, 0}},
+ {3179, {wxStyledTextCtrl, textWidth, 2}},
+ {3180, {wxStyledTextCtrl, getEndAtLastLine, 0}},
+ {3181, {wxStyledTextCtrl, textHeight, 1}},
+ {3182, {wxStyledTextCtrl, setUseVerticalScrollBar, 1}},
+ {3183, {wxStyledTextCtrl, getUseVerticalScrollBar, 0}},
+ {3184, {wxStyledTextCtrl, appendText, 1}},
+ {3185, {wxStyledTextCtrl, getTwoPhaseDraw, 0}},
+ {3186, {wxStyledTextCtrl, setTwoPhaseDraw, 1}},
+ {3187, {wxStyledTextCtrl, targetFromSelection, 0}},
+ {3188, {wxStyledTextCtrl, linesJoin, 0}},
+ {3189, {wxStyledTextCtrl, linesSplit, 1}},
+ {3190, {wxStyledTextCtrl, setFoldMarginColour, 2}},
+ {3191, {wxStyledTextCtrl, setFoldMarginHiColour, 2}},
+ {3192, {wxStyledTextCtrl, lineDown, 0}},
+ {3193, {wxStyledTextCtrl, lineDownExtend, 0}},
+ {3194, {wxStyledTextCtrl, lineUp, 0}},
+ {3195, {wxStyledTextCtrl, lineUpExtend, 0}},
+ {3196, {wxStyledTextCtrl, charLeft, 0}},
+ {3197, {wxStyledTextCtrl, charLeftExtend, 0}},
+ {3198, {wxStyledTextCtrl, charRight, 0}},
+ {3199, {wxStyledTextCtrl, charRightExtend, 0}},
+ {3200, {wxStyledTextCtrl, wordLeft, 0}},
+ {3201, {wxStyledTextCtrl, wordLeftExtend, 0}},
+ {3202, {wxStyledTextCtrl, wordRight, 0}},
+ {3203, {wxStyledTextCtrl, wordRightExtend, 0}},
+ {3204, {wxStyledTextCtrl, home, 0}},
+ {3205, {wxStyledTextCtrl, homeExtend, 0}},
+ {3206, {wxStyledTextCtrl, lineEnd, 0}},
+ {3207, {wxStyledTextCtrl, lineEndExtend, 0}},
+ {3208, {wxStyledTextCtrl, documentStart, 0}},
+ {3209, {wxStyledTextCtrl, documentStartExtend, 0}},
+ {3210, {wxStyledTextCtrl, documentEnd, 0}},
+ {3211, {wxStyledTextCtrl, documentEndExtend, 0}},
+ {3212, {wxStyledTextCtrl, pageUp, 0}},
+ {3213, {wxStyledTextCtrl, pageUpExtend, 0}},
+ {3214, {wxStyledTextCtrl, pageDown, 0}},
+ {3215, {wxStyledTextCtrl, pageDownExtend, 0}},
+ {3216, {wxStyledTextCtrl, editToggleOvertype, 0}},
+ {3217, {wxStyledTextCtrl, cancel, 0}},
+ {3218, {wxStyledTextCtrl, deleteBack, 0}},
+ {3219, {wxStyledTextCtrl, tab, 0}},
+ {3220, {wxStyledTextCtrl, backTab, 0}},
+ {3221, {wxStyledTextCtrl, newLine, 0}},
+ {3222, {wxStyledTextCtrl, formFeed, 0}},
+ {3223, {wxStyledTextCtrl, vCHome, 0}},
+ {3224, {wxStyledTextCtrl, vCHomeExtend, 0}},
+ {3225, {wxStyledTextCtrl, zoomIn, 0}},
+ {3226, {wxStyledTextCtrl, zoomOut, 0}},
+ {3227, {wxStyledTextCtrl, delWordLeft, 0}},
+ {3228, {wxStyledTextCtrl, delWordRight, 0}},
+ {3229, {wxStyledTextCtrl, lineCut, 0}},
+ {3230, {wxStyledTextCtrl, lineDelete, 0}},
+ {3231, {wxStyledTextCtrl, lineTranspose, 0}},
+ {3232, {wxStyledTextCtrl, lineDuplicate, 0}},
+ {3233, {wxStyledTextCtrl, lowerCase, 0}},
+ {3234, {wxStyledTextCtrl, upperCase, 0}},
+ {3235, {wxStyledTextCtrl, lineScrollDown, 0}},
+ {3236, {wxStyledTextCtrl, lineScrollUp, 0}},
+ {3237, {wxStyledTextCtrl, deleteBackNotLine, 0}},
+ {3238, {wxStyledTextCtrl, homeDisplay, 0}},
+ {3239, {wxStyledTextCtrl, homeDisplayExtend, 0}},
+ {3240, {wxStyledTextCtrl, lineEndDisplay, 0}},
+ {3241, {wxStyledTextCtrl, lineEndDisplayExtend, 0}},
+ {3242, {wxStyledTextCtrl, homeWrapExtend, 0}},
+ {3243, {wxStyledTextCtrl, lineEndWrap, 0}},
+ {3244, {wxStyledTextCtrl, lineEndWrapExtend, 0}},
+ {3245, {wxStyledTextCtrl, vCHomeWrap, 0}},
+ {3246, {wxStyledTextCtrl, vCHomeWrapExtend, 0}},
+ {3247, {wxStyledTextCtrl, lineCopy, 0}},
+ {3248, {wxStyledTextCtrl, moveCaretInsideView, 0}},
+ {3249, {wxStyledTextCtrl, lineLength, 1}},
+ {3250, {wxStyledTextCtrl, braceHighlight, 2}},
+ {3251, {wxStyledTextCtrl, braceBadLight, 1}},
+ {3252, {wxStyledTextCtrl, braceMatch, 1}},
+ {3253, {wxStyledTextCtrl, getViewEOL, 0}},
+ {3254, {wxStyledTextCtrl, setViewEOL, 1}},
+ {3255, {wxStyledTextCtrl, setModEventMask, 1}},
+ {3256, {wxStyledTextCtrl, getEdgeColumn, 0}},
+ {3257, {wxStyledTextCtrl, setEdgeColumn, 1}},
+ {3258, {wxStyledTextCtrl, getEdgeMode, 0}},
+ {3259, {wxStyledTextCtrl, getEdgeColour, 0}},
+ {3260, {wxStyledTextCtrl, setEdgeColour, 1}},
+ {3261, {wxStyledTextCtrl, searchAnchor, 0}},
+ {3262, {wxStyledTextCtrl, searchNext, 2}},
+ {3263, {wxStyledTextCtrl, searchPrev, 2}},
+ {3264, {wxStyledTextCtrl, linesOnScreen, 0}},
+ {3265, {wxStyledTextCtrl, usePopUp, 1}},
+ {3266, {wxStyledTextCtrl, selectionIsRectangle, 0}},
+ {3267, {wxStyledTextCtrl, setZoom, 1}},
+ {3268, {wxStyledTextCtrl, getZoom, 0}},
+ {3269, {wxStyledTextCtrl, getModEventMask, 0}},
+ {3270, {wxStyledTextCtrl, setSTCFocus, 1}},
+ {3271, {wxStyledTextCtrl, getSTCFocus, 0}},
+ {3272, {wxStyledTextCtrl, setStatus, 1}},
+ {3273, {wxStyledTextCtrl, getStatus, 0}},
+ {3274, {wxStyledTextCtrl, setMouseDownCaptures, 1}},
+ {3275, {wxStyledTextCtrl, getMouseDownCaptures, 0}},
+ {3276, {wxStyledTextCtrl, setSTCCursor, 1}},
+ {3277, {wxStyledTextCtrl, getSTCCursor, 0}},
+ {3278, {wxStyledTextCtrl, setControlCharSymbol, 1}},
+ {3279, {wxStyledTextCtrl, getControlCharSymbol, 0}},
+ {3280, {wxStyledTextCtrl, wordPartLeft, 0}},
+ {3281, {wxStyledTextCtrl, wordPartLeftExtend, 0}},
+ {3282, {wxStyledTextCtrl, wordPartRight, 0}},
+ {3283, {wxStyledTextCtrl, wordPartRightExtend, 0}},
+ {3284, {wxStyledTextCtrl, setVisiblePolicy, 2}},
+ {3285, {wxStyledTextCtrl, delLineLeft, 0}},
+ {3286, {wxStyledTextCtrl, delLineRight, 0}},
+ {3287, {wxStyledTextCtrl, getXOffset, 0}},
+ {3288, {wxStyledTextCtrl, chooseCaretX, 0}},
+ {3289, {wxStyledTextCtrl, setXCaretPolicy, 2}},
+ {3290, {wxStyledTextCtrl, setYCaretPolicy, 2}},
+ {3291, {wxStyledTextCtrl, getPrintWrapMode, 0}},
+ {3292, {wxStyledTextCtrl, setHotspotActiveForeground, 2}},
+ {3293, {wxStyledTextCtrl, setHotspotActiveBackground, 2}},
+ {3294, {wxStyledTextCtrl, setHotspotActiveUnderline, 1}},
+ {3295, {wxStyledTextCtrl, setHotspotSingleLine, 1}},
+ {3296, {wxStyledTextCtrl, paraDownExtend, 0}},
+ {3297, {wxStyledTextCtrl, paraUp, 0}},
+ {3298, {wxStyledTextCtrl, paraUpExtend, 0}},
+ {3299, {wxStyledTextCtrl, positionBefore, 1}},
+ {3300, {wxStyledTextCtrl, positionAfter, 1}},
+ {3301, {wxStyledTextCtrl, copyRange, 2}},
+ {3302, {wxStyledTextCtrl, copyText, 2}},
+ {3303, {wxStyledTextCtrl, setSelectionMode, 1}},
+ {3304, {wxStyledTextCtrl, getSelectionMode, 0}},
+ {3305, {wxStyledTextCtrl, lineDownRectExtend, 0}},
+ {3306, {wxStyledTextCtrl, lineUpRectExtend, 0}},
+ {3307, {wxStyledTextCtrl, charLeftRectExtend, 0}},
+ {3308, {wxStyledTextCtrl, charRightRectExtend, 0}},
+ {3309, {wxStyledTextCtrl, homeRectExtend, 0}},
+ {3310, {wxStyledTextCtrl, vCHomeRectExtend, 0}},
+ {3311, {wxStyledTextCtrl, lineEndRectExtend, 0}},
+ {3312, {wxStyledTextCtrl, pageUpRectExtend, 0}},
+ {3313, {wxStyledTextCtrl, pageDownRectExtend, 0}},
+ {3314, {wxStyledTextCtrl, stutteredPageUp, 0}},
+ {3315, {wxStyledTextCtrl, stutteredPageUpExtend, 0}},
+ {3316, {wxStyledTextCtrl, stutteredPageDown, 0}},
+ {3317, {wxStyledTextCtrl, stutteredPageDownExtend, 0}},
+ {3318, {wxStyledTextCtrl, wordLeftEnd, 0}},
+ {3319, {wxStyledTextCtrl, wordLeftEndExtend, 0}},
+ {3320, {wxStyledTextCtrl, wordRightEnd, 0}},
+ {3321, {wxStyledTextCtrl, wordRightEndExtend, 0}},
+ {3322, {wxStyledTextCtrl, setWhitespaceChars, 1}},
+ {3323, {wxStyledTextCtrl, setCharsDefault, 0}},
+ {3324, {wxStyledTextCtrl, autoCompGetCurrent, 0}},
+ {3325, {wxStyledTextCtrl, allocate, 1}},
+ {3326, {wxStyledTextCtrl, findColumn, 2}},
+ {3327, {wxStyledTextCtrl, getCaretSticky, 0}},
+ {3328, {wxStyledTextCtrl, setCaretSticky, 1}},
+ {3329, {wxStyledTextCtrl, toggleCaretSticky, 0}},
+ {3330, {wxStyledTextCtrl, setPasteConvertEndings, 1}},
+ {3331, {wxStyledTextCtrl, getPasteConvertEndings, 0}},
+ {3332, {wxStyledTextCtrl, selectionDuplicate, 0}},
+ {3333, {wxStyledTextCtrl, setCaretLineBackAlpha, 1}},
+ {3334, {wxStyledTextCtrl, getCaretLineBackAlpha, 0}},
+ {3335, {wxStyledTextCtrl, startRecord, 0}},
+ {3336, {wxStyledTextCtrl, stopRecord, 0}},
+ {3337, {wxStyledTextCtrl, setLexer, 1}},
+ {3338, {wxStyledTextCtrl, getLexer, 0}},
+ {3339, {wxStyledTextCtrl, colourise, 2}},
+ {3340, {wxStyledTextCtrl, setProperty, 2}},
+ {3341, {wxStyledTextCtrl, setKeyWords, 2}},
+ {3342, {wxStyledTextCtrl, setLexerLanguage, 1}},
+ {3343, {wxStyledTextCtrl, getProperty, 1}},
+ {3344, {wxStyledTextCtrl, getStyleBitsNeeded, 0}},
+ {3345, {wxStyledTextCtrl, getCurrentLine, 0}},
+ {3346, {wxStyledTextCtrl, styleSetSpec, 2}},
+ {3347, {wxStyledTextCtrl, styleSetFont, 2}},
+ {3348, {wxStyledTextCtrl, styleSetFontAttr, 7}},
+ {3349, {wxStyledTextCtrl, styleSetCharacterSet, 2}},
+ {3350, {wxStyledTextCtrl, styleSetFontEncoding, 2}},
+ {3351, {wxStyledTextCtrl, cmdKeyExecute, 1}},
+ {3352, {wxStyledTextCtrl, setMargins, 2}},
+ {3353, {wxStyledTextCtrl, getSelection, 2}},
+ {3354, {wxStyledTextCtrl, pointFromPosition, 1}},
+ {3355, {wxStyledTextCtrl, scrollToLine, 1}},
+ {3356, {wxStyledTextCtrl, scrollToColumn, 1}},
+ {3357, {wxStyledTextCtrl, sendMsg, 2}},
+ {3358, {wxStyledTextCtrl, setVScrollBar, 1}},
+ {3359, {wxStyledTextCtrl, setHScrollBar, 1}},
+ {3360, {wxStyledTextCtrl, getLastKeydownProcessed, 0}},
+ {3361, {wxStyledTextCtrl, setLastKeydownProcessed, 1}},
+ {3362, {wxStyledTextCtrl, saveFile, 1}},
+ {3363, {wxStyledTextCtrl, loadFile, 1}},
+ {3364, {wxStyledTextCtrl, doDragOver, 3}},
+ {3365, {wxStyledTextCtrl, doDropText, 3}},
+ {3366, {wxStyledTextCtrl, getUseAntiAliasing, 0}},
+ {3367, {wxStyledTextCtrl, addTextRaw, 1}},
+ {3368, {wxStyledTextCtrl, insertTextRaw, 2}},
+ {3369, {wxStyledTextCtrl, getCurLineRaw, 1}},
+ {3370, {wxStyledTextCtrl, getLineRaw, 1}},
+ {3371, {wxStyledTextCtrl, getSelectedTextRaw, 0}},
+ {3372, {wxStyledTextCtrl, getTextRangeRaw, 2}},
+ {3373, {wxStyledTextCtrl, setTextRaw, 1}},
+ {3374, {wxStyledTextCtrl, getTextRaw, 0}},
+ {3375, {wxStyledTextCtrl, appendTextRaw, 1}},
+ {3376, {wxArtProvider, getBitmap, 2}},
+ {3377, {wxArtProvider, getIcon, 2}},
+ {3378, {wxTreeEvent, getKeyCode, 0}},
+ {3379, {wxTreeEvent, getItem, 0}},
+ {3380, {wxTreeEvent, getKeyEvent, 0}},
+ {3381, {wxTreeEvent, getLabel, 0}},
+ {3382, {wxTreeEvent, getOldItem, 0}},
+ {3383, {wxTreeEvent, getPoint, 0}},
+ {3384, {wxTreeEvent, isEditCancelled, 0}},
+ {3385, {wxTreeEvent, setToolTip, 1}},
+ {3386, {wxNotebookEvent, getOldSelection, 0}},
+ {3387, {wxNotebookEvent, getSelection, 0}},
+ {3388, {wxNotebookEvent, setOldSelection, 1}},
+ {3389, {wxNotebookEvent, setSelection, 1}},
+ {3390, {wxFileDataObject, new, 0}},
+ {3391, {wxFileDataObject, addFile, 1}},
+ {3392, {wxFileDataObject, getFilenames, 0}},
+ {3393, {wxFileDataObject, 'Destroy', undefined}},
+ {3394, {wxTextDataObject, new, 1}},
+ {3395, {wxTextDataObject, getTextLength, 0}},
+ {3396, {wxTextDataObject, getText, 0}},
+ {3397, {wxTextDataObject, setText, 1}},
+ {3398, {wxTextDataObject, 'Destroy', undefined}},
+ {3399, {wxBitmapDataObject, new_1_1, 1}},
+ {3400, {wxBitmapDataObject, new_1_0, 1}},
+ {3401, {wxBitmapDataObject, getBitmap, 0}},
+ {3402, {wxBitmapDataObject, setBitmap, 1}},
+ {3403, {wxBitmapDataObject, 'Destroy', undefined}},
+ {3405, {wxClipboard, new, 0}},
+ {3406, {wxClipboard, destruct, 0}},
+ {3407, {wxClipboard, addData, 1}},
+ {3408, {wxClipboard, clear, 0}},
+ {3409, {wxClipboard, close, 0}},
+ {3410, {wxClipboard, flush, 0}},
+ {3411, {wxClipboard, getData, 1}},
+ {3412, {wxClipboard, isOpened, 0}},
+ {3413, {wxClipboard, open, 0}},
+ {3414, {wxClipboard, setData, 1}},
+ {3416, {wxClipboard, usePrimarySelection, 1}},
+ {3417, {wxClipboard, isSupported, 1}},
+ {3418, {wxClipboard, get, 0}},
+ {3419, {wxSpinEvent, getPosition, 0}},
+ {3420, {wxSpinEvent, setPosition, 1}},
+ {3421, {wxSplitterWindow, new_0, 0}},
+ {3422, {wxSplitterWindow, new_2, 2}},
+ {3423, {wxSplitterWindow, destruct, 0}},
+ {3424, {wxSplitterWindow, create, 2}},
+ {3425, {wxSplitterWindow, getMinimumPaneSize, 0}},
+ {3426, {wxSplitterWindow, getSashGravity, 0}},
+ {3427, {wxSplitterWindow, getSashPosition, 0}},
+ {3428, {wxSplitterWindow, getSplitMode, 0}},
+ {3429, {wxSplitterWindow, getWindow1, 0}},
+ {3430, {wxSplitterWindow, getWindow2, 0}},
+ {3431, {wxSplitterWindow, initialize, 1}},
+ {3432, {wxSplitterWindow, isSplit, 0}},
+ {3433, {wxSplitterWindow, replaceWindow, 2}},
+ {3434, {wxSplitterWindow, setSashGravity, 1}},
+ {3435, {wxSplitterWindow, setSashPosition, 2}},
+ {3436, {wxSplitterWindow, setSashSize, 1}},
+ {3437, {wxSplitterWindow, setMinimumPaneSize, 1}},
+ {3438, {wxSplitterWindow, setSplitMode, 1}},
+ {3439, {wxSplitterWindow, splitHorizontally, 3}},
+ {3440, {wxSplitterWindow, splitVertically, 3}},
+ {3441, {wxSplitterWindow, unsplit, 1}},
+ {3442, {wxSplitterWindow, updateSize, 0}},
+ {3443, {wxSplitterEvent, getSashPosition, 0}},
+ {3444, {wxSplitterEvent, getX, 0}},
+ {3445, {wxSplitterEvent, getY, 0}},
+ {3446, {wxSplitterEvent, getWindowBeingRemoved, 0}},
+ {3447, {wxSplitterEvent, setSashPosition, 1}},
+ {3448, {wxHtmlWindow, new_0, 0}},
+ {3449, {wxHtmlWindow, new_2, 2}},
+ {3450, {wxHtmlWindow, appendToPage, 1}},
+ {3451, {wxHtmlWindow, getOpenedAnchor, 0}},
+ {3452, {wxHtmlWindow, getOpenedPage, 0}},
+ {3453, {wxHtmlWindow, getOpenedPageTitle, 0}},
+ {3454, {wxHtmlWindow, getRelatedFrame, 0}},
+ {3455, {wxHtmlWindow, historyBack, 0}},
+ {3456, {wxHtmlWindow, historyCanBack, 0}},
+ {3457, {wxHtmlWindow, historyCanForward, 0}},
+ {3458, {wxHtmlWindow, historyClear, 0}},
+ {3459, {wxHtmlWindow, historyForward, 0}},
+ {3460, {wxHtmlWindow, loadFile, 1}},
+ {3461, {wxHtmlWindow, loadPage, 1}},
+ {3462, {wxHtmlWindow, selectAll, 0}},
+ {3463, {wxHtmlWindow, selectionToText, 0}},
+ {3464, {wxHtmlWindow, selectLine, 1}},
+ {3465, {wxHtmlWindow, selectWord, 1}},
+ {3466, {wxHtmlWindow, setBorders, 1}},
+ {3467, {wxHtmlWindow, setFonts, 3}},
+ {3468, {wxHtmlWindow, setPage, 1}},
+ {3469, {wxHtmlWindow, setRelatedFrame, 2}},
+ {3470, {wxHtmlWindow, setRelatedStatusBar, 1}},
+ {3471, {wxHtmlWindow, toText, 0}},
+ {3472, {wxHtmlWindow, 'Destroy', undefined}},
+ {3473, {wxHtmlLinkEvent, getLinkInfo, 0}},
+ {3474, {wxAuiNotebookEvent, setSelection, 1}},
+ {3475, {wxAuiNotebookEvent, getSelection, 0}},
+ {3476, {wxAuiNotebookEvent, setOldSelection, 1}},
+ {3477, {wxAuiNotebookEvent, getOldSelection, 0}},
+ {3478, {wxAuiNotebookEvent, setDragSource, 1}},
+ {3479, {wxAuiNotebookEvent, getDragSource, 0}},
+ {3480, {wxAuiManagerEvent, setManager, 1}},
+ {3481, {wxAuiManagerEvent, getManager, 0}},
+ {3482, {wxAuiManagerEvent, setPane, 1}},
+ {3483, {wxAuiManagerEvent, getPane, 0}},
+ {3484, {wxAuiManagerEvent, setButton, 1}},
+ {3485, {wxAuiManagerEvent, getButton, 0}},
+ {3486, {wxAuiManagerEvent, setDC, 1}},
+ {3487, {wxAuiManagerEvent, getDC, 0}},
+ {3488, {wxAuiManagerEvent, veto, 1}},
+ {3489, {wxAuiManagerEvent, getVeto, 0}},
+ {3490, {wxAuiManagerEvent, setCanVeto, 1}},
+ {3491, {wxAuiManagerEvent, canVeto, 0}},
+ {3492, {wxLogNull, new, 0}},
+ {3493, {wxLogNull, 'Destroy', undefined}},
+ {-1, {mod, func, -1}}
+].
+
diff --git a/lib/wx/src/gen/wxe_funcs.hrl b/lib/wx/src/gen/wxe_funcs.hrl
new file mode 100644
index 0000000000..eef90961db
--- /dev/null
+++ b/lib/wx/src/gen/wxe_funcs.hrl
@@ -0,0 +1,3273 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%% This file is generated DO NOT EDIT
+
+%% We define each id so we don't get huge diffs when adding new funcs/classes
+
+-define(wxEvtHandler_Connect, 100).
+-define(wxEvtHandler_Disconnect_2, 101).
+-define(wxEvtHandler_Disconnect_1, 102).
+-define(wxEvtHandler_Disconnect_0, 103).
+-define(wxWindow_new_0, 105).
+-define(wxWindow_new_3, 106).
+-define(wxWindow_destruct, 108).
+-define(wxWindow_CacheBestSize, 109).
+-define(wxWindow_CaptureMouse, 110).
+-define(wxWindow_Center, 111).
+-define(wxWindow_CenterOnParent, 112).
+-define(wxWindow_Centre, 113).
+-define(wxWindow_CentreOnParent, 114).
+-define(wxWindow_ClearBackground, 115).
+-define(wxWindow_ClientToScreen_2, 116).
+-define(wxWindow_ClientToScreen_1, 117).
+-define(wxWindow_Close, 118).
+-define(wxWindow_ConvertDialogToPixels, 120).
+-define(wxWindow_ConvertPixelsToDialog, 122).
+-define(wxWindow_Destroy, 123).
+-define(wxWindow_DestroyChildren, 124).
+-define(wxWindow_Disable, 125).
+-define(wxWindow_Enable, 126).
+-define(wxWindow_FindFocus, 127).
+-define(wxWindow_FindWindow_1_0, 128).
+-define(wxWindow_FindWindow_1_1, 129).
+-define(wxWindow_FindWindowById, 130).
+-define(wxWindow_FindWindowByName, 131).
+-define(wxWindow_FindWindowByLabel, 132).
+-define(wxWindow_Fit, 133).
+-define(wxWindow_FitInside, 134).
+-define(wxWindow_Freeze, 135).
+-define(wxWindow_GetAcceleratorTable, 136).
+-define(wxWindow_GetBackgroundColour, 137).
+-define(wxWindow_GetBackgroundStyle, 138).
+-define(wxWindow_GetBestSize, 139).
+-define(wxWindow_GetCaret, 141).
+-define(wxWindow_GetCapture, 142).
+-define(wxWindow_GetCharHeight, 143).
+-define(wxWindow_GetCharWidth, 144).
+-define(wxWindow_GetChildren, 145).
+-define(wxWindow_GetClientSize, 148).
+-define(wxWindow_GetContainingSizer, 149).
+-define(wxWindow_GetCursor, 150).
+-define(wxWindow_GetDropTarget, 151).
+-define(wxWindow_GetEventHandler, 152).
+-define(wxWindow_GetExtraStyle, 153).
+-define(wxWindow_GetFont, 154).
+-define(wxWindow_GetForegroundColour, 155).
+-define(wxWindow_GetGrandParent, 156).
+-define(wxWindow_GetHandle, 157).
+-define(wxWindow_GetHelpText, 158).
+-define(wxWindow_GetId, 159).
+-define(wxWindow_GetLabel, 160).
+-define(wxWindow_GetMaxSize, 161).
+-define(wxWindow_GetMinSize, 162).
+-define(wxWindow_GetName, 163).
+-define(wxWindow_GetParent, 164).
+-define(wxWindow_GetPosition, 166).
+-define(wxWindow_GetRect, 167).
+-define(wxWindow_GetScreenPosition, 169).
+-define(wxWindow_GetScreenRect, 170).
+-define(wxWindow_GetScrollPos, 171).
+-define(wxWindow_GetScrollRange, 172).
+-define(wxWindow_GetScrollThumb, 173).
+-define(wxWindow_GetSize, 175).
+-define(wxWindow_GetSizer, 176).
+-define(wxWindow_GetTextExtent, 177).
+-define(wxWindow_GetToolTip, 178).
+-define(wxWindow_GetUpdateRegion, 179).
+-define(wxWindow_GetVirtualSize, 181).
+-define(wxWindow_GetWindowStyleFlag, 183).
+-define(wxWindow_GetWindowVariant, 184).
+-define(wxWindow_HasCapture, 185).
+-define(wxWindow_HasScrollbar, 186).
+-define(wxWindow_HasTransparentBackground, 187).
+-define(wxWindow_Hide, 188).
+-define(wxWindow_InheritAttributes, 189).
+-define(wxWindow_InitDialog, 190).
+-define(wxWindow_InvalidateBestSize, 191).
+-define(wxWindow_IsEnabled, 192).
+-define(wxWindow_IsExposed_2, 193).
+-define(wxWindow_IsExposed_4, 194).
+-define(wxWindow_IsExposed_1_0, 195).
+-define(wxWindow_IsExposed_1_1, 196).
+-define(wxWindow_IsRetained, 197).
+-define(wxWindow_IsShown, 198).
+-define(wxWindow_IsTopLevel, 199).
+-define(wxWindow_Layout, 200).
+-define(wxWindow_LineDown, 201).
+-define(wxWindow_LineUp, 202).
+-define(wxWindow_Lower, 203).
+-define(wxWindow_MakeModal, 204).
+-define(wxWindow_Move_3, 205).
+-define(wxWindow_Move_2, 206).
+-define(wxWindow_MoveAfterInTabOrder, 207).
+-define(wxWindow_MoveBeforeInTabOrder, 208).
+-define(wxWindow_Navigate, 209).
+-define(wxWindow_PageDown, 210).
+-define(wxWindow_PageUp, 211).
+-define(wxWindow_PopEventHandler, 212).
+-define(wxWindow_PopupMenu_2, 213).
+-define(wxWindow_PopupMenu_3, 214).
+-define(wxWindow_Raise, 215).
+-define(wxWindow_Refresh, 216).
+-define(wxWindow_RefreshRect, 217).
+-define(wxWindow_ReleaseMouse, 218).
+-define(wxWindow_RemoveChild, 219).
+-define(wxWindow_Reparent, 220).
+-define(wxWindow_ScreenToClient_2, 221).
+-define(wxWindow_ScreenToClient_1, 222).
+-define(wxWindow_ScrollLines, 224).
+-define(wxWindow_ScrollPages, 226).
+-define(wxWindow_ScrollWindow, 227).
+-define(wxWindow_SetAcceleratorTable, 228).
+-define(wxWindow_SetAutoLayout, 229).
+-define(wxWindow_SetBackgroundColour, 230).
+-define(wxWindow_SetBackgroundStyle, 231).
+-define(wxWindow_SetCaret, 232).
+-define(wxWindow_SetClientSize_2, 233).
+-define(wxWindow_SetClientSize_1_0, 234).
+-define(wxWindow_SetClientSize_1_1, 235).
+-define(wxWindow_SetContainingSizer, 236).
+-define(wxWindow_SetCursor, 237).
+-define(wxWindow_SetMaxSize, 238).
+-define(wxWindow_SetMinSize, 239).
+-define(wxWindow_SetOwnBackgroundColour, 240).
+-define(wxWindow_SetOwnFont, 241).
+-define(wxWindow_SetOwnForegroundColour, 242).
+-define(wxWindow_SetDropTarget, 243).
+-define(wxWindow_SetExtraStyle, 244).
+-define(wxWindow_SetFocus, 245).
+-define(wxWindow_SetFocusFromKbd, 246).
+-define(wxWindow_SetFont, 247).
+-define(wxWindow_SetForegroundColour, 248).
+-define(wxWindow_SetHelpText, 249).
+-define(wxWindow_SetId, 250).
+-define(wxWindow_SetLabel, 252).
+-define(wxWindow_SetName, 253).
+-define(wxWindow_SetPalette, 254).
+-define(wxWindow_SetScrollbar, 255).
+-define(wxWindow_SetScrollPos, 256).
+-define(wxWindow_SetSize_5, 257).
+-define(wxWindow_SetSize_2_0, 258).
+-define(wxWindow_SetSize_1, 259).
+-define(wxWindow_SetSize_2_1, 260).
+-define(wxWindow_SetSizeHints_3, 261).
+-define(wxWindow_SetSizeHints_2, 262).
+-define(wxWindow_SetSizer, 263).
+-define(wxWindow_SetSizerAndFit, 264).
+-define(wxWindow_SetThemeEnabled, 265).
+-define(wxWindow_SetToolTip_1_0, 266).
+-define(wxWindow_SetToolTip_1_1, 267).
+-define(wxWindow_SetVirtualSize_1, 268).
+-define(wxWindow_SetVirtualSize_2, 269).
+-define(wxWindow_SetVirtualSizeHints_3, 270).
+-define(wxWindow_SetVirtualSizeHints_2, 271).
+-define(wxWindow_SetWindowStyle, 272).
+-define(wxWindow_SetWindowStyleFlag, 273).
+-define(wxWindow_SetWindowVariant, 274).
+-define(wxWindow_ShouldInheritColours, 275).
+-define(wxWindow_Show, 276).
+-define(wxWindow_Thaw, 277).
+-define(wxWindow_TransferDataFromWindow, 278).
+-define(wxWindow_TransferDataToWindow, 279).
+-define(wxWindow_Update, 280).
+-define(wxWindow_UpdateWindowUI, 281).
+-define(wxWindow_Validate, 282).
+-define(wxWindow_WarpPointer, 283).
+-define(wxTopLevelWindow_GetIcon, 284).
+-define(wxTopLevelWindow_GetIcons, 285).
+-define(wxTopLevelWindow_GetTitle, 286).
+-define(wxTopLevelWindow_IsActive, 287).
+-define(wxTopLevelWindow_Iconize, 288).
+-define(wxTopLevelWindow_IsFullScreen, 289).
+-define(wxTopLevelWindow_IsIconized, 290).
+-define(wxTopLevelWindow_IsMaximized, 291).
+-define(wxTopLevelWindow_Maximize, 292).
+-define(wxTopLevelWindow_RequestUserAttention, 293).
+-define(wxTopLevelWindow_SetIcon, 294).
+-define(wxTopLevelWindow_SetIcons, 295).
+-define(wxTopLevelWindow_CenterOnScreen, 296).
+-define(wxTopLevelWindow_CentreOnScreen, 297).
+-define(wxTopLevelWindow_SetShape, 299).
+-define(wxTopLevelWindow_SetTitle, 300).
+-define(wxTopLevelWindow_ShowFullScreen, 301).
+-define(wxFrame_new_4, 303).
+-define(wxFrame_new_0, 304).
+-define(wxFrame_destruct, 306).
+-define(wxFrame_Create, 307).
+-define(wxFrame_CreateStatusBar, 308).
+-define(wxFrame_CreateToolBar, 309).
+-define(wxFrame_GetClientAreaOrigin, 310).
+-define(wxFrame_GetMenuBar, 311).
+-define(wxFrame_GetStatusBar, 312).
+-define(wxFrame_GetStatusBarPane, 313).
+-define(wxFrame_GetToolBar, 314).
+-define(wxFrame_ProcessCommand, 315).
+-define(wxFrame_SendSizeEvent, 316).
+-define(wxFrame_SetMenuBar, 317).
+-define(wxFrame_SetStatusBar, 318).
+-define(wxFrame_SetStatusBarPane, 319).
+-define(wxFrame_SetStatusText, 320).
+-define(wxFrame_SetStatusWidths, 321).
+-define(wxFrame_SetToolBar, 322).
+-define(wxMiniFrame_new_0, 323).
+-define(wxMiniFrame_new_4, 324).
+-define(wxMiniFrame_Create, 325).
+-define(wxMiniFrame_destroy, 326).
+-define(wxSplashScreen_new_0, 327).
+-define(wxSplashScreen_new_6, 328).
+-define(wxSplashScreen_destruct, 329).
+-define(wxSplashScreen_GetSplashStyle, 330).
+-define(wxSplashScreen_GetTimeout, 331).
+-define(wxPanel_new_0, 332).
+-define(wxPanel_new_6, 333).
+-define(wxPanel_new_2, 334).
+-define(wxPanel_destruct, 335).
+-define(wxPanel_InitDialog, 336).
+-define(wxScrolledWindow_new_0, 337).
+-define(wxScrolledWindow_new_2, 338).
+-define(wxScrolledWindow_destruct, 339).
+-define(wxScrolledWindow_CalcScrolledPosition_4, 340).
+-define(wxScrolledWindow_CalcScrolledPosition_1, 341).
+-define(wxScrolledWindow_CalcUnscrolledPosition_4, 342).
+-define(wxScrolledWindow_CalcUnscrolledPosition_1, 343).
+-define(wxScrolledWindow_EnableScrolling, 344).
+-define(wxScrolledWindow_GetScrollPixelsPerUnit, 345).
+-define(wxScrolledWindow_GetViewStart, 346).
+-define(wxScrolledWindow_DoPrepareDC, 347).
+-define(wxScrolledWindow_PrepareDC, 348).
+-define(wxScrolledWindow_Scroll, 349).
+-define(wxScrolledWindow_SetScrollbars, 350).
+-define(wxScrolledWindow_SetScrollRate, 351).
+-define(wxScrolledWindow_SetTargetWindow, 352).
+-define(wxSashWindow_new_0, 353).
+-define(wxSashWindow_new_2, 354).
+-define(wxSashWindow_destruct, 355).
+-define(wxSashWindow_GetSashVisible, 356).
+-define(wxSashWindow_GetMaximumSizeX, 357).
+-define(wxSashWindow_GetMaximumSizeY, 358).
+-define(wxSashWindow_GetMinimumSizeX, 359).
+-define(wxSashWindow_GetMinimumSizeY, 360).
+-define(wxSashWindow_SetMaximumSizeX, 361).
+-define(wxSashWindow_SetMaximumSizeY, 362).
+-define(wxSashWindow_SetMinimumSizeX, 363).
+-define(wxSashWindow_SetMinimumSizeY, 364).
+-define(wxSashWindow_SetSashVisible, 365).
+-define(wxSashLayoutWindow_new_0, 366).
+-define(wxSashLayoutWindow_new_2, 367).
+-define(wxSashLayoutWindow_Create, 368).
+-define(wxSashLayoutWindow_GetAlignment, 369).
+-define(wxSashLayoutWindow_GetOrientation, 370).
+-define(wxSashLayoutWindow_SetAlignment, 371).
+-define(wxSashLayoutWindow_SetDefaultSize, 372).
+-define(wxSashLayoutWindow_SetOrientation, 373).
+-define(wxSashLayoutWindow_destroy, 374).
+-define(wxGrid_new_0, 375).
+-define(wxGrid_new_3, 376).
+-define(wxGrid_new_4, 377).
+-define(wxGrid_destruct, 378).
+-define(wxGrid_AppendCols, 379).
+-define(wxGrid_AppendRows, 380).
+-define(wxGrid_AutoSize, 381).
+-define(wxGrid_AutoSizeColumn, 382).
+-define(wxGrid_AutoSizeColumns, 383).
+-define(wxGrid_AutoSizeRow, 384).
+-define(wxGrid_AutoSizeRows, 385).
+-define(wxGrid_BeginBatch, 386).
+-define(wxGrid_BlockToDeviceRect, 387).
+-define(wxGrid_CanDragColSize, 388).
+-define(wxGrid_CanDragRowSize, 389).
+-define(wxGrid_CanDragGridSize, 390).
+-define(wxGrid_CanEnableCellControl, 391).
+-define(wxGrid_CellToRect_2, 392).
+-define(wxGrid_CellToRect_1, 393).
+-define(wxGrid_ClearGrid, 394).
+-define(wxGrid_ClearSelection, 395).
+-define(wxGrid_CreateGrid, 396).
+-define(wxGrid_DeleteCols, 397).
+-define(wxGrid_DeleteRows, 398).
+-define(wxGrid_DisableCellEditControl, 399).
+-define(wxGrid_DisableDragColSize, 400).
+-define(wxGrid_DisableDragGridSize, 401).
+-define(wxGrid_DisableDragRowSize, 402).
+-define(wxGrid_EnableCellEditControl, 403).
+-define(wxGrid_EnableDragColSize, 404).
+-define(wxGrid_EnableDragGridSize, 405).
+-define(wxGrid_EnableDragRowSize, 406).
+-define(wxGrid_EnableEditing, 407).
+-define(wxGrid_EnableGridLines, 408).
+-define(wxGrid_EndBatch, 409).
+-define(wxGrid_Fit, 410).
+-define(wxGrid_ForceRefresh, 411).
+-define(wxGrid_GetBatchCount, 412).
+-define(wxGrid_GetCellAlignment, 413).
+-define(wxGrid_GetCellBackgroundColour, 414).
+-define(wxGrid_GetCellEditor, 415).
+-define(wxGrid_GetCellFont, 416).
+-define(wxGrid_GetCellRenderer, 417).
+-define(wxGrid_GetCellTextColour, 418).
+-define(wxGrid_GetCellValue_2, 419).
+-define(wxGrid_GetCellValue_1, 420).
+-define(wxGrid_GetColLabelAlignment, 421).
+-define(wxGrid_GetColLabelSize, 422).
+-define(wxGrid_GetColLabelValue, 423).
+-define(wxGrid_GetColMinimalAcceptableWidth, 424).
+-define(wxGrid_GetDefaultCellAlignment, 425).
+-define(wxGrid_GetDefaultCellBackgroundColour, 426).
+-define(wxGrid_GetDefaultCellFont, 427).
+-define(wxGrid_GetDefaultCellTextColour, 428).
+-define(wxGrid_GetDefaultColLabelSize, 429).
+-define(wxGrid_GetDefaultColSize, 430).
+-define(wxGrid_GetDefaultEditor, 431).
+-define(wxGrid_GetDefaultEditorForCell_2, 432).
+-define(wxGrid_GetDefaultEditorForCell_1, 433).
+-define(wxGrid_GetDefaultEditorForType, 434).
+-define(wxGrid_GetDefaultRenderer, 435).
+-define(wxGrid_GetDefaultRendererForCell, 436).
+-define(wxGrid_GetDefaultRendererForType, 437).
+-define(wxGrid_GetDefaultRowLabelSize, 438).
+-define(wxGrid_GetDefaultRowSize, 439).
+-define(wxGrid_GetGridCursorCol, 440).
+-define(wxGrid_GetGridCursorRow, 441).
+-define(wxGrid_GetGridLineColour, 442).
+-define(wxGrid_GridLinesEnabled, 443).
+-define(wxGrid_GetLabelBackgroundColour, 444).
+-define(wxGrid_GetLabelFont, 445).
+-define(wxGrid_GetLabelTextColour, 446).
+-define(wxGrid_GetNumberCols, 447).
+-define(wxGrid_GetNumberRows, 448).
+-define(wxGrid_GetOrCreateCellAttr, 449).
+-define(wxGrid_GetRowMinimalAcceptableHeight, 450).
+-define(wxGrid_GetRowLabelAlignment, 451).
+-define(wxGrid_GetRowLabelSize, 452).
+-define(wxGrid_GetRowLabelValue, 453).
+-define(wxGrid_GetRowSize, 454).
+-define(wxGrid_GetScrollLineX, 455).
+-define(wxGrid_GetScrollLineY, 456).
+-define(wxGrid_GetSelectedCells, 457).
+-define(wxGrid_GetSelectedCols, 458).
+-define(wxGrid_GetSelectedRows, 459).
+-define(wxGrid_GetSelectionBackground, 460).
+-define(wxGrid_GetSelectionBlockTopLeft, 461).
+-define(wxGrid_GetSelectionBlockBottomRight, 462).
+-define(wxGrid_GetSelectionForeground, 463).
+-define(wxGrid_GetViewWidth, 464).
+-define(wxGrid_GetGridWindow, 465).
+-define(wxGrid_GetGridRowLabelWindow, 466).
+-define(wxGrid_GetGridColLabelWindow, 467).
+-define(wxGrid_GetGridCornerLabelWindow, 468).
+-define(wxGrid_HideCellEditControl, 469).
+-define(wxGrid_InsertCols, 470).
+-define(wxGrid_InsertRows, 471).
+-define(wxGrid_IsCellEditControlEnabled, 472).
+-define(wxGrid_IsCurrentCellReadOnly, 473).
+-define(wxGrid_IsEditable, 474).
+-define(wxGrid_IsInSelection_2, 475).
+-define(wxGrid_IsInSelection_1, 476).
+-define(wxGrid_IsReadOnly, 477).
+-define(wxGrid_IsSelection, 478).
+-define(wxGrid_IsVisible_3, 479).
+-define(wxGrid_IsVisible_2, 480).
+-define(wxGrid_MakeCellVisible_2, 481).
+-define(wxGrid_MakeCellVisible_1, 482).
+-define(wxGrid_MoveCursorDown, 483).
+-define(wxGrid_MoveCursorLeft, 484).
+-define(wxGrid_MoveCursorRight, 485).
+-define(wxGrid_MoveCursorUp, 486).
+-define(wxGrid_MoveCursorDownBlock, 487).
+-define(wxGrid_MoveCursorLeftBlock, 488).
+-define(wxGrid_MoveCursorRightBlock, 489).
+-define(wxGrid_MoveCursorUpBlock, 490).
+-define(wxGrid_MovePageDown, 491).
+-define(wxGrid_MovePageUp, 492).
+-define(wxGrid_RegisterDataType, 493).
+-define(wxGrid_SaveEditControlValue, 494).
+-define(wxGrid_SelectAll, 495).
+-define(wxGrid_SelectBlock_5, 496).
+-define(wxGrid_SelectBlock_3, 497).
+-define(wxGrid_SelectCol, 498).
+-define(wxGrid_SelectRow, 499).
+-define(wxGrid_SetCellAlignment_4, 500).
+-define(wxGrid_SetCellAlignment_3, 501).
+-define(wxGrid_SetCellAlignment_1, 502).
+-define(wxGrid_SetCellBackgroundColour_3_0, 503).
+-define(wxGrid_SetCellBackgroundColour_1, 504).
+-define(wxGrid_SetCellBackgroundColour_3_1, 505).
+-define(wxGrid_SetCellEditor, 506).
+-define(wxGrid_SetCellFont, 507).
+-define(wxGrid_SetCellRenderer, 508).
+-define(wxGrid_SetCellTextColour_3_0, 509).
+-define(wxGrid_SetCellTextColour_3_1, 510).
+-define(wxGrid_SetCellTextColour_1, 511).
+-define(wxGrid_SetCellValue_3_0, 512).
+-define(wxGrid_SetCellValue_2, 513).
+-define(wxGrid_SetCellValue_3_1, 514).
+-define(wxGrid_SetColAttr, 515).
+-define(wxGrid_SetColFormatBool, 516).
+-define(wxGrid_SetColFormatNumber, 517).
+-define(wxGrid_SetColFormatFloat, 518).
+-define(wxGrid_SetColFormatCustom, 519).
+-define(wxGrid_SetColLabelAlignment, 520).
+-define(wxGrid_SetColLabelSize, 521).
+-define(wxGrid_SetColLabelValue, 522).
+-define(wxGrid_SetColMinimalWidth, 523).
+-define(wxGrid_SetColMinimalAcceptableWidth, 524).
+-define(wxGrid_SetColSize, 525).
+-define(wxGrid_SetDefaultCellAlignment, 526).
+-define(wxGrid_SetDefaultCellBackgroundColour, 527).
+-define(wxGrid_SetDefaultCellFont, 528).
+-define(wxGrid_SetDefaultCellTextColour, 529).
+-define(wxGrid_SetDefaultEditor, 530).
+-define(wxGrid_SetDefaultRenderer, 531).
+-define(wxGrid_SetDefaultColSize, 532).
+-define(wxGrid_SetDefaultRowSize, 533).
+-define(wxGrid_SetGridCursor, 534).
+-define(wxGrid_SetGridLineColour, 535).
+-define(wxGrid_SetLabelBackgroundColour, 536).
+-define(wxGrid_SetLabelFont, 537).
+-define(wxGrid_SetLabelTextColour, 538).
+-define(wxGrid_SetMargins, 539).
+-define(wxGrid_SetReadOnly, 540).
+-define(wxGrid_SetRowAttr, 541).
+-define(wxGrid_SetRowLabelAlignment, 542).
+-define(wxGrid_SetRowLabelSize, 543).
+-define(wxGrid_SetRowLabelValue, 544).
+-define(wxGrid_SetRowMinimalHeight, 545).
+-define(wxGrid_SetRowMinimalAcceptableHeight, 546).
+-define(wxGrid_SetRowSize, 547).
+-define(wxGrid_SetScrollLineX, 548).
+-define(wxGrid_SetScrollLineY, 549).
+-define(wxGrid_SetSelectionBackground, 550).
+-define(wxGrid_SetSelectionForeground, 551).
+-define(wxGrid_SetSelectionMode, 552).
+-define(wxGrid_ShowCellEditControl, 553).
+-define(wxGrid_XToCol, 554).
+-define(wxGrid_XToEdgeOfCol, 555).
+-define(wxGrid_YToEdgeOfRow, 556).
+-define(wxGrid_YToRow, 557).
+-define(wxGridCellRenderer_Draw, 558).
+-define(wxGridCellRenderer_GetBestSize, 559).
+-define(wxGridCellEditor_Create, 560).
+-define(wxGridCellEditor_IsCreated, 561).
+-define(wxGridCellEditor_SetSize, 562).
+-define(wxGridCellEditor_Show, 563).
+-define(wxGridCellEditor_PaintBackground, 564).
+-define(wxGridCellEditor_BeginEdit, 565).
+-define(wxGridCellEditor_EndEdit, 566).
+-define(wxGridCellEditor_Reset, 567).
+-define(wxGridCellEditor_StartingKey, 568).
+-define(wxGridCellEditor_StartingClick, 569).
+-define(wxGridCellEditor_HandleReturn, 570).
+-define(wxGridCellBoolRenderer_new, 571).
+-define(wxGridCellBoolRenderer_destroy, 572).
+-define(wxGridCellBoolEditor_new, 573).
+-define(wxGridCellBoolEditor_IsTrueValue, 574).
+-define(wxGridCellBoolEditor_UseStringValues, 575).
+-define(wxGridCellBoolEditor_destroy, 576).
+-define(wxGridCellFloatRenderer_new, 577).
+-define(wxGridCellFloatRenderer_GetPrecision, 578).
+-define(wxGridCellFloatRenderer_GetWidth, 579).
+-define(wxGridCellFloatRenderer_SetParameters, 580).
+-define(wxGridCellFloatRenderer_SetPrecision, 581).
+-define(wxGridCellFloatRenderer_SetWidth, 582).
+-define(wxGridCellFloatRenderer_destroy, 583).
+-define(wxGridCellFloatEditor_new, 584).
+-define(wxGridCellFloatEditor_SetParameters, 585).
+-define(wxGridCellFloatEditor_destroy, 586).
+-define(wxGridCellStringRenderer_new, 587).
+-define(wxGridCellStringRenderer_destroy, 588).
+-define(wxGridCellTextEditor_new, 589).
+-define(wxGridCellTextEditor_SetParameters, 590).
+-define(wxGridCellTextEditor_destroy, 591).
+-define(wxGridCellChoiceEditor_new, 593).
+-define(wxGridCellChoiceEditor_SetParameters, 594).
+-define(wxGridCellChoiceEditor_destroy, 595).
+-define(wxGridCellNumberRenderer_new, 596).
+-define(wxGridCellNumberRenderer_destroy, 597).
+-define(wxGridCellNumberEditor_new, 598).
+-define(wxGridCellNumberEditor_GetValue, 599).
+-define(wxGridCellNumberEditor_SetParameters, 600).
+-define(wxGridCellNumberEditor_destroy, 601).
+-define(wxGridCellAttr_SetTextColour, 602).
+-define(wxGridCellAttr_SetBackgroundColour, 603).
+-define(wxGridCellAttr_SetFont, 604).
+-define(wxGridCellAttr_SetAlignment, 605).
+-define(wxGridCellAttr_SetReadOnly, 606).
+-define(wxGridCellAttr_SetRenderer, 607).
+-define(wxGridCellAttr_SetEditor, 608).
+-define(wxGridCellAttr_HasTextColour, 609).
+-define(wxGridCellAttr_HasBackgroundColour, 610).
+-define(wxGridCellAttr_HasFont, 611).
+-define(wxGridCellAttr_HasAlignment, 612).
+-define(wxGridCellAttr_HasRenderer, 613).
+-define(wxGridCellAttr_HasEditor, 614).
+-define(wxGridCellAttr_GetTextColour, 615).
+-define(wxGridCellAttr_GetBackgroundColour, 616).
+-define(wxGridCellAttr_GetFont, 617).
+-define(wxGridCellAttr_GetAlignment, 618).
+-define(wxGridCellAttr_GetRenderer, 619).
+-define(wxGridCellAttr_GetEditor, 620).
+-define(wxGridCellAttr_IsReadOnly, 621).
+-define(wxGridCellAttr_SetDefAttr, 622).
+-define(wxDC_Blit, 623).
+-define(wxDC_CalcBoundingBox, 624).
+-define(wxDC_Clear, 625).
+-define(wxDC_ComputeScaleAndOrigin, 626).
+-define(wxDC_CrossHair, 627).
+-define(wxDC_DestroyClippingRegion, 628).
+-define(wxDC_DeviceToLogicalX, 629).
+-define(wxDC_DeviceToLogicalXRel, 630).
+-define(wxDC_DeviceToLogicalY, 631).
+-define(wxDC_DeviceToLogicalYRel, 632).
+-define(wxDC_DrawArc, 633).
+-define(wxDC_DrawBitmap, 634).
+-define(wxDC_DrawCheckMark, 635).
+-define(wxDC_DrawCircle, 636).
+-define(wxDC_DrawEllipse_2, 638).
+-define(wxDC_DrawEllipse_1, 639).
+-define(wxDC_DrawEllipticArc, 640).
+-define(wxDC_DrawIcon, 641).
+-define(wxDC_DrawLabel, 642).
+-define(wxDC_DrawLine, 643).
+-define(wxDC_DrawLines, 644).
+-define(wxDC_DrawPolygon, 646).
+-define(wxDC_DrawPoint, 648).
+-define(wxDC_DrawRectangle_2, 650).
+-define(wxDC_DrawRectangle_1, 651).
+-define(wxDC_DrawRotatedText, 652).
+-define(wxDC_DrawRoundedRectangle_3, 654).
+-define(wxDC_DrawRoundedRectangle_2, 655).
+-define(wxDC_DrawText, 656).
+-define(wxDC_EndDoc, 657).
+-define(wxDC_EndPage, 658).
+-define(wxDC_FloodFill, 659).
+-define(wxDC_GetBackground, 660).
+-define(wxDC_GetBackgroundMode, 661).
+-define(wxDC_GetBrush, 662).
+-define(wxDC_GetCharHeight, 663).
+-define(wxDC_GetCharWidth, 664).
+-define(wxDC_GetClippingBox, 665).
+-define(wxDC_GetFont, 666).
+-define(wxDC_GetLayoutDirection, 667).
+-define(wxDC_GetLogicalFunction, 668).
+-define(wxDC_GetMapMode, 669).
+-define(wxDC_GetMultiLineTextExtent_4, 670).
+-define(wxDC_GetMultiLineTextExtent_1, 671).
+-define(wxDC_GetPartialTextExtents, 672).
+-define(wxDC_GetPen, 673).
+-define(wxDC_GetPixel, 674).
+-define(wxDC_GetPPI, 675).
+-define(wxDC_GetSize, 677).
+-define(wxDC_GetSizeMM, 679).
+-define(wxDC_GetTextBackground, 680).
+-define(wxDC_GetTextExtent_4, 681).
+-define(wxDC_GetTextExtent_1, 682).
+-define(wxDC_GetTextForeground, 684).
+-define(wxDC_GetUserScale, 685).
+-define(wxDC_GradientFillConcentric_3, 686).
+-define(wxDC_GradientFillConcentric_4, 687).
+-define(wxDC_GradientFillLinear, 688).
+-define(wxDC_LogicalToDeviceX, 689).
+-define(wxDC_LogicalToDeviceXRel, 690).
+-define(wxDC_LogicalToDeviceY, 691).
+-define(wxDC_LogicalToDeviceYRel, 692).
+-define(wxDC_MaxX, 693).
+-define(wxDC_MaxY, 694).
+-define(wxDC_MinX, 695).
+-define(wxDC_MinY, 696).
+-define(wxDC_IsOk, 697).
+-define(wxDC_ResetBoundingBox, 698).
+-define(wxDC_SetAxisOrientation, 699).
+-define(wxDC_SetBackground, 700).
+-define(wxDC_SetBackgroundMode, 701).
+-define(wxDC_SetBrush, 702).
+-define(wxDC_SetClippingRegion_2, 704).
+-define(wxDC_SetClippingRegion_1_1, 705).
+-define(wxDC_SetClippingRegion_1_0, 706).
+-define(wxDC_SetDeviceOrigin, 707).
+-define(wxDC_SetFont, 708).
+-define(wxDC_SetLayoutDirection, 709).
+-define(wxDC_SetLogicalFunction, 710).
+-define(wxDC_SetMapMode, 711).
+-define(wxDC_SetPalette, 712).
+-define(wxDC_SetPen, 713).
+-define(wxDC_SetTextBackground, 714).
+-define(wxDC_SetTextForeground, 715).
+-define(wxDC_SetUserScale, 716).
+-define(wxDC_StartDoc, 717).
+-define(wxDC_StartPage, 718).
+-define(wxMirrorDC_new, 719).
+-define(wxMirrorDC_destroy, 720).
+-define(wxScreenDC_new, 721).
+-define(wxScreenDC_destruct, 722).
+-define(wxPostScriptDC_new_0, 723).
+-define(wxPostScriptDC_new_1, 724).
+-define(wxPostScriptDC_destruct, 725).
+-define(wxPostScriptDC_SetResolution, 726).
+-define(wxPostScriptDC_GetResolution, 727).
+-define(wxWindowDC_new_0, 728).
+-define(wxWindowDC_new_1, 729).
+-define(wxWindowDC_destruct, 730).
+-define(wxClientDC_new_0, 731).
+-define(wxClientDC_new_1, 732).
+-define(wxClientDC_destroy, 733).
+-define(wxPaintDC_new_0, 734).
+-define(wxPaintDC_new_1, 735).
+-define(wxPaintDC_destroy, 736).
+-define(wxMemoryDC_new_1_0, 738).
+-define(wxMemoryDC_new_1_1, 739).
+-define(wxMemoryDC_new_0, 740).
+-define(wxMemoryDC_destruct, 742).
+-define(wxMemoryDC_SelectObject, 743).
+-define(wxMemoryDC_SelectObjectAsSource, 744).
+-define(wxBufferedDC_new_0, 745).
+-define(wxBufferedDC_new_2, 746).
+-define(wxBufferedDC_new_3, 747).
+-define(wxBufferedDC_destruct, 748).
+-define(wxBufferedDC_Init_2, 749).
+-define(wxBufferedDC_Init_3, 750).
+-define(wxBufferedPaintDC_new_3, 751).
+-define(wxBufferedPaintDC_new_2, 752).
+-define(wxBufferedPaintDC_destruct, 753).
+-define(wxGraphicsObject_GetRenderer, 754).
+-define(wxGraphicsObject_IsNull, 755).
+-define(wxGraphicsContext_Create_1_1, 756).
+-define(wxGraphicsContext_Create_1_0, 757).
+-define(wxGraphicsContext_Create_0, 758).
+-define(wxGraphicsContext_CreatePen, 759).
+-define(wxGraphicsContext_CreateBrush, 760).
+-define(wxGraphicsContext_CreateRadialGradientBrush, 761).
+-define(wxGraphicsContext_CreateLinearGradientBrush, 762).
+-define(wxGraphicsContext_CreateFont, 763).
+-define(wxGraphicsContext_CreateMatrix, 764).
+-define(wxGraphicsContext_CreatePath, 765).
+-define(wxGraphicsContext_Clip_1, 766).
+-define(wxGraphicsContext_Clip_4, 767).
+-define(wxGraphicsContext_ResetClip, 768).
+-define(wxGraphicsContext_DrawBitmap, 769).
+-define(wxGraphicsContext_DrawEllipse, 770).
+-define(wxGraphicsContext_DrawIcon, 771).
+-define(wxGraphicsContext_DrawLines, 772).
+-define(wxGraphicsContext_DrawPath, 773).
+-define(wxGraphicsContext_DrawRectangle, 774).
+-define(wxGraphicsContext_DrawRoundedRectangle, 775).
+-define(wxGraphicsContext_DrawText_3, 776).
+-define(wxGraphicsContext_DrawText_4_0, 777).
+-define(wxGraphicsContext_DrawText_4_1, 778).
+-define(wxGraphicsContext_DrawText_5, 779).
+-define(wxGraphicsContext_FillPath, 780).
+-define(wxGraphicsContext_StrokePath, 781).
+-define(wxGraphicsContext_GetNativeContext, 782).
+-define(wxGraphicsContext_GetPartialTextExtents, 783).
+-define(wxGraphicsContext_GetTextExtent, 784).
+-define(wxGraphicsContext_Rotate, 785).
+-define(wxGraphicsContext_Scale, 786).
+-define(wxGraphicsContext_Translate, 787).
+-define(wxGraphicsContext_GetTransform, 788).
+-define(wxGraphicsContext_SetTransform, 789).
+-define(wxGraphicsContext_ConcatTransform, 790).
+-define(wxGraphicsContext_SetBrush_1_1, 791).
+-define(wxGraphicsContext_SetBrush_1_0, 792).
+-define(wxGraphicsContext_SetFont_1, 793).
+-define(wxGraphicsContext_SetFont_2, 794).
+-define(wxGraphicsContext_SetPen_1_0, 795).
+-define(wxGraphicsContext_SetPen_1_1, 796).
+-define(wxGraphicsContext_StrokeLine, 797).
+-define(wxGraphicsContext_StrokeLines_2, 798).
+-define(wxGraphicsContext_StrokeLines_3, 799).
+-define(wxGraphicsMatrix_Concat, 800).
+-define(wxGraphicsMatrix_Get, 802).
+-define(wxGraphicsMatrix_GetNativeMatrix, 803).
+-define(wxGraphicsMatrix_Invert, 804).
+-define(wxGraphicsMatrix_IsEqual, 805).
+-define(wxGraphicsMatrix_IsIdentity, 807).
+-define(wxGraphicsMatrix_Rotate, 808).
+-define(wxGraphicsMatrix_Scale, 809).
+-define(wxGraphicsMatrix_Translate, 810).
+-define(wxGraphicsMatrix_Set, 811).
+-define(wxGraphicsMatrix_TransformPoint, 812).
+-define(wxGraphicsMatrix_TransformDistance, 813).
+-define(wxGraphicsPath_MoveToPoint_2, 814).
+-define(wxGraphicsPath_MoveToPoint_1, 815).
+-define(wxGraphicsPath_AddArc_6, 816).
+-define(wxGraphicsPath_AddArc_5, 817).
+-define(wxGraphicsPath_AddArcToPoint, 818).
+-define(wxGraphicsPath_AddCircle, 819).
+-define(wxGraphicsPath_AddCurveToPoint_6, 820).
+-define(wxGraphicsPath_AddCurveToPoint_3, 821).
+-define(wxGraphicsPath_AddEllipse, 822).
+-define(wxGraphicsPath_AddLineToPoint_2, 823).
+-define(wxGraphicsPath_AddLineToPoint_1, 824).
+-define(wxGraphicsPath_AddPath, 825).
+-define(wxGraphicsPath_AddQuadCurveToPoint, 826).
+-define(wxGraphicsPath_AddRectangle, 827).
+-define(wxGraphicsPath_AddRoundedRectangle, 828).
+-define(wxGraphicsPath_CloseSubpath, 829).
+-define(wxGraphicsPath_Contains_3, 830).
+-define(wxGraphicsPath_Contains_2, 831).
+-define(wxGraphicsPath_GetBox, 833).
+-define(wxGraphicsPath_GetCurrentPoint, 835).
+-define(wxGraphicsPath_Transform, 836).
+-define(wxGraphicsRenderer_GetDefaultRenderer, 837).
+-define(wxGraphicsRenderer_CreateContext_1_1, 838).
+-define(wxGraphicsRenderer_CreateContext_1_0, 839).
+-define(wxGraphicsRenderer_CreatePen, 840).
+-define(wxGraphicsRenderer_CreateBrush, 841).
+-define(wxGraphicsRenderer_CreateLinearGradientBrush, 842).
+-define(wxGraphicsRenderer_CreateRadialGradientBrush, 843).
+-define(wxGraphicsRenderer_CreateFont, 844).
+-define(wxGraphicsRenderer_CreateMatrix, 845).
+-define(wxGraphicsRenderer_CreatePath, 846).
+-define(wxMenuBar_new_1, 848).
+-define(wxMenuBar_new_0, 850).
+-define(wxMenuBar_destruct, 852).
+-define(wxMenuBar_Append, 853).
+-define(wxMenuBar_Check, 854).
+-define(wxMenuBar_Enable_2, 855).
+-define(wxMenuBar_Enable_1, 856).
+-define(wxMenuBar_EnableTop, 857).
+-define(wxMenuBar_FindMenu, 858).
+-define(wxMenuBar_FindMenuItem, 859).
+-define(wxMenuBar_FindItem, 860).
+-define(wxMenuBar_GetHelpString, 861).
+-define(wxMenuBar_GetLabel_1, 862).
+-define(wxMenuBar_GetLabel_0, 863).
+-define(wxMenuBar_GetLabelTop, 864).
+-define(wxMenuBar_GetMenu, 865).
+-define(wxMenuBar_GetMenuCount, 866).
+-define(wxMenuBar_Insert, 867).
+-define(wxMenuBar_IsChecked, 868).
+-define(wxMenuBar_IsEnabled_1, 869).
+-define(wxMenuBar_IsEnabled_0, 870).
+-define(wxMenuBar_Remove, 871).
+-define(wxMenuBar_Replace, 872).
+-define(wxMenuBar_SetHelpString, 873).
+-define(wxMenuBar_SetLabel_2, 874).
+-define(wxMenuBar_SetLabel_1, 875).
+-define(wxMenuBar_SetLabelTop, 876).
+-define(wxControl_GetLabel, 877).
+-define(wxControl_SetLabel, 878).
+-define(wxControlWithItems_Append_1, 879).
+-define(wxControlWithItems_Append_2, 880).
+-define(wxControlWithItems_appendStrings_1, 881).
+-define(wxControlWithItems_Clear, 882).
+-define(wxControlWithItems_Delete, 883).
+-define(wxControlWithItems_FindString, 884).
+-define(wxControlWithItems_getClientData, 886).
+-define(wxControlWithItems_setClientData, 888).
+-define(wxControlWithItems_GetCount, 889).
+-define(wxControlWithItems_GetSelection, 890).
+-define(wxControlWithItems_GetString, 891).
+-define(wxControlWithItems_GetStringSelection, 892).
+-define(wxControlWithItems_Insert_2, 893).
+-define(wxControlWithItems_Insert_3, 894).
+-define(wxControlWithItems_IsEmpty, 895).
+-define(wxControlWithItems_Select, 896).
+-define(wxControlWithItems_SetSelection, 897).
+-define(wxControlWithItems_SetString, 898).
+-define(wxControlWithItems_SetStringSelection, 899).
+-define(wxMenu_new_2, 902).
+-define(wxMenu_new_1, 903).
+-define(wxMenu_destruct, 905).
+-define(wxMenu_Append_3, 906).
+-define(wxMenu_Append_1, 907).
+-define(wxMenu_Append_4_0, 908).
+-define(wxMenu_Append_4_1, 909).
+-define(wxMenu_AppendCheckItem, 910).
+-define(wxMenu_AppendRadioItem, 911).
+-define(wxMenu_AppendSeparator, 912).
+-define(wxMenu_Break, 913).
+-define(wxMenu_Check, 914).
+-define(wxMenu_Delete_1_0, 915).
+-define(wxMenu_Delete_1_1, 916).
+-define(wxMenu_Destroy_1_0, 917).
+-define(wxMenu_Destroy_1_1, 918).
+-define(wxMenu_Enable, 919).
+-define(wxMenu_FindItem_1, 920).
+-define(wxMenu_FindItem_2, 921).
+-define(wxMenu_FindItemByPosition, 922).
+-define(wxMenu_GetHelpString, 923).
+-define(wxMenu_GetLabel, 924).
+-define(wxMenu_GetMenuItemCount, 925).
+-define(wxMenu_GetMenuItems, 926).
+-define(wxMenu_GetTitle, 928).
+-define(wxMenu_Insert_2, 929).
+-define(wxMenu_Insert_3, 930).
+-define(wxMenu_Insert_5_1, 931).
+-define(wxMenu_Insert_5_0, 932).
+-define(wxMenu_InsertCheckItem, 933).
+-define(wxMenu_InsertRadioItem, 934).
+-define(wxMenu_InsertSeparator, 935).
+-define(wxMenu_IsChecked, 936).
+-define(wxMenu_IsEnabled, 937).
+-define(wxMenu_Prepend_1, 938).
+-define(wxMenu_Prepend_2, 939).
+-define(wxMenu_Prepend_4_1, 940).
+-define(wxMenu_Prepend_4_0, 941).
+-define(wxMenu_PrependCheckItem, 942).
+-define(wxMenu_PrependRadioItem, 943).
+-define(wxMenu_PrependSeparator, 944).
+-define(wxMenu_Remove_1_0, 945).
+-define(wxMenu_Remove_1_1, 946).
+-define(wxMenu_SetHelpString, 947).
+-define(wxMenu_SetLabel, 948).
+-define(wxMenu_SetTitle, 949).
+-define(wxMenuItem_new, 950).
+-define(wxMenuItem_destruct, 952).
+-define(wxMenuItem_Check, 953).
+-define(wxMenuItem_Enable, 954).
+-define(wxMenuItem_GetBitmap, 955).
+-define(wxMenuItem_GetHelp, 956).
+-define(wxMenuItem_GetId, 957).
+-define(wxMenuItem_GetKind, 958).
+-define(wxMenuItem_GetLabel, 959).
+-define(wxMenuItem_GetLabelFromText, 960).
+-define(wxMenuItem_GetMenu, 961).
+-define(wxMenuItem_GetText, 962).
+-define(wxMenuItem_GetSubMenu, 963).
+-define(wxMenuItem_IsCheckable, 964).
+-define(wxMenuItem_IsChecked, 965).
+-define(wxMenuItem_IsEnabled, 966).
+-define(wxMenuItem_IsSeparator, 967).
+-define(wxMenuItem_IsSubMenu, 968).
+-define(wxMenuItem_SetBitmap, 969).
+-define(wxMenuItem_SetHelp, 970).
+-define(wxMenuItem_SetMenu, 971).
+-define(wxMenuItem_SetSubMenu, 972).
+-define(wxMenuItem_SetText, 973).
+-define(wxToolBar_AddControl, 974).
+-define(wxToolBar_AddSeparator, 975).
+-define(wxToolBar_AddTool_5, 976).
+-define(wxToolBar_AddTool_4_0, 977).
+-define(wxToolBar_AddTool_1, 978).
+-define(wxToolBar_AddTool_4_1, 979).
+-define(wxToolBar_AddTool_3, 980).
+-define(wxToolBar_AddTool_6, 981).
+-define(wxToolBar_AddCheckTool, 982).
+-define(wxToolBar_AddRadioTool, 983).
+-define(wxToolBar_DeleteTool, 984).
+-define(wxToolBar_DeleteToolByPos, 985).
+-define(wxToolBar_EnableTool, 986).
+-define(wxToolBar_FindById, 987).
+-define(wxToolBar_FindControl, 988).
+-define(wxToolBar_FindToolForPosition, 989).
+-define(wxToolBar_GetToolSize, 990).
+-define(wxToolBar_GetToolBitmapSize, 991).
+-define(wxToolBar_GetMargins, 992).
+-define(wxToolBar_GetToolEnabled, 993).
+-define(wxToolBar_GetToolLongHelp, 994).
+-define(wxToolBar_GetToolPacking, 995).
+-define(wxToolBar_GetToolPos, 996).
+-define(wxToolBar_GetToolSeparation, 997).
+-define(wxToolBar_GetToolShortHelp, 998).
+-define(wxToolBar_GetToolState, 999).
+-define(wxToolBar_InsertControl, 1000).
+-define(wxToolBar_InsertSeparator, 1001).
+-define(wxToolBar_InsertTool_5, 1002).
+-define(wxToolBar_InsertTool_2, 1003).
+-define(wxToolBar_InsertTool_4, 1004).
+-define(wxToolBar_Realize, 1005).
+-define(wxToolBar_RemoveTool, 1006).
+-define(wxToolBar_SetMargins, 1007).
+-define(wxToolBar_SetToolBitmapSize, 1008).
+-define(wxToolBar_SetToolLongHelp, 1009).
+-define(wxToolBar_SetToolPacking, 1010).
+-define(wxToolBar_SetToolShortHelp, 1011).
+-define(wxToolBar_SetToolSeparation, 1012).
+-define(wxToolBar_ToggleTool, 1013).
+-define(wxStatusBar_new_0, 1015).
+-define(wxStatusBar_new_2, 1016).
+-define(wxStatusBar_destruct, 1018).
+-define(wxStatusBar_Create, 1019).
+-define(wxStatusBar_GetFieldRect, 1020).
+-define(wxStatusBar_GetFieldsCount, 1021).
+-define(wxStatusBar_GetStatusText, 1022).
+-define(wxStatusBar_PopStatusText, 1023).
+-define(wxStatusBar_PushStatusText, 1024).
+-define(wxStatusBar_SetFieldsCount, 1025).
+-define(wxStatusBar_SetMinHeight, 1026).
+-define(wxStatusBar_SetStatusText, 1027).
+-define(wxStatusBar_SetStatusWidths, 1028).
+-define(wxStatusBar_SetStatusStyles, 1029).
+-define(wxBitmap_new_0, 1030).
+-define(wxBitmap_new_3, 1031).
+-define(wxBitmap_new_4, 1032).
+-define(wxBitmap_new_2_0, 1033).
+-define(wxBitmap_new_2_1, 1034).
+-define(wxBitmap_destruct, 1035).
+-define(wxBitmap_ConvertToImage, 1036).
+-define(wxBitmap_CopyFromIcon, 1037).
+-define(wxBitmap_Create, 1038).
+-define(wxBitmap_GetDepth, 1039).
+-define(wxBitmap_GetHeight, 1040).
+-define(wxBitmap_GetPalette, 1041).
+-define(wxBitmap_GetMask, 1042).
+-define(wxBitmap_GetWidth, 1043).
+-define(wxBitmap_GetSubBitmap, 1044).
+-define(wxBitmap_LoadFile, 1045).
+-define(wxBitmap_Ok, 1046).
+-define(wxBitmap_SaveFile, 1047).
+-define(wxBitmap_SetDepth, 1048).
+-define(wxBitmap_SetHeight, 1049).
+-define(wxBitmap_SetMask, 1050).
+-define(wxBitmap_SetPalette, 1051).
+-define(wxBitmap_SetWidth, 1052).
+-define(wxIcon_new_0, 1053).
+-define(wxIcon_new_2, 1054).
+-define(wxIcon_new_1, 1055).
+-define(wxIcon_CopyFromBitmap, 1056).
+-define(wxIcon_destroy, 1057).
+-define(wxIconBundle_new_0, 1058).
+-define(wxIconBundle_new_2, 1059).
+-define(wxIconBundle_new_1_0, 1060).
+-define(wxIconBundle_new_1_1, 1061).
+-define(wxIconBundle_destruct, 1062).
+-define(wxIconBundle_AddIcon_2, 1063).
+-define(wxIconBundle_AddIcon_1, 1064).
+-define(wxIconBundle_GetIcon_1_1, 1065).
+-define(wxIconBundle_GetIcon_1_0, 1066).
+-define(wxCursor_new_0, 1067).
+-define(wxCursor_new_1_0, 1068).
+-define(wxCursor_new_1_1, 1069).
+-define(wxCursor_new_4, 1070).
+-define(wxCursor_destruct, 1071).
+-define(wxCursor_Ok, 1072).
+-define(wxMask_new_0, 1073).
+-define(wxMask_new_2_1, 1074).
+-define(wxMask_new_2_0, 1075).
+-define(wxMask_new_1, 1076).
+-define(wxMask_destruct, 1077).
+-define(wxMask_Create_2_1, 1078).
+-define(wxMask_Create_2_0, 1079).
+-define(wxMask_Create_1, 1080).
+-define(wxImage_new_0, 1081).
+-define(wxImage_new_3_0, 1082).
+-define(wxImage_new_4, 1083).
+-define(wxImage_new_5, 1084).
+-define(wxImage_new_2, 1085).
+-define(wxImage_new_3_1, 1086).
+-define(wxImage_Blur, 1087).
+-define(wxImage_BlurHorizontal, 1088).
+-define(wxImage_BlurVertical, 1089).
+-define(wxImage_ConvertAlphaToMask, 1090).
+-define(wxImage_ConvertToGreyscale, 1091).
+-define(wxImage_ConvertToMono, 1092).
+-define(wxImage_Copy, 1093).
+-define(wxImage_Create_3, 1094).
+-define(wxImage_Create_4, 1095).
+-define(wxImage_Create_5, 1096).
+-define(wxImage_Destroy, 1097).
+-define(wxImage_FindFirstUnusedColour, 1098).
+-define(wxImage_GetImageExtWildcard, 1099).
+-define(wxImage_GetAlpha_2, 1100).
+-define(wxImage_GetAlpha_0, 1101).
+-define(wxImage_GetBlue, 1102).
+-define(wxImage_GetData, 1103).
+-define(wxImage_GetGreen, 1104).
+-define(wxImage_GetImageCount, 1105).
+-define(wxImage_GetHeight, 1106).
+-define(wxImage_GetMaskBlue, 1107).
+-define(wxImage_GetMaskGreen, 1108).
+-define(wxImage_GetMaskRed, 1109).
+-define(wxImage_GetOrFindMaskColour, 1110).
+-define(wxImage_GetPalette, 1111).
+-define(wxImage_GetRed, 1112).
+-define(wxImage_GetSubImage, 1113).
+-define(wxImage_GetWidth, 1114).
+-define(wxImage_HasAlpha, 1115).
+-define(wxImage_HasMask, 1116).
+-define(wxImage_GetOption, 1117).
+-define(wxImage_GetOptionInt, 1118).
+-define(wxImage_HasOption, 1119).
+-define(wxImage_InitAlpha, 1120).
+-define(wxImage_InitStandardHandlers, 1121).
+-define(wxImage_IsTransparent, 1122).
+-define(wxImage_LoadFile_2, 1123).
+-define(wxImage_LoadFile_3, 1124).
+-define(wxImage_Ok, 1125).
+-define(wxImage_RemoveHandler, 1126).
+-define(wxImage_Mirror, 1127).
+-define(wxImage_Replace, 1128).
+-define(wxImage_Rescale, 1129).
+-define(wxImage_Resize, 1130).
+-define(wxImage_Rotate, 1131).
+-define(wxImage_RotateHue, 1132).
+-define(wxImage_Rotate90, 1133).
+-define(wxImage_SaveFile_1, 1134).
+-define(wxImage_SaveFile_2_0, 1135).
+-define(wxImage_SaveFile_2_1, 1136).
+-define(wxImage_Scale, 1137).
+-define(wxImage_Size, 1138).
+-define(wxImage_SetAlpha_3, 1139).
+-define(wxImage_SetAlpha_2, 1140).
+-define(wxImage_SetData_2, 1141).
+-define(wxImage_SetData_4, 1142).
+-define(wxImage_SetMask, 1143).
+-define(wxImage_SetMaskColour, 1144).
+-define(wxImage_SetMaskFromImage, 1145).
+-define(wxImage_SetOption_2_1, 1146).
+-define(wxImage_SetOption_2_0, 1147).
+-define(wxImage_SetPalette, 1148).
+-define(wxImage_SetRGB_5, 1149).
+-define(wxImage_SetRGB_4, 1150).
+-define(wxImage_destroy, 1151).
+-define(wxBrush_new_0, 1152).
+-define(wxBrush_new_2, 1153).
+-define(wxBrush_new_1, 1154).
+-define(wxBrush_destruct, 1156).
+-define(wxBrush_GetColour, 1157).
+-define(wxBrush_GetStipple, 1158).
+-define(wxBrush_GetStyle, 1159).
+-define(wxBrush_IsHatch, 1160).
+-define(wxBrush_IsOk, 1161).
+-define(wxBrush_SetColour_1, 1162).
+-define(wxBrush_SetColour_3, 1163).
+-define(wxBrush_SetStipple, 1164).
+-define(wxBrush_SetStyle, 1165).
+-define(wxPen_new_0, 1166).
+-define(wxPen_new_2, 1167).
+-define(wxPen_destruct, 1168).
+-define(wxPen_GetCap, 1169).
+-define(wxPen_GetColour, 1170).
+-define(wxPen_GetJoin, 1171).
+-define(wxPen_GetStyle, 1172).
+-define(wxPen_GetWidth, 1173).
+-define(wxPen_IsOk, 1174).
+-define(wxPen_SetCap, 1175).
+-define(wxPen_SetColour_1, 1176).
+-define(wxPen_SetColour_3, 1177).
+-define(wxPen_SetJoin, 1178).
+-define(wxPen_SetStyle, 1179).
+-define(wxPen_SetWidth, 1180).
+-define(wxRegion_new_0, 1181).
+-define(wxRegion_new_4, 1182).
+-define(wxRegion_new_2, 1183).
+-define(wxRegion_new_1_1, 1184).
+-define(wxRegion_new_1_0, 1186).
+-define(wxRegion_destruct, 1188).
+-define(wxRegion_Clear, 1189).
+-define(wxRegion_Contains_2, 1190).
+-define(wxRegion_Contains_1_0, 1191).
+-define(wxRegion_Contains_4, 1192).
+-define(wxRegion_Contains_1_1, 1193).
+-define(wxRegion_ConvertToBitmap, 1194).
+-define(wxRegion_GetBox, 1195).
+-define(wxRegion_Intersect_4, 1196).
+-define(wxRegion_Intersect_1_1, 1197).
+-define(wxRegion_Intersect_1_0, 1198).
+-define(wxRegion_IsEmpty, 1199).
+-define(wxRegion_Subtract_4, 1200).
+-define(wxRegion_Subtract_1_1, 1201).
+-define(wxRegion_Subtract_1_0, 1202).
+-define(wxRegion_Offset_2, 1203).
+-define(wxRegion_Offset_1, 1204).
+-define(wxRegion_Union_4, 1205).
+-define(wxRegion_Union_1_2, 1206).
+-define(wxRegion_Union_1_1, 1207).
+-define(wxRegion_Union_1_0, 1208).
+-define(wxRegion_Union_3, 1209).
+-define(wxRegion_Xor_4, 1210).
+-define(wxRegion_Xor_1_1, 1211).
+-define(wxRegion_Xor_1_0, 1212).
+-define(wxAcceleratorTable_new_0, 1213).
+-define(wxAcceleratorTable_new_2, 1214).
+-define(wxAcceleratorTable_destruct, 1215).
+-define(wxAcceleratorTable_Ok, 1216).
+-define(wxAcceleratorEntry_new_1_0, 1217).
+-define(wxAcceleratorEntry_new_1_1, 1218).
+-define(wxAcceleratorEntry_GetCommand, 1219).
+-define(wxAcceleratorEntry_GetFlags, 1220).
+-define(wxAcceleratorEntry_GetKeyCode, 1221).
+-define(wxAcceleratorEntry_Set, 1222).
+-define(wxAcceleratorEntry_destroy, 1223).
+-define(wxCaret_new_3, 1228).
+-define(wxCaret_new_2, 1229).
+-define(wxCaret_destruct, 1231).
+-define(wxCaret_Create_3, 1232).
+-define(wxCaret_Create_2, 1233).
+-define(wxCaret_GetBlinkTime, 1234).
+-define(wxCaret_GetPosition, 1236).
+-define(wxCaret_GetSize, 1238).
+-define(wxCaret_GetWindow, 1239).
+-define(wxCaret_Hide, 1240).
+-define(wxCaret_IsOk, 1241).
+-define(wxCaret_IsVisible, 1242).
+-define(wxCaret_Move_2, 1243).
+-define(wxCaret_Move_1, 1244).
+-define(wxCaret_SetBlinkTime, 1245).
+-define(wxCaret_SetSize_2, 1246).
+-define(wxCaret_SetSize_1, 1247).
+-define(wxCaret_Show, 1248).
+-define(wxSizer_Add_2_1, 1249).
+-define(wxSizer_Add_2_0, 1250).
+-define(wxSizer_Add_3, 1251).
+-define(wxSizer_Add_2_3, 1252).
+-define(wxSizer_Add_2_2, 1253).
+-define(wxSizer_AddSpacer, 1254).
+-define(wxSizer_AddStretchSpacer, 1255).
+-define(wxSizer_CalcMin, 1256).
+-define(wxSizer_Clear, 1257).
+-define(wxSizer_Detach_1_2, 1258).
+-define(wxSizer_Detach_1_1, 1259).
+-define(wxSizer_Detach_1_0, 1260).
+-define(wxSizer_Fit, 1261).
+-define(wxSizer_FitInside, 1262).
+-define(wxSizer_GetChildren, 1263).
+-define(wxSizer_GetItem_2_1, 1264).
+-define(wxSizer_GetItem_2_0, 1265).
+-define(wxSizer_GetItem_1, 1266).
+-define(wxSizer_GetSize, 1267).
+-define(wxSizer_GetPosition, 1268).
+-define(wxSizer_GetMinSize, 1269).
+-define(wxSizer_Hide_2_0, 1270).
+-define(wxSizer_Hide_2_1, 1271).
+-define(wxSizer_Hide_1, 1272).
+-define(wxSizer_Insert_3_1, 1273).
+-define(wxSizer_Insert_3_0, 1274).
+-define(wxSizer_Insert_4, 1275).
+-define(wxSizer_Insert_3_3, 1276).
+-define(wxSizer_Insert_3_2, 1277).
+-define(wxSizer_Insert_2, 1278).
+-define(wxSizer_InsertSpacer, 1279).
+-define(wxSizer_InsertStretchSpacer, 1280).
+-define(wxSizer_IsShown_1_2, 1281).
+-define(wxSizer_IsShown_1_1, 1282).
+-define(wxSizer_IsShown_1_0, 1283).
+-define(wxSizer_Layout, 1284).
+-define(wxSizer_Prepend_2_1, 1285).
+-define(wxSizer_Prepend_2_0, 1286).
+-define(wxSizer_Prepend_3, 1287).
+-define(wxSizer_Prepend_2_3, 1288).
+-define(wxSizer_Prepend_2_2, 1289).
+-define(wxSizer_Prepend_1, 1290).
+-define(wxSizer_PrependSpacer, 1291).
+-define(wxSizer_PrependStretchSpacer, 1292).
+-define(wxSizer_RecalcSizes, 1293).
+-define(wxSizer_Remove_1_1, 1294).
+-define(wxSizer_Remove_1_0, 1295).
+-define(wxSizer_Replace_3_1, 1296).
+-define(wxSizer_Replace_3_0, 1297).
+-define(wxSizer_Replace_2, 1298).
+-define(wxSizer_SetDimension, 1299).
+-define(wxSizer_SetMinSize_2, 1300).
+-define(wxSizer_SetMinSize_1, 1301).
+-define(wxSizer_SetItemMinSize_3_2, 1302).
+-define(wxSizer_SetItemMinSize_2_2, 1303).
+-define(wxSizer_SetItemMinSize_3_1, 1304).
+-define(wxSizer_SetItemMinSize_2_1, 1305).
+-define(wxSizer_SetItemMinSize_3_0, 1306).
+-define(wxSizer_SetItemMinSize_2_0, 1307).
+-define(wxSizer_SetSizeHints, 1308).
+-define(wxSizer_SetVirtualSizeHints, 1309).
+-define(wxSizer_Show_2_2, 1310).
+-define(wxSizer_Show_2_1, 1311).
+-define(wxSizer_Show_2_0, 1312).
+-define(wxSizer_Show_1, 1313).
+-define(wxSizerFlags_new, 1314).
+-define(wxSizerFlags_Align, 1315).
+-define(wxSizerFlags_Border_2, 1316).
+-define(wxSizerFlags_Border_1, 1317).
+-define(wxSizerFlags_Center, 1318).
+-define(wxSizerFlags_Centre, 1319).
+-define(wxSizerFlags_Expand, 1320).
+-define(wxSizerFlags_Left, 1321).
+-define(wxSizerFlags_Proportion, 1322).
+-define(wxSizerFlags_Right, 1323).
+-define(wxSizerFlags_destroy, 1324).
+-define(wxSizerItem_new_5_1, 1325).
+-define(wxSizerItem_new_2_1, 1326).
+-define(wxSizerItem_new_5_0, 1327).
+-define(wxSizerItem_new_2_0, 1328).
+-define(wxSizerItem_new_6, 1329).
+-define(wxSizerItem_new_3, 1330).
+-define(wxSizerItem_new_0, 1331).
+-define(wxSizerItem_destruct, 1332).
+-define(wxSizerItem_CalcMin, 1333).
+-define(wxSizerItem_DeleteWindows, 1334).
+-define(wxSizerItem_DetachSizer, 1335).
+-define(wxSizerItem_GetBorder, 1336).
+-define(wxSizerItem_GetFlag, 1337).
+-define(wxSizerItem_GetMinSize, 1338).
+-define(wxSizerItem_GetPosition, 1339).
+-define(wxSizerItem_GetProportion, 1340).
+-define(wxSizerItem_GetRatio, 1341).
+-define(wxSizerItem_GetRect, 1342).
+-define(wxSizerItem_GetSize, 1343).
+-define(wxSizerItem_GetSizer, 1344).
+-define(wxSizerItem_GetSpacer, 1345).
+-define(wxSizerItem_GetUserData, 1346).
+-define(wxSizerItem_GetWindow, 1347).
+-define(wxSizerItem_IsSizer, 1348).
+-define(wxSizerItem_IsShown, 1349).
+-define(wxSizerItem_IsSpacer, 1350).
+-define(wxSizerItem_IsWindow, 1351).
+-define(wxSizerItem_SetBorder, 1352).
+-define(wxSizerItem_SetDimension, 1353).
+-define(wxSizerItem_SetFlag, 1354).
+-define(wxSizerItem_SetInitSize, 1355).
+-define(wxSizerItem_SetMinSize_1, 1356).
+-define(wxSizerItem_SetMinSize_2, 1357).
+-define(wxSizerItem_SetProportion, 1358).
+-define(wxSizerItem_SetRatio_2, 1359).
+-define(wxSizerItem_SetRatio_1_1, 1360).
+-define(wxSizerItem_SetRatio_1_0, 1361).
+-define(wxSizerItem_SetSizer, 1362).
+-define(wxSizerItem_SetSpacer_1, 1363).
+-define(wxSizerItem_SetSpacer_2, 1364).
+-define(wxSizerItem_SetWindow, 1365).
+-define(wxSizerItem_Show, 1366).
+-define(wxBoxSizer_new, 1367).
+-define(wxBoxSizer_GetOrientation, 1368).
+-define(wxBoxSizer_destroy, 1369).
+-define(wxStaticBoxSizer_new_2, 1370).
+-define(wxStaticBoxSizer_new_3, 1371).
+-define(wxStaticBoxSizer_GetStaticBox, 1372).
+-define(wxStaticBoxSizer_destroy, 1373).
+-define(wxGridSizer_new_4, 1374).
+-define(wxGridSizer_new_2, 1375).
+-define(wxGridSizer_GetCols, 1376).
+-define(wxGridSizer_GetHGap, 1377).
+-define(wxGridSizer_GetRows, 1378).
+-define(wxGridSizer_GetVGap, 1379).
+-define(wxGridSizer_SetCols, 1380).
+-define(wxGridSizer_SetHGap, 1381).
+-define(wxGridSizer_SetRows, 1382).
+-define(wxGridSizer_SetVGap, 1383).
+-define(wxGridSizer_destroy, 1384).
+-define(wxFlexGridSizer_new_4, 1385).
+-define(wxFlexGridSizer_new_2, 1386).
+-define(wxFlexGridSizer_AddGrowableCol, 1387).
+-define(wxFlexGridSizer_AddGrowableRow, 1388).
+-define(wxFlexGridSizer_GetFlexibleDirection, 1389).
+-define(wxFlexGridSizer_GetNonFlexibleGrowMode, 1390).
+-define(wxFlexGridSizer_RemoveGrowableCol, 1391).
+-define(wxFlexGridSizer_RemoveGrowableRow, 1392).
+-define(wxFlexGridSizer_SetFlexibleDirection, 1393).
+-define(wxFlexGridSizer_SetNonFlexibleGrowMode, 1394).
+-define(wxFlexGridSizer_destroy, 1395).
+-define(wxGridBagSizer_new, 1396).
+-define(wxGridBagSizer_Add_3_2, 1397).
+-define(wxGridBagSizer_Add_3_1, 1398).
+-define(wxGridBagSizer_Add_4, 1399).
+-define(wxGridBagSizer_Add_1_0, 1400).
+-define(wxGridBagSizer_Add_2_1, 1401).
+-define(wxGridBagSizer_Add_2_0, 1402).
+-define(wxGridBagSizer_Add_3_0, 1403).
+-define(wxGridBagSizer_Add_1_1, 1404).
+-define(wxGridBagSizer_CalcMin, 1405).
+-define(wxGridBagSizer_CheckForIntersection_2, 1406).
+-define(wxGridBagSizer_CheckForIntersection_3, 1407).
+-define(wxGridBagSizer_FindItem_1_1, 1408).
+-define(wxGridBagSizer_FindItem_1_0, 1409).
+-define(wxGridBagSizer_FindItemAtPoint, 1410).
+-define(wxGridBagSizer_FindItemAtPosition, 1411).
+-define(wxGridBagSizer_FindItemWithData, 1412).
+-define(wxGridBagSizer_GetCellSize, 1413).
+-define(wxGridBagSizer_GetEmptyCellSize, 1414).
+-define(wxGridBagSizer_GetItemPosition_1_2, 1415).
+-define(wxGridBagSizer_GetItemPosition_1_1, 1416).
+-define(wxGridBagSizer_GetItemPosition_1_0, 1417).
+-define(wxGridBagSizer_GetItemSpan_1_2, 1418).
+-define(wxGridBagSizer_GetItemSpan_1_1, 1419).
+-define(wxGridBagSizer_GetItemSpan_1_0, 1420).
+-define(wxGridBagSizer_SetEmptyCellSize, 1421).
+-define(wxGridBagSizer_SetItemPosition_2_2, 1422).
+-define(wxGridBagSizer_SetItemPosition_2_1, 1423).
+-define(wxGridBagSizer_SetItemPosition_2_0, 1424).
+-define(wxGridBagSizer_SetItemSpan_2_2, 1425).
+-define(wxGridBagSizer_SetItemSpan_2_1, 1426).
+-define(wxGridBagSizer_SetItemSpan_2_0, 1427).
+-define(wxGridBagSizer_destroy, 1428).
+-define(wxStdDialogButtonSizer_new, 1429).
+-define(wxStdDialogButtonSizer_AddButton, 1430).
+-define(wxStdDialogButtonSizer_Realize, 1431).
+-define(wxStdDialogButtonSizer_SetAffirmativeButton, 1432).
+-define(wxStdDialogButtonSizer_SetCancelButton, 1433).
+-define(wxStdDialogButtonSizer_SetNegativeButton, 1434).
+-define(wxStdDialogButtonSizer_destroy, 1435).
+-define(wxFont_new_0, 1436).
+-define(wxFont_new_1, 1437).
+-define(wxFont_new_5, 1438).
+-define(wxFont_destruct, 1440).
+-define(wxFont_IsFixedWidth, 1441).
+-define(wxFont_GetDefaultEncoding, 1442).
+-define(wxFont_GetFaceName, 1443).
+-define(wxFont_GetFamily, 1444).
+-define(wxFont_GetNativeFontInfoDesc, 1445).
+-define(wxFont_GetNativeFontInfoUserDesc, 1446).
+-define(wxFont_GetPointSize, 1447).
+-define(wxFont_GetStyle, 1448).
+-define(wxFont_GetUnderlined, 1449).
+-define(wxFont_GetWeight, 1450).
+-define(wxFont_Ok, 1451).
+-define(wxFont_SetDefaultEncoding, 1452).
+-define(wxFont_SetFaceName, 1453).
+-define(wxFont_SetFamily, 1454).
+-define(wxFont_SetPointSize, 1455).
+-define(wxFont_SetStyle, 1456).
+-define(wxFont_SetUnderlined, 1457).
+-define(wxFont_SetWeight, 1458).
+-define(wxToolTip_Enable, 1459).
+-define(wxToolTip_SetDelay, 1460).
+-define(wxToolTip_new, 1461).
+-define(wxToolTip_SetTip, 1462).
+-define(wxToolTip_GetTip, 1463).
+-define(wxToolTip_GetWindow, 1464).
+-define(wxToolTip_destroy, 1465).
+-define(wxButton_new_3, 1467).
+-define(wxButton_new_0, 1468).
+-define(wxButton_destruct, 1469).
+-define(wxButton_Create, 1470).
+-define(wxButton_GetDefaultSize, 1471).
+-define(wxButton_SetDefault, 1472).
+-define(wxButton_SetLabel, 1473).
+-define(wxBitmapButton_new_4, 1475).
+-define(wxBitmapButton_new_0, 1476).
+-define(wxBitmapButton_Create, 1477).
+-define(wxBitmapButton_GetBitmapDisabled, 1478).
+-define(wxBitmapButton_GetBitmapFocus, 1480).
+-define(wxBitmapButton_GetBitmapLabel, 1482).
+-define(wxBitmapButton_GetBitmapSelected, 1484).
+-define(wxBitmapButton_SetBitmapDisabled, 1486).
+-define(wxBitmapButton_SetBitmapFocus, 1487).
+-define(wxBitmapButton_SetBitmapLabel, 1488).
+-define(wxBitmapButton_SetBitmapSelected, 1489).
+-define(wxBitmapButton_destroy, 1490).
+-define(wxToggleButton_new_0, 1491).
+-define(wxToggleButton_new_4, 1492).
+-define(wxToggleButton_Create, 1493).
+-define(wxToggleButton_GetValue, 1494).
+-define(wxToggleButton_SetValue, 1495).
+-define(wxToggleButton_destroy, 1496).
+-define(wxCalendarCtrl_new_0, 1497).
+-define(wxCalendarCtrl_new_3, 1498).
+-define(wxCalendarCtrl_Create, 1499).
+-define(wxCalendarCtrl_destruct, 1500).
+-define(wxCalendarCtrl_SetDate, 1501).
+-define(wxCalendarCtrl_GetDate, 1502).
+-define(wxCalendarCtrl_EnableYearChange, 1503).
+-define(wxCalendarCtrl_EnableMonthChange, 1504).
+-define(wxCalendarCtrl_EnableHolidayDisplay, 1505).
+-define(wxCalendarCtrl_SetHeaderColours, 1506).
+-define(wxCalendarCtrl_GetHeaderColourFg, 1507).
+-define(wxCalendarCtrl_GetHeaderColourBg, 1508).
+-define(wxCalendarCtrl_SetHighlightColours, 1509).
+-define(wxCalendarCtrl_GetHighlightColourFg, 1510).
+-define(wxCalendarCtrl_GetHighlightColourBg, 1511).
+-define(wxCalendarCtrl_SetHolidayColours, 1512).
+-define(wxCalendarCtrl_GetHolidayColourFg, 1513).
+-define(wxCalendarCtrl_GetHolidayColourBg, 1514).
+-define(wxCalendarCtrl_GetAttr, 1515).
+-define(wxCalendarCtrl_SetAttr, 1516).
+-define(wxCalendarCtrl_SetHoliday, 1517).
+-define(wxCalendarCtrl_ResetAttr, 1518).
+-define(wxCalendarCtrl_HitTest, 1519).
+-define(wxCalendarDateAttr_new_0, 1520).
+-define(wxCalendarDateAttr_new_2_1, 1521).
+-define(wxCalendarDateAttr_new_2_0, 1522).
+-define(wxCalendarDateAttr_SetTextColour, 1523).
+-define(wxCalendarDateAttr_SetBackgroundColour, 1524).
+-define(wxCalendarDateAttr_SetBorderColour, 1525).
+-define(wxCalendarDateAttr_SetFont, 1526).
+-define(wxCalendarDateAttr_SetBorder, 1527).
+-define(wxCalendarDateAttr_SetHoliday, 1528).
+-define(wxCalendarDateAttr_HasTextColour, 1529).
+-define(wxCalendarDateAttr_HasBackgroundColour, 1530).
+-define(wxCalendarDateAttr_HasBorderColour, 1531).
+-define(wxCalendarDateAttr_HasFont, 1532).
+-define(wxCalendarDateAttr_HasBorder, 1533).
+-define(wxCalendarDateAttr_IsHoliday, 1534).
+-define(wxCalendarDateAttr_GetTextColour, 1535).
+-define(wxCalendarDateAttr_GetBackgroundColour, 1536).
+-define(wxCalendarDateAttr_GetBorderColour, 1537).
+-define(wxCalendarDateAttr_GetFont, 1538).
+-define(wxCalendarDateAttr_GetBorder, 1539).
+-define(wxCalendarDateAttr_destroy, 1540).
+-define(wxCheckBox_new_4, 1542).
+-define(wxCheckBox_new_0, 1543).
+-define(wxCheckBox_Create, 1544).
+-define(wxCheckBox_GetValue, 1545).
+-define(wxCheckBox_Get3StateValue, 1546).
+-define(wxCheckBox_Is3rdStateAllowedForUser, 1547).
+-define(wxCheckBox_Is3State, 1548).
+-define(wxCheckBox_IsChecked, 1549).
+-define(wxCheckBox_SetValue, 1550).
+-define(wxCheckBox_Set3StateValue, 1551).
+-define(wxCheckBox_destroy, 1552).
+-define(wxCheckListBox_new_0, 1553).
+-define(wxCheckListBox_new_3, 1555).
+-define(wxCheckListBox_Check, 1556).
+-define(wxCheckListBox_IsChecked, 1557).
+-define(wxCheckListBox_destroy, 1558).
+-define(wxChoice_new_3, 1561).
+-define(wxChoice_new_0, 1562).
+-define(wxChoice_destruct, 1564).
+-define(wxChoice_Create, 1566).
+-define(wxChoice_Delete, 1567).
+-define(wxChoice_GetColumns, 1568).
+-define(wxChoice_SetColumns, 1569).
+-define(wxComboBox_new_0, 1570).
+-define(wxComboBox_new_3, 1572).
+-define(wxComboBox_destruct, 1573).
+-define(wxComboBox_Create, 1575).
+-define(wxComboBox_CanCopy, 1576).
+-define(wxComboBox_CanCut, 1577).
+-define(wxComboBox_CanPaste, 1578).
+-define(wxComboBox_CanRedo, 1579).
+-define(wxComboBox_CanUndo, 1580).
+-define(wxComboBox_Copy, 1581).
+-define(wxComboBox_Cut, 1582).
+-define(wxComboBox_GetInsertionPoint, 1583).
+-define(wxComboBox_GetLastPosition, 1584).
+-define(wxComboBox_GetValue, 1585).
+-define(wxComboBox_Paste, 1586).
+-define(wxComboBox_Redo, 1587).
+-define(wxComboBox_Replace, 1588).
+-define(wxComboBox_Remove, 1589).
+-define(wxComboBox_SetInsertionPoint, 1590).
+-define(wxComboBox_SetInsertionPointEnd, 1591).
+-define(wxComboBox_SetSelection_1, 1592).
+-define(wxComboBox_SetSelection_2, 1593).
+-define(wxComboBox_SetValue, 1594).
+-define(wxComboBox_Undo, 1595).
+-define(wxGauge_new_0, 1596).
+-define(wxGauge_new_4, 1597).
+-define(wxGauge_Create, 1598).
+-define(wxGauge_GetBezelFace, 1599).
+-define(wxGauge_GetRange, 1600).
+-define(wxGauge_GetShadowWidth, 1601).
+-define(wxGauge_GetValue, 1602).
+-define(wxGauge_IsVertical, 1603).
+-define(wxGauge_SetBezelFace, 1604).
+-define(wxGauge_SetRange, 1605).
+-define(wxGauge_SetShadowWidth, 1606).
+-define(wxGauge_SetValue, 1607).
+-define(wxGauge_Pulse, 1608).
+-define(wxGauge_destroy, 1609).
+-define(wxGenericDirCtrl_new_0, 1610).
+-define(wxGenericDirCtrl_new_2, 1611).
+-define(wxGenericDirCtrl_destruct, 1612).
+-define(wxGenericDirCtrl_Create, 1613).
+-define(wxGenericDirCtrl_Init, 1614).
+-define(wxGenericDirCtrl_CollapseTree, 1615).
+-define(wxGenericDirCtrl_ExpandPath, 1616).
+-define(wxGenericDirCtrl_GetDefaultPath, 1617).
+-define(wxGenericDirCtrl_GetPath, 1618).
+-define(wxGenericDirCtrl_GetFilePath, 1619).
+-define(wxGenericDirCtrl_GetFilter, 1620).
+-define(wxGenericDirCtrl_GetFilterIndex, 1621).
+-define(wxGenericDirCtrl_GetRootId, 1622).
+-define(wxGenericDirCtrl_GetTreeCtrl, 1623).
+-define(wxGenericDirCtrl_ReCreateTree, 1624).
+-define(wxGenericDirCtrl_SetDefaultPath, 1625).
+-define(wxGenericDirCtrl_SetFilter, 1626).
+-define(wxGenericDirCtrl_SetFilterIndex, 1627).
+-define(wxGenericDirCtrl_SetPath, 1628).
+-define(wxStaticBox_new_4, 1630).
+-define(wxStaticBox_new_0, 1631).
+-define(wxStaticBox_Create, 1632).
+-define(wxStaticBox_destroy, 1633).
+-define(wxStaticLine_new_2, 1635).
+-define(wxStaticLine_new_0, 1636).
+-define(wxStaticLine_Create, 1637).
+-define(wxStaticLine_IsVertical, 1638).
+-define(wxStaticLine_GetDefaultSize, 1639).
+-define(wxStaticLine_destroy, 1640).
+-define(wxListBox_new_3, 1643).
+-define(wxListBox_new_0, 1644).
+-define(wxListBox_destruct, 1646).
+-define(wxListBox_Create, 1648).
+-define(wxListBox_Deselect, 1649).
+-define(wxListBox_GetSelections, 1650).
+-define(wxListBox_InsertItems, 1651).
+-define(wxListBox_IsSelected, 1652).
+-define(wxListBox_Set, 1654).
+-define(wxListBox_HitTest, 1655).
+-define(wxListBox_SetFirstItem_1_0, 1656).
+-define(wxListBox_SetFirstItem_1_1, 1657).
+-define(wxListCtrl_new_0, 1658).
+-define(wxListCtrl_new_2, 1659).
+-define(wxListCtrl_Arrange, 1660).
+-define(wxListCtrl_AssignImageList, 1661).
+-define(wxListCtrl_ClearAll, 1662).
+-define(wxListCtrl_Create, 1663).
+-define(wxListCtrl_DeleteAllItems, 1664).
+-define(wxListCtrl_DeleteColumn, 1665).
+-define(wxListCtrl_DeleteItem, 1666).
+-define(wxListCtrl_EditLabel, 1667).
+-define(wxListCtrl_EnsureVisible, 1668).
+-define(wxListCtrl_FindItem_3_0, 1669).
+-define(wxListCtrl_FindItem_3_1, 1670).
+-define(wxListCtrl_GetColumn, 1671).
+-define(wxListCtrl_GetColumnCount, 1672).
+-define(wxListCtrl_GetColumnWidth, 1673).
+-define(wxListCtrl_GetCountPerPage, 1674).
+-define(wxListCtrl_GetImageList, 1675).
+-define(wxListCtrl_GetItem, 1676).
+-define(wxListCtrl_GetItemBackgroundColour, 1677).
+-define(wxListCtrl_GetItemCount, 1678).
+-define(wxListCtrl_GetItemData, 1679).
+-define(wxListCtrl_GetItemFont, 1680).
+-define(wxListCtrl_GetItemPosition, 1681).
+-define(wxListCtrl_GetItemRect, 1682).
+-define(wxListCtrl_GetItemSpacing, 1683).
+-define(wxListCtrl_GetItemState, 1684).
+-define(wxListCtrl_GetItemText, 1685).
+-define(wxListCtrl_GetItemTextColour, 1686).
+-define(wxListCtrl_GetNextItem, 1687).
+-define(wxListCtrl_GetSelectedItemCount, 1688).
+-define(wxListCtrl_GetTextColour, 1689).
+-define(wxListCtrl_GetTopItem, 1690).
+-define(wxListCtrl_GetViewRect, 1691).
+-define(wxListCtrl_HitTest, 1692).
+-define(wxListCtrl_InsertColumn_2, 1693).
+-define(wxListCtrl_InsertColumn_3, 1694).
+-define(wxListCtrl_InsertItem_1, 1695).
+-define(wxListCtrl_InsertItem_2_1, 1696).
+-define(wxListCtrl_InsertItem_2_0, 1697).
+-define(wxListCtrl_InsertItem_3, 1698).
+-define(wxListCtrl_RefreshItem, 1699).
+-define(wxListCtrl_RefreshItems, 1700).
+-define(wxListCtrl_ScrollList, 1701).
+-define(wxListCtrl_SetBackgroundColour, 1702).
+-define(wxListCtrl_SetColumn, 1703).
+-define(wxListCtrl_SetColumnWidth, 1704).
+-define(wxListCtrl_SetImageList, 1705).
+-define(wxListCtrl_SetItem_1, 1706).
+-define(wxListCtrl_SetItem_4, 1707).
+-define(wxListCtrl_SetItemBackgroundColour, 1708).
+-define(wxListCtrl_SetItemCount, 1709).
+-define(wxListCtrl_SetItemData, 1710).
+-define(wxListCtrl_SetItemFont, 1711).
+-define(wxListCtrl_SetItemImage, 1712).
+-define(wxListCtrl_SetItemColumnImage, 1713).
+-define(wxListCtrl_SetItemPosition, 1714).
+-define(wxListCtrl_SetItemState, 1715).
+-define(wxListCtrl_SetItemText, 1716).
+-define(wxListCtrl_SetItemTextColour, 1717).
+-define(wxListCtrl_SetSingleStyle, 1718).
+-define(wxListCtrl_SetTextColour, 1719).
+-define(wxListCtrl_SetWindowStyleFlag, 1720).
+-define(wxListCtrl_SortItems, 1721).
+-define(wxListCtrl_destroy, 1722).
+-define(wxListView_ClearColumnImage, 1723).
+-define(wxListView_Focus, 1724).
+-define(wxListView_GetFirstSelected, 1725).
+-define(wxListView_GetFocusedItem, 1726).
+-define(wxListView_GetNextSelected, 1727).
+-define(wxListView_IsSelected, 1728).
+-define(wxListView_Select, 1729).
+-define(wxListView_SetColumnImage, 1730).
+-define(wxListItem_new_0, 1731).
+-define(wxListItem_new_1, 1732).
+-define(wxListItem_destruct, 1733).
+-define(wxListItem_Clear, 1734).
+-define(wxListItem_GetAlign, 1735).
+-define(wxListItem_GetBackgroundColour, 1736).
+-define(wxListItem_GetColumn, 1737).
+-define(wxListItem_GetFont, 1738).
+-define(wxListItem_GetId, 1739).
+-define(wxListItem_GetImage, 1740).
+-define(wxListItem_GetMask, 1741).
+-define(wxListItem_GetState, 1742).
+-define(wxListItem_GetText, 1743).
+-define(wxListItem_GetTextColour, 1744).
+-define(wxListItem_GetWidth, 1745).
+-define(wxListItem_SetAlign, 1746).
+-define(wxListItem_SetBackgroundColour, 1747).
+-define(wxListItem_SetColumn, 1748).
+-define(wxListItem_SetFont, 1749).
+-define(wxListItem_SetId, 1750).
+-define(wxListItem_SetImage, 1751).
+-define(wxListItem_SetMask, 1752).
+-define(wxListItem_SetState, 1753).
+-define(wxListItem_SetStateMask, 1754).
+-define(wxListItem_SetText, 1755).
+-define(wxListItem_SetTextColour, 1756).
+-define(wxListItem_SetWidth, 1757).
+-define(wxImageList_new_0, 1758).
+-define(wxImageList_new_3, 1759).
+-define(wxImageList_Add_1, 1760).
+-define(wxImageList_Add_2_0, 1761).
+-define(wxImageList_Add_2_1, 1762).
+-define(wxImageList_Create, 1763).
+-define(wxImageList_Draw, 1765).
+-define(wxImageList_GetBitmap, 1766).
+-define(wxImageList_GetIcon, 1767).
+-define(wxImageList_GetImageCount, 1768).
+-define(wxImageList_GetSize, 1769).
+-define(wxImageList_Remove, 1770).
+-define(wxImageList_RemoveAll, 1771).
+-define(wxImageList_Replace_2, 1772).
+-define(wxImageList_Replace_3, 1773).
+-define(wxImageList_destroy, 1774).
+-define(wxTextAttr_new_0, 1775).
+-define(wxTextAttr_new_2, 1776).
+-define(wxTextAttr_GetAlignment, 1777).
+-define(wxTextAttr_GetBackgroundColour, 1778).
+-define(wxTextAttr_GetFont, 1779).
+-define(wxTextAttr_GetLeftIndent, 1780).
+-define(wxTextAttr_GetLeftSubIndent, 1781).
+-define(wxTextAttr_GetRightIndent, 1782).
+-define(wxTextAttr_GetTabs, 1783).
+-define(wxTextAttr_GetTextColour, 1784).
+-define(wxTextAttr_HasBackgroundColour, 1785).
+-define(wxTextAttr_HasFont, 1786).
+-define(wxTextAttr_HasTextColour, 1787).
+-define(wxTextAttr_GetFlags, 1788).
+-define(wxTextAttr_IsDefault, 1789).
+-define(wxTextAttr_SetAlignment, 1790).
+-define(wxTextAttr_SetBackgroundColour, 1791).
+-define(wxTextAttr_SetFlags, 1792).
+-define(wxTextAttr_SetFont, 1793).
+-define(wxTextAttr_SetLeftIndent, 1794).
+-define(wxTextAttr_SetRightIndent, 1795).
+-define(wxTextAttr_SetTabs, 1796).
+-define(wxTextAttr_SetTextColour, 1797).
+-define(wxTextAttr_destroy, 1798).
+-define(wxTextCtrl_new_3, 1800).
+-define(wxTextCtrl_new_0, 1801).
+-define(wxTextCtrl_destruct, 1803).
+-define(wxTextCtrl_AppendText, 1804).
+-define(wxTextCtrl_CanCopy, 1805).
+-define(wxTextCtrl_CanCut, 1806).
+-define(wxTextCtrl_CanPaste, 1807).
+-define(wxTextCtrl_CanRedo, 1808).
+-define(wxTextCtrl_CanUndo, 1809).
+-define(wxTextCtrl_Clear, 1810).
+-define(wxTextCtrl_Copy, 1811).
+-define(wxTextCtrl_Create, 1812).
+-define(wxTextCtrl_Cut, 1813).
+-define(wxTextCtrl_DiscardEdits, 1814).
+-define(wxTextCtrl_EmulateKeyPress, 1815).
+-define(wxTextCtrl_GetDefaultStyle, 1816).
+-define(wxTextCtrl_GetInsertionPoint, 1817).
+-define(wxTextCtrl_GetLastPosition, 1818).
+-define(wxTextCtrl_GetLineLength, 1819).
+-define(wxTextCtrl_GetLineText, 1820).
+-define(wxTextCtrl_GetNumberOfLines, 1821).
+-define(wxTextCtrl_GetRange, 1822).
+-define(wxTextCtrl_GetSelection, 1823).
+-define(wxTextCtrl_GetStringSelection, 1824).
+-define(wxTextCtrl_GetStyle, 1825).
+-define(wxTextCtrl_GetValue, 1826).
+-define(wxTextCtrl_IsEditable, 1827).
+-define(wxTextCtrl_IsModified, 1828).
+-define(wxTextCtrl_IsMultiLine, 1829).
+-define(wxTextCtrl_IsSingleLine, 1830).
+-define(wxTextCtrl_LoadFile, 1831).
+-define(wxTextCtrl_MarkDirty, 1832).
+-define(wxTextCtrl_Paste, 1833).
+-define(wxTextCtrl_PositionToXY, 1834).
+-define(wxTextCtrl_Redo, 1835).
+-define(wxTextCtrl_Remove, 1836).
+-define(wxTextCtrl_Replace, 1837).
+-define(wxTextCtrl_SaveFile, 1838).
+-define(wxTextCtrl_SetDefaultStyle, 1839).
+-define(wxTextCtrl_SetEditable, 1840).
+-define(wxTextCtrl_SetInsertionPoint, 1841).
+-define(wxTextCtrl_SetInsertionPointEnd, 1842).
+-define(wxTextCtrl_SetMaxLength, 1844).
+-define(wxTextCtrl_SetSelection, 1845).
+-define(wxTextCtrl_SetStyle, 1846).
+-define(wxTextCtrl_SetValue, 1847).
+-define(wxTextCtrl_ShowPosition, 1848).
+-define(wxTextCtrl_Undo, 1849).
+-define(wxTextCtrl_WriteText, 1850).
+-define(wxTextCtrl_XYToPosition, 1851).
+-define(wxNotebook_new_0, 1854).
+-define(wxNotebook_new_3, 1855).
+-define(wxNotebook_destruct, 1856).
+-define(wxNotebook_AddPage, 1857).
+-define(wxNotebook_AdvanceSelection, 1858).
+-define(wxNotebook_AssignImageList, 1859).
+-define(wxNotebook_Create, 1860).
+-define(wxNotebook_DeleteAllPages, 1861).
+-define(wxNotebook_DeletePage, 1862).
+-define(wxNotebook_RemovePage, 1863).
+-define(wxNotebook_GetCurrentPage, 1864).
+-define(wxNotebook_GetImageList, 1865).
+-define(wxNotebook_GetPage, 1867).
+-define(wxNotebook_GetPageCount, 1868).
+-define(wxNotebook_GetPageImage, 1869).
+-define(wxNotebook_GetPageText, 1870).
+-define(wxNotebook_GetRowCount, 1871).
+-define(wxNotebook_GetSelection, 1872).
+-define(wxNotebook_GetThemeBackgroundColour, 1873).
+-define(wxNotebook_HitTest, 1875).
+-define(wxNotebook_InsertPage, 1877).
+-define(wxNotebook_SetImageList, 1878).
+-define(wxNotebook_SetPadding, 1879).
+-define(wxNotebook_SetPageSize, 1880).
+-define(wxNotebook_SetPageImage, 1881).
+-define(wxNotebook_SetPageText, 1882).
+-define(wxNotebook_SetSelection, 1883).
+-define(wxNotebook_ChangeSelection, 1884).
+-define(wxChoicebook_new_0, 1885).
+-define(wxChoicebook_new_3, 1886).
+-define(wxChoicebook_AddPage, 1887).
+-define(wxChoicebook_AdvanceSelection, 1888).
+-define(wxChoicebook_AssignImageList, 1889).
+-define(wxChoicebook_Create, 1890).
+-define(wxChoicebook_DeleteAllPages, 1891).
+-define(wxChoicebook_DeletePage, 1892).
+-define(wxChoicebook_RemovePage, 1893).
+-define(wxChoicebook_GetCurrentPage, 1894).
+-define(wxChoicebook_GetImageList, 1895).
+-define(wxChoicebook_GetPage, 1897).
+-define(wxChoicebook_GetPageCount, 1898).
+-define(wxChoicebook_GetPageImage, 1899).
+-define(wxChoicebook_GetPageText, 1900).
+-define(wxChoicebook_GetSelection, 1901).
+-define(wxChoicebook_HitTest, 1902).
+-define(wxChoicebook_InsertPage, 1903).
+-define(wxChoicebook_SetImageList, 1904).
+-define(wxChoicebook_SetPageSize, 1905).
+-define(wxChoicebook_SetPageImage, 1906).
+-define(wxChoicebook_SetPageText, 1907).
+-define(wxChoicebook_SetSelection, 1908).
+-define(wxChoicebook_ChangeSelection, 1909).
+-define(wxChoicebook_destroy, 1910).
+-define(wxToolbook_new_0, 1911).
+-define(wxToolbook_new_3, 1912).
+-define(wxToolbook_AddPage, 1913).
+-define(wxToolbook_AdvanceSelection, 1914).
+-define(wxToolbook_AssignImageList, 1915).
+-define(wxToolbook_Create, 1916).
+-define(wxToolbook_DeleteAllPages, 1917).
+-define(wxToolbook_DeletePage, 1918).
+-define(wxToolbook_RemovePage, 1919).
+-define(wxToolbook_GetCurrentPage, 1920).
+-define(wxToolbook_GetImageList, 1921).
+-define(wxToolbook_GetPage, 1923).
+-define(wxToolbook_GetPageCount, 1924).
+-define(wxToolbook_GetPageImage, 1925).
+-define(wxToolbook_GetPageText, 1926).
+-define(wxToolbook_GetSelection, 1927).
+-define(wxToolbook_HitTest, 1929).
+-define(wxToolbook_InsertPage, 1930).
+-define(wxToolbook_SetImageList, 1931).
+-define(wxToolbook_SetPageSize, 1932).
+-define(wxToolbook_SetPageImage, 1933).
+-define(wxToolbook_SetPageText, 1934).
+-define(wxToolbook_SetSelection, 1935).
+-define(wxToolbook_ChangeSelection, 1936).
+-define(wxToolbook_destroy, 1937).
+-define(wxListbook_new_0, 1938).
+-define(wxListbook_new_3, 1939).
+-define(wxListbook_AddPage, 1940).
+-define(wxListbook_AdvanceSelection, 1941).
+-define(wxListbook_AssignImageList, 1942).
+-define(wxListbook_Create, 1943).
+-define(wxListbook_DeleteAllPages, 1944).
+-define(wxListbook_DeletePage, 1945).
+-define(wxListbook_RemovePage, 1946).
+-define(wxListbook_GetCurrentPage, 1947).
+-define(wxListbook_GetImageList, 1948).
+-define(wxListbook_GetPage, 1950).
+-define(wxListbook_GetPageCount, 1951).
+-define(wxListbook_GetPageImage, 1952).
+-define(wxListbook_GetPageText, 1953).
+-define(wxListbook_GetSelection, 1954).
+-define(wxListbook_HitTest, 1956).
+-define(wxListbook_InsertPage, 1957).
+-define(wxListbook_SetImageList, 1958).
+-define(wxListbook_SetPageSize, 1959).
+-define(wxListbook_SetPageImage, 1960).
+-define(wxListbook_SetPageText, 1961).
+-define(wxListbook_SetSelection, 1962).
+-define(wxListbook_ChangeSelection, 1963).
+-define(wxListbook_destroy, 1964).
+-define(wxTreebook_new_0, 1965).
+-define(wxTreebook_new_3, 1966).
+-define(wxTreebook_AddPage, 1967).
+-define(wxTreebook_AdvanceSelection, 1968).
+-define(wxTreebook_AssignImageList, 1969).
+-define(wxTreebook_Create, 1970).
+-define(wxTreebook_DeleteAllPages, 1971).
+-define(wxTreebook_DeletePage, 1972).
+-define(wxTreebook_RemovePage, 1973).
+-define(wxTreebook_GetCurrentPage, 1974).
+-define(wxTreebook_GetImageList, 1975).
+-define(wxTreebook_GetPage, 1977).
+-define(wxTreebook_GetPageCount, 1978).
+-define(wxTreebook_GetPageImage, 1979).
+-define(wxTreebook_GetPageText, 1980).
+-define(wxTreebook_GetSelection, 1981).
+-define(wxTreebook_ExpandNode, 1982).
+-define(wxTreebook_IsNodeExpanded, 1983).
+-define(wxTreebook_HitTest, 1985).
+-define(wxTreebook_InsertPage, 1986).
+-define(wxTreebook_InsertSubPage, 1987).
+-define(wxTreebook_SetImageList, 1988).
+-define(wxTreebook_SetPageSize, 1989).
+-define(wxTreebook_SetPageImage, 1990).
+-define(wxTreebook_SetPageText, 1991).
+-define(wxTreebook_SetSelection, 1992).
+-define(wxTreebook_ChangeSelection, 1993).
+-define(wxTreebook_destroy, 1994).
+-define(wxTreeCtrl_new_2, 1997).
+-define(wxTreeCtrl_new_0, 1998).
+-define(wxTreeCtrl_destruct, 2000).
+-define(wxTreeCtrl_AddRoot, 2001).
+-define(wxTreeCtrl_AppendItem, 2002).
+-define(wxTreeCtrl_AssignImageList, 2003).
+-define(wxTreeCtrl_AssignStateImageList, 2004).
+-define(wxTreeCtrl_Collapse, 2005).
+-define(wxTreeCtrl_CollapseAndReset, 2006).
+-define(wxTreeCtrl_Create, 2007).
+-define(wxTreeCtrl_Delete, 2008).
+-define(wxTreeCtrl_DeleteAllItems, 2009).
+-define(wxTreeCtrl_DeleteChildren, 2010).
+-define(wxTreeCtrl_EnsureVisible, 2011).
+-define(wxTreeCtrl_Expand, 2012).
+-define(wxTreeCtrl_GetBoundingRect, 2013).
+-define(wxTreeCtrl_GetChildrenCount, 2015).
+-define(wxTreeCtrl_GetCount, 2016).
+-define(wxTreeCtrl_GetEditControl, 2017).
+-define(wxTreeCtrl_GetFirstVisibleItem, 2018).
+-define(wxTreeCtrl_GetImageList, 2019).
+-define(wxTreeCtrl_GetIndent, 2020).
+-define(wxTreeCtrl_GetItemBackgroundColour, 2021).
+-define(wxTreeCtrl_GetItemData, 2022).
+-define(wxTreeCtrl_GetItemFont, 2023).
+-define(wxTreeCtrl_GetItemImage_1, 2024).
+-define(wxTreeCtrl_GetItemImage_2, 2025).
+-define(wxTreeCtrl_GetItemText, 2026).
+-define(wxTreeCtrl_GetItemTextColour, 2027).
+-define(wxTreeCtrl_GetLastChild, 2028).
+-define(wxTreeCtrl_GetNextSibling, 2029).
+-define(wxTreeCtrl_GetNextVisible, 2030).
+-define(wxTreeCtrl_GetItemParent, 2031).
+-define(wxTreeCtrl_GetPrevSibling, 2032).
+-define(wxTreeCtrl_GetPrevVisible, 2033).
+-define(wxTreeCtrl_GetRootItem, 2034).
+-define(wxTreeCtrl_GetSelection, 2035).
+-define(wxTreeCtrl_GetSelections, 2036).
+-define(wxTreeCtrl_GetStateImageList, 2037).
+-define(wxTreeCtrl_HitTest, 2038).
+-define(wxTreeCtrl_InsertItem_4_1, 2039).
+-define(wxTreeCtrl_InsertItem_4_0, 2040).
+-define(wxTreeCtrl_IsBold, 2041).
+-define(wxTreeCtrl_IsExpanded, 2042).
+-define(wxTreeCtrl_IsSelected, 2043).
+-define(wxTreeCtrl_IsVisible, 2044).
+-define(wxTreeCtrl_ItemHasChildren, 2045).
+-define(wxTreeCtrl_PrependItem, 2046).
+-define(wxTreeCtrl_ScrollTo, 2047).
+-define(wxTreeCtrl_SelectItem_1, 2048).
+-define(wxTreeCtrl_SelectItem_2, 2049).
+-define(wxTreeCtrl_SetIndent, 2050).
+-define(wxTreeCtrl_SetImageList, 2051).
+-define(wxTreeCtrl_SetItemBackgroundColour, 2052).
+-define(wxTreeCtrl_SetItemBold, 2053).
+-define(wxTreeCtrl_SetItemData, 2054).
+-define(wxTreeCtrl_SetItemDropHighlight, 2055).
+-define(wxTreeCtrl_SetItemFont, 2056).
+-define(wxTreeCtrl_SetItemHasChildren, 2057).
+-define(wxTreeCtrl_SetItemImage_2, 2058).
+-define(wxTreeCtrl_SetItemImage_3, 2059).
+-define(wxTreeCtrl_SetItemText, 2060).
+-define(wxTreeCtrl_SetItemTextColour, 2061).
+-define(wxTreeCtrl_SetStateImageList, 2062).
+-define(wxTreeCtrl_SetWindowStyle, 2063).
+-define(wxTreeCtrl_SortChildren, 2064).
+-define(wxTreeCtrl_Toggle, 2065).
+-define(wxTreeCtrl_ToggleItemSelection, 2066).
+-define(wxTreeCtrl_Unselect, 2067).
+-define(wxTreeCtrl_UnselectAll, 2068).
+-define(wxTreeCtrl_UnselectItem, 2069).
+-define(wxScrollBar_new_0, 2070).
+-define(wxScrollBar_new_3, 2071).
+-define(wxScrollBar_destruct, 2072).
+-define(wxScrollBar_Create, 2073).
+-define(wxScrollBar_GetRange, 2074).
+-define(wxScrollBar_GetPageSize, 2075).
+-define(wxScrollBar_GetThumbPosition, 2076).
+-define(wxScrollBar_GetThumbSize, 2077).
+-define(wxScrollBar_SetThumbPosition, 2078).
+-define(wxScrollBar_SetScrollbar, 2079).
+-define(wxSpinButton_new_2, 2081).
+-define(wxSpinButton_new_0, 2082).
+-define(wxSpinButton_Create, 2083).
+-define(wxSpinButton_GetMax, 2084).
+-define(wxSpinButton_GetMin, 2085).
+-define(wxSpinButton_GetValue, 2086).
+-define(wxSpinButton_SetRange, 2087).
+-define(wxSpinButton_SetValue, 2088).
+-define(wxSpinButton_destroy, 2089).
+-define(wxSpinCtrl_new_0, 2090).
+-define(wxSpinCtrl_new_2, 2091).
+-define(wxSpinCtrl_Create, 2093).
+-define(wxSpinCtrl_SetValue_1_1, 2096).
+-define(wxSpinCtrl_SetValue_1_0, 2097).
+-define(wxSpinCtrl_GetValue, 2099).
+-define(wxSpinCtrl_SetRange, 2101).
+-define(wxSpinCtrl_SetSelection, 2102).
+-define(wxSpinCtrl_GetMin, 2104).
+-define(wxSpinCtrl_GetMax, 2106).
+-define(wxSpinCtrl_destroy, 2107).
+-define(wxStaticText_new_0, 2108).
+-define(wxStaticText_new_4, 2109).
+-define(wxStaticText_Create, 2110).
+-define(wxStaticText_GetLabel, 2111).
+-define(wxStaticText_SetLabel, 2112).
+-define(wxStaticText_Wrap, 2113).
+-define(wxStaticText_destroy, 2114).
+-define(wxStaticBitmap_new_0, 2115).
+-define(wxStaticBitmap_new_4, 2116).
+-define(wxStaticBitmap_Create, 2117).
+-define(wxStaticBitmap_GetBitmap, 2118).
+-define(wxStaticBitmap_SetBitmap, 2119).
+-define(wxStaticBitmap_destroy, 2120).
+-define(wxRadioBox_new, 2121).
+-define(wxRadioBox_destruct, 2123).
+-define(wxRadioBox_Create, 2124).
+-define(wxRadioBox_Enable_2, 2125).
+-define(wxRadioBox_Enable_1, 2126).
+-define(wxRadioBox_GetSelection, 2127).
+-define(wxRadioBox_GetString, 2128).
+-define(wxRadioBox_SetSelection, 2129).
+-define(wxRadioBox_Show_2, 2130).
+-define(wxRadioBox_Show_1, 2131).
+-define(wxRadioBox_GetColumnCount, 2132).
+-define(wxRadioBox_GetItemHelpText, 2133).
+-define(wxRadioBox_GetItemToolTip, 2134).
+-define(wxRadioBox_GetItemFromPoint, 2136).
+-define(wxRadioBox_GetRowCount, 2137).
+-define(wxRadioBox_IsItemEnabled, 2138).
+-define(wxRadioBox_IsItemShown, 2139).
+-define(wxRadioBox_SetItemHelpText, 2140).
+-define(wxRadioBox_SetItemToolTip, 2141).
+-define(wxRadioButton_new_0, 2142).
+-define(wxRadioButton_new_4, 2143).
+-define(wxRadioButton_Create, 2144).
+-define(wxRadioButton_GetValue, 2145).
+-define(wxRadioButton_SetValue, 2146).
+-define(wxRadioButton_destroy, 2147).
+-define(wxSlider_new_6, 2149).
+-define(wxSlider_new_0, 2150).
+-define(wxSlider_Create, 2151).
+-define(wxSlider_GetLineSize, 2152).
+-define(wxSlider_GetMax, 2153).
+-define(wxSlider_GetMin, 2154).
+-define(wxSlider_GetPageSize, 2155).
+-define(wxSlider_GetThumbLength, 2156).
+-define(wxSlider_GetValue, 2157).
+-define(wxSlider_SetLineSize, 2158).
+-define(wxSlider_SetPageSize, 2159).
+-define(wxSlider_SetRange, 2160).
+-define(wxSlider_SetThumbLength, 2161).
+-define(wxSlider_SetValue, 2162).
+-define(wxSlider_destroy, 2163).
+-define(wxDialog_new_4, 2165).
+-define(wxDialog_new_0, 2166).
+-define(wxDialog_destruct, 2168).
+-define(wxDialog_Create, 2169).
+-define(wxDialog_CreateButtonSizer, 2170).
+-define(wxDialog_CreateStdDialogButtonSizer, 2171).
+-define(wxDialog_EndModal, 2172).
+-define(wxDialog_GetAffirmativeId, 2173).
+-define(wxDialog_GetReturnCode, 2174).
+-define(wxDialog_IsModal, 2175).
+-define(wxDialog_SetAffirmativeId, 2176).
+-define(wxDialog_SetReturnCode, 2177).
+-define(wxDialog_Show, 2178).
+-define(wxDialog_ShowModal, 2179).
+-define(wxColourDialog_new_0, 2180).
+-define(wxColourDialog_new_2, 2181).
+-define(wxColourDialog_destruct, 2182).
+-define(wxColourDialog_Create, 2183).
+-define(wxColourDialog_GetColourData, 2184).
+-define(wxColourData_new_0, 2185).
+-define(wxColourData_new_1, 2186).
+-define(wxColourData_destruct, 2187).
+-define(wxColourData_GetChooseFull, 2188).
+-define(wxColourData_GetColour, 2189).
+-define(wxColourData_GetCustomColour, 2191).
+-define(wxColourData_SetChooseFull, 2192).
+-define(wxColourData_SetColour, 2193).
+-define(wxColourData_SetCustomColour, 2194).
+-define(wxPalette_new_0, 2195).
+-define(wxPalette_new_4, 2196).
+-define(wxPalette_destruct, 2198).
+-define(wxPalette_Create, 2199).
+-define(wxPalette_GetColoursCount, 2200).
+-define(wxPalette_GetPixel, 2201).
+-define(wxPalette_GetRGB, 2202).
+-define(wxPalette_IsOk, 2203).
+-define(wxDirDialog_new, 2207).
+-define(wxDirDialog_destruct, 2208).
+-define(wxDirDialog_GetPath, 2209).
+-define(wxDirDialog_GetMessage, 2210).
+-define(wxDirDialog_SetMessage, 2211).
+-define(wxDirDialog_SetPath, 2212).
+-define(wxFileDialog_new, 2216).
+-define(wxFileDialog_destruct, 2217).
+-define(wxFileDialog_GetDirectory, 2218).
+-define(wxFileDialog_GetFilename, 2219).
+-define(wxFileDialog_GetFilenames, 2220).
+-define(wxFileDialog_GetFilterIndex, 2221).
+-define(wxFileDialog_GetMessage, 2222).
+-define(wxFileDialog_GetPath, 2223).
+-define(wxFileDialog_GetPaths, 2224).
+-define(wxFileDialog_GetWildcard, 2225).
+-define(wxFileDialog_SetDirectory, 2226).
+-define(wxFileDialog_SetFilename, 2227).
+-define(wxFileDialog_SetFilterIndex, 2228).
+-define(wxFileDialog_SetMessage, 2229).
+-define(wxFileDialog_SetPath, 2230).
+-define(wxFileDialog_SetWildcard, 2231).
+-define(wxPickerBase_SetInternalMargin, 2232).
+-define(wxPickerBase_GetInternalMargin, 2233).
+-define(wxPickerBase_SetTextCtrlProportion, 2234).
+-define(wxPickerBase_SetPickerCtrlProportion, 2235).
+-define(wxPickerBase_GetTextCtrlProportion, 2236).
+-define(wxPickerBase_GetPickerCtrlProportion, 2237).
+-define(wxPickerBase_HasTextCtrl, 2238).
+-define(wxPickerBase_GetTextCtrl, 2239).
+-define(wxPickerBase_IsTextCtrlGrowable, 2240).
+-define(wxPickerBase_SetPickerCtrlGrowable, 2241).
+-define(wxPickerBase_SetTextCtrlGrowable, 2242).
+-define(wxPickerBase_IsPickerCtrlGrowable, 2243).
+-define(wxFilePickerCtrl_new_0, 2244).
+-define(wxFilePickerCtrl_new_3, 2245).
+-define(wxFilePickerCtrl_Create, 2246).
+-define(wxFilePickerCtrl_GetPath, 2247).
+-define(wxFilePickerCtrl_SetPath, 2248).
+-define(wxFilePickerCtrl_destroy, 2249).
+-define(wxDirPickerCtrl_new_0, 2250).
+-define(wxDirPickerCtrl_new_3, 2251).
+-define(wxDirPickerCtrl_Create, 2252).
+-define(wxDirPickerCtrl_GetPath, 2253).
+-define(wxDirPickerCtrl_SetPath, 2254).
+-define(wxDirPickerCtrl_destroy, 2255).
+-define(wxColourPickerCtrl_new_0, 2256).
+-define(wxColourPickerCtrl_new_3, 2257).
+-define(wxColourPickerCtrl_Create, 2258).
+-define(wxColourPickerCtrl_GetColour, 2259).
+-define(wxColourPickerCtrl_SetColour_1_1, 2260).
+-define(wxColourPickerCtrl_SetColour_1_0, 2261).
+-define(wxColourPickerCtrl_destroy, 2262).
+-define(wxDatePickerCtrl_new_0, 2263).
+-define(wxDatePickerCtrl_new_3, 2264).
+-define(wxDatePickerCtrl_GetRange, 2265).
+-define(wxDatePickerCtrl_GetValue, 2266).
+-define(wxDatePickerCtrl_SetRange, 2267).
+-define(wxDatePickerCtrl_SetValue, 2268).
+-define(wxDatePickerCtrl_destroy, 2269).
+-define(wxFontPickerCtrl_new_0, 2270).
+-define(wxFontPickerCtrl_new_3, 2271).
+-define(wxFontPickerCtrl_Create, 2272).
+-define(wxFontPickerCtrl_GetSelectedFont, 2273).
+-define(wxFontPickerCtrl_SetSelectedFont, 2274).
+-define(wxFontPickerCtrl_GetMaxPointSize, 2275).
+-define(wxFontPickerCtrl_SetMaxPointSize, 2276).
+-define(wxFontPickerCtrl_destroy, 2277).
+-define(wxFindReplaceDialog_new_0, 2280).
+-define(wxFindReplaceDialog_new_4, 2281).
+-define(wxFindReplaceDialog_destruct, 2282).
+-define(wxFindReplaceDialog_Create, 2283).
+-define(wxFindReplaceDialog_GetData, 2284).
+-define(wxFindReplaceData_new_0, 2285).
+-define(wxFindReplaceData_new_1, 2286).
+-define(wxFindReplaceData_GetFindString, 2287).
+-define(wxFindReplaceData_GetReplaceString, 2288).
+-define(wxFindReplaceData_GetFlags, 2289).
+-define(wxFindReplaceData_SetFlags, 2290).
+-define(wxFindReplaceData_SetFindString, 2291).
+-define(wxFindReplaceData_SetReplaceString, 2292).
+-define(wxFindReplaceData_destroy, 2293).
+-define(wxMultiChoiceDialog_new_0, 2294).
+-define(wxMultiChoiceDialog_new_5, 2296).
+-define(wxMultiChoiceDialog_GetSelections, 2297).
+-define(wxMultiChoiceDialog_SetSelections, 2298).
+-define(wxMultiChoiceDialog_destroy, 2299).
+-define(wxSingleChoiceDialog_new_0, 2300).
+-define(wxSingleChoiceDialog_new_5, 2302).
+-define(wxSingleChoiceDialog_GetSelection, 2303).
+-define(wxSingleChoiceDialog_GetStringSelection, 2304).
+-define(wxSingleChoiceDialog_SetSelection, 2305).
+-define(wxSingleChoiceDialog_destroy, 2306).
+-define(wxTextEntryDialog_new, 2307).
+-define(wxTextEntryDialog_GetValue, 2308).
+-define(wxTextEntryDialog_SetValue, 2309).
+-define(wxTextEntryDialog_destroy, 2310).
+-define(wxPasswordEntryDialog_new, 2311).
+-define(wxPasswordEntryDialog_destroy, 2312).
+-define(wxFontData_new_0, 2313).
+-define(wxFontData_new_1, 2314).
+-define(wxFontData_destruct, 2315).
+-define(wxFontData_EnableEffects, 2316).
+-define(wxFontData_GetAllowSymbols, 2317).
+-define(wxFontData_GetColour, 2318).
+-define(wxFontData_GetChosenFont, 2319).
+-define(wxFontData_GetEnableEffects, 2320).
+-define(wxFontData_GetInitialFont, 2321).
+-define(wxFontData_GetShowHelp, 2322).
+-define(wxFontData_SetAllowSymbols, 2323).
+-define(wxFontData_SetChosenFont, 2324).
+-define(wxFontData_SetColour, 2325).
+-define(wxFontData_SetInitialFont, 2326).
+-define(wxFontData_SetRange, 2327).
+-define(wxFontData_SetShowHelp, 2328).
+-define(wxFontDialog_new_0, 2332).
+-define(wxFontDialog_new_2, 2334).
+-define(wxFontDialog_Create, 2336).
+-define(wxFontDialog_GetFontData, 2337).
+-define(wxFontDialog_destroy, 2339).
+-define(wxProgressDialog_new, 2340).
+-define(wxProgressDialog_destruct, 2341).
+-define(wxProgressDialog_Resume, 2342).
+-define(wxProgressDialog_Update_2, 2343).
+-define(wxProgressDialog_Update_0, 2344).
+-define(wxMessageDialog_new, 2345).
+-define(wxMessageDialog_destruct, 2346).
+-define(wxPageSetupDialog_new, 2347).
+-define(wxPageSetupDialog_destruct, 2348).
+-define(wxPageSetupDialog_GetPageSetupData, 2349).
+-define(wxPageSetupDialog_ShowModal, 2350).
+-define(wxPageSetupDialogData_new_0, 2351).
+-define(wxPageSetupDialogData_new_1_0, 2352).
+-define(wxPageSetupDialogData_new_1_1, 2353).
+-define(wxPageSetupDialogData_destruct, 2354).
+-define(wxPageSetupDialogData_EnableHelp, 2355).
+-define(wxPageSetupDialogData_EnableMargins, 2356).
+-define(wxPageSetupDialogData_EnableOrientation, 2357).
+-define(wxPageSetupDialogData_EnablePaper, 2358).
+-define(wxPageSetupDialogData_EnablePrinter, 2359).
+-define(wxPageSetupDialogData_GetDefaultMinMargins, 2360).
+-define(wxPageSetupDialogData_GetEnableMargins, 2361).
+-define(wxPageSetupDialogData_GetEnableOrientation, 2362).
+-define(wxPageSetupDialogData_GetEnablePaper, 2363).
+-define(wxPageSetupDialogData_GetEnablePrinter, 2364).
+-define(wxPageSetupDialogData_GetEnableHelp, 2365).
+-define(wxPageSetupDialogData_GetDefaultInfo, 2366).
+-define(wxPageSetupDialogData_GetMarginTopLeft, 2367).
+-define(wxPageSetupDialogData_GetMarginBottomRight, 2368).
+-define(wxPageSetupDialogData_GetMinMarginTopLeft, 2369).
+-define(wxPageSetupDialogData_GetMinMarginBottomRight, 2370).
+-define(wxPageSetupDialogData_GetPaperId, 2371).
+-define(wxPageSetupDialogData_GetPaperSize, 2372).
+-define(wxPageSetupDialogData_GetPrintData, 2374).
+-define(wxPageSetupDialogData_IsOk, 2375).
+-define(wxPageSetupDialogData_SetDefaultInfo, 2376).
+-define(wxPageSetupDialogData_SetDefaultMinMargins, 2377).
+-define(wxPageSetupDialogData_SetMarginTopLeft, 2378).
+-define(wxPageSetupDialogData_SetMarginBottomRight, 2379).
+-define(wxPageSetupDialogData_SetMinMarginTopLeft, 2380).
+-define(wxPageSetupDialogData_SetMinMarginBottomRight, 2381).
+-define(wxPageSetupDialogData_SetPaperId, 2382).
+-define(wxPageSetupDialogData_SetPaperSize_1_1, 2383).
+-define(wxPageSetupDialogData_SetPaperSize_1_0, 2384).
+-define(wxPageSetupDialogData_SetPrintData, 2385).
+-define(wxPrintDialog_new_2_0, 2386).
+-define(wxPrintDialog_new_2_1, 2387).
+-define(wxPrintDialog_destruct, 2388).
+-define(wxPrintDialog_GetPrintDialogData, 2389).
+-define(wxPrintDialog_GetPrintDC, 2390).
+-define(wxPrintDialogData_new_0, 2391).
+-define(wxPrintDialogData_new_1_1, 2392).
+-define(wxPrintDialogData_new_1_0, 2393).
+-define(wxPrintDialogData_destruct, 2394).
+-define(wxPrintDialogData_EnableHelp, 2395).
+-define(wxPrintDialogData_EnablePageNumbers, 2396).
+-define(wxPrintDialogData_EnablePrintToFile, 2397).
+-define(wxPrintDialogData_EnableSelection, 2398).
+-define(wxPrintDialogData_GetAllPages, 2399).
+-define(wxPrintDialogData_GetCollate, 2400).
+-define(wxPrintDialogData_GetFromPage, 2401).
+-define(wxPrintDialogData_GetMaxPage, 2402).
+-define(wxPrintDialogData_GetMinPage, 2403).
+-define(wxPrintDialogData_GetNoCopies, 2404).
+-define(wxPrintDialogData_GetPrintData, 2405).
+-define(wxPrintDialogData_GetPrintToFile, 2406).
+-define(wxPrintDialogData_GetSelection, 2407).
+-define(wxPrintDialogData_GetToPage, 2408).
+-define(wxPrintDialogData_IsOk, 2409).
+-define(wxPrintDialogData_SetCollate, 2410).
+-define(wxPrintDialogData_SetFromPage, 2411).
+-define(wxPrintDialogData_SetMaxPage, 2412).
+-define(wxPrintDialogData_SetMinPage, 2413).
+-define(wxPrintDialogData_SetNoCopies, 2414).
+-define(wxPrintDialogData_SetPrintData, 2415).
+-define(wxPrintDialogData_SetPrintToFile, 2416).
+-define(wxPrintDialogData_SetSelection, 2417).
+-define(wxPrintDialogData_SetToPage, 2418).
+-define(wxPrintData_new_0, 2419).
+-define(wxPrintData_new_1, 2420).
+-define(wxPrintData_destruct, 2421).
+-define(wxPrintData_GetCollate, 2422).
+-define(wxPrintData_GetBin, 2423).
+-define(wxPrintData_GetColour, 2424).
+-define(wxPrintData_GetDuplex, 2425).
+-define(wxPrintData_GetNoCopies, 2426).
+-define(wxPrintData_GetOrientation, 2427).
+-define(wxPrintData_GetPaperId, 2428).
+-define(wxPrintData_GetPrinterName, 2429).
+-define(wxPrintData_GetQuality, 2430).
+-define(wxPrintData_IsOk, 2431).
+-define(wxPrintData_SetBin, 2432).
+-define(wxPrintData_SetCollate, 2433).
+-define(wxPrintData_SetColour, 2434).
+-define(wxPrintData_SetDuplex, 2435).
+-define(wxPrintData_SetNoCopies, 2436).
+-define(wxPrintData_SetOrientation, 2437).
+-define(wxPrintData_SetPaperId, 2438).
+-define(wxPrintData_SetPrinterName, 2439).
+-define(wxPrintData_SetQuality, 2440).
+-define(wxPrintPreview_new_2, 2443).
+-define(wxPrintPreview_new_3, 2444).
+-define(wxPrintPreview_destruct, 2446).
+-define(wxPrintPreview_GetCanvas, 2447).
+-define(wxPrintPreview_GetCurrentPage, 2448).
+-define(wxPrintPreview_GetFrame, 2449).
+-define(wxPrintPreview_GetMaxPage, 2450).
+-define(wxPrintPreview_GetMinPage, 2451).
+-define(wxPrintPreview_GetPrintout, 2452).
+-define(wxPrintPreview_GetPrintoutForPrinting, 2453).
+-define(wxPrintPreview_IsOk, 2454).
+-define(wxPrintPreview_PaintPage, 2455).
+-define(wxPrintPreview_Print, 2456).
+-define(wxPrintPreview_RenderPage, 2457).
+-define(wxPrintPreview_SetCanvas, 2458).
+-define(wxPrintPreview_SetCurrentPage, 2459).
+-define(wxPrintPreview_SetFrame, 2460).
+-define(wxPrintPreview_SetPrintout, 2461).
+-define(wxPrintPreview_SetZoom, 2462).
+-define(wxPreviewFrame_new, 2463).
+-define(wxPreviewFrame_destruct, 2464).
+-define(wxPreviewFrame_CreateControlBar, 2465).
+-define(wxPreviewFrame_CreateCanvas, 2466).
+-define(wxPreviewFrame_Initialize, 2467).
+-define(wxPreviewFrame_OnCloseWindow, 2468).
+-define(wxPreviewControlBar_new, 2469).
+-define(wxPreviewControlBar_destruct, 2470).
+-define(wxPreviewControlBar_CreateButtons, 2471).
+-define(wxPreviewControlBar_GetPrintPreview, 2472).
+-define(wxPreviewControlBar_GetZoomControl, 2473).
+-define(wxPreviewControlBar_SetZoomControl, 2474).
+-define(wxPrinter_new, 2476).
+-define(wxPrinter_CreateAbortWindow, 2477).
+-define(wxPrinter_GetAbort, 2478).
+-define(wxPrinter_GetLastError, 2479).
+-define(wxPrinter_GetPrintDialogData, 2480).
+-define(wxPrinter_Print, 2481).
+-define(wxPrinter_PrintDialog, 2482).
+-define(wxPrinter_ReportError, 2483).
+-define(wxPrinter_Setup, 2484).
+-define(wxPrinter_destroy, 2485).
+-define(wxXmlResource_new_1, 2486).
+-define(wxXmlResource_new_2, 2487).
+-define(wxXmlResource_destruct, 2488).
+-define(wxXmlResource_AttachUnknownControl, 2489).
+-define(wxXmlResource_ClearHandlers, 2490).
+-define(wxXmlResource_CompareVersion, 2491).
+-define(wxXmlResource_Get, 2492).
+-define(wxXmlResource_GetFlags, 2493).
+-define(wxXmlResource_GetVersion, 2494).
+-define(wxXmlResource_GetXRCID, 2495).
+-define(wxXmlResource_InitAllHandlers, 2496).
+-define(wxXmlResource_Load, 2497).
+-define(wxXmlResource_LoadBitmap, 2498).
+-define(wxXmlResource_LoadDialog_2, 2499).
+-define(wxXmlResource_LoadDialog_3, 2500).
+-define(wxXmlResource_LoadFrame_2, 2501).
+-define(wxXmlResource_LoadFrame_3, 2502).
+-define(wxXmlResource_LoadIcon, 2503).
+-define(wxXmlResource_LoadMenu, 2504).
+-define(wxXmlResource_LoadMenuBar_2, 2505).
+-define(wxXmlResource_LoadMenuBar_1, 2506).
+-define(wxXmlResource_LoadPanel_2, 2507).
+-define(wxXmlResource_LoadPanel_3, 2508).
+-define(wxXmlResource_LoadToolBar, 2509).
+-define(wxXmlResource_Set, 2510).
+-define(wxXmlResource_SetFlags, 2511).
+-define(wxXmlResource_Unload, 2512).
+-define(wxXmlResource_xrcctrl, 2513).
+-define(wxHtmlEasyPrinting_new, 2514).
+-define(wxHtmlEasyPrinting_destruct, 2515).
+-define(wxHtmlEasyPrinting_GetPrintData, 2516).
+-define(wxHtmlEasyPrinting_GetPageSetupData, 2517).
+-define(wxHtmlEasyPrinting_PreviewFile, 2518).
+-define(wxHtmlEasyPrinting_PreviewText, 2519).
+-define(wxHtmlEasyPrinting_PrintFile, 2520).
+-define(wxHtmlEasyPrinting_PrintText, 2521).
+-define(wxHtmlEasyPrinting_PageSetup, 2522).
+-define(wxHtmlEasyPrinting_SetFonts, 2523).
+-define(wxHtmlEasyPrinting_SetHeader, 2524).
+-define(wxHtmlEasyPrinting_SetFooter, 2525).
+-define(wxGLCanvas_new_2, 2527).
+-define(wxGLCanvas_new_3_1, 2528).
+-define(wxGLCanvas_new_3_0, 2529).
+-define(wxGLCanvas_GetContext, 2530).
+-define(wxGLCanvas_SetCurrent, 2532).
+-define(wxGLCanvas_SwapBuffers, 2533).
+-define(wxGLCanvas_destroy, 2534).
+-define(wxAuiManager_new, 2535).
+-define(wxAuiManager_destruct, 2536).
+-define(wxAuiManager_AddPane_2_1, 2537).
+-define(wxAuiManager_AddPane_3, 2538).
+-define(wxAuiManager_AddPane_2_0, 2539).
+-define(wxAuiManager_DetachPane, 2540).
+-define(wxAuiManager_GetAllPanes, 2541).
+-define(wxAuiManager_GetArtProvider, 2542).
+-define(wxAuiManager_GetDockSizeConstraint, 2543).
+-define(wxAuiManager_GetFlags, 2544).
+-define(wxAuiManager_GetManagedWindow, 2545).
+-define(wxAuiManager_GetManager, 2546).
+-define(wxAuiManager_GetPane_1_1, 2547).
+-define(wxAuiManager_GetPane_1_0, 2548).
+-define(wxAuiManager_HideHint, 2549).
+-define(wxAuiManager_InsertPane, 2550).
+-define(wxAuiManager_LoadPaneInfo, 2551).
+-define(wxAuiManager_LoadPerspective, 2552).
+-define(wxAuiManager_SavePaneInfo, 2553).
+-define(wxAuiManager_SavePerspective, 2554).
+-define(wxAuiManager_SetArtProvider, 2555).
+-define(wxAuiManager_SetDockSizeConstraint, 2556).
+-define(wxAuiManager_SetFlags, 2557).
+-define(wxAuiManager_SetManagedWindow, 2558).
+-define(wxAuiManager_ShowHint, 2559).
+-define(wxAuiManager_UnInit, 2560).
+-define(wxAuiManager_Update, 2561).
+-define(wxAuiPaneInfo_new_0, 2562).
+-define(wxAuiPaneInfo_new_1, 2563).
+-define(wxAuiPaneInfo_destruct, 2564).
+-define(wxAuiPaneInfo_BestSize_1, 2565).
+-define(wxAuiPaneInfo_BestSize_2, 2566).
+-define(wxAuiPaneInfo_Bottom, 2567).
+-define(wxAuiPaneInfo_BottomDockable, 2568).
+-define(wxAuiPaneInfo_Caption, 2569).
+-define(wxAuiPaneInfo_CaptionVisible, 2570).
+-define(wxAuiPaneInfo_Centre, 2571).
+-define(wxAuiPaneInfo_CentrePane, 2572).
+-define(wxAuiPaneInfo_CloseButton, 2573).
+-define(wxAuiPaneInfo_DefaultPane, 2574).
+-define(wxAuiPaneInfo_DestroyOnClose, 2575).
+-define(wxAuiPaneInfo_Direction, 2576).
+-define(wxAuiPaneInfo_Dock, 2577).
+-define(wxAuiPaneInfo_Dockable, 2578).
+-define(wxAuiPaneInfo_Fixed, 2579).
+-define(wxAuiPaneInfo_Float, 2580).
+-define(wxAuiPaneInfo_Floatable, 2581).
+-define(wxAuiPaneInfo_FloatingPosition_1, 2582).
+-define(wxAuiPaneInfo_FloatingPosition_2, 2583).
+-define(wxAuiPaneInfo_FloatingSize_1, 2584).
+-define(wxAuiPaneInfo_FloatingSize_2, 2585).
+-define(wxAuiPaneInfo_Gripper, 2586).
+-define(wxAuiPaneInfo_GripperTop, 2587).
+-define(wxAuiPaneInfo_HasBorder, 2588).
+-define(wxAuiPaneInfo_HasCaption, 2589).
+-define(wxAuiPaneInfo_HasCloseButton, 2590).
+-define(wxAuiPaneInfo_HasFlag, 2591).
+-define(wxAuiPaneInfo_HasGripper, 2592).
+-define(wxAuiPaneInfo_HasGripperTop, 2593).
+-define(wxAuiPaneInfo_HasMaximizeButton, 2594).
+-define(wxAuiPaneInfo_HasMinimizeButton, 2595).
+-define(wxAuiPaneInfo_HasPinButton, 2596).
+-define(wxAuiPaneInfo_Hide, 2597).
+-define(wxAuiPaneInfo_IsBottomDockable, 2598).
+-define(wxAuiPaneInfo_IsDocked, 2599).
+-define(wxAuiPaneInfo_IsFixed, 2600).
+-define(wxAuiPaneInfo_IsFloatable, 2601).
+-define(wxAuiPaneInfo_IsFloating, 2602).
+-define(wxAuiPaneInfo_IsLeftDockable, 2603).
+-define(wxAuiPaneInfo_IsMovable, 2604).
+-define(wxAuiPaneInfo_IsOk, 2605).
+-define(wxAuiPaneInfo_IsResizable, 2606).
+-define(wxAuiPaneInfo_IsRightDockable, 2607).
+-define(wxAuiPaneInfo_IsShown, 2608).
+-define(wxAuiPaneInfo_IsToolbar, 2609).
+-define(wxAuiPaneInfo_IsTopDockable, 2610).
+-define(wxAuiPaneInfo_Layer, 2611).
+-define(wxAuiPaneInfo_Left, 2612).
+-define(wxAuiPaneInfo_LeftDockable, 2613).
+-define(wxAuiPaneInfo_MaxSize_1, 2614).
+-define(wxAuiPaneInfo_MaxSize_2, 2615).
+-define(wxAuiPaneInfo_MaximizeButton, 2616).
+-define(wxAuiPaneInfo_MinSize_1, 2617).
+-define(wxAuiPaneInfo_MinSize_2, 2618).
+-define(wxAuiPaneInfo_MinimizeButton, 2619).
+-define(wxAuiPaneInfo_Movable, 2620).
+-define(wxAuiPaneInfo_Name, 2621).
+-define(wxAuiPaneInfo_PaneBorder, 2622).
+-define(wxAuiPaneInfo_PinButton, 2623).
+-define(wxAuiPaneInfo_Position, 2624).
+-define(wxAuiPaneInfo_Resizable, 2625).
+-define(wxAuiPaneInfo_Right, 2626).
+-define(wxAuiPaneInfo_RightDockable, 2627).
+-define(wxAuiPaneInfo_Row, 2628).
+-define(wxAuiPaneInfo_SafeSet, 2629).
+-define(wxAuiPaneInfo_SetFlag, 2630).
+-define(wxAuiPaneInfo_Show, 2631).
+-define(wxAuiPaneInfo_ToolbarPane, 2632).
+-define(wxAuiPaneInfo_Top, 2633).
+-define(wxAuiPaneInfo_TopDockable, 2634).
+-define(wxAuiPaneInfo_Window, 2635).
+-define(wxAuiNotebook_new_0, 2636).
+-define(wxAuiNotebook_new_2, 2637).
+-define(wxAuiNotebook_AddPage, 2638).
+-define(wxAuiNotebook_Create, 2639).
+-define(wxAuiNotebook_DeletePage, 2640).
+-define(wxAuiNotebook_GetArtProvider, 2641).
+-define(wxAuiNotebook_GetPage, 2642).
+-define(wxAuiNotebook_GetPageBitmap, 2643).
+-define(wxAuiNotebook_GetPageCount, 2644).
+-define(wxAuiNotebook_GetPageIndex, 2645).
+-define(wxAuiNotebook_GetPageText, 2646).
+-define(wxAuiNotebook_GetSelection, 2647).
+-define(wxAuiNotebook_InsertPage, 2648).
+-define(wxAuiNotebook_RemovePage, 2649).
+-define(wxAuiNotebook_SetArtProvider, 2650).
+-define(wxAuiNotebook_SetFont, 2651).
+-define(wxAuiNotebook_SetPageBitmap, 2652).
+-define(wxAuiNotebook_SetPageText, 2653).
+-define(wxAuiNotebook_SetSelection, 2654).
+-define(wxAuiNotebook_SetTabCtrlHeight, 2655).
+-define(wxAuiNotebook_SetUniformBitmapSize, 2656).
+-define(wxAuiNotebook_destroy, 2657).
+-define(wxMDIParentFrame_new_0, 2658).
+-define(wxMDIParentFrame_new_4, 2659).
+-define(wxMDIParentFrame_destruct, 2660).
+-define(wxMDIParentFrame_ActivateNext, 2661).
+-define(wxMDIParentFrame_ActivatePrevious, 2662).
+-define(wxMDIParentFrame_ArrangeIcons, 2663).
+-define(wxMDIParentFrame_Cascade, 2664).
+-define(wxMDIParentFrame_Create, 2665).
+-define(wxMDIParentFrame_GetActiveChild, 2666).
+-define(wxMDIParentFrame_GetClientWindow, 2667).
+-define(wxMDIParentFrame_Tile, 2668).
+-define(wxMDIChildFrame_new_0, 2669).
+-define(wxMDIChildFrame_new_4, 2670).
+-define(wxMDIChildFrame_destruct, 2671).
+-define(wxMDIChildFrame_Activate, 2672).
+-define(wxMDIChildFrame_Create, 2673).
+-define(wxMDIChildFrame_Maximize, 2674).
+-define(wxMDIChildFrame_Restore, 2675).
+-define(wxMDIClientWindow_new_0, 2676).
+-define(wxMDIClientWindow_new_2, 2677).
+-define(wxMDIClientWindow_destruct, 2678).
+-define(wxMDIClientWindow_CreateClient, 2679).
+-define(wxLayoutAlgorithm_new, 2680).
+-define(wxLayoutAlgorithm_LayoutFrame, 2681).
+-define(wxLayoutAlgorithm_LayoutMDIFrame, 2682).
+-define(wxLayoutAlgorithm_LayoutWindow, 2683).
+-define(wxLayoutAlgorithm_destroy, 2684).
+-define(wxEvent_GetId, 2685).
+-define(wxEvent_GetSkipped, 2686).
+-define(wxEvent_GetTimestamp, 2687).
+-define(wxEvent_IsCommandEvent, 2688).
+-define(wxEvent_ResumePropagation, 2689).
+-define(wxEvent_ShouldPropagate, 2690).
+-define(wxEvent_Skip, 2691).
+-define(wxEvent_StopPropagation, 2692).
+-define(wxCommandEvent_getClientData, 2693).
+-define(wxCommandEvent_GetExtraLong, 2694).
+-define(wxCommandEvent_GetInt, 2695).
+-define(wxCommandEvent_GetSelection, 2696).
+-define(wxCommandEvent_GetString, 2697).
+-define(wxCommandEvent_IsChecked, 2698).
+-define(wxCommandEvent_IsSelection, 2699).
+-define(wxCommandEvent_SetInt, 2700).
+-define(wxCommandEvent_SetString, 2701).
+-define(wxScrollEvent_GetOrientation, 2702).
+-define(wxScrollEvent_GetPosition, 2703).
+-define(wxScrollWinEvent_GetOrientation, 2704).
+-define(wxScrollWinEvent_GetPosition, 2705).
+-define(wxMouseEvent_AltDown, 2706).
+-define(wxMouseEvent_Button, 2707).
+-define(wxMouseEvent_ButtonDClick, 2708).
+-define(wxMouseEvent_ButtonDown, 2709).
+-define(wxMouseEvent_ButtonUp, 2710).
+-define(wxMouseEvent_CmdDown, 2711).
+-define(wxMouseEvent_ControlDown, 2712).
+-define(wxMouseEvent_Dragging, 2713).
+-define(wxMouseEvent_Entering, 2714).
+-define(wxMouseEvent_GetButton, 2715).
+-define(wxMouseEvent_GetPosition, 2718).
+-define(wxMouseEvent_GetLogicalPosition, 2719).
+-define(wxMouseEvent_GetLinesPerAction, 2720).
+-define(wxMouseEvent_GetWheelRotation, 2721).
+-define(wxMouseEvent_GetWheelDelta, 2722).
+-define(wxMouseEvent_GetX, 2723).
+-define(wxMouseEvent_GetY, 2724).
+-define(wxMouseEvent_IsButton, 2725).
+-define(wxMouseEvent_IsPageScroll, 2726).
+-define(wxMouseEvent_Leaving, 2727).
+-define(wxMouseEvent_LeftDClick, 2728).
+-define(wxMouseEvent_LeftDown, 2729).
+-define(wxMouseEvent_LeftIsDown, 2730).
+-define(wxMouseEvent_LeftUp, 2731).
+-define(wxMouseEvent_MetaDown, 2732).
+-define(wxMouseEvent_MiddleDClick, 2733).
+-define(wxMouseEvent_MiddleDown, 2734).
+-define(wxMouseEvent_MiddleIsDown, 2735).
+-define(wxMouseEvent_MiddleUp, 2736).
+-define(wxMouseEvent_Moving, 2737).
+-define(wxMouseEvent_RightDClick, 2738).
+-define(wxMouseEvent_RightDown, 2739).
+-define(wxMouseEvent_RightIsDown, 2740).
+-define(wxMouseEvent_RightUp, 2741).
+-define(wxMouseEvent_ShiftDown, 2742).
+-define(wxSetCursorEvent_GetCursor, 2743).
+-define(wxSetCursorEvent_GetX, 2744).
+-define(wxSetCursorEvent_GetY, 2745).
+-define(wxSetCursorEvent_HasCursor, 2746).
+-define(wxSetCursorEvent_SetCursor, 2747).
+-define(wxKeyEvent_AltDown, 2748).
+-define(wxKeyEvent_CmdDown, 2749).
+-define(wxKeyEvent_ControlDown, 2750).
+-define(wxKeyEvent_GetKeyCode, 2751).
+-define(wxKeyEvent_GetModifiers, 2752).
+-define(wxKeyEvent_GetPosition, 2755).
+-define(wxKeyEvent_GetRawKeyCode, 2756).
+-define(wxKeyEvent_GetRawKeyFlags, 2757).
+-define(wxKeyEvent_GetUnicodeKey, 2758).
+-define(wxKeyEvent_GetX, 2759).
+-define(wxKeyEvent_GetY, 2760).
+-define(wxKeyEvent_HasModifiers, 2761).
+-define(wxKeyEvent_MetaDown, 2762).
+-define(wxKeyEvent_ShiftDown, 2763).
+-define(wxSizeEvent_GetSize, 2764).
+-define(wxMoveEvent_GetPosition, 2765).
+-define(wxEraseEvent_GetDC, 2766).
+-define(wxFocusEvent_GetWindow, 2767).
+-define(wxChildFocusEvent_GetWindow, 2768).
+-define(wxMenuEvent_GetMenu, 2769).
+-define(wxMenuEvent_GetMenuId, 2770).
+-define(wxMenuEvent_IsPopup, 2771).
+-define(wxCloseEvent_CanVeto, 2772).
+-define(wxCloseEvent_GetLoggingOff, 2773).
+-define(wxCloseEvent_SetCanVeto, 2774).
+-define(wxCloseEvent_SetLoggingOff, 2775).
+-define(wxCloseEvent_Veto, 2776).
+-define(wxShowEvent_SetShow, 2777).
+-define(wxShowEvent_GetShow, 2778).
+-define(wxIconizeEvent_Iconized, 2779).
+-define(wxJoystickEvent_ButtonDown, 2780).
+-define(wxJoystickEvent_ButtonIsDown, 2781).
+-define(wxJoystickEvent_ButtonUp, 2782).
+-define(wxJoystickEvent_GetButtonChange, 2783).
+-define(wxJoystickEvent_GetButtonState, 2784).
+-define(wxJoystickEvent_GetJoystick, 2785).
+-define(wxJoystickEvent_GetPosition, 2786).
+-define(wxJoystickEvent_GetZPosition, 2787).
+-define(wxJoystickEvent_IsButton, 2788).
+-define(wxJoystickEvent_IsMove, 2789).
+-define(wxJoystickEvent_IsZMove, 2790).
+-define(wxUpdateUIEvent_CanUpdate, 2791).
+-define(wxUpdateUIEvent_Check, 2792).
+-define(wxUpdateUIEvent_Enable, 2793).
+-define(wxUpdateUIEvent_Show, 2794).
+-define(wxUpdateUIEvent_GetChecked, 2795).
+-define(wxUpdateUIEvent_GetEnabled, 2796).
+-define(wxUpdateUIEvent_GetShown, 2797).
+-define(wxUpdateUIEvent_GetSetChecked, 2798).
+-define(wxUpdateUIEvent_GetSetEnabled, 2799).
+-define(wxUpdateUIEvent_GetSetShown, 2800).
+-define(wxUpdateUIEvent_GetSetText, 2801).
+-define(wxUpdateUIEvent_GetText, 2802).
+-define(wxUpdateUIEvent_GetMode, 2803).
+-define(wxUpdateUIEvent_GetUpdateInterval, 2804).
+-define(wxUpdateUIEvent_ResetUpdateTime, 2805).
+-define(wxUpdateUIEvent_SetMode, 2806).
+-define(wxUpdateUIEvent_SetText, 2807).
+-define(wxUpdateUIEvent_SetUpdateInterval, 2808).
+-define(wxMouseCaptureChangedEvent_GetCapturedWindow, 2809).
+-define(wxPaletteChangedEvent_SetChangedWindow, 2810).
+-define(wxPaletteChangedEvent_GetChangedWindow, 2811).
+-define(wxQueryNewPaletteEvent_SetPaletteRealized, 2812).
+-define(wxQueryNewPaletteEvent_GetPaletteRealized, 2813).
+-define(wxNavigationKeyEvent_GetDirection, 2814).
+-define(wxNavigationKeyEvent_SetDirection, 2815).
+-define(wxNavigationKeyEvent_IsWindowChange, 2816).
+-define(wxNavigationKeyEvent_SetWindowChange, 2817).
+-define(wxNavigationKeyEvent_IsFromTab, 2818).
+-define(wxNavigationKeyEvent_SetFromTab, 2819).
+-define(wxNavigationKeyEvent_GetCurrentFocus, 2820).
+-define(wxNavigationKeyEvent_SetCurrentFocus, 2821).
+-define(wxHelpEvent_GetOrigin, 2822).
+-define(wxHelpEvent_GetPosition, 2823).
+-define(wxHelpEvent_SetOrigin, 2824).
+-define(wxHelpEvent_SetPosition, 2825).
+-define(wxContextMenuEvent_GetPosition, 2826).
+-define(wxContextMenuEvent_SetPosition, 2827).
+-define(wxIdleEvent_CanSend, 2828).
+-define(wxIdleEvent_GetMode, 2829).
+-define(wxIdleEvent_RequestMore, 2830).
+-define(wxIdleEvent_MoreRequested, 2831).
+-define(wxIdleEvent_SetMode, 2832).
+-define(wxGridEvent_AltDown, 2833).
+-define(wxGridEvent_ControlDown, 2834).
+-define(wxGridEvent_GetCol, 2835).
+-define(wxGridEvent_GetPosition, 2836).
+-define(wxGridEvent_GetRow, 2837).
+-define(wxGridEvent_MetaDown, 2838).
+-define(wxGridEvent_Selecting, 2839).
+-define(wxGridEvent_ShiftDown, 2840).
+-define(wxNotifyEvent_Allow, 2841).
+-define(wxNotifyEvent_IsAllowed, 2842).
+-define(wxNotifyEvent_Veto, 2843).
+-define(wxSashEvent_GetEdge, 2844).
+-define(wxSashEvent_GetDragRect, 2845).
+-define(wxSashEvent_GetDragStatus, 2846).
+-define(wxListEvent_GetCacheFrom, 2847).
+-define(wxListEvent_GetCacheTo, 2848).
+-define(wxListEvent_GetKeyCode, 2849).
+-define(wxListEvent_GetIndex, 2850).
+-define(wxListEvent_GetColumn, 2851).
+-define(wxListEvent_GetPoint, 2852).
+-define(wxListEvent_GetLabel, 2853).
+-define(wxListEvent_GetText, 2854).
+-define(wxListEvent_GetImage, 2855).
+-define(wxListEvent_GetData, 2856).
+-define(wxListEvent_GetMask, 2857).
+-define(wxListEvent_GetItem, 2858).
+-define(wxListEvent_IsEditCancelled, 2859).
+-define(wxDateEvent_GetDate, 2860).
+-define(wxCalendarEvent_GetWeekDay, 2861).
+-define(wxFileDirPickerEvent_GetPath, 2862).
+-define(wxColourPickerEvent_GetColour, 2863).
+-define(wxFontPickerEvent_GetFont, 2864).
+-define(wxStyledTextEvent_GetPosition, 2865).
+-define(wxStyledTextEvent_GetKey, 2866).
+-define(wxStyledTextEvent_GetModifiers, 2867).
+-define(wxStyledTextEvent_GetModificationType, 2868).
+-define(wxStyledTextEvent_GetText, 2869).
+-define(wxStyledTextEvent_GetLength, 2870).
+-define(wxStyledTextEvent_GetLinesAdded, 2871).
+-define(wxStyledTextEvent_GetLine, 2872).
+-define(wxStyledTextEvent_GetFoldLevelNow, 2873).
+-define(wxStyledTextEvent_GetFoldLevelPrev, 2874).
+-define(wxStyledTextEvent_GetMargin, 2875).
+-define(wxStyledTextEvent_GetMessage, 2876).
+-define(wxStyledTextEvent_GetWParam, 2877).
+-define(wxStyledTextEvent_GetLParam, 2878).
+-define(wxStyledTextEvent_GetListType, 2879).
+-define(wxStyledTextEvent_GetX, 2880).
+-define(wxStyledTextEvent_GetY, 2881).
+-define(wxStyledTextEvent_GetDragText, 2882).
+-define(wxStyledTextEvent_GetDragAllowMove, 2883).
+-define(wxStyledTextEvent_GetDragResult, 2884).
+-define(wxStyledTextEvent_GetShift, 2885).
+-define(wxStyledTextEvent_GetControl, 2886).
+-define(wxStyledTextEvent_GetAlt, 2887).
+-define(utils_wxGetKeyState, 2888).
+-define(utils_wxGetMousePosition, 2889).
+-define(utils_wxGetMouseState, 2890).
+-define(utils_wxSetDetectableAutoRepeat, 2891).
+-define(utils_wxBell, 2892).
+-define(utils_wxFindMenuItemId, 2893).
+-define(utils_wxGenericFindWindowAtPoint, 2894).
+-define(utils_wxFindWindowAtPoint, 2895).
+-define(utils_wxBeginBusyCursor, 2896).
+-define(utils_wxEndBusyCursor, 2897).
+-define(utils_wxIsBusy, 2898).
+-define(utils_wxShutdown, 2899).
+-define(utils_wxShell, 2900).
+-define(utils_wxLaunchDefaultBrowser, 2901).
+-define(utils_wxGetEmailAddress, 2902).
+-define(utils_wxGetUserId, 2903).
+-define(utils_wxGetHomeDir, 2904).
+-define(utils_wxNewId, 2905).
+-define(utils_wxRegisterId, 2906).
+-define(utils_wxGetCurrentId, 2907).
+-define(utils_wxGetOsDescription, 2908).
+-define(utils_wxIsPlatformLittleEndian, 2909).
+-define(utils_wxIsPlatform64Bit, 2910).
+-define(wxPrintout_new, 2911).
+-define(wxPrintout_destruct, 2912).
+-define(wxPrintout_GetDC, 2913).
+-define(wxPrintout_GetPageSizeMM, 2914).
+-define(wxPrintout_GetPageSizePixels, 2915).
+-define(wxPrintout_GetPaperRectPixels, 2916).
+-define(wxPrintout_GetPPIPrinter, 2917).
+-define(wxPrintout_GetPPIScreen, 2918).
+-define(wxPrintout_GetTitle, 2919).
+-define(wxPrintout_IsPreview, 2920).
+-define(wxPrintout_FitThisSizeToPaper, 2921).
+-define(wxPrintout_FitThisSizeToPage, 2922).
+-define(wxPrintout_FitThisSizeToPageMargins, 2923).
+-define(wxPrintout_MapScreenSizeToPaper, 2924).
+-define(wxPrintout_MapScreenSizeToPage, 2925).
+-define(wxPrintout_MapScreenSizeToPageMargins, 2926).
+-define(wxPrintout_MapScreenSizeToDevice, 2927).
+-define(wxPrintout_GetLogicalPaperRect, 2928).
+-define(wxPrintout_GetLogicalPageRect, 2929).
+-define(wxPrintout_GetLogicalPageMarginsRect, 2930).
+-define(wxPrintout_SetLogicalOrigin, 2931).
+-define(wxPrintout_OffsetLogicalOrigin, 2932).
+-define(wxStyledTextCtrl_new_2, 2933).
+-define(wxStyledTextCtrl_new_0, 2934).
+-define(wxStyledTextCtrl_destruct, 2935).
+-define(wxStyledTextCtrl_Create, 2936).
+-define(wxStyledTextCtrl_AddText, 2937).
+-define(wxStyledTextCtrl_AddStyledText, 2938).
+-define(wxStyledTextCtrl_InsertText, 2939).
+-define(wxStyledTextCtrl_ClearAll, 2940).
+-define(wxStyledTextCtrl_ClearDocumentStyle, 2941).
+-define(wxStyledTextCtrl_GetLength, 2942).
+-define(wxStyledTextCtrl_GetCharAt, 2943).
+-define(wxStyledTextCtrl_GetCurrentPos, 2944).
+-define(wxStyledTextCtrl_GetAnchor, 2945).
+-define(wxStyledTextCtrl_GetStyleAt, 2946).
+-define(wxStyledTextCtrl_Redo, 2947).
+-define(wxStyledTextCtrl_SetUndoCollection, 2948).
+-define(wxStyledTextCtrl_SelectAll, 2949).
+-define(wxStyledTextCtrl_SetSavePoint, 2950).
+-define(wxStyledTextCtrl_GetStyledText, 2951).
+-define(wxStyledTextCtrl_CanRedo, 2952).
+-define(wxStyledTextCtrl_MarkerLineFromHandle, 2953).
+-define(wxStyledTextCtrl_MarkerDeleteHandle, 2954).
+-define(wxStyledTextCtrl_GetUndoCollection, 2955).
+-define(wxStyledTextCtrl_GetViewWhiteSpace, 2956).
+-define(wxStyledTextCtrl_SetViewWhiteSpace, 2957).
+-define(wxStyledTextCtrl_PositionFromPoint, 2958).
+-define(wxStyledTextCtrl_PositionFromPointClose, 2959).
+-define(wxStyledTextCtrl_GotoLine, 2960).
+-define(wxStyledTextCtrl_GotoPos, 2961).
+-define(wxStyledTextCtrl_SetAnchor, 2962).
+-define(wxStyledTextCtrl_GetCurLine, 2963).
+-define(wxStyledTextCtrl_GetEndStyled, 2964).
+-define(wxStyledTextCtrl_ConvertEOLs, 2965).
+-define(wxStyledTextCtrl_GetEOLMode, 2966).
+-define(wxStyledTextCtrl_SetEOLMode, 2967).
+-define(wxStyledTextCtrl_StartStyling, 2968).
+-define(wxStyledTextCtrl_SetStyling, 2969).
+-define(wxStyledTextCtrl_GetBufferedDraw, 2970).
+-define(wxStyledTextCtrl_SetBufferedDraw, 2971).
+-define(wxStyledTextCtrl_SetTabWidth, 2972).
+-define(wxStyledTextCtrl_GetTabWidth, 2973).
+-define(wxStyledTextCtrl_SetCodePage, 2974).
+-define(wxStyledTextCtrl_MarkerDefine, 2975).
+-define(wxStyledTextCtrl_MarkerSetForeground, 2976).
+-define(wxStyledTextCtrl_MarkerSetBackground, 2977).
+-define(wxStyledTextCtrl_MarkerAdd, 2978).
+-define(wxStyledTextCtrl_MarkerDelete, 2979).
+-define(wxStyledTextCtrl_MarkerDeleteAll, 2980).
+-define(wxStyledTextCtrl_MarkerGet, 2981).
+-define(wxStyledTextCtrl_MarkerNext, 2982).
+-define(wxStyledTextCtrl_MarkerPrevious, 2983).
+-define(wxStyledTextCtrl_MarkerDefineBitmap, 2984).
+-define(wxStyledTextCtrl_MarkerAddSet, 2985).
+-define(wxStyledTextCtrl_MarkerSetAlpha, 2986).
+-define(wxStyledTextCtrl_SetMarginType, 2987).
+-define(wxStyledTextCtrl_GetMarginType, 2988).
+-define(wxStyledTextCtrl_SetMarginWidth, 2989).
+-define(wxStyledTextCtrl_GetMarginWidth, 2990).
+-define(wxStyledTextCtrl_SetMarginMask, 2991).
+-define(wxStyledTextCtrl_GetMarginMask, 2992).
+-define(wxStyledTextCtrl_SetMarginSensitive, 2993).
+-define(wxStyledTextCtrl_GetMarginSensitive, 2994).
+-define(wxStyledTextCtrl_StyleClearAll, 2995).
+-define(wxStyledTextCtrl_StyleSetForeground, 2996).
+-define(wxStyledTextCtrl_StyleSetBackground, 2997).
+-define(wxStyledTextCtrl_StyleSetBold, 2998).
+-define(wxStyledTextCtrl_StyleSetItalic, 2999).
+-define(wxStyledTextCtrl_StyleSetSize, 3000).
+-define(wxStyledTextCtrl_StyleSetFaceName, 3001).
+-define(wxStyledTextCtrl_StyleSetEOLFilled, 3002).
+-define(wxStyledTextCtrl_StyleResetDefault, 3003).
+-define(wxStyledTextCtrl_StyleSetUnderline, 3004).
+-define(wxStyledTextCtrl_StyleSetCase, 3005).
+-define(wxStyledTextCtrl_StyleSetHotSpot, 3006).
+-define(wxStyledTextCtrl_SetSelForeground, 3007).
+-define(wxStyledTextCtrl_SetSelBackground, 3008).
+-define(wxStyledTextCtrl_GetSelAlpha, 3009).
+-define(wxStyledTextCtrl_SetSelAlpha, 3010).
+-define(wxStyledTextCtrl_SetCaretForeground, 3011).
+-define(wxStyledTextCtrl_CmdKeyAssign, 3012).
+-define(wxStyledTextCtrl_CmdKeyClear, 3013).
+-define(wxStyledTextCtrl_CmdKeyClearAll, 3014).
+-define(wxStyledTextCtrl_SetStyleBytes, 3015).
+-define(wxStyledTextCtrl_StyleSetVisible, 3016).
+-define(wxStyledTextCtrl_GetCaretPeriod, 3017).
+-define(wxStyledTextCtrl_SetCaretPeriod, 3018).
+-define(wxStyledTextCtrl_SetWordChars, 3019).
+-define(wxStyledTextCtrl_BeginUndoAction, 3020).
+-define(wxStyledTextCtrl_EndUndoAction, 3021).
+-define(wxStyledTextCtrl_IndicatorSetStyle, 3022).
+-define(wxStyledTextCtrl_IndicatorGetStyle, 3023).
+-define(wxStyledTextCtrl_IndicatorSetForeground, 3024).
+-define(wxStyledTextCtrl_IndicatorGetForeground, 3025).
+-define(wxStyledTextCtrl_SetWhitespaceForeground, 3026).
+-define(wxStyledTextCtrl_SetWhitespaceBackground, 3027).
+-define(wxStyledTextCtrl_GetStyleBits, 3028).
+-define(wxStyledTextCtrl_SetLineState, 3029).
+-define(wxStyledTextCtrl_GetLineState, 3030).
+-define(wxStyledTextCtrl_GetMaxLineState, 3031).
+-define(wxStyledTextCtrl_GetCaretLineVisible, 3032).
+-define(wxStyledTextCtrl_SetCaretLineVisible, 3033).
+-define(wxStyledTextCtrl_GetCaretLineBackground, 3034).
+-define(wxStyledTextCtrl_SetCaretLineBackground, 3035).
+-define(wxStyledTextCtrl_AutoCompShow, 3036).
+-define(wxStyledTextCtrl_AutoCompCancel, 3037).
+-define(wxStyledTextCtrl_AutoCompActive, 3038).
+-define(wxStyledTextCtrl_AutoCompPosStart, 3039).
+-define(wxStyledTextCtrl_AutoCompComplete, 3040).
+-define(wxStyledTextCtrl_AutoCompStops, 3041).
+-define(wxStyledTextCtrl_AutoCompSetSeparator, 3042).
+-define(wxStyledTextCtrl_AutoCompGetSeparator, 3043).
+-define(wxStyledTextCtrl_AutoCompSelect, 3044).
+-define(wxStyledTextCtrl_AutoCompSetCancelAtStart, 3045).
+-define(wxStyledTextCtrl_AutoCompGetCancelAtStart, 3046).
+-define(wxStyledTextCtrl_AutoCompSetFillUps, 3047).
+-define(wxStyledTextCtrl_AutoCompSetChooseSingle, 3048).
+-define(wxStyledTextCtrl_AutoCompGetChooseSingle, 3049).
+-define(wxStyledTextCtrl_AutoCompSetIgnoreCase, 3050).
+-define(wxStyledTextCtrl_AutoCompGetIgnoreCase, 3051).
+-define(wxStyledTextCtrl_UserListShow, 3052).
+-define(wxStyledTextCtrl_AutoCompSetAutoHide, 3053).
+-define(wxStyledTextCtrl_AutoCompGetAutoHide, 3054).
+-define(wxStyledTextCtrl_AutoCompSetDropRestOfWord, 3055).
+-define(wxStyledTextCtrl_AutoCompGetDropRestOfWord, 3056).
+-define(wxStyledTextCtrl_RegisterImage, 3057).
+-define(wxStyledTextCtrl_ClearRegisteredImages, 3058).
+-define(wxStyledTextCtrl_AutoCompGetTypeSeparator, 3059).
+-define(wxStyledTextCtrl_AutoCompSetTypeSeparator, 3060).
+-define(wxStyledTextCtrl_AutoCompSetMaxWidth, 3061).
+-define(wxStyledTextCtrl_AutoCompGetMaxWidth, 3062).
+-define(wxStyledTextCtrl_AutoCompSetMaxHeight, 3063).
+-define(wxStyledTextCtrl_AutoCompGetMaxHeight, 3064).
+-define(wxStyledTextCtrl_SetIndent, 3065).
+-define(wxStyledTextCtrl_GetIndent, 3066).
+-define(wxStyledTextCtrl_SetUseTabs, 3067).
+-define(wxStyledTextCtrl_GetUseTabs, 3068).
+-define(wxStyledTextCtrl_SetLineIndentation, 3069).
+-define(wxStyledTextCtrl_GetLineIndentation, 3070).
+-define(wxStyledTextCtrl_GetLineIndentPosition, 3071).
+-define(wxStyledTextCtrl_GetColumn, 3072).
+-define(wxStyledTextCtrl_SetUseHorizontalScrollBar, 3073).
+-define(wxStyledTextCtrl_GetUseHorizontalScrollBar, 3074).
+-define(wxStyledTextCtrl_SetIndentationGuides, 3075).
+-define(wxStyledTextCtrl_GetIndentationGuides, 3076).
+-define(wxStyledTextCtrl_SetHighlightGuide, 3077).
+-define(wxStyledTextCtrl_GetHighlightGuide, 3078).
+-define(wxStyledTextCtrl_GetLineEndPosition, 3079).
+-define(wxStyledTextCtrl_GetCodePage, 3080).
+-define(wxStyledTextCtrl_GetCaretForeground, 3081).
+-define(wxStyledTextCtrl_GetReadOnly, 3082).
+-define(wxStyledTextCtrl_SetCurrentPos, 3083).
+-define(wxStyledTextCtrl_SetSelectionStart, 3084).
+-define(wxStyledTextCtrl_GetSelectionStart, 3085).
+-define(wxStyledTextCtrl_SetSelectionEnd, 3086).
+-define(wxStyledTextCtrl_GetSelectionEnd, 3087).
+-define(wxStyledTextCtrl_SetPrintMagnification, 3088).
+-define(wxStyledTextCtrl_GetPrintMagnification, 3089).
+-define(wxStyledTextCtrl_SetPrintColourMode, 3090).
+-define(wxStyledTextCtrl_GetPrintColourMode, 3091).
+-define(wxStyledTextCtrl_FindText, 3092).
+-define(wxStyledTextCtrl_FormatRange, 3093).
+-define(wxStyledTextCtrl_GetFirstVisibleLine, 3094).
+-define(wxStyledTextCtrl_GetLine, 3095).
+-define(wxStyledTextCtrl_GetLineCount, 3096).
+-define(wxStyledTextCtrl_SetMarginLeft, 3097).
+-define(wxStyledTextCtrl_GetMarginLeft, 3098).
+-define(wxStyledTextCtrl_SetMarginRight, 3099).
+-define(wxStyledTextCtrl_GetMarginRight, 3100).
+-define(wxStyledTextCtrl_GetModify, 3101).
+-define(wxStyledTextCtrl_SetSelection, 3102).
+-define(wxStyledTextCtrl_GetSelectedText, 3103).
+-define(wxStyledTextCtrl_GetTextRange, 3104).
+-define(wxStyledTextCtrl_HideSelection, 3105).
+-define(wxStyledTextCtrl_LineFromPosition, 3106).
+-define(wxStyledTextCtrl_PositionFromLine, 3107).
+-define(wxStyledTextCtrl_LineScroll, 3108).
+-define(wxStyledTextCtrl_EnsureCaretVisible, 3109).
+-define(wxStyledTextCtrl_ReplaceSelection, 3110).
+-define(wxStyledTextCtrl_SetReadOnly, 3111).
+-define(wxStyledTextCtrl_CanPaste, 3112).
+-define(wxStyledTextCtrl_CanUndo, 3113).
+-define(wxStyledTextCtrl_EmptyUndoBuffer, 3114).
+-define(wxStyledTextCtrl_Undo, 3115).
+-define(wxStyledTextCtrl_Cut, 3116).
+-define(wxStyledTextCtrl_Copy, 3117).
+-define(wxStyledTextCtrl_Paste, 3118).
+-define(wxStyledTextCtrl_Clear, 3119).
+-define(wxStyledTextCtrl_SetText, 3120).
+-define(wxStyledTextCtrl_GetText, 3121).
+-define(wxStyledTextCtrl_GetTextLength, 3122).
+-define(wxStyledTextCtrl_GetOvertype, 3123).
+-define(wxStyledTextCtrl_SetCaretWidth, 3124).
+-define(wxStyledTextCtrl_GetCaretWidth, 3125).
+-define(wxStyledTextCtrl_SetTargetStart, 3126).
+-define(wxStyledTextCtrl_GetTargetStart, 3127).
+-define(wxStyledTextCtrl_SetTargetEnd, 3128).
+-define(wxStyledTextCtrl_GetTargetEnd, 3129).
+-define(wxStyledTextCtrl_ReplaceTarget, 3130).
+-define(wxStyledTextCtrl_SearchInTarget, 3131).
+-define(wxStyledTextCtrl_SetSearchFlags, 3132).
+-define(wxStyledTextCtrl_GetSearchFlags, 3133).
+-define(wxStyledTextCtrl_CallTipShow, 3134).
+-define(wxStyledTextCtrl_CallTipCancel, 3135).
+-define(wxStyledTextCtrl_CallTipActive, 3136).
+-define(wxStyledTextCtrl_CallTipPosAtStart, 3137).
+-define(wxStyledTextCtrl_CallTipSetHighlight, 3138).
+-define(wxStyledTextCtrl_CallTipSetBackground, 3139).
+-define(wxStyledTextCtrl_CallTipSetForeground, 3140).
+-define(wxStyledTextCtrl_CallTipSetForegroundHighlight, 3141).
+-define(wxStyledTextCtrl_CallTipUseStyle, 3142).
+-define(wxStyledTextCtrl_VisibleFromDocLine, 3143).
+-define(wxStyledTextCtrl_DocLineFromVisible, 3144).
+-define(wxStyledTextCtrl_WrapCount, 3145).
+-define(wxStyledTextCtrl_SetFoldLevel, 3146).
+-define(wxStyledTextCtrl_GetFoldLevel, 3147).
+-define(wxStyledTextCtrl_GetLastChild, 3148).
+-define(wxStyledTextCtrl_GetFoldParent, 3149).
+-define(wxStyledTextCtrl_ShowLines, 3150).
+-define(wxStyledTextCtrl_HideLines, 3151).
+-define(wxStyledTextCtrl_GetLineVisible, 3152).
+-define(wxStyledTextCtrl_SetFoldExpanded, 3153).
+-define(wxStyledTextCtrl_GetFoldExpanded, 3154).
+-define(wxStyledTextCtrl_ToggleFold, 3155).
+-define(wxStyledTextCtrl_EnsureVisible, 3156).
+-define(wxStyledTextCtrl_SetFoldFlags, 3157).
+-define(wxStyledTextCtrl_EnsureVisibleEnforcePolicy, 3158).
+-define(wxStyledTextCtrl_SetTabIndents, 3159).
+-define(wxStyledTextCtrl_GetTabIndents, 3160).
+-define(wxStyledTextCtrl_SetBackSpaceUnIndents, 3161).
+-define(wxStyledTextCtrl_GetBackSpaceUnIndents, 3162).
+-define(wxStyledTextCtrl_SetMouseDwellTime, 3163).
+-define(wxStyledTextCtrl_GetMouseDwellTime, 3164).
+-define(wxStyledTextCtrl_WordStartPosition, 3165).
+-define(wxStyledTextCtrl_WordEndPosition, 3166).
+-define(wxStyledTextCtrl_SetWrapMode, 3167).
+-define(wxStyledTextCtrl_GetWrapMode, 3168).
+-define(wxStyledTextCtrl_SetWrapVisualFlags, 3169).
+-define(wxStyledTextCtrl_GetWrapVisualFlags, 3170).
+-define(wxStyledTextCtrl_SetWrapVisualFlagsLocation, 3171).
+-define(wxStyledTextCtrl_GetWrapVisualFlagsLocation, 3172).
+-define(wxStyledTextCtrl_SetWrapStartIndent, 3173).
+-define(wxStyledTextCtrl_GetWrapStartIndent, 3174).
+-define(wxStyledTextCtrl_SetLayoutCache, 3175).
+-define(wxStyledTextCtrl_GetLayoutCache, 3176).
+-define(wxStyledTextCtrl_SetScrollWidth, 3177).
+-define(wxStyledTextCtrl_GetScrollWidth, 3178).
+-define(wxStyledTextCtrl_TextWidth, 3179).
+-define(wxStyledTextCtrl_GetEndAtLastLine, 3180).
+-define(wxStyledTextCtrl_TextHeight, 3181).
+-define(wxStyledTextCtrl_SetUseVerticalScrollBar, 3182).
+-define(wxStyledTextCtrl_GetUseVerticalScrollBar, 3183).
+-define(wxStyledTextCtrl_AppendText, 3184).
+-define(wxStyledTextCtrl_GetTwoPhaseDraw, 3185).
+-define(wxStyledTextCtrl_SetTwoPhaseDraw, 3186).
+-define(wxStyledTextCtrl_TargetFromSelection, 3187).
+-define(wxStyledTextCtrl_LinesJoin, 3188).
+-define(wxStyledTextCtrl_LinesSplit, 3189).
+-define(wxStyledTextCtrl_SetFoldMarginColour, 3190).
+-define(wxStyledTextCtrl_SetFoldMarginHiColour, 3191).
+-define(wxStyledTextCtrl_LineDown, 3192).
+-define(wxStyledTextCtrl_LineDownExtend, 3193).
+-define(wxStyledTextCtrl_LineUp, 3194).
+-define(wxStyledTextCtrl_LineUpExtend, 3195).
+-define(wxStyledTextCtrl_CharLeft, 3196).
+-define(wxStyledTextCtrl_CharLeftExtend, 3197).
+-define(wxStyledTextCtrl_CharRight, 3198).
+-define(wxStyledTextCtrl_CharRightExtend, 3199).
+-define(wxStyledTextCtrl_WordLeft, 3200).
+-define(wxStyledTextCtrl_WordLeftExtend, 3201).
+-define(wxStyledTextCtrl_WordRight, 3202).
+-define(wxStyledTextCtrl_WordRightExtend, 3203).
+-define(wxStyledTextCtrl_Home, 3204).
+-define(wxStyledTextCtrl_HomeExtend, 3205).
+-define(wxStyledTextCtrl_LineEnd, 3206).
+-define(wxStyledTextCtrl_LineEndExtend, 3207).
+-define(wxStyledTextCtrl_DocumentStart, 3208).
+-define(wxStyledTextCtrl_DocumentStartExtend, 3209).
+-define(wxStyledTextCtrl_DocumentEnd, 3210).
+-define(wxStyledTextCtrl_DocumentEndExtend, 3211).
+-define(wxStyledTextCtrl_PageUp, 3212).
+-define(wxStyledTextCtrl_PageUpExtend, 3213).
+-define(wxStyledTextCtrl_PageDown, 3214).
+-define(wxStyledTextCtrl_PageDownExtend, 3215).
+-define(wxStyledTextCtrl_EditToggleOvertype, 3216).
+-define(wxStyledTextCtrl_Cancel, 3217).
+-define(wxStyledTextCtrl_DeleteBack, 3218).
+-define(wxStyledTextCtrl_Tab, 3219).
+-define(wxStyledTextCtrl_BackTab, 3220).
+-define(wxStyledTextCtrl_NewLine, 3221).
+-define(wxStyledTextCtrl_FormFeed, 3222).
+-define(wxStyledTextCtrl_VCHome, 3223).
+-define(wxStyledTextCtrl_VCHomeExtend, 3224).
+-define(wxStyledTextCtrl_ZoomIn, 3225).
+-define(wxStyledTextCtrl_ZoomOut, 3226).
+-define(wxStyledTextCtrl_DelWordLeft, 3227).
+-define(wxStyledTextCtrl_DelWordRight, 3228).
+-define(wxStyledTextCtrl_LineCut, 3229).
+-define(wxStyledTextCtrl_LineDelete, 3230).
+-define(wxStyledTextCtrl_LineTranspose, 3231).
+-define(wxStyledTextCtrl_LineDuplicate, 3232).
+-define(wxStyledTextCtrl_LowerCase, 3233).
+-define(wxStyledTextCtrl_UpperCase, 3234).
+-define(wxStyledTextCtrl_LineScrollDown, 3235).
+-define(wxStyledTextCtrl_LineScrollUp, 3236).
+-define(wxStyledTextCtrl_DeleteBackNotLine, 3237).
+-define(wxStyledTextCtrl_HomeDisplay, 3238).
+-define(wxStyledTextCtrl_HomeDisplayExtend, 3239).
+-define(wxStyledTextCtrl_LineEndDisplay, 3240).
+-define(wxStyledTextCtrl_LineEndDisplayExtend, 3241).
+-define(wxStyledTextCtrl_HomeWrapExtend, 3242).
+-define(wxStyledTextCtrl_LineEndWrap, 3243).
+-define(wxStyledTextCtrl_LineEndWrapExtend, 3244).
+-define(wxStyledTextCtrl_VCHomeWrap, 3245).
+-define(wxStyledTextCtrl_VCHomeWrapExtend, 3246).
+-define(wxStyledTextCtrl_LineCopy, 3247).
+-define(wxStyledTextCtrl_MoveCaretInsideView, 3248).
+-define(wxStyledTextCtrl_LineLength, 3249).
+-define(wxStyledTextCtrl_BraceHighlight, 3250).
+-define(wxStyledTextCtrl_BraceBadLight, 3251).
+-define(wxStyledTextCtrl_BraceMatch, 3252).
+-define(wxStyledTextCtrl_GetViewEOL, 3253).
+-define(wxStyledTextCtrl_SetViewEOL, 3254).
+-define(wxStyledTextCtrl_SetModEventMask, 3255).
+-define(wxStyledTextCtrl_GetEdgeColumn, 3256).
+-define(wxStyledTextCtrl_SetEdgeColumn, 3257).
+-define(wxStyledTextCtrl_GetEdgeMode, 3258).
+-define(wxStyledTextCtrl_GetEdgeColour, 3259).
+-define(wxStyledTextCtrl_SetEdgeColour, 3260).
+-define(wxStyledTextCtrl_SearchAnchor, 3261).
+-define(wxStyledTextCtrl_SearchNext, 3262).
+-define(wxStyledTextCtrl_SearchPrev, 3263).
+-define(wxStyledTextCtrl_LinesOnScreen, 3264).
+-define(wxStyledTextCtrl_UsePopUp, 3265).
+-define(wxStyledTextCtrl_SelectionIsRectangle, 3266).
+-define(wxStyledTextCtrl_SetZoom, 3267).
+-define(wxStyledTextCtrl_GetZoom, 3268).
+-define(wxStyledTextCtrl_GetModEventMask, 3269).
+-define(wxStyledTextCtrl_SetSTCFocus, 3270).
+-define(wxStyledTextCtrl_GetSTCFocus, 3271).
+-define(wxStyledTextCtrl_SetStatus, 3272).
+-define(wxStyledTextCtrl_GetStatus, 3273).
+-define(wxStyledTextCtrl_SetMouseDownCaptures, 3274).
+-define(wxStyledTextCtrl_GetMouseDownCaptures, 3275).
+-define(wxStyledTextCtrl_SetSTCCursor, 3276).
+-define(wxStyledTextCtrl_GetSTCCursor, 3277).
+-define(wxStyledTextCtrl_SetControlCharSymbol, 3278).
+-define(wxStyledTextCtrl_GetControlCharSymbol, 3279).
+-define(wxStyledTextCtrl_WordPartLeft, 3280).
+-define(wxStyledTextCtrl_WordPartLeftExtend, 3281).
+-define(wxStyledTextCtrl_WordPartRight, 3282).
+-define(wxStyledTextCtrl_WordPartRightExtend, 3283).
+-define(wxStyledTextCtrl_SetVisiblePolicy, 3284).
+-define(wxStyledTextCtrl_DelLineLeft, 3285).
+-define(wxStyledTextCtrl_DelLineRight, 3286).
+-define(wxStyledTextCtrl_GetXOffset, 3287).
+-define(wxStyledTextCtrl_ChooseCaretX, 3288).
+-define(wxStyledTextCtrl_SetXCaretPolicy, 3289).
+-define(wxStyledTextCtrl_SetYCaretPolicy, 3290).
+-define(wxStyledTextCtrl_GetPrintWrapMode, 3291).
+-define(wxStyledTextCtrl_SetHotspotActiveForeground, 3292).
+-define(wxStyledTextCtrl_SetHotspotActiveBackground, 3293).
+-define(wxStyledTextCtrl_SetHotspotActiveUnderline, 3294).
+-define(wxStyledTextCtrl_SetHotspotSingleLine, 3295).
+-define(wxStyledTextCtrl_ParaDownExtend, 3296).
+-define(wxStyledTextCtrl_ParaUp, 3297).
+-define(wxStyledTextCtrl_ParaUpExtend, 3298).
+-define(wxStyledTextCtrl_PositionBefore, 3299).
+-define(wxStyledTextCtrl_PositionAfter, 3300).
+-define(wxStyledTextCtrl_CopyRange, 3301).
+-define(wxStyledTextCtrl_CopyText, 3302).
+-define(wxStyledTextCtrl_SetSelectionMode, 3303).
+-define(wxStyledTextCtrl_GetSelectionMode, 3304).
+-define(wxStyledTextCtrl_LineDownRectExtend, 3305).
+-define(wxStyledTextCtrl_LineUpRectExtend, 3306).
+-define(wxStyledTextCtrl_CharLeftRectExtend, 3307).
+-define(wxStyledTextCtrl_CharRightRectExtend, 3308).
+-define(wxStyledTextCtrl_HomeRectExtend, 3309).
+-define(wxStyledTextCtrl_VCHomeRectExtend, 3310).
+-define(wxStyledTextCtrl_LineEndRectExtend, 3311).
+-define(wxStyledTextCtrl_PageUpRectExtend, 3312).
+-define(wxStyledTextCtrl_PageDownRectExtend, 3313).
+-define(wxStyledTextCtrl_StutteredPageUp, 3314).
+-define(wxStyledTextCtrl_StutteredPageUpExtend, 3315).
+-define(wxStyledTextCtrl_StutteredPageDown, 3316).
+-define(wxStyledTextCtrl_StutteredPageDownExtend, 3317).
+-define(wxStyledTextCtrl_WordLeftEnd, 3318).
+-define(wxStyledTextCtrl_WordLeftEndExtend, 3319).
+-define(wxStyledTextCtrl_WordRightEnd, 3320).
+-define(wxStyledTextCtrl_WordRightEndExtend, 3321).
+-define(wxStyledTextCtrl_SetWhitespaceChars, 3322).
+-define(wxStyledTextCtrl_SetCharsDefault, 3323).
+-define(wxStyledTextCtrl_AutoCompGetCurrent, 3324).
+-define(wxStyledTextCtrl_Allocate, 3325).
+-define(wxStyledTextCtrl_FindColumn, 3326).
+-define(wxStyledTextCtrl_GetCaretSticky, 3327).
+-define(wxStyledTextCtrl_SetCaretSticky, 3328).
+-define(wxStyledTextCtrl_ToggleCaretSticky, 3329).
+-define(wxStyledTextCtrl_SetPasteConvertEndings, 3330).
+-define(wxStyledTextCtrl_GetPasteConvertEndings, 3331).
+-define(wxStyledTextCtrl_SelectionDuplicate, 3332).
+-define(wxStyledTextCtrl_SetCaretLineBackAlpha, 3333).
+-define(wxStyledTextCtrl_GetCaretLineBackAlpha, 3334).
+-define(wxStyledTextCtrl_StartRecord, 3335).
+-define(wxStyledTextCtrl_StopRecord, 3336).
+-define(wxStyledTextCtrl_SetLexer, 3337).
+-define(wxStyledTextCtrl_GetLexer, 3338).
+-define(wxStyledTextCtrl_Colourise, 3339).
+-define(wxStyledTextCtrl_SetProperty, 3340).
+-define(wxStyledTextCtrl_SetKeyWords, 3341).
+-define(wxStyledTextCtrl_SetLexerLanguage, 3342).
+-define(wxStyledTextCtrl_GetProperty, 3343).
+-define(wxStyledTextCtrl_GetStyleBitsNeeded, 3344).
+-define(wxStyledTextCtrl_GetCurrentLine, 3345).
+-define(wxStyledTextCtrl_StyleSetSpec, 3346).
+-define(wxStyledTextCtrl_StyleSetFont, 3347).
+-define(wxStyledTextCtrl_StyleSetFontAttr, 3348).
+-define(wxStyledTextCtrl_StyleSetCharacterSet, 3349).
+-define(wxStyledTextCtrl_StyleSetFontEncoding, 3350).
+-define(wxStyledTextCtrl_CmdKeyExecute, 3351).
+-define(wxStyledTextCtrl_SetMargins, 3352).
+-define(wxStyledTextCtrl_GetSelection, 3353).
+-define(wxStyledTextCtrl_PointFromPosition, 3354).
+-define(wxStyledTextCtrl_ScrollToLine, 3355).
+-define(wxStyledTextCtrl_ScrollToColumn, 3356).
+-define(wxStyledTextCtrl_SendMsg, 3357).
+-define(wxStyledTextCtrl_SetVScrollBar, 3358).
+-define(wxStyledTextCtrl_SetHScrollBar, 3359).
+-define(wxStyledTextCtrl_GetLastKeydownProcessed, 3360).
+-define(wxStyledTextCtrl_SetLastKeydownProcessed, 3361).
+-define(wxStyledTextCtrl_SaveFile, 3362).
+-define(wxStyledTextCtrl_LoadFile, 3363).
+-define(wxStyledTextCtrl_DoDragOver, 3364).
+-define(wxStyledTextCtrl_DoDropText, 3365).
+-define(wxStyledTextCtrl_GetUseAntiAliasing, 3366).
+-define(wxStyledTextCtrl_AddTextRaw, 3367).
+-define(wxStyledTextCtrl_InsertTextRaw, 3368).
+-define(wxStyledTextCtrl_GetCurLineRaw, 3369).
+-define(wxStyledTextCtrl_GetLineRaw, 3370).
+-define(wxStyledTextCtrl_GetSelectedTextRaw, 3371).
+-define(wxStyledTextCtrl_GetTextRangeRaw, 3372).
+-define(wxStyledTextCtrl_SetTextRaw, 3373).
+-define(wxStyledTextCtrl_GetTextRaw, 3374).
+-define(wxStyledTextCtrl_AppendTextRaw, 3375).
+-define(wxArtProvider_GetBitmap, 3376).
+-define(wxArtProvider_GetIcon, 3377).
+-define(wxTreeEvent_GetKeyCode, 3378).
+-define(wxTreeEvent_GetItem, 3379).
+-define(wxTreeEvent_GetKeyEvent, 3380).
+-define(wxTreeEvent_GetLabel, 3381).
+-define(wxTreeEvent_GetOldItem, 3382).
+-define(wxTreeEvent_GetPoint, 3383).
+-define(wxTreeEvent_IsEditCancelled, 3384).
+-define(wxTreeEvent_SetToolTip, 3385).
+-define(wxNotebookEvent_GetOldSelection, 3386).
+-define(wxNotebookEvent_GetSelection, 3387).
+-define(wxNotebookEvent_SetOldSelection, 3388).
+-define(wxNotebookEvent_SetSelection, 3389).
+-define(wxFileDataObject_new, 3390).
+-define(wxFileDataObject_AddFile, 3391).
+-define(wxFileDataObject_GetFilenames, 3392).
+-define(wxFileDataObject_destroy, 3393).
+-define(wxTextDataObject_new, 3394).
+-define(wxTextDataObject_GetTextLength, 3395).
+-define(wxTextDataObject_GetText, 3396).
+-define(wxTextDataObject_SetText, 3397).
+-define(wxTextDataObject_destroy, 3398).
+-define(wxBitmapDataObject_new_1_1, 3399).
+-define(wxBitmapDataObject_new_1_0, 3400).
+-define(wxBitmapDataObject_GetBitmap, 3401).
+-define(wxBitmapDataObject_SetBitmap, 3402).
+-define(wxBitmapDataObject_destroy, 3403).
+-define(wxClipboard_new, 3405).
+-define(wxClipboard_destruct, 3406).
+-define(wxClipboard_AddData, 3407).
+-define(wxClipboard_Clear, 3408).
+-define(wxClipboard_Close, 3409).
+-define(wxClipboard_Flush, 3410).
+-define(wxClipboard_GetData, 3411).
+-define(wxClipboard_IsOpened, 3412).
+-define(wxClipboard_Open, 3413).
+-define(wxClipboard_SetData, 3414).
+-define(wxClipboard_UsePrimarySelection, 3416).
+-define(wxClipboard_IsSupported, 3417).
+-define(wxClipboard_Get, 3418).
+-define(wxSpinEvent_GetPosition, 3419).
+-define(wxSpinEvent_SetPosition, 3420).
+-define(wxSplitterWindow_new_0, 3421).
+-define(wxSplitterWindow_new_2, 3422).
+-define(wxSplitterWindow_destruct, 3423).
+-define(wxSplitterWindow_Create, 3424).
+-define(wxSplitterWindow_GetMinimumPaneSize, 3425).
+-define(wxSplitterWindow_GetSashGravity, 3426).
+-define(wxSplitterWindow_GetSashPosition, 3427).
+-define(wxSplitterWindow_GetSplitMode, 3428).
+-define(wxSplitterWindow_GetWindow1, 3429).
+-define(wxSplitterWindow_GetWindow2, 3430).
+-define(wxSplitterWindow_Initialize, 3431).
+-define(wxSplitterWindow_IsSplit, 3432).
+-define(wxSplitterWindow_ReplaceWindow, 3433).
+-define(wxSplitterWindow_SetSashGravity, 3434).
+-define(wxSplitterWindow_SetSashPosition, 3435).
+-define(wxSplitterWindow_SetSashSize, 3436).
+-define(wxSplitterWindow_SetMinimumPaneSize, 3437).
+-define(wxSplitterWindow_SetSplitMode, 3438).
+-define(wxSplitterWindow_SplitHorizontally, 3439).
+-define(wxSplitterWindow_SplitVertically, 3440).
+-define(wxSplitterWindow_Unsplit, 3441).
+-define(wxSplitterWindow_UpdateSize, 3442).
+-define(wxSplitterEvent_GetSashPosition, 3443).
+-define(wxSplitterEvent_GetX, 3444).
+-define(wxSplitterEvent_GetY, 3445).
+-define(wxSplitterEvent_GetWindowBeingRemoved, 3446).
+-define(wxSplitterEvent_SetSashPosition, 3447).
+-define(wxHtmlWindow_new_0, 3448).
+-define(wxHtmlWindow_new_2, 3449).
+-define(wxHtmlWindow_AppendToPage, 3450).
+-define(wxHtmlWindow_GetOpenedAnchor, 3451).
+-define(wxHtmlWindow_GetOpenedPage, 3452).
+-define(wxHtmlWindow_GetOpenedPageTitle, 3453).
+-define(wxHtmlWindow_GetRelatedFrame, 3454).
+-define(wxHtmlWindow_HistoryBack, 3455).
+-define(wxHtmlWindow_HistoryCanBack, 3456).
+-define(wxHtmlWindow_HistoryCanForward, 3457).
+-define(wxHtmlWindow_HistoryClear, 3458).
+-define(wxHtmlWindow_HistoryForward, 3459).
+-define(wxHtmlWindow_LoadFile, 3460).
+-define(wxHtmlWindow_LoadPage, 3461).
+-define(wxHtmlWindow_SelectAll, 3462).
+-define(wxHtmlWindow_SelectionToText, 3463).
+-define(wxHtmlWindow_SelectLine, 3464).
+-define(wxHtmlWindow_SelectWord, 3465).
+-define(wxHtmlWindow_SetBorders, 3466).
+-define(wxHtmlWindow_SetFonts, 3467).
+-define(wxHtmlWindow_SetPage, 3468).
+-define(wxHtmlWindow_SetRelatedFrame, 3469).
+-define(wxHtmlWindow_SetRelatedStatusBar, 3470).
+-define(wxHtmlWindow_ToText, 3471).
+-define(wxHtmlWindow_destroy, 3472).
+-define(wxHtmlLinkEvent_GetLinkInfo, 3473).
+-define(wxAuiNotebookEvent_SetSelection, 3474).
+-define(wxAuiNotebookEvent_GetSelection, 3475).
+-define(wxAuiNotebookEvent_SetOldSelection, 3476).
+-define(wxAuiNotebookEvent_GetOldSelection, 3477).
+-define(wxAuiNotebookEvent_SetDragSource, 3478).
+-define(wxAuiNotebookEvent_GetDragSource, 3479).
+-define(wxAuiManagerEvent_SetManager, 3480).
+-define(wxAuiManagerEvent_GetManager, 3481).
+-define(wxAuiManagerEvent_SetPane, 3482).
+-define(wxAuiManagerEvent_GetPane, 3483).
+-define(wxAuiManagerEvent_SetButton, 3484).
+-define(wxAuiManagerEvent_GetButton, 3485).
+-define(wxAuiManagerEvent_SetDC, 3486).
+-define(wxAuiManagerEvent_GetDC, 3487).
+-define(wxAuiManagerEvent_Veto, 3488).
+-define(wxAuiManagerEvent_GetVeto, 3489).
+-define(wxAuiManagerEvent_SetCanVeto, 3490).
+-define(wxAuiManagerEvent_CanVeto, 3491).
+-define(wxLogNull_new, 3492).
+-define(wxLogNull_destroy, 3493).
diff --git a/lib/wx/src/wx.erl b/lib/wx/src/wx.erl
new file mode 100644
index 0000000000..14abd0d817
--- /dev/null
+++ b/lib/wx/src/wx.erl
@@ -0,0 +1,320 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 22 Feb 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+%% @doc A port of <a href="http://www.wxwidgets.org/">wxWidgets</a>.
+%%
+%% This is the base api of <a href="http://www.wxwidgets.org/">wxWidgets</a>.
+%% This module contains functions for
+%% starting and stopping the wx-server, as well as other utility functions.
+%%
+%% wxWidgets is object oriented, and not functional. Thus, in wxErlang a
+%% module represents a class, and the object created by this class
+%% has an own type, wxCLASS(). This module represents the base
+%% class, and all other wxMODULE's are sub-classes of this class.
+%%
+%% Objects of a class are created with wxCLASS:new(...) and destroyed with
+%% wxCLASS:destroy(). Member functions are called with wxCLASS:member(Object, ...)
+%% instead of as in C++ Object.member(...).
+%%
+%% Sub class modules inherit (non static) functions from their parents.
+%% The inherited functions are not documented in the sub-classes.
+%%
+%% This erlang port of wxWidgets tries to be a one-to-one mapping with
+%% the original wxWidgets library. Some things are different though,
+%% as the optional arguments use property lists and can be in any
+%% order. The main difference is the event handling which is different
+%% from the original library. See {@link wxEvtHandler}.
+%%
+%% The following classes are implemented directly as erlang types: <br />
+%% wxPoint={x,y},wxSize={w,h},wxRect={x,y,w,h},wxColour={r,g,b [,a]},
+%% wxString={@link //stdlib/unicode:charlist()},
+%% wxGBPosition={r,c},wxGBSpan={rs,cs},wxGridCellCoords={r,c}.
+%%
+%% wxWidgets uses a process specific environment, which is created by
+%% {@link wx:new/0}. To be able to use the environment from other
+%% processes, call {@link get_env/0} to retrieve the environment and
+%% {@link set_env/1} to assign the environment in the other process.
+%%
+%% Global (classless) functions are located in the wx_misc module.
+
+%% @type wxObject(). Opaque object
+%% @type wx_env(). Wx process environment
+%% @type wx_mem(). Wx memory area
+%% @type colour(). A 3 or 4 tuple: {R,G,B,A} or as argument {R,G,B} is also accepted
+%% where each colour channel is a an integer between 0-255.
+%% @type datetime(). {{Year,Month,Day}, {Hour,Minute,Second}} in local timezone.
+%% @type mouseState(). See #wxMouseState{} defined in wx.hrl
+
+
+-module(wx).
+
+-export([parent_class/1, new/0, new/1, destroy/0,
+ get_env/0,set_env/1, debug/1,
+ batch/1,foreach/2,map/2,foldl/3,foldr/3,
+ getObjectType/1, typeCast/2,
+ null/0, is_null/1]).
+
+-export([create_memory/1, get_memory_bin/1,
+ retain_memory/1, release_memory/1]).
+
+
+-export([demo/0]).
+
+-include("wxe.hrl").
+
+%% @hidden
+parent_class(_) -> true. %% Let the null pointers be sent down.
+
+%% @spec () -> wxObject()
+%% @doc Starts a wx server.
+new() ->
+ new([]).
+
+%% @spec ([Option]) -> wxObject()
+%% @doc Starts a wx server.
+%% Option may be {debug, Level}, see debug/1.
+new(Options) when is_list(Options) ->
+ #wx_env{} = wxe_server:start(),
+ Debug = proplists:get_value(debug, Options, 0),
+ debug(Debug),
+ null().
+
+%% @spec () -> ok
+%% @doc Stops a wx server.
+destroy() ->
+ wxe_server:stop(),
+ erase(?WXE_IDENTIFIER),
+ ok.
+
+%% @spec () -> wx_env()
+%% @doc Gets this process's current wx environment.
+%% Can be sent to other processes to allow them use this process wx environment.
+%% @see set_env/1
+get_env() ->
+ case get(?WXE_IDENTIFIER) of
+ undefined -> erlang:error({wxe,unknown_port});
+ Env = #wx_env{} -> Env
+ end.
+
+%% @spec (wx_env()) -> ok
+%% @doc Sets the process wx environment, allows this process to use
+%% another process wx environment.
+set_env(#wx_env{sv=Pid} = Env) ->
+ put(?WXE_IDENTIFIER, Env),
+ %% wxe_util:cast(?REGISTER_PID, <<>>),
+ wxe_server:register_me(Pid),
+ ok.
+
+%% @spec () -> wxObject()
+%% @doc Returns the null object
+null() ->
+ #wx_ref{ref=0, type=wx}.
+
+%% @spec (wxObject()) -> boolean()
+%% @doc Returns true if object is null, false otherwise
+is_null(#wx_ref{ref=NULL}) -> NULL =:= 0.
+
+%% @spec (wxObject()) -> atom()
+%% @doc Returns the object type
+getObjectType(#wx_ref{type=Type}) ->
+ Type.
+
+%% @spec (wxObject(), atom()) -> wxObject()
+%% @doc Casts the object to class NewType.
+%% It is needed when using functions like wxWindow:findWindow/2, which
+%% returns a generic wxObject type.
+typeCast(Old=#wx_ref{}, NewType) when is_atom(NewType) ->
+ Old#wx_ref{type=NewType}.
+
+%% @spec (function()) -> term()
+%% @doc Batches all <c>wx</c> commands
+%% used in the fun. Improves performance of the command processing by
+%% grabbing the wxWidgets thread so that no event processing will be
+%% done before the complete batch of commands is invoked.
+%%
+%% @see map/2
+%% @see foreach/2
+%% @see foldl/3
+%% @see foldr/3
+batch(Fun) ->
+ ok = wxe_util:cast(?BATCH_BEGIN, <<>>),
+ try Fun()
+ catch
+ error:W -> erlang:exit({W, erlang:get_stacktrace()});
+ throw:W -> erlang:throw(W);
+ exit:W -> erlang:exit(W)
+ after
+ ok = wxe_util:cast(?BATCH_END, <<>>)
+ end.
+
+%% @spec (function(), list()) -> ok
+%% @doc Behaves like {@link //stdlib/lists:foreach/2} but batches wx commands. See {@link batch/1}.
+foreach(Fun, List) ->
+ ok = wxe_util:cast(?BATCH_BEGIN, <<>>),
+ try lists:foreach(Fun, List)
+ catch
+ error:W -> erlang:exit({W, erlang:get_stacktrace()});
+ throw:W -> erlang:throw(W);
+ exit:W -> erlang:exit(W)
+ after
+ ok = wxe_util:cast(?BATCH_END, <<>>)
+ end.
+
+%% @spec (function(), list()) -> list()
+%% @doc Behaves like {@link //stdlib/lists:map/2} but batches wx commands. See {@link batch/1}.
+map(Fun, List) ->
+ ok = wxe_util:cast(?BATCH_BEGIN, <<>>),
+ try lists:map(Fun, List)
+ catch
+ error:W -> erlang:exit({W, erlang:get_stacktrace()});
+ throw:W -> erlang:throw(W);
+ exit:W -> erlang:exit(W)
+ after
+ ok = wxe_util:cast(?BATCH_END, <<>>)
+ end.
+
+%% @spec (function(), term(), list()) -> term()
+%% @doc Behaves like {@link //stdlib/lists:foldl/3} but batches wx commands. See {@link batch/1}.
+foldl(Fun, Acc, List) ->
+ ok = wxe_util:cast(?BATCH_BEGIN, <<>>),
+ try lists:foldl(Fun, Acc, List)
+ catch
+ error:W -> erlang:exit({W, erlang:get_stacktrace()});
+ throw:W -> erlang:throw(W);
+ exit:W -> erlang:exit(W)
+ after
+ ok = wxe_util:cast(?BATCH_END, <<>>)
+ end.
+
+%% @spec (function(), term(), list()) -> term()
+%% @doc Behaves like {@link //stdlib/lists:foldr/3} but batches wx commands. See {@link batch/1}.
+foldr(Fun, Acc, List) ->
+ ok = wxe_util:cast(?BATCH_BEGIN, <<>>),
+ try lists:foldr(Fun, Acc, List)
+ catch
+ error:W -> erlang:exit({W, erlang:get_stacktrace()});
+ throw:W -> erlang:throw(W);
+ exit:W -> erlang:exit(W)
+ after
+ ok = wxe_util:cast(?BATCH_END, <<>>)
+ end.
+
+-define(MIN_BIN_SIZE, 64). %% Current emulator min off heap size
+
+%% @spec (integer()) -> wx_memory()
+%% @doc Creates a memory area (of Size in bytes) which can be used by an external library (i.e. opengl).
+%% It is up to the client to keep a reference to this object so it does
+%% not get garbage collected by erlang while still in use by the external
+%% library.
+%%
+%% This is far from erlang's intentional usage and can crash the erlang emulator.
+%% Use it carefully.
+create_memory(Size) when Size > ?MIN_BIN_SIZE ->
+ #wx_mem{bin = <<0:(Size*8)>>, size = Size};
+create_memory(Size) ->
+ #wx_mem{bin = <<0:((?MIN_BIN_SIZE+1)*8)>>, size = Size}.
+
+%% @spec (wx_memory()) -> binary()
+%% @doc Returns the memory area as a binary.
+get_memory_bin(#wx_mem{bin=Bin, size=Size}) when Size > ?MIN_BIN_SIZE ->
+ Bin;
+get_memory_bin(#wx_mem{bin=Bin, size=Size}) ->
+ <<WithCorrectSize:Size/binary, _/binary>> = Bin,
+ WithCorrectSize.
+
+%% @spec (wx_memory()) -> ok
+%% @doc Saves the memory from deletion until release_memory/1 is called.
+%% If release_memory/1 is not called the memory will not be garbage collected.
+retain_memory(#wx_mem{bin=Bin}) ->
+ wxe_util:send_bin(Bin),
+ ok = wxe_util:cast(?WXE_BIN_INCR, <<>>);
+retain_memory(Bin) when is_binary(Bin) ->
+ case byte_size(Bin) > ?MIN_BIN_SIZE of
+ true -> ok;
+ false -> erlang:error(small_bin)
+ end,
+ wxe_util:send_bin(Bin),
+ ok = wxe_util:cast(?WXE_BIN_INCR, <<>>).
+
+release_memory(#wx_mem{bin=Bin}) ->
+ wxe_util:send_bin(Bin),
+ ok = wxe_util:cast(?WXE_BIN_DECR, <<>>);
+release_memory(Bin) when is_binary(Bin) ->
+ wxe_util:send_bin(Bin),
+ ok = wxe_util:cast(?WXE_BIN_DECR, <<>>).
+
+
+
+
+%% @spec (Level::term()) -> ok
+%% Level = none | verbose | trace | driver | [Level]
+%% @doc Sets debug level. If debug level is verbose or trace
+%% each call is printed on console. If Level is driver each allocated
+%% object and deletion is printed on the console.
+debug(none) -> debug(0);
+debug(verbose) -> debug(1);
+debug(trace) -> debug(2);
+debug(driver) -> debug(16);
+debug([]) -> debug(0);
+
+debug(List) when is_list(List) ->
+ {Drv,Erl} =
+ lists:foldl(fun(verbose, {Drv,_Erl}) ->
+ {Drv,1};
+ (trace, {Drv,_Erl}) ->
+ {Drv,2};
+ (driver, {_Drv,Erl}) ->
+ {16, Erl}
+ end, {0,0}, List),
+ debug(Drv + Erl);
+debug(Level) when is_integer(Level) ->
+ case get(?WXE_IDENTIFIER) of
+ undefined -> erlang:error({wxe,unknown_port});
+ #wx_env{debug=Old} when Old =:= Level -> ok;
+ Env = #wx_env{sv=Server, port=Port, debug=Old} ->
+ if
+ Old > 16, Level > 16 -> ok;
+ Old < 16, Level < 16 -> ok;
+ true ->
+ erlang:port_call(Port,?WXE_DEBUG_DRIVER, [Level bsr 4])
+ end,
+ put(?WXE_IDENTIFIER, Env#wx_env{debug=Level}),
+ wxe_server:set_debug(Server,Level),
+ ok
+ end.
+
+%% @spec () -> ok
+%% @doc Starts a wxErlang demo if examples directory exists and is compiled
+demo() ->
+ Priv = code:priv_dir(wx),
+ Demo = filename:join([filename:dirname(Priv),examples,demo]),
+ Mod = list_to_atom("demo"), %% Fool xref tests
+ case file:set_cwd(Demo) of
+ ok ->
+ apply(Mod, start, []);
+ _ ->
+ {error, no_demo_dir}
+ end.
+
diff --git a/lib/wx/src/wx_object.erl b/lib/wx/src/wx_object.erl
new file mode 100644
index 0000000000..1f0b7922a0
--- /dev/null
+++ b/lib/wx/src/wx_object.erl
@@ -0,0 +1,605 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_object.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Frame work for erlang sub-classes.
+%%%
+%%% Created : 25 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+%%
+%% @doc wx_object - Generic wx object behaviour
+%%
+%% This is a behaviour module that can be used for "sub classing"
+%% wx objects. It works like a regular gen_server module and creates
+%% a server per object.
+%%
+%% NOTE: Currently no form of inheritance is implemented.
+%%
+%%
+%% The user module should export:
+%%
+%% init(Args) should return <br/>
+%% {wxObject, State} | {wxObject, State, Timeout} |
+%% ignore | {stop, Reason}
+%%
+%% handle_call(Msg, {From, Tag}, State) should return <br/>
+%% {reply, Reply, State} | {reply, Reply, State, Timeout} |
+%% {noreply, State} | {noreply, State, Timeout} |
+%% {stop, Reason, Reply, State}
+%%
+%% Asynchronous window event handling: <br/>
+%% handle_event(#wx{}, State) should return <br/>
+%% {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
+%%
+%% Info is message e.g. {'EXIT', P, R}, {nodedown, N}, ... <br/>
+%% handle_info(Info, State) should return , ... <br/>
+%% {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
+%%
+%% When stop is returned in one of the functions above with Reason =
+%% normal | shutdown | Term, terminate(State) is called. It lets the
+%% user module clean up, it is always called when server terminates or
+%% when wxObject() in the driver is deleted. If the Parent process
+%% terminates the Module:terminate/2 function is called. <br/>
+%% terminate(Reason, State)
+%%
+%%
+%% Example:
+%%
+%% ```
+%% -module(myDialog).
+%% -export([new/2, show/1, destroy/1]). %% API
+%% -export([init/1, handle_call/3, handle_event/2,
+%% handle_info/2, code_change/3, terminate/2]).
+%% new/2, showModal/1, destroy/1]). %% Callbacks
+%%
+%% %% Client API
+%% new(Parent, Msg) ->
+%% wx_object:start(?MODULE, [Parent,Id], []).
+%%
+%% show(Dialog) ->
+%% wx_object:call(Dialog, show_modal).
+%%
+%% destroy(Dialog) ->
+%% wx_object:call(Dialog, destroy).
+%%
+%% %% Server Implementation ala gen_server
+%% init([Parent, Str]) ->
+%% Dialog = wxDialog:new(Parent, 42, "Testing", []),
+%% ...
+%% wxDialog:connect(Dialog, command_button_clicked),
+%% {Dialog, MyState}.
+%%
+%% handle_call(show, _From, State) ->
+%% wxDialog:show(State#state.win),
+%% {reply, ok, State};
+%% ...
+%% handle_event(#wx{}, State) ->
+%% io:format("Users clicked button~n",[]),
+%% {noreply, State};
+%% ...
+%% '''
+
+-module(wx_object).
+-include("wxe.hrl").
+-include("../include/wx.hrl").
+
+%% API
+-export([start/3, start/4,
+ start_link/3, start_link/4,
+ call/2, call/3,
+ cast/2,
+ reply/2,
+ get_pid/1
+ ]).
+
+-export([behaviour_info/1]).
+
+%% System exports
+-export([system_continue/3,
+ system_terminate/4,
+ system_code_change/4,
+ format_status/2]).
+
+%% Internal exports
+-export([init_it/6]).
+
+-import(error_logger, [format/2]).
+
+%%%=========================================================================
+%%% API
+%%%=========================================================================
+%% @hidden
+behaviour_info(callbacks) ->
+ [{init,1},
+ {handle_call,3},
+ {handle_info,2},
+ {handle_event,2},
+ {terminate,2},
+ {code_change,3}];
+behaviour_info(_Other) ->
+ undefined.
+
+
+%% -----------------------------------------------------------------
+%% @spec (Mod, Args, Options) -> wxWindow:wxWindow()
+%% Mod = atom()
+%% Args = term()
+%% Options = [{timeout, Timeout} | {debug, [Flag]}]
+%% Flag = trace | log | {logfile, File} | statistics | debug
+%% @doc Starts a generic wx_object server and invokes Mod:init(Args) in the
+%% new process.
+start(Mod, Args, Options) ->
+ gen_response(gen:start(?MODULE, nolink, Mod, Args, [get(?WXE_IDENTIFIER)|Options])).
+
+%% @spec (Name, Mod, Args, Options) -> wxWindow:wxWindow()
+%% Name = {local, atom()}
+%% Mod = atom()
+%% Args = term()
+%% Options = [{timeout, Timeout} | {debug, [Flag]}]
+%% Flag = trace | log | {logfile, File} | statistics | debug
+%% @doc Starts a generic wx_object server and invokes Mod:init(Args) in the
+%% new process.
+start(Name, Mod, Args, Options) ->
+ gen_response(gen:start(?MODULE, nolink, Name, Mod, Args, [get(?WXE_IDENTIFIER)|Options])).
+
+%% @spec (Mod, Args, Options) -> wxWindow:wxWindow()
+%% Mod = atom()
+%% Args = term()
+%% Options = [{timeout, Timeout} | {debug, [Flag]}]
+%% Flag = trace | log | {logfile, File} | statistics | debug
+%% @doc Starts a generic wx_object server and invokes Mod:init(Args) in the
+%% new process.
+start_link(Mod, Args, Options) ->
+ gen_response(gen:start(?MODULE, link, Mod, Args, [get(?WXE_IDENTIFIER)|Options])).
+
+%% @spec (Name, Mod, Args, Options) -> wxWindow:wxWindow()
+%% Name = {local, atom()}
+%% Mod = atom()
+%% Args = term()
+%% Options = [{timeout, Timeout} | {debug, [Flag]}]
+%% Flag = trace | log | {logfile, File} | statistics | debug
+%% @doc Starts a generic wx_object server and invokes Mod:init(Args) in the
+%% new process.
+start_link(Name, Mod, Args, Options) ->
+ gen_response(gen:start(?MODULE, link, Name, Mod, Args, [get(?WXE_IDENTIFIER)|Options])).
+
+gen_response({ok, Pid}) ->
+ receive {ack, Pid, Ref = #wx_ref{}} -> Ref end;
+gen_response(Reply) ->
+ Reply.
+
+%% @spec (Ref::wxObject()|atom()|pid(), Request::term()) -> term()
+%% @doc Make a call to a wx_object server.
+%% The call waits until it gets a result.
+%% Invokes handle_call(Request, From, State) in the server
+call(Ref = #wx_ref{state=Pid}, Request) when is_pid(Pid) ->
+ try
+ {ok,Res} = gen:call(Pid, '$gen_call', Request, infinity),
+ Res
+ catch _:Reason ->
+ erlang:error({Reason, {?MODULE, call, [Ref, Request]}})
+ end;
+call(Name, Request) when is_atom(Name) orelse is_pid(Name) ->
+ try
+ {ok,Res} = gen:call(Name, '$gen_call', Request, infinity),
+ Res
+ catch _:Reason ->
+ erlang:error({Reason, {?MODULE, call, [Name, Request]}})
+ end.
+
+%% @spec (Ref::wxObject()|atom()|pid(), Request::term(), Timeout::integer()) -> term()
+%% @doc Make a call to a wx_object server with a timeout.
+%% Invokes handle_call(Request, From, State) in server
+call(Ref = #wx_ref{state=Pid}, Request, Timeout) when is_pid(Pid) ->
+ try
+ {ok,Res} = gen:call(Pid, '$gen_call', Request, Timeout),
+ Res
+ catch _:Reason ->
+ erlang:error({Reason, {?MODULE, call, [Ref, Request, Timeout]}})
+ end;
+call(Name, Request, Timeout) when is_atom(Name) orelse is_pid(Name) ->
+ try
+ {ok,Res} = gen:call(Name, '$gen_call', Request, Timeout),
+ Res
+ catch _:Reason ->
+ erlang:error({Reason, {?MODULE, call, [Name, Request, Timeout]}})
+ end.
+
+%% @spec (Ref::wxObject()|atom()|pid(), Request::term()) -> ok
+%% @doc Make a cast to a wx_object server.
+%% Invokes handle_cast(Request, State) in the server
+
+cast(#wx_ref{state=Pid}, Request) when is_pid(Pid) ->
+ Pid ! {'$gen_cast',Request};
+cast(Name, Request) when is_atom(Name) orelse is_pid(Name) ->
+ Name ! {'$gen_cast',Request}.
+
+%% @spec (Ref::wxObject()) -> pid()
+%% @doc Get the pid of the object handle.
+get_pid(#wx_ref{state=Pid}) when is_pid(Pid) ->
+ Pid.
+
+%% -----------------------------------------------------------------
+%% Send a reply to the client.
+%% -----------------------------------------------------------------
+%% @spec (From::tuple(), Reply::term()) -> pid()
+%% @doc Get the pid of the object handle.
+reply({To, Tag}, Reply) ->
+ catch To ! {Tag, Reply}.
+
+%%%========================================================================
+%%% Gen-callback functions
+%%%========================================================================
+%%% ---------------------------------------------------
+%%% Initiate the new process.
+%%% Register the name using the Rfunc function
+%%% Calls the Mod:init/Args function.
+%%% Finally an acknowledge is sent to Parent and the main
+%%% loop is entered.
+%%% ---------------------------------------------------
+%% @hidden
+init_it(Starter, self, Name, Mod, Args, Options) ->
+ init_it(Starter, self(), Name, Mod, Args, Options);
+init_it(Starter, Parent, Name, Mod, Args, [WxEnv|Options]) ->
+ case WxEnv of
+ undefined -> ok;
+ _ -> wx:set_env(WxEnv)
+ end,
+ Debug = debug_options(Name, Options),
+ case catch Mod:init(Args) of
+ {#wx_ref{} = Ref, State} ->
+ init_it2(Ref, Starter, Parent, Name, State, Mod, infinity, Debug);
+ {#wx_ref{} = Ref, State, Timeout} ->
+ init_it2(Ref, Starter, Parent, Name, State, Mod, Timeout, Debug);
+ {stop, Reason} ->
+ proc_lib:init_ack(Starter, {error, Reason}),
+ exit(Reason);
+ ignore ->
+ proc_lib:init_ack(Starter, ignore),
+ exit(normal);
+ {'EXIT', Reason} ->
+ proc_lib:init_ack(Starter, {error, Reason}),
+ exit(Reason);
+ Else ->
+ Error = {bad_return_value, Else},
+ proc_lib:init_ack(Starter, {error, Error}),
+ exit(Error)
+ end.
+%% @hidden
+init_it2(Ref, Starter, Parent, Name, State, Mod, Timeout, Debug) ->
+ ok = wxe_util:register_pid(Ref),
+ case ?CLASS_T(Ref#wx_ref.type, wxWindow) of
+ false ->
+ Reason = {Ref, "not a wxWindow subclass"},
+ proc_lib:init_ack(Starter, {error, Reason}),
+ exit(Reason);
+ true ->
+ proc_lib:init_ack(Starter, {ok, self()}),
+ proc_lib:init_ack(Starter, Ref#wx_ref{state=self()}),
+ loop(Parent, Name, State, Mod, Timeout, Debug)
+ end.
+
+%%%========================================================================
+%%% Internal functions
+%%%========================================================================
+%%% ---------------------------------------------------
+%%% The MAIN loop.
+%%% ---------------------------------------------------
+%% @hidden
+loop(Parent, Name, State, Mod, Time, Debug) ->
+ put('_wx_object_', {Mod,State}),
+ Msg = receive
+ Input ->
+ Input
+ after Time ->
+ timeout
+ end,
+ case Msg of
+ {system, From, Req} ->
+ sys:handle_system_msg(Req, From, Parent, ?MODULE, Debug,
+ [Name, State, Mod, Time]);
+ {'EXIT', Parent, Reason} ->
+ terminate(Reason, Name, Msg, Mod, State, Debug);
+ {'_wxe_destroy_', _Me} ->
+ terminate(wx_deleted, Name, Msg, Mod, State, Debug);
+ _Msg when Debug =:= [] ->
+ handle_msg(Msg, Parent, Name, State, Mod);
+ _Msg ->
+ Debug1 = sys:handle_debug(Debug, {gen_server, print_event}, Name, {in, Msg}),
+ handle_msg(Msg, Parent, Name, State, Mod, Debug1)
+ end.
+
+%%% ---------------------------------------------------
+%%% Message handling functions
+%%% ---------------------------------------------------
+%% @hidden
+dispatch({'$gen_cast', Msg}, Mod, State) ->
+ Mod:handle_cast(Msg, State);
+dispatch(Msg = #wx{}, Mod, State) ->
+ Mod:handle_event(Msg, State);
+dispatch(Info, Mod, State) ->
+ Mod:handle_info(Info, State).
+%% @hidden
+handle_msg({'$gen_call', From, Msg}, Parent, Name, State, Mod) ->
+ case catch Mod:handle_call(Msg, From, State) of
+ {reply, Reply, NState} ->
+ reply(From, Reply),
+ loop(Parent, Name, NState, Mod, infinity, []);
+ {reply, Reply, NState, Time1} ->
+ reply(From, Reply),
+ loop(Parent, Name, NState, Mod, Time1, []);
+ {noreply, NState} ->
+ loop(Parent, Name, NState, Mod, infinity, []);
+ {noreply, NState, Time1} ->
+ loop(Parent, Name, NState, Mod, Time1, []);
+ {stop, Reason, Reply, NState} ->
+ {'EXIT', R} =
+ (catch terminate(Reason, Name, Msg, Mod, NState, [])),
+ reply(From, Reply),
+ exit(R);
+ Other -> handle_common_reply(Other, Name, Msg, Mod, State, [])
+ end;
+
+handle_msg(Msg = {_,_,'_wx_invoke_cb_'}, Parent, Name, State, Mod) ->
+ Reply = dispatch_cb(Msg, Mod, State),
+ handle_no_reply(Reply, Parent, Name, Msg, Mod, State, []);
+handle_msg(Msg, Parent, Name, State, Mod) ->
+ Reply = (catch dispatch(Msg, Mod, State)),
+ handle_no_reply(Reply, Parent, Name, Msg, Mod, State, []).
+%% @hidden
+dispatch_cb({{Msg=#wx{}, Obj=#wx_ref{}}, _, '_wx_invoke_cb_'}, Mod, State) ->
+ Callback = fun() ->
+ wxe_util:cast(?WXE_CB_START, <<>>),
+ case Mod:handle_sync_event(Msg, Obj, State) of
+ ok -> <<>>;
+ noreply -> <<>>;
+ Other ->
+ Args = [Msg, Obj, State],
+ MFA = {Mod, handle_sync_event, Args},
+ exit({bad_return, Other, MFA})
+ end
+ end,
+ wxe_server:invoke_callback(Callback),
+ {noreply, State};
+dispatch_cb({Func, ArgList, '_wx_invoke_cb_'}, Mod, State) ->
+ try %% This don't work yet....
+ [#wx_ref{type=ThisClass}] = ArgList,
+ case Mod:handle_overloaded(Func, ArgList, State) of
+ {reply, CBReply, NState} ->
+ ThisClass:send_return_value(Func, CBReply),
+ {noreply, NState};
+ {reply, CBReply, NState, Time1} ->
+ ThisClass:send_return_value(Func, CBReply),
+ {noreply, NState, Time1};
+ {noreply, NState} ->
+ ThisClass:send_return_value(Func, <<>>),
+ {noreply, NState};
+ {noreply, NState, Time1} ->
+ ThisClass:send_return_value(Func, <<>>),
+ {noreply, NState, Time1};
+ Other -> Other
+ end
+ catch _Err:Reason ->
+ %% Hopefully we can release the wx-thread with this
+ wxe_util:cast(?WXE_CB_RETURN, <<>>),
+ {'EXIT', {Reason, erlang:get_stacktrace()}}
+ end.
+%% @hidden
+handle_msg({'$gen_call', From, Msg}, Parent, Name, State, Mod, Debug) ->
+ case catch Mod:handle_call(Msg, From, State) of
+ {reply, Reply, NState} ->
+ Debug1 = reply(Name, From, Reply, NState, Debug),
+ loop(Parent, Name, NState, Mod, infinity, Debug1);
+ {reply, Reply, NState, Time1} ->
+ Debug1 = reply(Name, From, Reply, NState, Debug),
+ loop(Parent, Name, NState, Mod, Time1, Debug1);
+ {noreply, NState} ->
+ Debug1 = sys:handle_debug(Debug, {gen_server, print_event}, Name,
+ {noreply, NState}),
+ loop(Parent, Name, NState, Mod, infinity, Debug1);
+ {noreply, NState, Time1} ->
+ Debug1 = sys:handle_debug(Debug, {gen_server, print_event}, Name,
+ {noreply, NState}),
+ loop(Parent, Name, NState, Mod, Time1, Debug1);
+ {stop, Reason, Reply, NState} ->
+ {'EXIT', R} =
+ (catch terminate(Reason, Name, Msg, Mod, NState, Debug)),
+ _ = reply(Name, From, Reply, NState, Debug),
+ exit(R);
+ Other ->
+ handle_common_reply(Other, Name, Msg, Mod, State, Debug)
+ end;
+handle_msg(Msg = {_,_,'_wx_invoke_cb_'}, Parent, Name, State, Mod, Debug) ->
+ Reply = dispatch_cb(Msg, Mod, State),
+ handle_no_reply(Reply, Parent, Name, Msg, Mod, State, Debug);
+handle_msg(Msg, Parent, Name, State, Mod, Debug) ->
+ Reply = (catch dispatch(Msg, Mod, State)),
+ handle_no_reply(Reply, Parent, Name, Msg, Mod, State, Debug).
+%% @hidden
+handle_no_reply({noreply, NState}, Parent, Name, _Msg, Mod, _State, []) ->
+ loop(Parent, Name, NState, Mod, infinity, []);
+handle_no_reply({noreply, NState, Time1}, Parent, Name, _Msg, Mod, _State, []) ->
+ loop(Parent, Name, NState, Mod, Time1, []);
+handle_no_reply({noreply, NState}, Parent, Name, _Msg, Mod, _State, Debug) ->
+ Debug1 = sys:handle_debug(Debug, {gen_server, print_event}, Name,
+ {noreply, NState}),
+ loop(Parent, Name, NState, Mod, infinity, Debug1);
+handle_no_reply({noreply, NState, Time1}, Parent, Name, _Msg, Mod, _State, Debug) ->
+ Debug1 = sys:handle_debug(Debug, {gen_server, print_event}, Name,
+ {noreply, NState}),
+ loop(Parent, Name, NState, Mod, Time1, Debug1);
+handle_no_reply(Reply, _Parent, Name, Msg, Mod, State, Debug) ->
+ handle_common_reply(Reply, Name, Msg, Mod, State,Debug).
+
+%% @hidden
+-spec handle_common_reply(_, _, _, _, _, _) -> no_return().
+handle_common_reply(Reply, Name, Msg, Mod, State, Debug) ->
+ case Reply of
+ {stop, Reason, NState} ->
+ terminate(Reason, Name, Msg, Mod, NState, Debug);
+ {'EXIT', What} ->
+ terminate(What, Name, Msg, Mod, State, Debug);
+ _ ->
+ terminate({bad_return_value, Reply}, Name, Msg, Mod, State, Debug)
+ end.
+
+%% @hidden
+reply(Name, {To, Tag}, Reply, State, Debug) ->
+ reply({To, Tag}, Reply),
+ sys:handle_debug(Debug, {gen_server, print_event}, Name,
+ {out, Reply, To, State} ).
+
+
+%%-----------------------------------------------------------------
+%% Callback functions for system messages handling.
+%%-----------------------------------------------------------------
+%% @hidden
+system_continue(Parent, Debug, [Name, State, Mod, Time]) ->
+ loop(Parent, Name, State, Mod, Time, Debug).
+
+%% @hidden
+-spec system_terminate(_, _, _, [_]) -> no_return().
+system_terminate(Reason, _Parent, Debug, [Name, State, Mod, _Time]) ->
+ terminate(Reason, Name, [], Mod, State, Debug).
+
+%% @hidden
+system_code_change([Name, State, Mod, Time], _Module, OldVsn, Extra) ->
+ case catch Mod:code_change(OldVsn, State, Extra) of
+ {ok, NewState} -> {ok, [Name, NewState, Mod, Time]};
+ Else -> Else
+ end.
+
+%%% ---------------------------------------------------
+%%% Terminate the server.
+%%% ---------------------------------------------------
+%% @hidden
+terminate(Reason, Name, Msg, Mod, State, Debug) ->
+ case catch Mod:terminate(Reason, State) of
+ {'EXIT', R} ->
+ error_info(R, Name, Msg, State, Debug),
+ exit(R);
+ _ ->
+ case Reason of
+ normal ->
+ exit(normal);
+ shutdown ->
+ exit(shutdown);
+ wx_deleted ->
+ exit(normal);
+ _ ->
+ error_info(Reason, Name, Msg, State, Debug),
+ exit(Reason)
+ end
+ end.
+%% @hidden
+error_info(_Reason, application_controller, _Msg, _State, _Debug) ->
+ ok;
+error_info(Reason, Name, Msg, State, Debug) ->
+ Reason1 =
+ case Reason of
+ {undef,[{M,F,A}|MFAs]} ->
+ case code:is_loaded(M) of
+ false ->
+ {'module could not be loaded',[{M,F,A}|MFAs]};
+ _ ->
+ case erlang:function_exported(M, F, length(A)) of
+ true ->
+ Reason;
+ false ->
+ {'function not exported',[{M,F,A}|MFAs]}
+ end
+ end;
+ _ ->
+ Reason
+ end,
+ format("** wx object server ~p terminating \n"
+ "** Last message in was ~p~n"
+ "** When Server state == ~p~n"
+ "** Reason for termination == ~n** ~p~n",
+ [Name, Msg, State, Reason1]),
+ sys:print_log(Debug),
+ ok.
+
+%%% ---------------------------------------------------
+%%% Misc. functions.
+%%% ---------------------------------------------------
+%% @hidden
+opt(Op, [{Op, Value}|_]) ->
+ {ok, Value};
+opt(Op, [_|Options]) ->
+ opt(Op, Options);
+opt(_, []) ->
+ false.
+%% @hidden
+debug_options(Name, Opts) ->
+ case opt(debug, Opts) of
+ {ok, Options} -> dbg_options(Name, Options);
+ _ -> dbg_options(Name, [])
+ end.
+%% @hidden
+dbg_options(Name, []) ->
+ Opts =
+ case init:get_argument(generic_debug) of
+ error ->
+ [];
+ _ ->
+ [log, statistics]
+ end,
+ dbg_opts(Name, Opts);
+dbg_options(Name, Opts) ->
+ dbg_opts(Name, Opts).
+%% @hidden
+dbg_opts(Name, Opts) ->
+ case catch sys:debug_options(Opts) of
+ {'EXIT',_} ->
+ format("~p: ignoring erroneous debug options - ~p~n",
+ [Name, Opts]),
+ [];
+ Dbg ->
+ Dbg
+ end.
+
+%% @hidden
+%%-----------------------------------------------------------------
+%% Status information
+%%-----------------------------------------------------------------
+format_status(Opt, StatusData) ->
+ [PDict, SysState, Parent, Debug, [Name, State, Mod, _Time]] = StatusData,
+ NameTag = if is_pid(Name) ->
+ pid_to_list(Name);
+ is_atom(Name) ->
+ Name
+ end,
+ Header = lists:concat(["Status for generic server ", NameTag]),
+ Log = sys:get_debug(log, Debug, []),
+ Specfic =
+ case erlang:function_exported(Mod, format_status, 2) of
+ true ->
+ case catch Mod:format_status(Opt, [PDict, State]) of
+ {'EXIT', _} -> [{data, [{"State", State}]}];
+ Else -> Else
+ end;
+ _ ->
+ [{data, [{"State", State}]}]
+ end,
+ [{header, Header},
+ {data, [{"Status", SysState},
+ {"Parent", Parent},
+ {"Logged events", Log}]} |
+ Specfic].
diff --git a/lib/wx/src/wxe.hrl b/lib/wx/src/wxe.hrl
new file mode 100644
index 0000000000..bb70a03bfe
--- /dev/null
+++ b/lib/wx/src/wxe.hrl
@@ -0,0 +1,55 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxe.hrl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Some internal macros and record definitions
+%%%
+%%% Created : 8 Feb 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-record(wx_ref, {ref, type, state=[]}).
+
+-record(wx_env, {port, sv, debug=0}).
+
+-record(wx_mem, {bin, size}).
+
+-define(CLASS(Type,Class), ((Type) =:= Class) orelse (Type):parent_class(Class)).
+
+-define(CLASS_T(Type,Class),
+ try (((Type) =:= Class) orelse (Type):parent_class(Class)) catch _:_ -> false end).
+
+-define(UI, unsigned-native).
+-define(I, signed-native).
+-define(F, float-native).
+
+-define(WXE_IDENTIFIER, wx_env).
+-define(BATCH_BEGIN, 0).
+-define(BATCH_END, 1).
+%%-define(CREATE_PORT, 2). %% Not used in erlang
+%%-define(REMOVE_PORT, 3).
+-define(DESTROY_OBJECT, 4).
+-define(WXE_CB_RETURN, 5). %% Used for callback return buffer
+%%-define(WXE_SHUTDOWN, 6). %% Not used in erlang
+-define(WXE_REGISTER_OBJECT, 7). %% Used for object monitoring
+-define(WXE_CB_START, 8). %% Used for event-callback start
+-define(WXE_DEBUG_DRIVER, 9). %% Set debug
+%%-define(WXE_DEBUG_PING, 10). %% debug ping (when using debugger it's needed)
+-define(WXE_BIN_INCR, 5001). %% Binary refc incr
+-define(WXE_BIN_DECR, 5002). %% Binary refc decr
+-include("gen/wxe_funcs.hrl").
diff --git a/lib/wx/src/wxe_master.erl b/lib/wx/src/wxe_master.erl
new file mode 100644
index 0000000000..70872775fb
--- /dev/null
+++ b/lib/wx/src/wxe_master.erl
@@ -0,0 +1,313 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxe_server.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 17 Jan 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+%% @hidden
+-module(wxe_master).
+-behaviour(gen_server).
+
+%% API
+-export([start/0, init_port/0]).
+
+%% gen_server callbacks
+-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
+ terminate/2, code_change/3]).
+-compile(export_all).
+
+-record(state, {cb_port, %% Callback port and to erlang messages goes via it.
+ users, %% List of wx servers, needed ??
+ driver}). %% Driver name so wx_server can create it's own port
+
+-include("gen/wxe_debug.hrl").
+-include("gen/gl_debug.hrl").
+
+-define(DRIVER, "wxe_driver").
+
+%%====================================================================
+%% API
+%%====================================================================
+%%--------------------------------------------------------------------
+%% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
+%% Description: Starts the server
+%%--------------------------------------------------------------------
+start() ->
+ gen_server:start({local, ?MODULE}, ?MODULE, [], []).
+
+%%--------------------------------------------------------------------
+%% Function: init_port() -> {UserPort,CallBackPort} | error(Error)
+%% Description: Creates the port
+%%--------------------------------------------------------------------
+init_port() ->
+ case whereis(?MODULE) of
+ undefined ->
+ case start() of
+ {ok,Pid} -> Pid;
+ {error,{already_started,Pid}} -> Pid;
+ {error, {Reason,Stack}} ->
+ erlang:raise(error, Reason, Stack)
+ end;
+ Pid ->
+ Pid
+ end,
+ {Driver, CBport} = gen_server:call(?MODULE, init_port, infinity),
+ Port = open_port({spawn,Driver},[binary]),
+ receive wx_port_initiated -> ok end,
+ {Port, CBport}.
+
+%%====================================================================
+%% gen_server callbacks
+%%====================================================================
+
+%%--------------------------------------------------------------------
+%% Function: init(Args) -> {ok, State} |
+%% {ok, State, Timeout} |
+%% ignore |
+%% {stop, Reason}
+%% Description: Initiates the server
+%%--------------------------------------------------------------------
+init([]) ->
+ DriverName = ?DRIVER,
+ PrivDir = priv_dir(),
+ erlang:group_leader(whereis(init), self()),
+ case catch erlang:system_info(smp_support) of
+ true -> ok;
+ _ ->
+ error_logger:format("WX ERROR: SMP emulator required", []),
+ erlang:error(not_smp)
+ end,
+ case catch (erlang:system_info(version) >= "5.6.2") of
+ true -> ok;
+ _ -> %% Needs to be able to disable FPU exceptions.
+ error_logger:format("WX ERROR: OTP R12B-2 or Emulator >= 5.6.2 required", []),
+ erlang:error(wrong_version)
+ end,
+
+ %% io:format("Loading ~p @ ~p ~n", [DriverName,PrivDir]),
+ case os:type() of
+ {win32,_} -> %% Needed for mingwm10.dll
+ Path = os:getenv("PATH"),
+ os:putenv("PATH", PrivDir ++ ";" ++ Path);
+ _ -> ok
+ end,
+
+ case erl_ddll:load_driver(PrivDir,DriverName) of
+ ok -> ok;
+ {error, What} ->
+ error_logger:format("WX Failed loading ~p@~p ~n", [DriverName,PrivDir]),
+ Str = erl_ddll:format_error(What),
+ erlang:error({load_driver,Str})
+ end,
+ process_flag(trap_exit, true),
+ DriverWithArgs = DriverName ++ " " ++ code:priv_dir(wx) ++ [0],
+
+ case catch open_port({spawn, DriverWithArgs},[binary]) of
+ {'EXIT', Err} ->
+ erlang:error({open_port,Err});
+ Port ->
+ wx_debug_info = ets:new(wx_debug_info, [named_table]),
+ wx_non_consts = ets:new(wx_non_consts, [named_table]),
+ true = ets:insert(wx_debug_info, wxdebug_table()),
+ true = ets:insert(wx_debug_info, gldebug_table()),
+ spawn_link(fun() -> debug_ping(Port) end),
+ receive
+ {wx_consts, List} ->
+ true = ets:insert(wx_non_consts, List)
+ end,
+ {ok, #state{cb_port=Port, driver=DriverName, users=gb_sets:empty()}}
+ end.
+
+%%--------------------------------------------------------------------
+%% Function: %% handle_call(Request, From, State) -> {reply, Reply, State} |
+%% {reply, Reply, State, Timeout} |
+%% {noreply, State} |
+%% {noreply, State, Timeout} |
+%% {stop, Reason, Reply, State} |
+%% {stop, Reason, State}
+%% Description: Handling call messages
+%%--------------------------------------------------------------------
+handle_call(init_port, From, State=#state{driver=Driver,cb_port=CBPort, users=Users}) ->
+ {reply, {Driver,CBPort}, State#state{users=gb_sets:add(From,Users)}};
+handle_call(_Request, _From, State) ->
+ %%io:format("Unknown request ~p sent to ~p from ~p ~n",[_Request, ?MODULE, _From]),
+ Reply = ok,
+ {reply, Reply, State}.
+
+%%--------------------------------------------------------------------
+%% Function: handle_cast(Msg, State) -> {noreply, State} |
+%% {noreply, State, Timeout} |
+%% {stop, Reason, State}
+%% Description: Handling cast messages
+%%--------------------------------------------------------------------
+handle_cast(_Msg, State) ->
+ %%io:format("Unknown message ~p sent to ~p~n",[_Msg, ?MODULE]),
+ {noreply, State}.
+
+%%--------------------------------------------------------------------
+%% Function: handle_info(Info, State) -> {noreply, State} |
+%% {noreply, State, Timeout} |
+%% {stop, Reason, State}
+%% Description: Handling all non call/cast messages
+%%--------------------------------------------------------------------
+handle_info({wxe_driver, error, Msg}, State) ->
+ error_logger:format("WX ERROR: ~s~n", [Msg]),
+ {noreply, State};
+handle_info({wxe_driver, internal_error, Msg}, State) ->
+ error_logger:format("WX INTERNAL ERROR: ~s~n", [Msg]),
+ {noreply, State};
+handle_info({wxe_driver, debug, Msg}, State) ->
+ io:format("WX DBG: ~s~n", [Msg]),
+ {noreply, State};
+handle_info(_Info, State) ->
+ io:format("Unknown message ~p sent to ~p~n",[_Info, ?MODULE]),
+ {noreply, State}.
+
+%%--------------------------------------------------------------------
+%% Function: terminate(Reason, State) -> void()
+%% Description: This function is called by a gen_server when it is about to
+%% terminate. It should be the opposite of Module:init/1 and do any necessary
+%% cleaning up. When it returns, the gen_server terminates with Reason.
+%% The return value is ignored.
+%%--------------------------------------------------------------------
+terminate(_Reason, _State) ->
+ erlang:display({?MODULE, killed, process_info(self(),trap_exit),_Reason}),
+ ok.
+
+%%--------------------------------------------------------------------
+%% Func: code_change(OldVsn, State, Extra) -> {ok, NewState}
+%% Description: Convert process state when code is changed
+%%--------------------------------------------------------------------
+code_change(_OldVsn, State, _Extra) ->
+ {ok, State}.
+
+%%--------------------------------------------------------------------
+%%% Internal functions
+%%--------------------------------------------------------------------
+
+%%%%%%%%%%%% INTERNAL %%%%%%%%%%%%%%%%%%%%%%%%
+
+%% If you want anything done, do it yourself.
+
+priv_dir() ->
+ Type = erlang:system_info(system_architecture),
+ {file, Path} = code:is_loaded(?MODULE),
+ Priv = case filelib:is_regular(Path) of
+ true ->
+ Beam = filename:join(["ebin/",atom_to_list(?MODULE) ++ ".beam"]),
+ filename:join(strip(Path, Beam), "priv");
+ false ->
+ code:priv_dir(wx)
+ end,
+ try
+ {ok, Dirs0} = file:list_dir(Priv),
+ Dirs1 = split_dirs(Dirs0),
+ Dirs = lists:reverse(lists:sort(Dirs1)),
+
+ Best = best_dir(hd(split_dirs([Type])),Dirs, Priv),
+ filename:join(Priv, Best)
+ catch _:_ ->
+ error_logger:format("WX ERROR: Could not find suitable \'~s\' for ~s in: ~s~n",
+ [?DRIVER, Type, Priv]),
+ erlang:error({load_driver, "No driver found"})
+ end.
+
+best_dir(Dir, Dirs0, Priv) ->
+ Dirs = [{D,D} || D <- Dirs0],
+ best_dir(Dir, Dirs, [], Priv).
+
+best_dir(Pre, [{[],_}|R], Acc, Priv) -> %% Empty skip'em
+ best_dir(Pre, R, Acc, Priv);
+best_dir(Pre, [{Pre,Dir}|R], Acc, Priv) ->
+ Real = dir_app(lists:reverse(Dir)),
+ case file:list_dir(filename:join(Priv,Real)) of
+ {ok, Fs} ->
+ case lists:any(fun(File) -> filename:rootname(File) =:= ?DRIVER end, Fs) of
+ true -> Real; %% Found dir and it contains a driver
+ false -> best_dir(Pre, R, Acc, Priv)
+ end;
+ _ ->
+ best_dir(Pre, R, Acc, Priv)
+ end;
+best_dir(Pre, [{[_|F],Dir}|R], Acc, Priv) ->
+ best_dir(Pre, R, [{F,Dir}|Acc], Priv);
+best_dir(_Pre, [], [],_) -> throw(no_dir); %% Nothing found
+best_dir([_|Pre], [], Acc, Priv) ->
+ best_dir(Pre, lists:reverse(Acc), [], Priv);
+best_dir([], _, _,_) -> throw(no_dir). %% Nothing found
+
+split_dirs(Dirs0) ->
+ ToInt = fun(Str) ->
+ try
+ list_to_integer(Str)
+ catch _:_ -> Str
+ end
+ end,
+ Split = fun(Dir) ->
+ Toks = tokens(Dir,".-"),
+ lists:reverse([ToInt(Str) || Str <- Toks])
+ end,
+ lists:map(Split,Dirs0).
+
+dir_app([]) -> [];
+dir_app([Dir]) -> Dir;
+dir_app(Dir) ->
+ dir_app2(Dir).
+dir_app2([Int]) when is_integer(Int) ->
+ integer_to_list(Int);
+dir_app2([Str]) when is_list(Str) ->
+ Str;
+dir_app2([Head|Rest]) when is_integer(Head) ->
+ integer_to_list(Head) ++ dir_app2(Rest);
+dir_app2([Head|Rest]) when is_list(Head) ->
+ Head ++ dir_app2(Rest).
+
+strip(Src, Src) ->
+ [];
+strip([H|R], Src) ->
+ [H| strip(R, Src)].
+
+
+debug_ping(Port) ->
+ timer:sleep(1*333),
+ _R = (catch erlang:port_call(Port, 0, [])),
+%% io:format("Erlang ping ~p ~n", [_R]),
+ debug_ping(Port).
+
+tokens(S,Seps) ->
+ tokens1(S, Seps, []).
+
+tokens1([C|S], Seps, Toks) ->
+ case lists:member(C, Seps) of
+ true -> tokens1(S, Seps, [[C]|Toks]);
+ false -> tokens2(S, Seps, Toks, [C])
+ end;
+tokens1([], _Seps, Toks) ->
+ lists:reverse(Toks).
+
+tokens2([C|S], Seps, Toks, Cs) ->
+ case lists:member(C, Seps) of
+ true -> tokens1(S, Seps, [[C], lists:reverse(Cs) |Toks]);
+ false -> tokens2(S, Seps, Toks, [C|Cs])
+ end;
+tokens2([], _Seps, Toks, Cs) ->
+ lists:reverse([lists:reverse(Cs)|Toks]).
diff --git a/lib/wx/src/wxe_server.erl b/lib/wx/src/wxe_server.erl
new file mode 100644
index 0000000000..40412987a5
--- /dev/null
+++ b/lib/wx/src/wxe_server.erl
@@ -0,0 +1,371 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxe_server.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Application server monitors the application and handles
+%%% callbacks, some cleaning if processes dies.
+%%% The interface functions is found in wxe_util.erl
+%%% Created : 17 Jan 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+%% @hidden
+-module(wxe_server).
+-behaviour(gen_server).
+
+%% API
+-export([start/0, stop/0, register_me/1, set_debug/2, invoke_callback/1]).
+
+%% gen_server callbacks
+-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
+ terminate/2, code_change/3]).
+
+-record(state, {port,cb_port,users,cleaners=[],cb,cb_cnt}).
+-record(user, {objects=[], events=[], evt_handler}).
+-record(event, {object, callback, cb_handler}).
+
+-define(APPLICATION, wxe).
+-define(log(S,A), log(?MODULE,?LINE,S,A)).
+
+-include("wxe.hrl").
+-include("../include/wx.hrl").
+
+%%====================================================================
+%% API
+%%====================================================================
+%%--------------------------------------------------------------------
+%% Function: start() -> #wx_env{}
+%% Description: Starts the server
+%%--------------------------------------------------------------------
+start() ->
+ case get(?WXE_IDENTIFIER) of
+ undefined ->
+ case gen_server:start(?MODULE, [], []) of
+ {ok, Pid} ->
+ {ok, Port} = gen_server:call(Pid, get_port, infinity),
+ wx:set_env(Env = #wx_env{port=Port,sv=Pid}),
+ Env;
+ {error, {Reason, _Stack}} ->
+ erlang:error(Reason)
+ end;
+ Env = #wx_env{sv=Pid} ->
+ case erlang:is_process_alive(Pid) of
+ true ->
+ Env;
+ false -> %% Ok we got an old wx env, someone forgot
+ erase(?WXE_IDENTIFIER), %% to call wx:destroy()
+ start()
+ end
+ end.
+
+stop() ->
+ #wx_env{sv=Pid} = get(?WXE_IDENTIFIER),
+ catch gen_server:call(Pid, stop, infinity),
+ ok.
+
+register_me(Pid) ->
+ ok = gen_server:call(Pid, register_me, infinity).
+
+set_debug(Pid, Level) ->
+ gen_server:cast(Pid, {debug, Level}).
+
+%%====================================================================
+%% gen_server callbacks
+%%====================================================================
+
+init([]) ->
+ {Port,CBPort} = wxe_master:init_port(),
+ put(?WXE_IDENTIFIER, #wx_env{port=Port,sv=self()}),
+ {ok,#state{port=Port, cb_port=CBPort,
+ users=gb_trees:empty(), cb=gb_trees:empty(), cb_cnt=1}}.
+
+%% Register process
+handle_call(register_me, {From,_}, State=#state{users=Users}) ->
+ erlang:monitor(process, From),
+ case gb_trees:is_defined(From, Users) of
+ true ->
+ {reply, ok, State};
+ false ->
+ New = gb_trees:insert(From, #user{}, Users),
+ {reply, ok, State#state{users=New}}
+ end;
+%% Port request
+handle_call(get_port, _, State=#state{port=Port}) ->
+ {reply, {ok,Port}, State};
+
+%% Connect callback
+handle_call({connect_cb,Obj,Msg},{From,_},State) ->
+ handle_connect(Obj,Msg, From, State);
+
+handle_call({disconnect_cb,Obj,Msg},{From,_},State) ->
+ handle_disconnect(Obj,Msg, From, State);
+
+handle_call(stop,{_From,_},State = #state{users=Users0, cleaners=Cs0}) ->
+ Env = get(?WXE_IDENTIFIER),
+ Users = gb_trees:to_list(Users0),
+ Cs = lists:map(fun({Pid,User}) ->
+ spawn_link(fun() -> cleanup(Env,Pid,[User]) end)
+ end, Users),
+ {noreply, State#state{users=gb_trees:empty(), cleaners=Cs ++ Cs0}};
+
+handle_call({register_cb, Fun}, _, State0) ->
+ {FunId, State} = attach_fun(Fun,State0),
+ {reply, FunId, State};
+
+%% Error
+handle_call(_Request, _From, State) ->
+ ?log("Unknown request ~p sent to ~p from ~p ~n",[_Request, ?MODULE, _From]),
+ Reply = ok,
+ {reply, Reply, State}.
+
+%%%%%%%%%%%% Cast's
+
+handle_cast({cleaned, From}, State=#state{users=Users,cleaners=Cs0}) ->
+ Cs = lists:delete(From,Cs0),
+ case Cs =:= [] andalso gb_trees:is_empty(Users) of
+ true -> {stop, normal, State#state{cleaners=Cs}};
+ false -> {noreply,State#state{cleaners=Cs}}
+ end;
+
+handle_cast({debug, Level}, State) ->
+ Env = get(?WXE_IDENTIFIER),
+ put(?WXE_IDENTIFIER, Env#wx_env{debug=Level}),
+ {noreply, State};
+
+handle_cast(_Msg, State) ->
+ ?log("Unknown message ~p sent to ~p~n",[_Msg, ?MODULE]),
+ {noreply, State}.
+
+%%%% Info
+
+%% Callback request from driver
+handle_info(Cb = {_, _, '_wx_invoke_cb_'}, State) ->
+ invoke_cb(Cb, State),
+ {noreply, State};
+handle_info({wx_delete_cb, FunId}, State0 = #state{cb=CB}) when is_integer(FunId) ->
+ case get(FunId) of
+ undefined ->
+ {noreply, State0};
+ Fun ->
+ erase(FunId),
+ {noreply, State0#state{cb=gb_trees:delete(Fun, CB)}}
+ end;
+handle_info({'DOWN',_,process,Pid,_}, State=#state{users=Users0,cleaners=Cs}) ->
+ try
+ User = gb_trees:get(Pid,Users0),
+ Users = gb_trees:delete(Pid,Users0),
+ Env = wx:get_env(),
+ Cleaner = spawn_link(fun() -> cleanup(Env,Pid,[User]) end),
+ {noreply, State#state{users=Users,cleaners=[Cleaner|Cs]}}
+ catch _E:_R ->
+ %% ?log("Error: ~p ~p", [_E,_R]),
+ {noreply, State}
+ end;
+handle_info(Msg = {'_wxe_destroy_', Pid}, State) ->
+ case erlang:is_process_alive(Pid) of
+ true ->
+ Pid ! Msg,
+ ok;
+ false ->
+ ok
+ end,
+ {noreply, State};
+handle_info(_Info, State) ->
+ ?log("Unknown message ~p sent to ~p~n",[_Info, ?MODULE]),
+ {noreply, State}.
+
+terminate(_Reason, _State) ->
+ %% erlang:display({?MODULE, killed, process_info(self(),trap_exit),_Reason}),
+ %% timer:sleep(250), %% Give driver a chance to clean up
+ shutdown.
+
+code_change(_OldVsn, State, _Extra) ->
+ {ok, State}.
+
+%%--------------------------------------------------------------------
+%%% Internal functions
+%%--------------------------------------------------------------------
+
+log(Mod,Line,Str,Args) ->
+ error_logger:format("~p:~p: " ++ Str, [Mod,Line|Args]).
+
+handle_connect(Object, EvData, From, State0 = #state{users=Users}) ->
+ User0 = #user{events=Evs0,evt_handler=Handler0} = gb_trees:get(From, Users),
+ Callback = wxEvtHandler:get_callback(EvData),
+ case Handler0 of
+ #wx_ref{} when Callback =:= 0 ->
+ CBHandler = Handler0,
+ Handler = Handler0;
+ undefined when Callback =:= 0 ->
+ Handler = new_evt_listener(State0),
+ CBHandler = Handler;
+ _ ->
+ CBHandler = new_evt_listener(State0),
+ Handler = Handler0
+ end,
+ Evs = [#event{object=Object,callback=Callback, cb_handler=CBHandler}|Evs0],
+ User = User0#user{events=Evs, evt_handler=Handler},
+ State1 = State0#state{users=gb_trees:update(From, User, Users)},
+ if is_function(Callback) ->
+ {FunId, State} = attach_fun(Callback,State1),
+ Res = wxEvtHandler:connect_impl(CBHandler,Object,
+ wxEvtHandler:replace_fun_with_id(EvData,FunId)),
+ case Res of
+ ok -> {reply,Res,State};
+ _Error -> {reply,Res,State0}
+ end;
+ true ->
+ Res = {call_impl, connect_cb, CBHandler},
+ {reply, Res, State1}
+ end.
+
+invoke_cb({{Ev=#wx{}, Ref=#wx_ref{}}, FunId,_}, _S) ->
+ %% Event callbacks
+ case get(FunId) of
+ Fun when is_function(Fun) ->
+ invoke_callback(fun() ->
+ wxe_util:cast(?WXE_CB_START, <<>>),
+ Fun(Ev, Ref),
+ <<>>
+ end);
+ Err ->
+ ?log("Internal Error ~p~n",[Err])
+ end;
+invoke_cb({FunId, Args, _}, _S) when is_list(Args), is_integer(FunId) ->
+ %% Overloaded functions
+ case get(FunId) of
+ Fun when is_function(Fun) ->
+ invoke_callback(fun() -> Fun(Args) end);
+ Err ->
+ ?log("Internal Error ~p ~p ~p~n",[Err, FunId, Args])
+ end.
+
+invoke_callback(Fun) ->
+ Env = get(?WXE_IDENTIFIER),
+ CB = fun() ->
+ wx:set_env(Env),
+ Res = try Return = Fun(),
+ true = is_binary(Return),
+ Return
+ catch _:Reason ->
+ ?log("Callback fun crashed with {'EXIT, ~p, ~p}~n",
+ [Reason, erlang:get_stacktrace()]),
+ <<>>
+ end,
+ wxe_util:cast(?WXE_CB_RETURN, Res)
+ end,
+ spawn(CB),
+ ok.
+
+new_evt_listener(State) ->
+ #wx_env{port=Port} = wx:get_env(),
+ _ = erlang:port_control(Port,98,<<>>),
+ get_result(State).
+
+get_result(_State) ->
+ receive
+ {'_wxe_result_', Res} -> Res;
+ {'_wxe_error_', Op, Error} ->
+ erlang:error({Error, {wxEvtHandler, {internal_installer, Op}}})
+ end.
+
+attach_fun(Fun, S = #state{cb=CB,cb_cnt=Next}) ->
+ case gb_trees:lookup(Fun,CB) of
+ {value, ID} ->
+ {ID,S};
+ none ->
+ put(Next,Fun),
+ {Next,S#state{cb=gb_trees:insert(Fun,Next,CB),cb_cnt=Next+1}}
+ end.
+
+handle_disconnect(Object, Evh, From, State0 = #state{users=Users0}) ->
+ User0 = #user{events=Evs0, evt_handler=PidH} = gb_trees:get(From, Users0),
+ Fun = wxEvtHandler:get_callback(Evh),
+ case find_handler(Evs0, Object, Fun) of
+ [] ->
+ {reply, false, State0};
+ Handlers ->
+ case disconnect(Object,Evh, Handlers) of
+ Ev = #event{callback=CB, cb_handler=Handler} ->
+ case is_function(CB) of
+ true -> wxEvtHandler:destroy_evt_listener(Handler);
+ false -> ignore
+ end,
+ User = case lists:delete(Ev,Evs0) of
+ [] when PidH =/= undefined ->
+ wxEvtHandler:destroy_evt_listener(PidH),
+ User0#user{events=[], evt_handler=undefined};
+ Evs ->
+ User0#user{events=Evs}
+ end,
+ {reply, true, State0#state{users=gb_trees:update(From,User,Users0)}};
+ Result ->
+ {reply, Result, State0}
+ end
+ end.
+
+disconnect(Object,Evh,[Ev=#event{cb_handler=Handler}|Evs]) ->
+ case wxEvtHandler:disconnect_impl(Handler,Object,Evh) of
+ true -> Ev;
+ false -> disconnect(Object, Evh, Evs);
+ Error -> Error
+ end;
+disconnect(_, _, []) -> false.
+
+find_handler(Evs, Object, Fun) ->
+ find_handler(Evs, Object, Fun, []).
+
+find_handler([Ev =#event{object=Object,callback=FunReg}|Evs],Object,Search,Acc) ->
+ case FunReg =:= Search of
+ true -> find_handler(Evs,Object,Search,[Ev|Acc]);
+ false when is_function(FunReg), Search =:= 0 ->
+ find_handler(Evs,Object,Search,[Ev|Acc]);
+ _ ->
+ find_handler(Evs,Object,Search,Acc)
+ end;
+find_handler([_|Evs],Object,Fun,Res) ->
+ find_handler(Evs,Object,Fun,Res);
+find_handler([],_Object,_Fun,Res) ->
+ Res.
+
+
+%% Cleanup
+%% The server handles callbacks from driver so every other wx call must
+%% be called from another process, therefore the cleaning must be spawned.
+%%
+cleanup(Env, _Pid, Data) ->
+ put(?WXE_IDENTIFIER, Env),
+ lists:foreach(fun cleanup/1, Data),
+ gen_server:cast(Env#wx_env.sv, {cleaned, self()}),
+ normal.
+
+cleanup(#user{objects=_Os,events=Evs, evt_handler=Handler}) ->
+ lists:foreach(fun(#event{object=_O, callback=CB, cb_handler=CbH}) ->
+ %%catch wxEvtHandler:disconnect_impl(CbH,O),
+ case is_function(CB) of
+ true ->
+ wxEvtHandler:destroy_evt_listener(CbH);
+ false ->
+ ignore
+ end
+ end, Evs),
+ case Handler of
+ undefined -> ignore;
+ _ -> wxEvtHandler:destroy_evt_listener(Handler)
+ end,
+ ok.
diff --git a/lib/wx/src/wxe_util.erl b/lib/wx/src/wxe_util.erl
new file mode 100644
index 0000000000..a2fb4641c9
--- /dev/null
+++ b/lib/wx/src/wxe_util.erl
@@ -0,0 +1,201 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxe_util.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 9 Feb 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+%% @hidden
+-module(wxe_util).
+
+-export([call/2,cast/2,construct/2,
+ destroy/2, register_pid/1,
+ connect_cb/2,disconnect_cb/2,
+ send_bin/1, get_cbId/1,
+ get_const/1,colour_bin/1,datetime_bin/1,
+ to_bool/1,from_bool/1]).
+
+-include("wxe.hrl").
+
+
+to_bool(0) -> false;
+to_bool(_) -> true.
+
+from_bool(true) -> 1;
+from_bool(false) -> 0.
+
+colour_bin({R,G,B}) ->
+ <<R:32/?UI,G:32/?UI, B:32/?UI,255:32/?UI>>;
+colour_bin({R,G,B,A}) ->
+ <<R:32/?UI,G:32/?UI, B:32/?UI,A:32/?UI>>.
+
+datetime_bin({{Y,Mo,D},{H,Mi,S}}) ->
+ %% DMY fits wxDaytime constructor
+ %% Also wxDaytime:Month is enum from zero
+ <<D:32/?UI,(Mo-1):32/?UI,Y:32/?UI,H:32/?UI,Mi:32/?UI,S:32/?UI>>.
+
+get_const(Id) ->
+ [{Id, Data}] = ets:lookup(wx_non_consts, Id),
+ Data.
+
+cast(Op,Args) ->
+ #wx_env{port=Port,debug=Dbg} = wx:get_env(),
+ _ = erlang:port_control(Port,Op,Args),
+ case Dbg > 0 of
+ true -> debug_cast(Dbg band 15, Op,Args,Port);
+ false -> ok
+ end,
+ ok.
+
+call(Op, Args) ->
+ #wx_env{port=Port,debug=Dbg} = wx:get_env(),
+ case Dbg > 0 of
+ false ->
+ _ = erlang:port_control(Port,Op,Args),
+ rec(Op);
+ true ->
+ debug_call(Dbg band 15, Op, Args, Port)
+ end.
+
+rec(Op) ->
+ receive
+ {'_wxe_result_', Res} -> Res;
+ {'_wxe_error_', Op, Error} ->
+ [{_,MF}] = ets:lookup(wx_debug_info,Op),
+ erlang:error({Error, MF});
+ {'_wxe_error_', Old, Error} ->
+ [{_,MF}] = ets:lookup(wx_debug_info,Old),
+ erlang:exit({Error, MF})
+ end.
+
+construct(Op, Args) ->
+ call(Op,Args).
+
+destroy(Op, #wx_ref{ref=Ref}) ->
+ cast(Op,<<Ref:32/?UI>>).
+
+register_pid(#wx_ref{ref=Ref}) ->
+ call(?WXE_REGISTER_OBJECT, <<Ref:32/?UI>>).
+
+send_bin(Bin) when is_binary(Bin) ->
+ #wx_env{port=Port,debug=Dbg} = wx:get_env(),
+ case Dbg > 0 of
+ false ->
+ erlang:port_command(Port, Bin);
+ true ->
+ io:format("WX binary ~p(~p) ~n",[self(), Port]),
+ erlang:port_command(Port, Bin)
+ end.
+
+get_cbId(Fun) ->
+ gen_server:call((wx:get_env())#wx_env.sv,{register_cb, Fun}, infinity).
+
+connect_cb(Object,EvData) ->
+ handle_listener(connect_cb, Object, EvData).
+
+disconnect_cb(Object,EvData) ->
+ handle_listener(disconnect_cb, Object, EvData).
+
+handle_listener(Op,Object,EvData) ->
+ Listener = gen_server:call((wx:get_env())#wx_env.sv, {Op,Object,EvData}, infinity),
+ case Listener of
+ {call_impl, connect_cb, EvtList} ->
+ wxEvtHandler:connect_impl(EvtList,Object,EvData);
+ Res ->
+ Res
+ end.
+
+debug_cast(1, Op, _Args, _Port) ->
+ check_previous(),
+ case ets:lookup(wx_debug_info,Op) of
+ [{_,{M,F,_}}] ->
+ io:format("WX ~p: ~s:~s(~p) -> ok~n", [self(),M,F,Op]);
+ [] ->
+ io:format("WX ~p: unknown(~p) -> ok~n", [self(),Op])
+ end;
+debug_cast(2, Op, Args, Port) ->
+ check_previous(),
+ case ets:lookup(wx_debug_info,Op) of
+ [{_,{M,F,_}}] ->
+ io:format("WX ~p(~p): ~s:~s(~p) (~p) -> ok~n",
+ [self(),Port,M,F,Op,Args]);
+ [] ->
+ io:format("WX ~p(~p): unknown(~p) (~p) -> ok~n",
+ [self(),Port,Op,Args])
+ end;
+debug_cast(_, _Op, _Args, _Port) ->
+ check_previous(),
+ ok.
+
+debug_call(1, Op, Args, Port) ->
+ check_previous(),
+ case ets:lookup(wx_debug_info,Op) of
+ [{_,{M,F,_}}] ->
+ io:format("WX ~p: ~s:~s(~p) -> ",[self(),M,F,Op]);
+ [] ->
+ io:format("WX ~p: unknown(~p) -> ",[self(),Op])
+ end,
+ _ = erlang:port_control(Port,Op,Args),
+ debug_rec(1);
+debug_call(2, Op, Args, Port) ->
+ check_previous(),
+ case ets:lookup(wx_debug_info,Op) of
+ [{_,{M,F,_}}] ->
+ io:format("WX ~p(~p): ~s:~s(~p) (~p) -> ",
+ [self(), Port, M, F, Op, Args]);
+ [] ->
+ io:format("WX ~p(~p): unknown(~p) (~p) -> ",
+ [self(), Port, Op, Args])
+ end,
+ _ = erlang:port_control(Port,Op,Args),
+ debug_rec(2);
+debug_call(_, Op, Args, Port) ->
+ check_previous(),
+ _ = erlang:port_control(Port,Op,Args),
+ rec(Op).
+
+debug_rec(1) ->
+ receive
+ {'_wxe_result_', Res} ->
+ io:format("complete ~n", []),
+ Res;
+ {'_wxe_error_', Op2, Error} ->
+ [{_,MF2}] = ets:lookup(wx_debug_info,Op2),
+ erlang:error({Error, MF2})
+ end;
+debug_rec(2) ->
+ receive
+ {'_wxe_result_', Res} ->
+ io:format("~p ~n", [Res]),
+ Res;
+ {'_wxe_error_', Op, Error} ->
+ io:format("Error ~p ~n", [Error]),
+ [{_,MF}] = ets:lookup(wx_debug_info,Op),
+ erlang:error({Error, MF})
+ end.
+
+check_previous() ->
+ receive
+ {'_wxe_error_', Op, Error} ->
+ [{_,MF={M,F,_}}] = ets:lookup(wx_debug_info,Op),
+ io:format("WX ~p: ERROR in previous command ~s:~s~n",[self(), M,F]),
+ erlang:error({Error, MF})
+ after 0 -> ok
+ end.
diff --git a/lib/wx/test/Makefile b/lib/wx/test/Makefile
new file mode 100644
index 0000000000..65d7d56650
--- /dev/null
+++ b/lib/wx/test/Makefile
@@ -0,0 +1,68 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+include ../vsn.mk
+include ../config.mk
+
+ESRC = .
+EBIN = .
+ERLC = erlc
+PWD = $(shell pwd)
+APPDIR = $(shell dirname $(PWD))
+ERL_COMPILE_FLAGS = -pa $(APPDIR)/ebin
+
+Mods = wxt wx_test_lib \
+ wx_basic_SUITE wx_event_SUITE \
+ wx_class_SUITE \
+ wx_xtra_SUITE \
+ wx_opengl_SUITE
+
+ErlSrc = $(Mods:%=%.erl)
+ErlTargets = $(Mods:%=$(EBIN)/%.beam)
+
+# Targets
+opt debug: $(ErlTargets)
+
+clean:
+ rm -f $(ErlTargets)
+ rm -f core erl_crash.dump
+ rm -f *~
+
+docs:
+
+
+# Rules
+ifneq ($(INSIDE_ERLSRC),true)
+
+$(EBIN)/%.beam: $(ESRC)/%.erl
+ $(ERLC) -W -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
+
+else
+RELSYSDIR = $(RELEASE_PATH)/wx_test
+include $(ERL_TOP)/make/otp_release_targets.mk
+release_spec:
+
+release_tests_spec: opt
+ $(INSTALL_DIR) $(RELSYSDIR)
+ $(INSTALL_DATA) wx.spec wx_test_lib.hrl $(ErlSrc) $(ErlTargets) $(RELSYSDIR)
+ $(INSTALL_PROGRAM) wxt $(RELSYSDIR)
+
+release_docs_spec:
+
+endif
diff --git a/lib/wx/test/Readme b/lib/wx/test/Readme
new file mode 100644
index 0000000000..09e9604491
--- /dev/null
+++ b/lib/wx/test/Readme
@@ -0,0 +1,30 @@
+
+Testing and running wxerlang tests.
+
+Testing gui api/applications can be hard, but we can at least
+test that wxerlang behaves as we expected, i.e. that the api
+is consistent and that it don't crash.
+
+The tests are structured as they are because we want you to
+be able to run them in three different ways.
+ - direct via an erlang shell
+ - via common_test application
+ - via erlang/OTP inhouse ts tool.
+
+To run all the tests compile them and on unix
+run ./wxt to create an erlang terminal.
+
+Invoke wxt:t(). in the erlang shell to run all regression tests.
+If you want to specific tests invoke wxt:t(Module)
+or wxt:t(Module, TestCase).
+
+To run all tests including the ones that require manual intervention run.
+wxt:t(all, [{user,true}]).
+
+To see every test_case window use
+wxt:t(all, [{user,step}]).
+This requires that you manually close each window to step to the
+next test_case.
+
+If you want to run specific test_cases use:
+wxt:t({Module,TestCase}, [{user,step}]).
diff --git a/lib/wx/test/wx.spec b/lib/wx/test/wx.spec
new file mode 100644
index 0000000000..a9201e5737
--- /dev/null
+++ b/lib/wx/test/wx.spec
@@ -0,0 +1,2 @@
+{topcase, {dir, "../wx_test"}}.
+
diff --git a/lib/wx/test/wx_basic_SUITE.erl b/lib/wx/test/wx_basic_SUITE.erl
new file mode 100644
index 0000000000..599aa371ba
--- /dev/null
+++ b/lib/wx/test/wx_basic_SUITE.erl
@@ -0,0 +1,296 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_basic_SUITE.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Basic SUITE, some simple tests to show that the basics
+%%% are working.
+%%% Created : 3 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_basic_SUITE).
+-export([all/0, init_per_suite/1, end_per_suite/1,
+ init_per_testcase/2, fin_per_testcase/2, end_per_testcase/2]).
+
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+
+%% Initialization functions.
+init_per_suite(Config) ->
+ wx_test_lib:init_per_suite(Config).
+
+end_per_suite(Config) ->
+ wx_test_lib:end_per_suite(Config).
+
+init_per_testcase(Func,Config) ->
+ wx_test_lib:init_per_testcase(Func,Config).
+end_per_testcase(Func,Config) ->
+ wx_test_lib:end_per_testcase(Func,Config).
+fin_per_testcase(Func,Config) -> %% For test_server
+ wx_test_lib:end_per_testcase(Func,Config).
+
+%% SUITE specification
+all() ->
+ all(suite).
+all(suite) ->
+ [
+ create_window,
+ several_apps,
+ wx_api,
+ wx_misc,
+ data_types
+ ].
+
+%% The test cases
+
+%% create and test creating a window
+create_window(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+create_window(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(Wx, 1, "Hello World")),
+ timer:sleep(1000),
+ ?m(true,wxWindow:show(Frame, [])),
+ wx_test_lib:wx_destroy(Frame, Config).
+
+%% create several windows from independent processes
+%% to simulate several applications and test creating a window
+several_apps(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+several_apps(Config) ->
+ Parent = self(),
+ Pids = [spawn_link(fun() -> several_apps(Parent, N, Config) end)
+ || N <- lists:seq(1,4)],
+ process_flag(trap_exit,true),
+ ?m_multi_receive([{complete,Pid} || Pid <- Pids]),
+ case wx_test_lib:user_available(Config) of
+ true ->
+ receive {'EXIT',_,foo} -> ok end;
+ false ->
+ ok
+ end.
+
+several_apps(Parent, N, Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(Wx, 1, "Hello World No:" ++
+ integer_to_list(N))),
+ create_menus(Frame),
+ wxFrame:connect(Frame,size),
+ ?m(true,wxWindow:show(Frame, [])),
+ receive
+ #wx{obj=Frame, event=#wxSize{}} ->
+ Parent ! {complete, self()}
+ end,
+ wx_test_lib:wx_destroy(Frame, Config),
+ exit(foo).
+
+
+%% Test the wx.erl api functionality.
+wx_api(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+wx_api(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+ ?m(true, wx:is_null(Wx)),
+ Null = ?mr(wx_ref, wx:null()),
+ ?m(true, wx:is_null(Null)),
+ Frame = ?mt(wxFrame, wxFrame:new(Wx, 1, "WX API: " ++ unicode:characters_to_list("������"))),
+ ?m(false, wx:is_null(Frame)),
+ ?m(wxFrame, wx:getObjectType(Frame)),
+ Env = ?mr(wx_env, wx:get_env()),
+ %% Test some error cases
+ erase(wx_env),
+ ?m({'EXIT', {{wxe,unknown_port},_}},wxWindow:show(Frame, [])),
+ ?m({'EXIT', {{wxe,unknown_port},_}},wx:debug(2)),
+
+ ?m(ok,wx:set_env(Env)),
+ ?m(ok,wx:debug(1)),
+ ?m(ok,wx:debug(2)),
+ ?m(ok,wx:debug(0)),
+ ?m(ok,wx:debug(none)),
+ ?m(ok,wx:debug(verbose)),
+ ?m(ok,wx:debug(trace)),
+
+ Mem = ?mr(wx_mem, wx:create_memory(10)),
+ ?m(true, is_binary(wx:get_memory_bin(Mem))),
+ ?mt(foo, wx:typeCast(Frame, foo)),
+
+ RecBatch = fun() ->
+ wx:batch(fun() -> create_menus(Frame) end)
+ end,
+ ?m(batch_ret, wx:batch(fun() -> RecBatch(), batch_ret end)),
+ ?m(ok, wx:foreach(fun(A) -> true = lists:member(A,[1,2,3,4,5]) end,
+ lists:seq(1,5))),
+ ?m([2,3,4,5,6], wx:map(fun(A) -> A+1 end, lists:seq(1,5))),
+ ?m({5,15}, wx:foldl(fun(A,{_,Acc}) -> {A,A+Acc} end, {0,0},
+ lists:seq(1,5))),
+ ?m({1,15}, wx:foldr(fun(A,{_,Acc}) -> {A,A+Acc} end, {0,0},
+ lists:seq(1,5))),
+ ?m(ok,wx:debug(none)),
+
+ ?m(ball, wx:batch(fun() -> throw(ball), batch_ret end)),
+ ?m({'EXIT', door}, wx:batch(fun() -> exit(door), batch_ret end)),
+ ?m({'EXIT',{message,_ST}},
+ wx:batch(fun() -> erlang:error(message), batch_ret end)),
+
+
+ ?m({'EXIT',_},wxWindow:show(wx:null(), [])),
+ ?m(true,wxWindow:show(Frame, [])),
+ Temp = ?mt(wxButton, wxButton:new(Frame, -1)),
+ ?m(ok,wxButton:setLabel(Temp, "Testing")),
+ ?m(ok,wxButton:destroy(Temp)),
+ ?m({'EXIT',_},wxButton:getLabel(Temp)),
+
+ case wx_test_lib:user_available(Config) of
+ true ->
+ %% Hmm popup doesn't return until mouse is pressed.
+ Menu = wxMenu:new(),
+ wxMenu:append(Menu, 0, "Press", []),
+ wxMenu:append(Menu, 1, "Me", []),
+ ?m(true, wxWindow:popupMenu(Frame, Menu)),
+ %% This didn't work for a while
+ ?m(true, wx:batch(fun() ->
+ wxMenu:append(Menu, 2, "AGAIN", []),
+ wxWindow:popupMenu(Frame, Menu)
+ end)),
+ ok;
+ _ ->
+ ignore
+ end,
+
+%% dbg:tracer(),
+%% {_, _Port, Server, _Dbg} = wx:get_env(),
+%% dbg:p(Server, [m, call]),
+%% dbg:p(new, [m, call]),
+%% dbg:tpl(wxe_server,'_', [{'_', [], [{return_trace}]}]),
+ wx_test_lib:wx_destroy(Frame,Config).
+
+create_menus(Frame) ->
+ MenuBar = ?mt(wxMenuBar, wxMenuBar:new()),
+ File = ?mt(wxMenu, wxMenu:new([])),
+ Help = ?mt(wxMenu, wxMenu:new([])),
+ ?mt(wxMenuItem, wxMenu:append(Help, ?wxID_ABOUT, "&About", [])),
+ ?mt(wxMenuItem, wxMenu:append(Help, ?wxID_HELP, "&Help", [])),
+ ?mt(wxMenuItem, wxMenu:append(File, ?wxID_EXIT, "Exit", [])),
+ ?m(ok,wxFrame:connect(Frame, command_menu_selected)),
+ ?m(true, wxMenuBar:append(MenuBar, File, "&File")),
+ ?m(true, wxMenuBar:append(MenuBar, Help, "&Help")),
+ ?m(ok, wxFrame:setMenuBar(Frame,MenuBar)).
+
+
+%% Test the wx_misc.erl api functionality.
+wx_misc(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+wx_misc(Config) ->
+ wx:new([{debug, trace}]),
+ put(wx_test_verbose, true),
+ ?m(ok, wx_misc:bell()),
+ ?m(true, length(wx_misc:getUserId()) > 0),
+ ?m(true, is_list(wx_misc:getEmailAddress())),
+ Home = ?m([_|_], wx_misc:getHomeDir()),
+ ?m(true, filelib:is_dir(Home)),
+ ?m(true, length(wx_misc:getOsDescription()) > 0),
+ IsLitte = case <<1:32/native>> of
+ <<1:8, 0:24>> -> true;
+ <<0:24,1:16>> -> false
+ end,
+ ?m(IsLitte, wx_misc:isPlatformLittleEndian()),
+ ?m(true, is_boolean(wx_misc:isPlatform64Bit())),
+
+ ?mr(wxMouseState, wx_misc:getMouseState()),
+ ?m({_,_}, wx_misc:getMousePosition()),
+
+ %% Don't hold home down when testing :-)
+ ?m(false, wx_misc:getKeyState(?WXK_HOME)),
+
+
+ %% wx:shutdown() %% How do you test this?
+
+ case os:type() of
+ {win32, _} -> %% These hangs when running automatic tests
+ skip; %% through ssh on windows. Works otherwise
+ _ ->
+ wx_misc:shell([{command,"echo TESTING close the popup shell"}])
+ end,
+
+ case wx_test_lib:user_available(Config) of
+ true ->
+ wx_misc:shell();
+ false ->
+ %% Don't want to spawn a shell if no user
+ skip %% is available
+ end,
+
+ ?m(false, wx_misc:isBusy()),
+ ?m(ok, wx_misc:beginBusyCursor([])),
+ ?m(true, wx_misc:isBusy()),
+ ?m(ok, wx_misc:endBusyCursor()),
+
+ %%?m(true, is_boolean(wx_misc:setDetectableAutoRepeat(true)),
+ Curr = wx_misc:getCurrentId(),
+ ?m(true, is_integer(Curr)),
+ NewId = wx_misc:newId(),
+ ?m(ok, wx_misc:registerId(NewId+1)),
+ ?m(true, (NewId+1) /= wx_misc:newId()),
+
+ wx:destroy().
+
+
+%% Check that all the data_types works in communication
+%% between erlang and c++ thread.
+data_types(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+data_types(_Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+
+ Frame = wxFrame:new(Wx, 1, "Data Types"),
+ CDC = wxClientDC:new(Frame),
+
+ %% From wx.erl
+ %% The following classes are implemented directly as erlang types: <br />
+ %% wxPoint={x,y},wxSize={w,h},wxRect={x,y,w,h},wxColour={r,g,b [,a]},wxString=[integer],
+ %% wxGBPosition={r,c},wxGBSpan={rs,cs},wxGridCellCoords={r,c}.
+
+ %% Strings
+ ?m("Data Types", wxFrame:getTitle(Frame)),
+
+ %% Doubles
+ ?m(ok, wxDC:setUserScale(CDC, 123.45, 234.67)),
+ ?m({123.45,234.67}, wxDC:getUserScale(CDC)),
+
+ %% Colors input is 3 or 4 tuple, returns are 4 tuples
+ ?m(ok, wxDC:setTextForeground(CDC, {100,10,1})),
+ ?m({100,10,1,255}, wxDC:getTextForeground(CDC)),
+ ?m(ok, wxDC:setTextForeground(CDC, {100,10,1,43})),
+ ?m({100,10,1,43}, wxDC:getTextForeground(CDC)),
+
+ %% Bool
+ ?m(ok, wxDC:setAxisOrientation(CDC, true, false)),
+ ?m(true, is_boolean(wxDC:isOk(CDC))),
+
+ %% wxCoord
+ ?m(true, is_integer(wxDC:maxX(CDC))),
+
+ %% wxSize
+ ?m({_,_}, wxWindow:getSize(Frame)),
+
+ %% DateTime
+ DateTime = calendar:now_to_datetime(erlang:now()),
+ io:format("DateTime ~p ~n",[DateTime]),
+ Cal = ?mt(wxCalendarCtrl, wxCalendarCtrl:new(Frame, ?wxID_ANY, [{date,DateTime}])),
+ ?m(DateTime, wxCalendarCtrl:getDate(Cal)),
+ ?m(true, is_boolean(wxCalendarCtrl:setDate(Cal,DateTime))),
+ ?m(DateTime, wxCalendarCtrl:getDate(Cal)),
+
+ wxClientDC:destroy(CDC),
+ %%wx_test_lib:wx_destroy(Frame,Config).
+ wx:destroy().
diff --git a/lib/wx/test/wx_class_SUITE.erl b/lib/wx/test/wx_class_SUITE.erl
new file mode 100644
index 0000000000..cedbd1ef19
--- /dev/null
+++ b/lib/wx/test/wx_class_SUITE.erl
@@ -0,0 +1,381 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_class_SUITE.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description :
+%%%
+%%% Created : 13 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_class_SUITE).
+
+-export([all/0, init_per_suite/1, end_per_suite/1,
+ init_per_testcase/2, fin_per_testcase/2, end_per_testcase/2]).
+
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+
+%% Initialization functions.
+init_per_suite(Config) ->
+ wx_test_lib:init_per_suite(Config).
+
+end_per_suite(Config) ->
+ wx_test_lib:end_per_suite(Config).
+
+init_per_testcase(Func,Config) ->
+ wx_test_lib:init_per_testcase(Func,Config).
+end_per_testcase(Func,Config) ->
+ wx_test_lib:end_per_testcase(Func,Config).
+fin_per_testcase(Func,Config) -> %% For test_server
+ wx_test_lib:end_per_testcase(Func,Config).
+
+%% SUITE specification
+all() ->
+ all(suite).
+all(suite) ->
+ [
+ calendarCtrl,
+ treeCtrl,
+ notebook,
+ staticBoxSizer,
+ clipboard,
+ helpFrame,
+ htmlWindow,
+ listCtrlSort,
+ radioBox
+ ].
+
+%% The test cases
+
+%% create and test a calendar, especially the DateAttr no-deletition.
+calendarCtrl(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+calendarCtrl(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(Wx, 1, "Calendar", [])),
+ Panel = wxPanel:new(Frame),
+ Sz = wxBoxSizer:new(?wxVERTICAL),
+
+ {YMD={_,_,Day},_} = DateTime = calendar:now_to_datetime(erlang:now()),
+ Cal = ?mt(wxCalendarCtrl, wxCalendarCtrl:new(Panel, ?wxID_ANY,
+ [{date,DateTime}
+ ])),
+ wxSizer:add(Sz,Cal),
+
+ DateAttr0 = ?mt(wxCalendarDateAttr, wxCalendarCtrl:getAttr(Cal,Day)),
+ case wx:is_null(DateAttr0) of
+ true ->
+ ?log("DateAttr is null~n",[]);
+ false ->
+ ?log("DateAttr is useable~n",[])
+ end,
+ DateAttr = ?mt(wxCalendarDateAttr, wxCalendarDateAttr:new()),
+ wxCalendarDateAttr:setBackgroundColour(DateAttr, {0,243,0}),
+ wxCalendarCtrl:setAttr(Cal, Day, DateAttr),
+ DateAttr1 = ?mt(wxCalendarDateAttr, wxCalendarCtrl:getAttr(Cal,Day)),
+ ?m({0,243,0,255}, wxCalendarDateAttr:getBackgroundColour(DateAttr1)),
+
+ ?m({YMD, _},wxCalendarCtrl:getDate(Cal)),
+
+ wxCalendarCtrl:connect(Cal, calendar_weekday_clicked),
+ wxCalendarCtrl:connect(Cal, calendar_day_changed),
+ wxCalendarCtrl:connect(Cal, calendar_month_changed),
+ wxCalendarCtrl:connect(Cal, calendar_year_changed),
+ wxCalendarCtrl:connect(Cal, calendar_doubleclicked),
+ wxCalendarCtrl:connect(Cal, calendar_sel_changed),
+
+ wxWindow:setSizer(Panel,Sz),
+ wxSizer:setSizeHints(Sz,Frame),
+ wxWindow:show(Frame),
+
+ wx_test_lib:wx_destroy(Frame,Config).
+
+
+treeCtrl(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+treeCtrl(Config) ->
+ Wx = wx:new(),
+
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+ Panel = wxPanel:new(Frame, []),
+ Tree = ?mt(wxTreeCtrl,wxTreeCtrl:new(Panel, [{style , ?wxTR_HAS_BUTTONS}])),
+ Root = ?mt(wxTreeItemId, wxTreeCtrl:addRoot(Tree, "Root", [])),
+ Item1 = ?mt(wxTreeItemId, wxTreeCtrl:appendItem(Tree, Root, "Item1", [])),
+ ?m(ok, wxTreeCtrl:setItemData(Tree, Item1, {data, item1})),
+ Item2 = ?mt(wxTreeItemId, wxTreeCtrl:appendItem(Tree, Root, "Item2", [])),
+ ?m(ok, wxTreeCtrl:setItemData(Tree, Item2, {data, item2})),
+ Item3 = ?mt(wxTreeItemId, wxTreeCtrl:appendItem(Tree, Root, "Item3", [])),
+ ?m(ok, wxTreeCtrl:setItemData(Tree, Item3, {data, item3})),
+
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, Tree, [{flag, ?wxEXPAND}, {proportion, 1}]),
+
+ wxWindow:setSizerAndFit(Panel, Sizer),
+ wxFrame:show(Frame),
+
+ ?m([], wxTreeCtrl:getItemData(Tree, Root)),
+ ?m({data,item1}, wxTreeCtrl:getItemData(Tree, Item1)),
+ ?m({data,item2}, wxTreeCtrl:getItemData(Tree, Item2)),
+ ?m({data,item3}, wxTreeCtrl:getItemData(Tree, Item3)),
+
+ wxFrame:connect(Tree, command_tree_item_expanded),
+ wxFrame:connect(Tree, command_tree_item_collapsed),
+ wxFrame:connect(Frame, close_window),
+
+ wx_test_lib:wx_destroy(Frame,Config).
+
+notebook(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+notebook(Config) ->
+ Wx = wx:new(),
+
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+ Panel = wxPanel:new(Frame, []),
+ Book = wxNotebook:new(Panel, ?wxID_ANY, []),
+
+ Panel1 = wxPanel:new(Book, []),
+ List1 = wxListBox:new(Panel1,
+ ?wxID_ANY,
+ [{choices, ["aaa1", "bb1", "c1"]},
+ {style,
+ ?wxLB_SORT bor
+ ?wxLB_NEEDED_SB bor
+ ?wxLB_EXTENDED}]),
+ wxNotebook:addPage(Book, Panel1, "List1", []),
+ Sizer1 = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer1, List1, [{flag, ?wxEXPAND}, {proportion, 1}]),
+ wxWindow:setSizer(Panel1, Sizer1),
+
+ Panel2 = wxPanel:new(Book, []),
+ List2 = wxListBox:new(Panel2,
+ ?wxID_ANY,
+ [{choices, ["aaa2", "bb2", "c2"]},
+ {style,
+ ?wxLB_SORT bor
+ ?wxLB_NEEDED_SB bor
+ ?wxLB_EXTENDED}]),
+ wxNotebook:addPage(Book, Panel2, "List2", []),
+ Sizer2 = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer2, List2, [{flag, ?wxEXPAND}, {proportion, 1}]),
+ wxWindow:setSizer(Panel2, Sizer2),
+
+ Panel3 = wxPanel:new(Book, []),
+ List3 = wxListBox:new(Panel3,
+ ?wxID_ANY,
+ [{choices, ["aaa3", "bb3", "c3"]},
+ {style,
+ ?wxLB_SORT bor
+ ?wxLB_NEEDED_SB bor
+ ?wxLB_EXTENDED}]),
+ wxNotebook:addPage(Book, Panel3, "List3", []),
+ Sizer3 = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer3, List3, [{flag, ?wxEXPAND}, {proportion, 1}]),
+ wxWindow:setSizer(Panel3, Sizer3),
+
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, Book, [{flag, ?wxEXPAND}, {proportion, 1}]),
+
+
+ wxWindow:setSizer(Panel, Sizer),
+ wxSizer:fit(Sizer, Frame),
+ wxSizer:setSizeHints(Sizer, Frame),
+ wxFrame:show(Frame),
+
+ wxFrame:connect(Frame, close_window),
+
+ wx_test_lib:wx_destroy(Frame,Config).
+
+staticBoxSizer(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+staticBoxSizer(Config) ->
+ Wx = wx:new(),
+ wx:debug(2),
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+ Panel = wxPanel:new(Frame, []),
+ InclSizer = ?mt(wxStaticBoxSizer,
+ wxStaticBoxSizer:new(?wxVERTICAL, Panel,
+ [{label, "Module inclusion policy"}])),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxSizer:add(Sizer, InclSizer,
+ [{border, 2}, {flag, ?wxALL bor ?wxEXPAND}, {proportion, 1}]),
+ wxWindow:setSizerAndFit(Panel, Sizer),
+
+ wxWindow:show(Frame),
+ wx_test_lib:wx_destroy(Frame,Config).
+
+
+clipboard(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+clipboard(_Config) ->
+ wx:new(),
+ CB = ?mt(wxClipboard, wxClipboard:get()),
+ wxClipboard:usePrimarySelection(CB),
+ ?m(false, wx:is_null(CB)),
+ case wxClipboard:open(CB) of
+ true ->
+ case wxClipboard:isSupported(CB, ?wxDF_TEXT) of
+ false ->
+ ?log("No text on the clipboard~n",[]);
+ true ->
+ Text = ?mt(wxTextDataObject, wxTextDataObject:new()),
+ case wxClipboard:getData(CB,Text) of
+ true ->
+ ?log("PASTE: ~s ~n", [wxTextDataObject:getText(Text)]);
+ false ->
+ ?log("Couldn't access clipboard~n",[])
+ end,
+ wxTextDataObject:destroy(Text)
+ end,
+ wxClipboard:close(CB);
+ false ->
+ ?log("Clipboard open failed~n",[])
+ end,
+ case wxClipboard:open(CB) of
+ true ->
+ Paste = ?mt(wxTextDataObject, wxTextDataObject:new([{text,"From Erlang"}])),
+ case wxClipboard:addData(CB,Paste) of
+ true ->
+ ?log("Put text on clipboard~n", []);
+ false ->
+ ?log("Couldn't copy data to clipboard~n",[])
+ end,
+ wxClipboard:close(CB);
+ false ->
+ ?log("Clipboard open failed~n",[])
+ end,
+ ?log("Flushing ~n",[]),
+ wxClipboard:flush(CB),
+ ?log("Stopping ~n",[]),
+ ok.
+
+helpFrame(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+helpFrame(Config) ->
+ Wx = wx:new(),
+ MFrame = wx:batch(fun() ->
+ MFrame = wxFrame:new(Wx, ?wxID_ANY, "Main Frame"),
+ wxPanel:new(MFrame, [{size, {600,400}}]),
+ wxWindow:show(MFrame),
+ MFrame
+ end),
+ timer:sleep(9),
+
+ {X0, Y0} = wxWindow:getScreenPosition(MFrame),
+ {X, Y, W,H} = wxWindow:getScreenRect(MFrame),
+ io:format("Pos0: ~p ~p ~p Pos: ~p:~p Size: ~p:~p ~n",
+ [X0,Y0, wxWindow:clientToScreen(MFrame, {0,0}), X,Y,W,H]),
+
+ Pos = {X+5, Y+(H div 2)},
+ Size = {W-10, (H div 2) - 5},
+
+ Comp = wxFrame:new(MFrame, ?wxID_ANY, "Completion Window",
+ [{pos, Pos}, {size, Size},
+ {style, ?wxFRAME_FLOAT_ON_PARENT}]),
+ LB = wxListBox:new(Comp, 42, [{style, ?wxLB_SINGLE},
+ {size, Size}]),
+
+ Items = ["Item " ++ integer_to_list(N) || N <- lists:seq(1, 10)],
+ wxListBox:insertItems(LB,Items,0),
+
+ wxWindow:show(Comp),
+ wx_test_lib:wx_destroy(MFrame,Config).
+
+htmlWindow(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+htmlWindow(Config) ->
+ Wx = wx:new(),
+ {MFrame,HPanel} =
+ wx:batch(fun() ->
+ MFrame = wxFrame:new(Wx, ?wxID_ANY, "Main Frame"),
+ HPanel = wxHtmlWindow:new(MFrame, [{size, {600,400}}]),
+ wxWindow:show(MFrame),
+ {MFrame, HPanel}
+ end),
+ timer:sleep(9),
+
+ WxMod = code:which(wx),
+ WxDir = filename:split(filename:dirname(WxMod)) -- ["ebin"],
+ Html = filename:join(filename:join(WxDir),filename:join("doc", "html")),
+
+ Index = filename:join(Html, "wx.html"),
+
+ ?m(ok, wxHtmlWindow:connect(HPanel, command_html_link_clicked,
+ [{callback,
+ fun(Ev,_) ->
+ io:format("Link clicked: ~p~n",[Ev])
+ end}])),
+
+ case filelib:is_file(Index) of
+ true ->
+ ?m(true, wxHtmlWindow:loadFile(HPanel, Index)),
+ ok;
+ false ->
+ ok
+ end,
+
+ wx_test_lib:wx_destroy(MFrame,Config).
+
+
+listCtrlSort(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+listCtrlSort(Config) ->
+ Wx = wx:new(),
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+
+ LC = wxListCtrl:new(Frame, [{style, ?wxLC_REPORT bor ?wxLC_SORT_ASCENDING}]),
+
+ %% must be done crashes in wxwidgets otherwise.
+ wxListCtrl:insertColumn(LC, 0, "Column"),
+
+ Add = fun(Int) ->
+ wxListCtrl:insertItem(LC, Int, integer_to_list(Int)),
+ %% ItemData Can only be integers currently
+ wxListCtrl:setItemData(LC, Int, abs(2500-Int))
+ end,
+
+ wx:foreach(Add, lists:seq(0,5000)),
+ wxWindow:show(Frame),
+
+ timer:sleep(200),
+
+ Sort = fun() ->
+ wxListCtrl:sortItems(LC, fun(A, B) ->
+ %% io:format("S ~p ~p ~n",[A,B]),
+ if A =:= B -> 0;
+ A < B -> -1;
+ true -> 1
+ end
+ end)
+ end,
+
+ Time = timer:tc(erlang, apply, [Sort,[]]),
+ io:format("Sorted ~p ~n",[Time]),
+
+ wx_test_lib:wx_destroy(Frame,Config).
+
+
+radioBox(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+radioBox(Config) ->
+ Wx = wx:new(),
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+
+ TrSortRadioBox = wxRadioBox:new(Frame, ?wxID_ANY, "Sort by:",
+ {100, 100},{100, 100}, ["Timestamp"]),
+
+ io:format("TrSortRadioBox ~p ~n", [TrSortRadioBox]),
+ %% If I uncomment any of these lines, it will crash
+
+ ?m(_, catch wxControlWithItems:setClientData(TrSortRadioBox, 0, timestamp)),
+ %?m(_, wxListBox:append(TrSortRadioBox, "Session Id", session_id)),
+ %?m(_, wxListBox:insert(TrSortRadioBox, "Session Id", 0, session_id)),
+
+ wxWindow:show(Frame),
+ wx_test_lib:wx_destroy(Frame,Config).
diff --git a/lib/wx/test/wx_event_SUITE.erl b/lib/wx/test/wx_event_SUITE.erl
new file mode 100644
index 0000000000..dea10d892e
--- /dev/null
+++ b/lib/wx/test/wx_event_SUITE.erl
@@ -0,0 +1,331 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_event_SUITE.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Test event handling as much as possible
+%%% Created : 3 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_event_SUITE).
+-export([all/0, init_per_suite/1, end_per_suite/1,
+ init_per_testcase/2, fin_per_testcase/2, end_per_testcase/2]).
+
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+
+%% Initialization functions.
+init_per_suite(Config) ->
+ wx_test_lib:init_per_suite(Config).
+
+end_per_suite(Config) ->
+ wx_test_lib:end_per_suite(Config).
+
+init_per_testcase(Func,Config) ->
+ wx_test_lib:init_per_testcase(Func,Config).
+end_per_testcase(Func,Config) ->
+ wx_test_lib:end_per_testcase(Func,Config).
+fin_per_testcase(Func,Config) -> %% For test_server
+ wx_test_lib:end_per_testcase(Func,Config).
+
+%% SUITE specification
+all() ->
+ all(suite).
+all(suite) ->
+ [
+ connect,
+ disconnect,
+ connect_msg_20,
+ connect_cb_20,
+ mouse_on_grid,
+ spin_event,
+ connect_in_callback
+ ].
+
+%% The test cases
+
+%% Test that the various options to connect work as expected.
+connect(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+connect(Config) ->
+ ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(wx:null(), 1, "Event Testing")),
+ Panel = ?mt(wxPanel, wxPanel:new(Frame)),
+ Window = wxWindow:new(Panel, -1),
+
+ Tester = self(),
+ CB = fun(#wx{event=#wxSize{},userData=UserD}, SizeEvent) ->
+ ?mt(wxSizeEvent, SizeEvent),
+ Tester ! {got_size, UserD}
+ end,
+
+ ?m(ok, wxFrame:connect(Frame, size)),
+ ?m(ok, wxEvtHandler:connect(Panel, size,[{skip, true},{userData, panel}])),
+ ?m(ok, wxEvtHandler:connect(Panel, size,[{callback,CB},{userData, panel}])),
+
+ ?m({'EXIT', {{badarg,_},_}},
+ wxEvtHandler:connect(Panel, there_is_no_such_event)),
+
+ ?m({'EXIT', {{badarg,_},_}},
+ wxEvtHandler:connect(Panel, there_is_no_such_event, [{callback,CB}])),
+
+ ?m(ok, wxWindow:connect(Window, size,[{callback,CB},{userData, window}])),
+ ?m(ok, wxWindow:connect(Window, size,[{skip,true},{userData, window}])),
+
+ ?m(true, wxFrame:show(Frame)),
+
+ wxWindow:setSize(Panel, {200,100}),
+ wxWindow:setSize(Window, {200,100}),
+
+ get_size_messages(Frame, [frame, panel_cb, window_cb, window]),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+get_size_messages(_, []) -> ok;
+get_size_messages(Frame, Msgs) ->
+ receive
+ #wx{obj=Frame,event=#wxSize{}} -> %% ok
+ get_size_messages(Frame, lists:delete(frame, Msgs));
+ #wx{userData=window, event=#wxSize{}} ->
+ ?m(true, lists:member(window_cb, Msgs)),
+ get_size_messages(Frame, lists:delete(window, Msgs));
+ #wx{userData=panel, event=#wxSize{}} ->
+ ?m(true, lists:member(panel, Msgs)),
+ get_size_messages(Frame, lists:delete(panel, Msgs));
+ {got_size,window} ->
+ ?m(false, lists:member(window, Msgs)),
+ get_size_messages(Frame, lists:delete(window_cb, Msgs));
+ {got_size,panel} ->
+ get_size_messages(Frame, lists:delete(panel_cb, Msgs));
+ Other ->
+ ?error("Got unexpected msg ~p ~p~n", [Other,Msgs])
+ after 1000 ->
+ ?error("Timeout ~p~n", [Msgs])
+ end.
+
+disconnect(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+disconnect(Config) ->
+ ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(wx:null(), 1, "Event Testing")),
+ Panel = ?mt(wxPanel, wxPanel:new(Frame)),
+
+ Tester = self(),
+ CB = fun(#wx{event=#wxSize{},userData=UserD}, SizeEvent) ->
+ ?mt(wxSizeEvent, SizeEvent),
+ Tester ! {got_size, UserD}
+ end,
+ ?m(ok, wxFrame:connect(Frame, close_window)),
+ ?m(ok, wxFrame:connect(Frame, size)),
+ ?m(ok, wxEvtHandler:connect(Panel, size,[{skip, true},{userData, panel}])),
+ ?m(ok, wxEvtHandler:connect(Panel, size,[{callback,CB},{userData, panel}])),
+
+ ?m(true, wxFrame:show(Frame)),
+
+ wxWindow:setSize(Panel, {200,100}),
+ get_size_messages(Frame, [frame, panel_cb]),
+ wx_test_lib:flush(),
+
+ ?m(true, wxEvtHandler:disconnect(Panel, size, [{callback,CB}])),
+ ?m(ok, wxWindow:setSize(Panel, {200,101})),
+ get_size_messages(Frame, [panel]),
+ timer:sleep(1000),
+ wx_test_lib:flush(),
+
+ ?m({'EXIT', {{badarg,_},_}}, wxEvtHandler:disconnect(Panel, non_existing_event_type)),
+ ?m(true, wxEvtHandler:disconnect(Panel, size)),
+ ?m(ok, wxWindow:setSize(Panel, {200,102})),
+ timer:sleep(1000),
+ ?m([], wx_test_lib:flush()),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+
+
+%% Test that the msg events are forwarded as supposed to
+connect_msg_20(TestInfo)
+ when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+connect_msg_20(Config) ->
+ ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(wx:null(), 1, "Event 20 Testing")),
+ Tester = self(),
+ Env = wx:get_env(),
+
+ EvtHandler = fun() ->
+ wx:set_env(Env),
+ wxFrame:connect(Frame,size,[{skip,true}]),
+ Tester ! initiated,
+ receive #wx{obj=Frame,event=#wxSize{}} ->
+ Tester ! got_it
+ end
+ end,
+ Msgs = [begin spawn_link(EvtHandler), got_it end|| _ <- lists:seq(1,20)],
+
+ ?m_multi_receive(lists:duplicate(20, initiated)),
+ ?m(true, wxFrame:show(Frame)),
+
+ ?m_multi_receive(Msgs),
+ wx_test_lib:wx_destroy(Frame, Config).
+
+%% Test that the callbacks works as msgs
+connect_cb_20(TestInfo)
+ when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+connect_cb_20(Config) ->
+ ?mr(wx_ref, wx:new()),
+ Frame = ?mt(wxFrame, wxFrame:new(wx:null(), 1, "Event 20 Testing")),
+ Tester = self(),
+ Env = wx:get_env(),
+
+ wxFrame:connect(Frame,size,[{callback,
+ fun(#wx{event=#wxSize{}},_SizeEv) ->
+ Tester ! main_got_it
+ end}]),
+
+ EvtHandler = fun() ->
+ wx:set_env(Env),
+ Self = self(),
+ CB = fun(#wx{event=#wxSize{}},
+ WxSizeEventObj) ->
+ wxEvent:skip(WxSizeEventObj),
+ Tester ! got_it,
+ Self ! quit
+ end,
+ wxFrame:connect(Frame,size,[{callback, CB}]),
+ Tester ! initiated,
+ receive quit -> ok
+ end
+ end,
+ Msgs = [begin spawn_link(EvtHandler), got_it end|| _ <- lists:seq(1,20)],
+
+ ?m_multi_receive(lists:duplicate(20, initiated)),
+ ?m(true, wxFrame:show(Frame)),
+
+ ?m_multi_receive(Msgs),
+ ?m_receive(main_got_it),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+
+mouse_on_grid(TestInfo)
+ when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+mouse_on_grid(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Frame"),
+ Panel = wxPanel:new(Frame, []),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+
+ Grid = wxGrid:new(Panel, ?wxID_ANY),
+ wxGrid:createGrid(Grid, 10, 10, []),
+ wxSizer:add(Sizer, Grid, [{proportion, 1}]),
+
+ wxWindow:connect(Panel, motion),
+ wxWindow:connect(Panel, middle_down),
+
+ %% Undocumented function
+ GridWindow = ?mt(wxWindow, wxGrid:getGridWindow(Grid)),
+ wxWindow:connect(GridWindow, motion),
+ wxWindow:connect(GridWindow, middle_down),
+
+ wxWindow:setSizerAndFit(Panel, Sizer),
+ wxFrame:show(Frame),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+
+spin_event(TestInfo)
+ when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+spin_event(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+
+ %% Spin events and scrollEvent share some events id's
+ %% test that they work
+
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Spin Events"),
+ Panel = wxPanel:new(Frame, []),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ HSz = wxBoxSizer:new(?wxHORIZONTAL),
+
+ SB = wxSpinButton:new(Panel, [{id, 100}]),
+ wxSizer:add(HSz, SB, []),
+ wxSpinButton:connect(SB, spin),
+ wxSpinButton:connect(SB, spin_up),
+ wxSpinButton:connect(SB, spin_down),
+
+ SC = wxSpinCtrl:new(Panel, [{id, 101}, {min, -12}, {max, 12},
+ {value, "-3"}, {initial, 3},
+ {style, ?wxSP_ARROW_KEYS bor ?wxSP_WRAP}]),
+ wxSpinCtrl:connect(SC, command_spinctrl_updated),
+ wxSizer:add(HSz, SC, [{proportion, 1}, {flag, ?wxEXPAND}]),
+ wxSizer:add(Sizer, HSz, [{proportion, 0},{flag, ?wxEXPAND}]),
+
+ SL = wxSlider:new(Panel, 102, 57, 22, 99),
+ wxSlider:connect(SL, scroll_thumbtrack),
+ wxSlider:connect(SL, scroll_lineup),
+ wxSlider:connect(SL, scroll_linedown),
+ wxSizer:add(Sizer, SL, [{proportion, 0},{flag, ?wxEXPAND}]),
+
+ wxWindow:setSizerAndFit(Panel, Sizer),
+ wxFrame:show(Frame),
+ wx_test_lib:flush(),
+
+%% Set value does not generate a spin event...
+%% wxSpinButton:setValue(SB, 7),
+%% ?m_receive(#wx{id=100, event=#wxSpin{type=spin}}),
+%% wxSpinCtrl:setValue(SC, 8),
+%% ?m_receive(#wx{id=101, event=#wxSpin{type=command_spinctrl_updated}}),
+%% wxSlider:setValue(SL, 29),
+%% ?m_receive(#wx{id=102, event=#wxScroll{}}),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+
+%% Test that we can connect to events from inside a callback fun
+%% This is needed for example inside a callback that does a wxWindow:popupMenu/2
+connect_in_callback(TestInfo)
+ when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+connect_in_callback(Config) ->
+ Wx = ?mr(wx_ref, wx:new()),
+ Frame = wxFrame:new(Wx, ?wxID_ANY, "Connect in callback"),
+ Panel = wxPanel:new(Frame, []),
+
+ wxFrame:connect(Frame,size,
+ [{callback,
+ fun(#wx{event=#wxSize{}},_SizeEv) ->
+ io:format("Frame got size~n",[]),
+ F1 = wxFrame:new(Frame, ?wxID_ANY, "Frame size event"),
+ CBPid = self(),
+ wxFrame:connect(F1,size,[{callback,
+ fun(_,_) ->
+ io:format("CB2 got size~n",[]),
+ CBPid ! continue
+ end}]),
+ wxWindow:show(F1),
+ receive continue -> wxFrame:destroy(F1) end
+ end}]),
+ wxPanel:connect(Panel,size,
+ [{callback,
+ fun(#wx{event=#wxSize{}},_SizeEv) ->
+ io:format("Panel got size~n",[]),
+ F1 = wxFrame:new(Frame, ?wxID_ANY, "Panel size event"),
+ wxFrame:connect(F1,size),
+ wxWindow:show(F1),
+ receive #wx{event=#wxSize{}} -> wxFrame:destroy(F1) end
+ end}]),
+ wxFrame:show(Frame),
+ wx_test_lib:flush(),
+
+ wx_test_lib:wx_destroy(Frame, Config).
diff --git a/lib/wx/test/wx_opengl_SUITE.erl b/lib/wx/test/wx_opengl_SUITE.erl
new file mode 100644
index 0000000000..ce4651bcb1
--- /dev/null
+++ b/lib/wx/test/wx_opengl_SUITE.erl
@@ -0,0 +1,182 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_opengl_SUITE.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Test opengl basics, i.e. functions can be loaded, glu works.
+%%% Created : 3 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_opengl_SUITE).
+-export([all/0, init_per_suite/1, end_per_suite/1,
+ init_per_testcase/2, fin_per_testcase/2, end_per_testcase/2]).
+
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+-include_lib("wx/include/gl.hrl").
+
+%% Initialization functions.
+init_per_suite(Config) ->
+ case wx_test_lib:init_per_suite(Config) of
+ Skipped = {skipped, _} -> Skipped;
+ Config2 ->
+ case wx_test_lib:user_available(Config2) of
+ true -> Config2;
+ false -> {skipped, "Ignoring opengl tests: run manually"}
+ end
+ end.
+
+end_per_suite(Config) ->
+ wx_test_lib:end_per_suite(Config).
+
+init_per_testcase(Func,Config) ->
+ wx_test_lib:init_per_testcase(Func,Config).
+end_per_testcase(Func,Config) ->
+ wx_test_lib:end_per_testcase(Func,Config).
+fin_per_testcase(Func,Config) -> %% For test_server
+ wx_test_lib:end_per_testcase(Func,Config).
+
+%% SUITE specification
+all() ->
+ all(suite).
+all(suite) ->
+ [
+ canvas,
+ glu_tesselation
+ ].
+
+%% The test cases
+
+-define(VS, {{ 0.5, 0.5, -0.5}, %1
+ { 0.5, -0.5, -0.5}, %2
+ {-0.5, -0.5, -0.5},
+ {-0.5, 0.5, -0.5}, %4
+ {-0.5, 0.5, 0.5},
+ { 0.5, 0.5, 0.5}, %6
+ { 0.5, -0.5, 0.5},
+ {-0.5, -0.5, 0.5}}).%8
+
+-define(FACES,
+ %% Faces Normal
+ [{{1,2,3,4},{0,0,-1} }, %
+ {{3,8,5,4},{-1,0,0}}, %
+ {{1,6,7,2},{1,0,0} }, %
+ {{6,5,8,7},{0,0,1} }, %
+ {{6,1,4,5},{0,1,0} }, %
+ {{7,8,3,2},{0,-1,0}}]).
+
+
+%% Test we can create a glCanvas and that functions are loaded dynamicly
+canvas(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+canvas(Config) ->
+ WX = ?mr(wx_ref, wx:new()),
+ Frame = wxFrame:new(WX,1,"Hello 3D-World",[]),
+ Attrs = [{attribList, [?WX_GL_RGBA,?WX_GL_DOUBLEBUFFER,0]}],
+ Canvas = ?mt(wxGLCanvas, wxGLCanvas:new(Frame, Attrs)),
+
+ ?m(true, wxWindow:show(Frame)),
+ ?m(false, wx:is_null(wxGLCanvas:getContext(Canvas))),
+ ?m({'EXIT', {{no_gl_context,_},_}}, gl:getString(?GL_VENDOR)),
+
+ ?m(ok, wxGLCanvas:setCurrent(Canvas)),
+ io:format("Vendor: ~s~n", [gl:getString(?GL_VENDOR)]),
+ io:format("Renderer: ~s~n", [gl:getString(?GL_RENDERER)]),
+ io:format("Version: ~s~n", [gl:getString(?GL_VERSION)]),
+
+ {W,H} = ?m({_,_}, wxWindow:getClientSize(Canvas)),
+ gl:viewport(0,0,W,H),
+ gl:matrixMode(?GL_PROJECTION),
+ gl:loadIdentity(),
+ %%gl:frustum( -2.0, 2.0, -2.0, 2.0, 5.0, 25.0 ),
+ gl:ortho( -2.0, 2.0, -2.0*H/W, 2.0*H/W, -20.0, 20.0),
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:loadIdentity(),
+ gl:enable(?GL_DEPTH_TEST),
+ gl:depthFunc(?GL_LESS),
+ {R,G,B,_} = wxWindow:getBackgroundColour(Frame),
+ gl:clearColor(R/255,B/255,G/255,1.0),
+ Data = {?FACES,?VS},
+ drawBox(0, Data),
+ ?m(ok, wxGLCanvas:swapBuffers(Canvas)),
+
+ Env = wx:get_env(),
+ Tester = self(),
+ spawn_link(fun() ->
+ wx:set_env(Env),
+ ?m(ok, wxGLCanvas:setCurrent(Canvas)),
+ ?m(ok, drawBox(1, Data)),
+ ?m(ok, wxGLCanvas:swapBuffers(Canvas)),
+ Tester ! works,
+ %% This may fail when window is deleted
+ catch draw_loop(2,Data,Canvas)
+ end),
+
+ ?m_receive(works),
+ wx_test_lib:wx_destroy(Frame, Config).
+
+draw_loop(Deg,Data,Canvas) ->
+ timer:sleep(15),
+ drawBox(Deg,Data),
+ ?m(ok, wxGLCanvas:swapBuffers(Canvas)),
+ draw_loop(Deg+1, Data,Canvas).
+
+
+drawBox(Deg,{Fs,Vs}) ->
+ gl:matrixMode(?GL_MODELVIEW),
+ gl:loadIdentity(),
+ gl:rotatef(Deg, 0.0, 1.0, 0.0),
+ gl:rotatef(20, 1.0, 0.0, 1.0),
+ gl:clear(?GL_COLOR_BUFFER_BIT bor ?GL_DEPTH_BUFFER_BIT),
+ gl:'begin'(?GL_QUADS),
+ lists:foreach(fun(Face) -> drawFace(Face,Vs) end, Fs),
+ gl:'end'().
+
+drawFace({{V1,V2,V3,V4},N={N1,N2,N3}}, Cube) ->
+ gl:normal3fv(N),
+ gl:color3f(abs(N1),abs(N2),abs(N3)),
+ gl:texCoord2f(0.0, 1.0), gl:vertex3fv(element(V1, Cube)),
+ gl:texCoord2f(0.0, 0.0), gl:vertex3fv(element(V2, Cube)),
+ gl:texCoord2f(1.0, 0.0), gl:vertex3fv(element(V3, Cube)),
+ gl:texCoord2f(1.0, 1.0), gl:vertex3fv(element(V4, Cube)).
+
+
+glu_tesselation(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+glu_tesselation(Config) ->
+ WX = ?mr(wx_ref, wx:new()),
+ Frame = wxFrame:new(WX,1,"Hello 3D-World",[]),
+ Attrs = [{attribList, [?WX_GL_RGBA,?WX_GL_DOUBLEBUFFER,0]}],
+ Canvas = ?mt(wxGLCanvas, wxGLCanvas:new(Frame, Attrs)),
+ ?m(true, wxWindow:show(Frame)),
+ ?m(ok, wxGLCanvas:setCurrent(Canvas)),
+
+ {RL1,RB1} = ?m({_,_}, glu:tesselate({0,0,1}, [{-1,0,0},{1,0,0},{0,1,0}])),
+ ?m(3, length(RL1)),
+ ?m(8*3*3, size(RB1)),
+ {RL2,RB2} = ?m({_,_}, glu:tesselate({0,0,1},
+ [{-1,0,0},{1,0,0},{1,1,0},{-1,1,0}])),
+ ?m(6, length(RL2)),
+ ?m(8*3*4, size(RB2)),
+ {RL3,RB3} = ?m({_,_}, glu:tesselate({0,0,1},
+ [{-1,0,0},{1,0,0},{1,1,0},
+ {-1,1,0},{-5,0.5,0}])),
+ ?m(9, length(RL3)),
+ ?m(8*3*5, size(RB3)),
+
+ wx_test_lib:wx_destroy(Frame, Config).
+
+
diff --git a/lib/wx/test/wx_test_lib.erl b/lib/wx/test/wx_test_lib.erl
new file mode 100644
index 0000000000..9368aa4bdc
--- /dev/null
+++ b/lib/wx/test/wx_test_lib.erl
@@ -0,0 +1,234 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_test_lib.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Library for testing wxerlang.
+%%%
+%%% Created : 30 Oct 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_test_lib).
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+init_per_suite(Config) ->
+ try
+ case os:type() of
+ {unix,darwin} ->
+ exit("Can not test on MacOSX");
+ {unix, _} ->
+ io:format("DISPLAY ~s~n", [os:getenv("DISPLAY")]),
+ case proplists:get_value(xserver, Config, none) of
+ none -> ignore;
+ Server ->
+ os:putenv("DISPLAY", Server)
+ end;
+ _ -> ignore
+ end,
+ wx:new(),
+ wx:destroy(),
+ Config
+ catch
+ _:undef ->
+ {skipped, "No wx compiled for this platform"};
+ _:Reason ->
+ {skipped, lists:flatten(io_lib:format("Start wx failed: ~p", [Reason]))}
+ end.
+
+end_per_suite(_Config) ->
+ ok.
+
+init_per_testcase(_Func, Config) ->
+ global:register_name(wx_global_logger, group_leader()),
+ Config.
+
+end_per_testcase(_Func, Config) ->
+ global:unregister_name(wx_global_logger),
+ Config.
+
+%% Backwards compatible with test_server
+tc_info(suite) -> [];
+tc_info(doc) -> "".
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%% Use ?log(Format, Args) as wrapper
+log(Format, Args, LongFile, Line) ->
+ File = filename:basename(LongFile),
+ Format2 = lists:concat([File, "(", Line, ")", ": ", Format]),
+ log(Format2, Args).
+
+log(Format, Args) ->
+ case global:whereis_name(wx_global_logger) of
+ undefined ->
+ io:format(user, Format, Args);
+ Pid ->
+ io:format(Pid, Format, Args)
+ end.
+
+verbose(Format, Args, File, Line) ->
+ Arg = wx_test_verbose,
+ case get(Arg) of
+ false ->
+ ok;
+ true ->
+ log(Format, Args, File, Line);
+ undefined ->
+ case init:get_argument(Arg) of
+ {ok, List} when is_list(List) ->
+ case lists:last(List) of
+ ["true"] ->
+ put(Arg, true),
+ log(Format, Args, File, Line);
+ _ ->
+ put(Arg, false),
+ ok
+ end;
+ _ ->
+ put(Arg, false),
+ ok
+ end
+ end.
+
+error(Format, Args, File, Line) ->
+ global:send(wx_global_logger, {failed, File, Line}),
+ Fail = {filename:basename(File),Line,Args},
+ case global:whereis_name(wx_test_case_sup) of
+ undefined -> ignore;
+ Pid -> Pid ! Fail
+ %% global:send(wx_test_case_sup, Fail),
+ end,
+ log("<ERROR>~n" ++ Format, Args, File, Line).
+
+
+pick_msg() ->
+ receive
+ Message -> Message
+ after 4000 -> timeout
+ end.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Utility functions
+
+user_available(Config) ->
+ false /= proplists:get_value(user, Config, false).
+
+
+wx_destroy(Frame, Config) ->
+ case proplists:get_value(user, Config, false) of
+ false ->
+ timer:sleep(100),
+ ?m(ok, wxFrame:destroy(Frame)),
+ ?m(ok, wx:destroy());
+ true ->
+ timer:sleep(500),
+ ?m(ok, wxFrame:destroy(Frame)),
+ ?m(ok, wx:destroy());
+ step -> %% Wait for user to close window
+ ?m(ok, wxEvtHandler:connect(Frame, close_window, [{skip,true}])),
+ wait_for_close()
+ end.
+
+wait_for_close() ->
+ receive
+ #wx{event=#wxClose{}} ->
+ ?log("Got close~n",[]),
+ ?m(ok, wx:destroy());
+ #wx{obj=Obj, event=Event} ->
+ try
+ Name = wxTopLevelWindow:getTitle(Obj),
+ ?log("~p Event: ~p~n", [Name, Event])
+ catch _:_ ->
+ ?log("Event: ~p~n", [Event])
+ end,
+ wait_for_close();
+ Other ->
+ ?log("Unexpected: ~p~n", [Other]),
+ wait_for_close()
+ end.
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% A small test server, which can be run standalone in a shell
+
+run_test(Test = {_,_},Config) ->
+ run_test([Test],Config);
+run_test([{Module, TC}|Rest], Config) ->
+ [run_test(Module, TC, Config) |
+ run_test(Rest, Config)];
+run_test([], _Config) -> [].
+
+run_test(Module, all, Config) ->
+ All = [{Module, Test} || Test <- Module:all()],
+ run_test(All, Config);
+run_test(Module, TestCase, Config) ->
+ log("Eval test case: ~w~n", [{Module, TestCase}]),
+ Sec = timer:seconds(1) * 1000,
+ {T, Res} =
+ timer:tc(?MODULE, eval_test_case, [Module, TestCase, Config]),
+ log("Tested ~w in ~w sec~n", [TestCase, T div Sec]),
+ {T div Sec, Res}.
+
+eval_test_case(Mod, Fun, Config) ->
+ flush(),
+ global:register_name(wx_test_case_sup, self()),
+ Flag = process_flag(trap_exit, true),
+ Pid = spawn_link(?MODULE, test_case_evaluator, [Mod, Fun, [Config]]),
+ R = wait_for_evaluator(Pid, Mod, Fun, Config),
+ global:unregister_name(wx_test_case_sup),
+ process_flag(trap_exit, Flag),
+ R.
+
+test_case_evaluator(Mod, Fun, [Config]) ->
+ NewConfig = Mod:init_per_testcase(Fun, Config),
+ R = apply(Mod, Fun, [NewConfig]),
+ Mod:fin_per_testcase(Fun, NewConfig),
+ exit({test_case_ok, R}).
+
+wait_for_evaluator(Pid, Mod, Fun, Config) ->
+ receive
+ {'EXIT', Pid, {test_case_ok, _PidRes}} ->
+ Errors = flush(),
+ Res =
+ case Errors of
+ [] -> ok;
+ Errors -> failed
+ end,
+ {Res, {Mod, Fun}, Errors};
+ {'EXIT', Pid, {skipped, Reason}} ->
+ log("<WARNING> Test case ~w skipped, because ~p~n",
+ [{Mod, Fun}, Reason]),
+ Mod:fin_per_testcase(Fun, Config),
+ {skip, {Mod, Fun}, Reason};
+ {'EXIT', Pid, Reason} ->
+ log("<ERROR> Eval process ~w exited, because ~p~n",
+ [{Mod, Fun}, Reason]),
+ Mod:fin_per_testcase(Fun, Config),
+ {crash, {Mod, Fun}, Reason}
+ end.
+
+flush() ->
+ receive Msg -> [Msg | flush()]
+ after 0 -> []
+ end.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/lib/wx/test/wx_test_lib.hrl b/lib/wx/test/wx_test_lib.hrl
new file mode 100644
index 0000000000..34e1e9c6b8
--- /dev/null
+++ b/lib/wx/test/wx_test_lib.hrl
@@ -0,0 +1,110 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_test_lib.hrl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Testing Macros
+%%%
+%%% Created : 30 Oct 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-include_lib("wx/include/wx.hrl").
+
+-define(log(Format,Args),wx_test_lib:log(Format,Args,?FILE,?LINE)).
+-define(warning(Format,Args),?log("<WARNING>~n " ++ Format,Args)).
+-define(error(Format,Args), wx_test_lib:error(Format,Args,?FILE,?LINE)).
+-define(verbose(Format,Args),wx_test_lib:verbose(Format,Args,?FILE,?LINE)).
+
+-define(fatal(Format,Args),
+ ?error(Format, Args),
+ exit({test_case_fatal, Format, Args, ?FILE, ?LINE})).
+
+-define(skip(Format,Args),
+ ?warning(Format, Args),
+ exit({skipped, ?flat_format(Format, Args)})).
+
+-define(m(ExpectedRes, Expr),
+ fun() ->
+ {TeStFILe, TeSTLiNe} = {?FILE, ?LINE},
+ AcTuAlReS = (catch (Expr)),
+ case AcTuAlReS of
+ ExpectedRes ->
+ ?verbose("ok: ~p~n",[AcTuAlReS]),
+ AcTuAlReS;
+ _ ->
+ wx_test_lib:error("Not Matching Actual result was:~n ~p ~n Expected ~s~n",
+ [AcTuAlReS, ??ExpectedRes],
+ TeStFILe,TeSTLiNe),
+ AcTuAlReS
+ end
+ end()).
+
+-define(mt(Expected, Expr),
+ fun() ->
+ {TeStFILe, TeSTLiNe} = {?FILE, ?LINE},
+ AcTuAlReS = (catch (Expr)),
+ case catch element(3,AcTuAlReS) of
+ Expected ->
+ wx_test_lib:verbose("ok: ~s~n",[??Expected],TeStFILe,TeSTLiNe),
+ AcTuAlReS;
+ _ ->
+ wx_test_lib:error("Not Matching Actual result was:~n ~p ~n Expected ~s~n",
+ [AcTuAlReS, ??Expected],
+ TeStFILe,TeSTLiNe),
+ AcTuAlReS
+ end
+ end()).
+
+-define(mr(Expected, Expr),
+ fun() ->
+ {TeStFILe, TeSTLiNe} = {?FILE, ?LINE},
+ AcTuAlReS = (catch (Expr)),
+ case catch element(1,AcTuAlReS) of
+ Expected ->
+ wx_test_lib:verbose("ok: ~s~n",[??Expected],TeStFILe,TeSTLiNe),
+ AcTuAlReS;
+ _ ->
+ wx_test_lib:error("Not Matching Actual result was:~n ~p ~n Expected ~s~n",
+ [AcTuAlReS, ??Expected],
+ TeStFILe,TeSTLiNe),
+ AcTuAlReS
+ end
+ end()).
+
+-define(m_receive(ExpectedMsg),
+ ?m(ExpectedMsg,wx_test_lib:pick_msg())).
+
+-define(m_multi_receive(ExpectedMsgs),
+ fun() ->
+ {TeStFILe, TeSTLiNe} = {?FILE, ?LINE},
+ TmPeXpCtEdMsGs = lists:sort(ExpectedMsgs),
+ AcTuAlReS =
+ lists:sort(lists:map(fun(_) ->
+ wx_test_lib:pick_msg()
+ end, TmPeXpCtEdMsGs)),
+ case AcTuAlReS of
+ TmPeXpCtEdMsGs ->
+ ?verbose("ok: ~p~n",[AcTuAlReS]),
+ AcTuAlReS;
+ _ ->
+ wx_test_lib:error("Not Matching Actual result was:~n ~p ~n Expected ~p~n",
+ [AcTuAlReS, ExpectedMsgs],
+ TeStFILe,TeSTLiNe),
+ AcTuAlReS
+ end
+ end()).
diff --git a/lib/wx/test/wx_xtra_SUITE.erl b/lib/wx/test/wx_xtra_SUITE.erl
new file mode 100644
index 0000000000..2ce1d18039
--- /dev/null
+++ b/lib/wx/test/wx_xtra_SUITE.erl
@@ -0,0 +1,176 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wx_basic_SUITE.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Basic SUITE, some simple tests to show that the basics
+%%% are working.
+%%% Created : 3 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wx_xtra_SUITE).
+-export([all/0, init_per_suite/1, end_per_suite/1,
+ init_per_testcase/2, fin_per_testcase/2, end_per_testcase/2]).
+
+-compile(export_all).
+
+-include("wx_test_lib.hrl").
+
+%% Initialization functions.
+init_per_suite(Config) ->
+ wx_test_lib:init_per_suite(Config).
+
+end_per_suite(Config) ->
+ wx_test_lib:end_per_suite(Config).
+
+init_per_testcase(Func,Config) ->
+ wx_test_lib:init_per_testcase(Func,Config).
+end_per_testcase(Func,Config) ->
+ wx_test_lib:end_per_testcase(Func,Config).
+fin_per_testcase(Func,Config) -> %% For test_server
+ wx_test_lib:end_per_testcase(Func,Config).
+
+%% SUITE specification
+all() ->
+ all(suite).
+all(suite) ->
+ [
+ destroy_app,
+ multiple_add_in_sizer,
+ app_dies
+ ].
+
+%% The test cases
+
+%% Verify that everything is handled on the queue first
+%% before wx:destroy is called.
+destroy_app(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+destroy_app(_Config) ->
+ %% This is timing releated but we test a couple of times
+ wx_test_lib:flush(),
+ ?m(ok, destroy_app_test(15)).
+
+destroy_app_test(N) when N > 0 ->
+ Wx = ?mr(wx_ref, wx:new()),
+ Frame = wxFrame:new(Wx, 1, "Destroy"),
+ ?m(ok, wxFrame:destroy(Frame)),
+ wx:destroy(),
+ receive
+ Msg -> Msg
+ after 150 -> destroy_app_test(N-1)
+ end;
+destroy_app_test(_) ->
+ receive
+ Msg -> Msg
+ after 1000 -> ok
+ end.
+
+
+%% This should work, and does but not when run automaticly on windows
+%% for some strange reason (it just hangs), run it last.
+app_dies(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+app_dies(_Config) ->
+ Tester = fun(Die0) ->
+ Die = (Die0*2) + ?LINE,
+ Wx = wx:new(),
+ oops(Die,?LINE),
+ Frame = wxFrame:new(Wx, 1, ?MODULE_STRING ++ integer_to_list(?LINE)),
+ oops(Die,?LINE),
+ wxFrame:createStatusBar(Frame, []),
+ oops(Die,?LINE),
+ Win=wxWindow:new(Frame, ?wxID_ANY),
+ oops(Die,?LINE),
+ _Pen = wxPen:new({0,0,0}, [{width, 3}]),
+ oops(Die,?LINE),
+ _Font = wxFont:new(10, ?wxSWISS, ?wxNORMAL, ?wxNORMAL,[]),
+ oops(Die,?LINE),
+ wxWindow:connect(Win, key_up),
+ oops(Die,?LINE),
+ wxWindow:connect(Win, key_up, [{callback, fun(_,_) -> callback end}]),
+ oops(Die,?LINE),
+ wxFrame:show(Frame),
+ oops(Die,?LINE),
+ DC0 = wxClientDC:new(Win),
+ oops(Die,?LINE),
+ DC = wxBufferedDC:new(DC0),
+ oops(Die,?LINE),
+ _Size = wxWindow:getSize(Win),
+ oops(Die,?LINE), %% redraw(DC, Size, G),
+ wxBufferedDC:destroy(DC),
+ oops(Die,?LINE),
+ wxClientDC:destroy(DC0),
+ oops(last,?LINE)
+ end,
+ process_flag(trap_exit,true),
+ app_dies2(Tester, 1),
+ ok.
+
+app_dies2(Test, N) ->
+ spawn_link(fun() -> Test(N) end),
+ receive
+ {'EXIT', _, {oops, last}} -> ok;
+ {'EXIT', _, {oops, _}} -> app_dies2(Test, N+1)
+ end.
+
+oops(Die, Line) when (Die =:= last) orelse (Die =< Line) ->
+ timer:sleep(500),
+ ?log(" Exits at line ~p~n",[Line]),
+ exit({oops, Die});
+oops(_,_) -> ok.
+
+
+%% This have happend often enough that I have special code to handle
+%% this user error (i.e. using the a window twice in an sizer).
+multiple_add_in_sizer(TestInfo) when is_atom(TestInfo) -> wx_test_lib:tc_info(TestInfo);
+multiple_add_in_sizer(Config) ->
+ Wx = wx:new(),
+ Frame = wxFrame:new(Wx, -1, "Button Fix"),
+ wxFrame:connect(Frame, close_window),
+
+ FramePanel = wxPanel:new(Frame),
+ Sizer = wxBoxSizer:new(?wxVERTICAL),
+ wxPanel:setSizer(FramePanel, Sizer),
+ wxSizer:setSizeHints(Sizer, Frame),
+
+ Panel = wxPanel:new(FramePanel),
+ Button = wxButton:new(Panel, -1, [{label, "Centre Me!"}]),
+
+ PanelSizer = wxBoxSizer:new(?wxVERTICAL),
+
+%%%%%%%%%%% THIS CALL CRASHES BEAM AT DESTROY TIME %%%%%%%%%%%%%
+ wxPanel:setSizer(Panel, PanelSizer),
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+ ButtonSizer = wxBoxSizer:new(?wxVERTICAL),
+
+ SizerFlags = wxSizerFlags:new(),
+ wxSizerFlags:align(SizerFlags, ?wxALIGN_CENTRE),
+
+ wxSizer:add(ButtonSizer, Button, SizerFlags), %% no tricks
+
+ wxSizerFlags:expand(SizerFlags), %
+ wxSizer:add(PanelSizer, ButtonSizer, SizerFlags),
+
+ %% PanelSizer is added to a size twice
+ wxSizer:add(Sizer, PanelSizer, SizerFlags),
+
+ wxFrame:setSize(Frame, 400, 300),
+ io:format("Panel ~p PSizer ~p ~n",[Panel, PanelSizer]),
+ %% io:format("F
+ wxWindow:show(Frame),
+ wx_test_lib:wx_destroy(Frame, Config).
+
diff --git a/lib/wx/test/wxt b/lib/wx/test/wxt
new file mode 100755
index 0000000000..f94350e47b
--- /dev/null
+++ b/lib/wx/test/wxt
@@ -0,0 +1,41 @@
+#! /bin/sh -f
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2008-2009. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+# Usage: mt <args to erlang startup script>
+
+log=test_log_$$
+latest=test_log_latest
+args=${1+"$@"}
+erlcmd="erl -sname test_server -smp -pa ../ebin $p $args -wx_test_verbose true -wx_test_timeout"
+
+echo "Give the following command in order to see the outcome:"
+echo ""
+echo " less test_log$$"
+
+rm "$latest" 2>/dev/null
+ln -s "$log" "$latest"
+touch "$log"
+
+ostype=`uname -s`
+if [ "$ostype" = "SunOS" ] ; then
+ /usr/openwin/bin/xterm -T Testing -l -lf "$log" -e $erlcmd &
+else
+ xterm -T Testing -e script -f -c "$erlcmd" "$log" &
+fi
+tail -f "$log" | egrep 'Eval|<ERROR>|NYI' \ No newline at end of file
diff --git a/lib/wx/test/wxt.erl b/lib/wx/test/wxt.erl
new file mode 100644
index 0000000000..a346a6bdb8
--- /dev/null
+++ b/lib/wx/test/wxt.erl
@@ -0,0 +1,160 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxt.erl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Shortcuts for starting test with wx internal test_server
+%%%
+%%% Created : 4 Nov 2008 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+-module(wxt).
+-compile(export_all).
+
+%% Modules or suites can be shortcuts i.e. basic expands to wx_basic_SUITE.
+%%
+%% t(Tests) run wx testcases.
+%% Tests can be module, {module, test_case} or [module|{module,test_case}]
+
+t() ->
+ t(read_test_case()).
+t(Test) ->
+ t(Test, []).
+
+t(Mod, TC) when is_atom(Mod), is_atom(TC) ->
+ t({Mod,TC}, []);
+t(all, Config) when is_list(Config) ->
+ Fs = filelib:wildcard("wx_*_SUITE.erl"),
+ t([list_to_atom(filename:rootname(File)) || File <- Fs], Config);
+t(Test,Config) when is_list(Config) ->
+ Tests = resolve(Test),
+ write_test_case(Test),
+ Res = wx_test_lib:run_test(Tests, Config),
+ append_test_case_info(Test, Res).
+
+
+user() ->
+ user(read_test_case()).
+user(Mod) ->
+ t(Mod, [{user,step}]).
+user(Mod,Tc) when is_atom(Tc) ->
+ t({Mod,Tc}, [{user,step}]).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Resolves the name of test suites and test cases
+%% according to the alias definitions. Single atoms
+%% are assumed to be the name of a test suite.
+resolve(Suite0) when atom(Suite0) ->
+ case alias(Suite0) of
+ Suite when atom(Suite) ->
+ {Suite, all};
+ {Suite, Case} ->
+ {Suite, Case}
+ end;
+resolve({Suite0, Case}) when atom(Suite0), atom(Case) ->
+ case alias(Suite0) of
+ Suite when atom(Suite) ->
+ {Suite, Case};
+ {Suite, Case2} ->
+ {Suite, Case2}
+ end;
+resolve(List) when list(List) ->
+ [resolve(Case) || Case <- List].
+
+alias(Suite) when is_atom(Suite) ->
+ Str = atom_to_list(Suite),
+ case {Str, lists:reverse(Str)} of
+ {"wx" ++ _, "ETIUS" ++ _} ->
+ Suite;
+ _ ->
+ list_to_atom("wx_" ++ Str ++ "_SUITE")
+ end.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+config_fname() ->
+ "wx_test_case_config".
+
+%% Read default config file
+read_config() ->
+ Fname = config_fname(),
+ wx_test_lib:log("Consulting file ~s...~n", [Fname]),
+ case file:consult(Fname) of
+ {ok, Config} ->
+ wx_test_lib:log("Read config ~w~n", [Config]),
+ Config;
+ _Error ->
+ Config = wx_test_lib:default_config(),
+ wx_test_lib:log("<>WARNING<> Using default config: ~w~n", [Config]),
+ Config
+ end.
+
+%% Write new default config file
+write_config(Config) when list(Config) ->
+ Fname = config_fname(),
+ {ok, Fd} = file:open(Fname, write),
+ write_list(Fd, Config),
+ file:close(Fd).
+
+write_list(Fd, [H | T]) ->
+ ok = io:format(Fd, "~p.~n",[H]),
+ write_list(Fd, T);
+write_list(_, []) ->
+ ok.
+
+test_case_fname() ->
+ "wx_test_case_info".
+
+%% Read name of test case
+read_test_case() ->
+ Fname = test_case_fname(),
+ case file:open(Fname, [read]) of
+ {ok, Fd} ->
+ Res = io:read(Fd, []),
+ file:close(Fd),
+ case Res of
+ {ok, TestCase} ->
+ wx_test_lib:log("Using test case ~w from file ~s~n",
+ [TestCase, Fname]),
+ TestCase;
+ {error, _} ->
+ default_test_case(Fname)
+ end;
+ {error, _} ->
+ default_test_case(Fname)
+ end.
+
+default_test_case(Fname) ->
+ TestCase = all,
+ wx_test_lib:log("<>WARNING<> Cannot read file ~s, "
+ "using default test case: ~w~n",
+ [Fname, TestCase]),
+ TestCase.
+
+write_test_case(TestCase) ->
+ Fname = test_case_fname(),
+ {ok, Fd} = file:open(Fname, write),
+ ok = io:format(Fd, "~p.~n",[TestCase]),
+ file:close(Fd).
+
+append_test_case_info(TestCase, TestCaseInfo) ->
+ Fname = test_case_fname(),
+ {ok, Fd} = file:open(Fname, [read, write]),
+ ok = io:format(Fd, "~p.~n",[TestCase]),
+ ok = io:format(Fd, "~p.~n",[TestCaseInfo]),
+ file:close(Fd),
+ TestCaseInfo.
diff --git a/lib/wx/vsn.mk b/lib/wx/vsn.mk
new file mode 100644
index 0000000000..91bbdc8c99
--- /dev/null
+++ b/lib/wx/vsn.mk
@@ -0,0 +1,6 @@
+WX_VSN = 0.98.4
+
+TICKETS = OTP-8243 OTP-8250 OTP-8292
+TICKETS_0.98.3 = OTP-8138 OTP-8126 OTP-8083
+TICKETS_0.98.2 = OTP-7943
+TICKETS_0.98.1 = OTP-7875 \ No newline at end of file
diff --git a/lib/wx/wxwin.m4 b/lib/wx/wxwin.m4
new file mode 100644
index 0000000000..52c55e2e6e
--- /dev/null
+++ b/lib/wx/wxwin.m4
@@ -0,0 +1,366 @@
+dnl ---------------------------------------------------------------------------
+dnl Macros for wxWidgets detection. Typically used in configure.in as:
+dnl
+dnl AC_ARG_ENABLE(...)
+dnl AC_ARG_WITH(...)
+dnl ...
+dnl AM_OPTIONS_WXCONFIG
+dnl ...
+dnl ...
+dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
+dnl if test "$wxWin" != 1; then
+dnl AC_MSG_ERROR([
+dnl wxWidgets must be installed on your system
+dnl but wx-config script couldn't be found.
+dnl
+dnl Please check that wx-config is in path, the directory
+dnl where wxWidgets libraries are installed (returned by
+dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
+dnl equivalent variable and wxWidgets version is 2.3.4 or above.
+dnl ])
+dnl fi
+dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
+dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
+dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
+dnl
+dnl LIBS="$LIBS $WX_LIBS"
+dnl ---------------------------------------------------------------------------
+
+dnl ---------------------------------------------------------------------------
+dnl AM_OPTIONS_WXCONFIG
+dnl
+dnl adds support for --wx-prefix, --wx-exec-prefix, --with-wxdir and
+dnl --wx-config command line options
+dnl ---------------------------------------------------------------------------
+
+AC_DEFUN([AM_OPTIONS_WXCONFIG],
+[
+ AC_ARG_WITH(wxdir,
+ [ --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH],
+ [ wx_config_name="$withval/wx-config"
+ wx_config_args="--inplace"])
+ AC_ARG_WITH(wx-config,
+ [ --with-wx-config=CONFIG wx-config script to use (optional)],
+ wx_config_name="$withval" )
+ AC_ARG_WITH(wx-prefix,
+ [ --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)],
+ wx_config_prefix="$withval", wx_config_prefix="")
+ AC_ARG_WITH(wx-exec-prefix,
+ [ --with-wx-exec-prefix=PREFIX
+ Exec prefix where wxWidgets is installed (optional)],
+ wx_config_exec_prefix="$withval", wx_config_exec_prefix="")
+])
+
+dnl Helper macro for checking if wx version is at least $1.$2.$3, set's
+dnl wx_ver_ok=yes if it is:
+AC_DEFUN([_WX_PRIVATE_CHECK_VERSION],
+[
+ wx_ver_ok=""
+ if test "x$WX_VERSION" != x ; then
+ if test $wx_config_major_version -gt $1; then
+ wx_ver_ok=yes
+ else
+ if test $wx_config_major_version -eq $1; then
+ if test $wx_config_minor_version -gt $2; then
+ wx_ver_ok=yes
+ else
+ if test $wx_config_minor_version -eq $2; then
+ if test $wx_config_micro_version -ge $3; then
+ wx_ver_ok=yes
+ fi
+ fi
+ fi
+ fi
+ fi
+ fi
+])
+
+dnl ---------------------------------------------------------------------------
+dnl AM_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
+dnl [, WX-LIBS [, ADDITIONAL-WX-CONFIG-FLAGS]]]])
+dnl
+dnl Test for wxWidgets, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATIC
+dnl (the latter is for static linking against wxWidgets). Set WX_CONFIG_NAME
+dnl environment variable to override the default name of the wx-config script
+dnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in this
+dnl case the macro won't even waste time on tests for its existence.
+dnl
+dnl Optional WX-LIBS argument contains comma- or space-separated list of
+dnl wxWidgets libraries to link against (it may include contrib libraries). If
+dnl it is not specified then WX_LIBS and WX_LIBS_STATIC will contain flags to
+dnl link with all of the core wxWidgets libraries.
+dnl
+dnl Optional ADDITIONAL-WX-CONFIG-FLAGS argument is appended to wx-config
+dnl invocation command in present. It can be used to fine-tune lookup of
+dnl best wxWidgets build available.
+dnl
+dnl Example use:
+dnl AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], [html,core,net]
+dnl [--unicode --debug])
+dnl ---------------------------------------------------------------------------
+
+dnl
+dnl Get the cflags and libraries from the wx-config script
+dnl
+AC_DEFUN([AM_PATH_WXCONFIG],
+[
+ dnl do we have wx-config name: it can be wx-config or wxd-config or ...
+ if test x${WX_CONFIG_NAME+set} != xset ; then
+ WX_CONFIG_NAME=wx-config
+ fi
+
+ if test "x$wx_config_name" != x ; then
+ WX_CONFIG_NAME="$wx_config_name"
+ fi
+
+ dnl deal with optional prefixes
+ if test x$wx_config_exec_prefix != x ; then
+ wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
+ WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
+ fi
+ if test x$wx_config_prefix != x ; then
+ wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
+ WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
+ fi
+ if test "$cross_compiling" = "yes"; then
+ wx_config_args="$wx_config_args --host=$host_alias"
+ fi
+
+ dnl don't search the PATH if WX_CONFIG_NAME is absolute filename
+ if test -x "$WX_CONFIG_NAME" ; then
+ AC_MSG_CHECKING(for wx-config)
+ WX_CONFIG_PATH="$WX_CONFIG_NAME"
+ AC_MSG_RESULT($WX_CONFIG_PATH)
+ else
+ AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")
+ fi
+
+ if test "$WX_CONFIG_PATH" != "no" ; then
+ WX_VERSION=""
+
+ min_wx_version=ifelse([$1], ,2.2.1,$1)
+ if test -z "$5" ; then
+ AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version])
+ else
+ AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version ($5)])
+ fi
+
+ WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $5 $4"
+
+ WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
+ wx_config_major_version=`echo $WX_VERSION | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ wx_config_minor_version=`echo $WX_VERSION | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ wx_config_micro_version=`echo $WX_VERSION | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+
+ wx_requested_major_version=`echo $min_wx_version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ wx_requested_minor_version=`echo $min_wx_version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ wx_requested_micro_version=`echo $min_wx_version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+
+ _WX_PRIVATE_CHECK_VERSION([$wx_requested_major_version],
+ [$wx_requested_minor_version],
+ [$wx_requested_micro_version])
+
+ if test -n "$wx_ver_ok"; then
+
+ AC_MSG_RESULT(yes (version $WX_VERSION))
+ WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
+
+ dnl is this even still appropriate? --static is a real option now
+ dnl and WX_CONFIG_WITH_ARGS is likely to contain it if that is
+ dnl what the user actually wants, making this redundant at best.
+ dnl For now keep it in case anyone actually used it in the past.
+ AC_MSG_CHECKING([for wxWidgets static library])
+ WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
+ if test "x$WX_LIBS_STATIC" = "x"; then
+ AC_MSG_RESULT(no)
+ else
+ AC_MSG_RESULT(yes)
+ fi
+
+ dnl starting with version 2.2.6 wx-config has --cppflags argument
+ wx_has_cppflags=""
+ if test $wx_config_major_version -gt 2; then
+ wx_has_cppflags=yes
+ else
+ if test $wx_config_major_version -eq 2; then
+ if test $wx_config_minor_version -gt 2; then
+ wx_has_cppflags=yes
+ else
+ if test $wx_config_minor_version -eq 2; then
+ if test $wx_config_micro_version -ge 6; then
+ wx_has_cppflags=yes
+ fi
+ fi
+ fi
+ fi
+ fi
+
+ dnl starting with version 2.7.0 wx-config has --rescomp option
+ wx_has_rescomp=""
+ if test $wx_config_major_version -gt 2; then
+ wx_has_rescomp=yes
+ else
+ if test $wx_config_major_version -eq 2; then
+ if test $wx_config_minor_version -ge 7; then
+ wx_has_rescomp=yes
+ fi
+ fi
+ fi
+ if test "x$wx_has_rescomp" = x ; then
+ dnl cannot give any useful info for resource compiler
+ WX_RESCOMP=
+ else
+ WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
+ fi
+
+ if test "x$wx_has_cppflags" = x ; then
+ dnl no choice but to define all flags like CFLAGS
+ WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
+ WX_CPPFLAGS=$WX_CFLAGS
+ WX_CXXFLAGS=$WX_CFLAGS
+
+ WX_CFLAGS_ONLY=$WX_CFLAGS
+ WX_CXXFLAGS_ONLY=$WX_CFLAGS
+ else
+ dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS
+ WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
+ WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
+ WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
+
+ WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
+ WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
+ fi
+
+ ifelse([$2], , :, [$2])
+
+ else
+
+ if test "x$WX_VERSION" = x; then
+ dnl no wx-config at all
+ AC_MSG_RESULT(no)
+ else
+ AC_MSG_RESULT(no (version $WX_VERSION is not new enough))
+ fi
+
+ WX_CFLAGS=""
+ WX_CPPFLAGS=""
+ WX_CXXFLAGS=""
+ WX_LIBS=""
+ WX_LIBS_STATIC=""
+ WX_RESCOMP=""
+ ifelse([$3], , :, [$3])
+
+ fi
+ else
+
+ WX_CFLAGS=""
+ WX_CPPFLAGS=""
+ WX_CXXFLAGS=""
+ WX_LIBS=""
+ WX_LIBS_STATIC=""
+ WX_RESCOMP=""
+
+ ifelse([$3], , :, [$3])
+
+ fi
+
+ AC_SUBST(WX_CPPFLAGS)
+ AC_SUBST(WX_CFLAGS)
+ AC_SUBST(WX_CXXFLAGS)
+ AC_SUBST(WX_CFLAGS_ONLY)
+ AC_SUBST(WX_CXXFLAGS_ONLY)
+ AC_SUBST(WX_LIBS)
+ AC_SUBST(WX_LIBS_STATIC)
+ AC_SUBST(WX_VERSION)
+ AC_SUBST(WX_RESCOMP)
+])
+
+dnl ---------------------------------------------------------------------------
+dnl Get information on the wxrc program for making C++, Python and xrs
+dnl resource files.
+dnl
+dnl AC_ARG_ENABLE(...)
+dnl AC_ARG_WITH(...)
+dnl ...
+dnl AM_OPTIONS_WXCONFIG
+dnl ...
+dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1)
+dnl if test "$wxWin" != 1; then
+dnl AC_MSG_ERROR([
+dnl wxWidgets must be installed on your system
+dnl but wx-config script couldn't be found.
+dnl
+dnl Please check that wx-config is in path, the directory
+dnl where wxWidgets libraries are installed (returned by
+dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or
+dnl equivalent variable and wxWidgets version is 2.6.0 or above.
+dnl ])
+dnl fi
+dnl
+dnl AM_PATH_WXRC([HAVE_WXRC=1], [HAVE_WXRC=0])
+dnl if test "x$HAVE_WXRC" != x1; then
+dnl AC_MSG_ERROR([
+dnl The wxrc program was not installed or not found.
+dnl
+dnl Please check the wxWidgets installation.
+dnl ])
+dnl fi
+dnl
+dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
+dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
+dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
+dnl
+dnl LDFLAGS="$LDFLAGS $WX_LIBS"
+dnl ---------------------------------------------------------------------------
+
+
+
+dnl ---------------------------------------------------------------------------
+dnl AM_PATH_WXRC([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl
+dnl Test for wxWidgets' wxrc program for creating either C++, Python or XRS
+dnl resources. The variable WXRC will be set and substituted in the configure
+dnl script and Makefiles.
+dnl
+dnl Example use:
+dnl AM_PATH_WXRC([wxrc=1], [wxrc=0])
+dnl ---------------------------------------------------------------------------
+
+dnl
+dnl wxrc program from the wx-config script
+dnl
+AC_DEFUN([AM_PATH_WXRC],
+[
+ AC_ARG_VAR([WXRC], [Path to wxWidget's wxrc resource compiler])
+
+ if test "x$WX_CONFIG_NAME" = x; then
+ AC_MSG_ERROR([The wxrc tests must run after wxWidgets test.])
+ else
+
+ AC_MSG_CHECKING([for wxrc])
+
+ if test "x$WXRC" = x ; then
+ dnl wx-config --utility is a new addition to wxWidgets:
+ _WX_PRIVATE_CHECK_VERSION(2,5,3)
+ if test -n "$wx_ver_ok"; then
+ WXRC=`$WX_CONFIG_WITH_ARGS --utility=wxrc`
+ fi
+ fi
+
+ if test "x$WXRC" = x ; then
+ AC_MSG_RESULT([not found])
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_RESULT([$WXRC])
+ ifelse([$1], , :, [$1])
+ fi
+
+ AC_SUBST(WXRC)
+ fi
+])